helper objects...

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

helper objects...

bboett
Hello
some time ago i noticed someone adding helper objects to his drawings that disappear in the compilation, can't now remember where i saw this, but it occurred to me this was a neat feature....

so i have now an object that clips to a 3030 alu profile, and i want to see the profile only in fast drawing but not when i compile the object...
i have seen it done, but i can't find the info in the docu?
how can this be achieved?

thanks in advance

--
ciao
Bruno

===========================================
http://nohkumado.eu/, http://aikido.nohkumado.eu/,
http://aikido.zorn.free.fr

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: helper objects...

tp3
On 13.04.20 18:43, Bruno Boettcher wrote:
> some time ago i noticed someone adding helper objects to his
> drawings that disappear in the compilation

That should be the "background modifier":
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Modifier_Characters#Background_Modifier

ciao,
  Torsten.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: helper objects...

nophead
In reply to this post by bboett
There is the %background modifier

Ignore this subtree for the normal rendering process and draw it in transparent gray (all transformations are still applied to the nodes in this tree).
Because the marked subtree is completely ignored, it might have unexpected effects in case it's used, for example, with the first object in a difference(). In that case this object is rendered in transparent gray, but it is not used as the base for the difference()!

And there is $preview
$preview is true, when in OpenCSG preview (F5). $preview is false, when in render (F6).
This can, for example, be used to reduce detail during preview to save time, without losing detail in the final rendered result:


On Mon, 13 Apr 2020 at 17:44, Bruno Boettcher <[hidden email]> wrote:
Hello
some time ago i noticed someone adding helper objects to his drawings that disappear in the compilation, can't now remember where i saw this, but it occurred to me this was a neat feature....

so i have now an object that clips to a 3030 alu profile, and i want to see the profile only in fast drawing but not when i compile the object...
i have seen it done, but i can't find the info in the docu?
how can this be achieved?

thanks in advance

--
ciao
Bruno

===========================================
http://nohkumado.eu/, http://aikido.nohkumado.eu/,
http://aikido.zorn.free.fr
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org