translate() – Translate Modifier Tutorial

Related Links

The Official Wiki – https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Text

An Example from OpenSCAD.org – text on cube.scad

OpenSCAD Translate Modifier

The translate command will “move” the child object the given number of units. The child object can be a single primitive or multiple objects with diffrences(), unions() or other contstructons.

Moving along the X Axis

To move an item in the positive X direction, simply provide a value in the X position of the translate vector, as follows

translate([5,0,0])
cube();

Move along the Y axis

To move an item in the positive Y direction, simply provide a value in the Y position of the translate vector, as follows:

translate([0,5,0])
cube();

Move along the Z axis

To move an item in the positive Z direction, simply provide a value in the Z position of the translate vector, as follows

translate([0,0,5])
cube();

Leave a Reply