[OpenSCAD] sumUp() to Replace Difference() (in most cases)

Ronaldo Persiano 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...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20161007/2f8d0359/attachment-0002.html>

More information about the Discuss mailing list