[OpenSCAD] sumUp() to Replace Difference() (in most cases)
rcmpersiano at gmail.com
Fri Oct 7 09:34:12 EDT 2016
Surprising recoding, nophead. The for() statement is used as a let() !
2016-10-07 5:14 GMT-03:00 nop head <nop.head at gmail.com>:
> I think the reason it is slower is that all the negative objects get
> unioned and passed as a single argument to difference whereas with the
> normally coded version difference can have lots of subtrahends that don't
> get pre unioned. I would think that for the same reason for loops will be
> slower than repetitions when used in a subtrahend.
Doesn't it depend on the geometrical complexity of each term? If the
positive object is complex and the subtrahends are simple, it should be
faster to do the subtrahend union before.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss