discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Redundant operations - executed?

M
MichaelAtOz
Mon, Jan 23, 2017 11:43 PM

If I have redundant operations, like a union of one thing, or difference with
nothing to remove, apart from compilation, do they actually get computed  or
do they get skipped?
For either preview & render?

As I edit a design, for example removing 2nd object in a union, ATM
sometimes I leave the union in place in-case I want to add something back.
If I end up having these all over am I increasing processing time?


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/Redundant-operations-executed-tp20205.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

If I have redundant operations, like a union of one thing, or difference with nothing to remove, apart from compilation, do they actually get computed or do they get skipped? For either preview & render? As I edit a design, for example removing 2nd object in a union, ATM sometimes I leave the union in place in-case I want to add something back. If I end up having these all over am I increasing processing time? ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/Redundant-operations-executed-tp20205.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NH
nop head
Tue, Jan 24, 2017 8:41 AM

I think they skip as there is no second operand, so you can't call a
boolean op. Even if they don't skip the OP would be a NOP, so unlikely even
CGAL could make it take any time.

On 23 January 2017 at 23:43, MichaelAtOz oz.at.michael@gmail.com wrote:

If I have redundant operations, like a union of one thing, or difference
with
nothing to remove, apart from compilation, do they actually get computed
or
do they get skipped?
For either preview & render?

As I edit a design, for example removing 2nd object in a union, ATM
sometimes I leave the union in place in-case I want to add something back.
If I end up having these all over am I increasing processing time?


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the
Public Domain; to the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. Obviously
inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it!
http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/
Redundant-operations-executed-tp20205.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I think they skip as there is no second operand, so you can't call a boolean op. Even if they don't skip the OP would be a NOP, so unlikely even CGAL could make it take any time. On 23 January 2017 at 23:43, MichaelAtOz <oz.at.michael@gmail.com> wrote: > If I have redundant operations, like a union of one thing, or difference > with > nothing to remove, apart from compilation, do they actually get computed > or > do they get skipped? > For either preview & render? > > As I edit a design, for example removing 2nd object in a union, ATM > sometimes I leave the union in place in-case I want to add something back. > If I end up having these all over am I increasing processing time? > > > > ----- > Admin - PM me if you need anything, or if I've done something stupid... > > Unless specifically shown otherwise above, my contribution is in the > Public Domain; to the extent possible under law, I have waived all > copyright and related or neighbouring rights to this work. Obviously > inclusion of works of previous authors is not included in the above. > > The TPP is no simple “trade agreement.” Fight it! > http://www.ourfairdeal.org/ time is running out! > -- > View this message in context: http://forum.openscad.org/ > Redundant-operations-executed-tp20205.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >