mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 17:59:41 +00:00
Removed remove_undefs()
This commit is contained in:
parent
8bac48acc4
commit
4f98535141
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
if [[ $# > 0 ]]; then
|
||||
PREVIEW_LIBS="$@"
|
||||
else
|
||||
PREVIEW_LIBS="compat attachments math arrays vectors affine coords geometry triangulation quaternions hull constants edges transforms primitives shapes masks shapes2d paths beziers roundcorners walls metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring phillips_drive torx_drive polyhedra debug"
|
||||
PREVIEW_LIBS="common errors attachments math arrays vectors affine coords geometry triangulation quaternions hull constants edges transforms primitives shapes masks shapes2d paths beziers roundcorners walls metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring phillips_drive torx_drive polyhedra debug"
|
||||
fi
|
||||
|
||||
dir="$(basename $PWD)"
|
||||
|
|
|
@ -350,7 +350,7 @@ module glued_circles(r=undef, d=undef, spread=10, tangent=30)
|
|||
function star(n, r, d, ir, id, step, realign=false) =
|
||||
let(
|
||||
r = get_radius(r=r, d=d),
|
||||
count = len(remove_undefs([ir,id,step])),
|
||||
count = num_defined([ir,id,step]),
|
||||
stepOK = is_undef(step) || (step>1 && step<n/2)
|
||||
)
|
||||
assert(count==1, "Must specify exactly one of ir, id, step")
|
||||
|
|
Loading…
Reference in a new issue