Removed remove_undefs()

This commit is contained in:
Revar Desmera 2019-05-15 21:38:54 -07:00
parent 8bac48acc4
commit 4f98535141
2 changed files with 2 additions and 2 deletions

View file

@ -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)"

View file

@ -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")