[OpenSCAD] sumUp() to Replace Difference() (in most cases)
rcmpersiano at gmail.com
Fri Oct 7 15:45:38 EDT 2016
2016-10-07 12:19 GMT-03:00 nop head <nop.head at gmail.com>:
> >Surprising recoding, nophead. The for() statement is used as a let() !
> It is a bodge because let() isn't accepted at that position, assign is
> deprecated in favour of assignment in braces but braces don't work if they
> are not the child of something like for or if.
It is a strange construction because for() is not used over a list but a
simple element. Regular modules and functions accept variables not declared
in their definition as argument (like $fn in cylinder()). Although
children() seems to be syntactically a module, it doesn't accept the
construction children($beforeRemoving=true) or even children(
[0:$children-1],$beforeRemoving=true) what would simplify the code a bit
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss