OpenSCAD User Manual/Modifier Characters

From Wikibooks, open books for an open world
< OpenSCAD User Manual
Jump to: navigation, search


The text in its current form is incomplete.


[edit] 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).

 Usage example:
 % { ... }

Example code:

difference() {
        // start objects
        cylinder (h = 4, r=1, center = true, $fn=100);
        // first object that will subtracted
        % rotate ([90,0,0]) cylinder (h = 4, r=0.3, center = true, $fn=100);
        // second object that will be subtracted
        % rotate ([0,90,0]) cylinder (h = 4, r=0.9, center = true, $fn=100);
}
Background modifier example

[edit] Debug Modifier

Use this subtree as usual in the rendering process but also draw it unmodified in transparent pink.

 Usage example:
 # { ... }

Example:

difference() {
        // start objects
        cylinder (h = 4, r=1, center = true, $fn=100);
        // first object that will subtracted
        # rotate ([90,0,0]) cylinder (h = 4, r=0.3, center = true, $fn=100);
        // second object that will be subtracted
        # rotate ([0,90,0]) cylinder (h = 4, r=0.9, center = true, $fn=100);
}
OpenScad Debug Modifier example

[edit] Root Modifier

Ignore the rest of the design and use this subtree as design root.

 Usage example:
 ! { ... }

[edit] Disable Modifier

Simply ignore this entire subtree.

 Usage example:
 * { ... }
Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export