OpenSCAD CheatSheet v2015.03 shows
Modifier Characters
% transparent
These are reversed from what happens
The manual page linked to these have the correct definition.
--
View this message in context: http://forum.openscad.org/Modifier-Characters-reversed-tp13592.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Thx - added some clarification in the cheat sheet.
-Marius
On Aug 22, 2015, at 13:38 PM, L Boyd lboyd@frontiernet.net wrote:
OpenSCAD CheatSheet v2015.03 shows
Modifier Characters
% transparent
These are reversed from what happens
The manual page linked to these have the correct definition.
--
View this message in context: http://forum.openscad.org/Modifier-Characters-reversed-tp13592.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
Yes that adds clarification, but they are still backwards
Revised cheat sheet
highlight / debug
%
transparent / background
Actual definition
Debug Modifier
Use this subtree as usual in the rendering process but also draw it
unmodified in /transparent pink./
Usage
The cheat sheet should display
% highlight / background
--
View this message in context: http://forum.openscad.org/Modifier-Characters-reversed-tp13592p13661.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Von: "L Boyd" lboyd@frontiernet.net
Yes that adds clarification, but they are still backwards
It's not backwards, both modifiers overlap in visual apperance as both make the object transparent (in different colors) by default.
Highlight / Debug is the # modifier which:
Transparent / Background is the % modifier which:
The main reason for the modifiers is actually not the visual appearance as this can be changed by an explicit color()
ciao,
Torsten.
Both will display for difference. Yes they both have transparent properties,
so I guess it somewhat a matter of semantics.
However with difference() the pink with # lets me see inside the object from
which it was subtracted, while the grey with % does not.
To me that makes the # more transparent than the %.
I discover this when I used the one labelled transparent, expecting to be
able to see inside, which I could not
--
View this message in context: http://forum.openscad.org/Modifier-Characters-reversed-tp13592p13664.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Von: "L Boyd" lboyd@frontiernet.net
Both will display for difference. Yes they both have transparent properties,
so I guess it somewhat a matter of semantics.
However with difference() the pink with # lets me see inside the object from
which it was subtracted, while the grey with % does not.
Yep, that's the intention, # shows what happens for debugging purposes.
Think of % as a kind of sticky note in the model that will display but not
F6-render as it's not actually part of the model.
If you have an idea how to explain the difference between the modifiers
better, I'm happy to add that to the manual (or you can do that yourself
if you like, it's a wiki :-).
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Modifier_Characters
ciao,
Torsten.
I think part of the difficulty explaining the modifiers is that no one really
knows what they should be for :)
There are two special features of the modifiers other than color() that can
not be implemented by a user "debug()" module : removing the object from the
CSG tree, and applying a color attribute which is "sticky" ie. overrides the
normal color precedence.
Personally I would like to divorce the colors from the special features, so
that the user could write their own debug modifiers. This was discussed on
github quite a bit. I can see merits for various use cases.
A syntax like color(force=true) could make the color sticky, possible
render(false) to remove from the CSG.
The difficult bit as usual is creating clean extensions and keeping it
backward compatible.
I think it would be interesting to be able to override the modifiers e.g.
module operator% ()
{ render (false) color ("gray", 0.5) children();
}
would be a user defined equivalent of %.
--
View this message in context: http://forum.openscad.org/Modifier-Characters-reversed-tp13592p13666.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
While I certainly appreciate the !, #, * - I haven't personally found a use
for the %. YMMV.
I think the bases are covered and users will determine which approach works
for them.
FWIW I think the wordings OK ... Examples of how people use these values is
always useful.
--
View this message in context: http://forum.openscad.org/Modifier-Characters-reversed-tp13592p13671.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I will give some thought to wording. The real challenge is the short summary
on the cheat sheet. I need to play with % to learn what it does, then start
a new thread so we can kick around ideas.
--
View this message in context: http://forum.openscad.org/Modifier-Characters-reversed-tp13592p13680.html
Sent from the OpenSCAD mailing list archive at Nabble.com.