OpenSCAD Transform Order example
Foundations
Lesson 5 of 22
See why rotating then translating is not the same as translating then rotating.
Try changing:
angleoffset_distanceLow compile complexity. Transforms are inexpensive; no curved surfaces are needed.
How this model works
OpenSCAD applies the transform nearest a shape first. The left bar rotates about its own center and then moves along X. The right bar first moves away from its local origin; rotating afterward swings it around that origin. Thin crosshairs on the two pads mark their local origins. Color is a preview aid and is not preserved in STL.
main.scad
Loading draft
Ready
Z up · geometry preview
Your geometry will appear here
Preview or render the model to inspect it in 3D.
Geometry-only STL preview
Grid 10 units · Drag: orbit · Right-drag / two fingers: pan · Scroll / pinch: zoom
0 messages
Make it your own
Set angle to 90 and predict each bar's position before compiling. Swap the rotate and translate lines in the second demonstration to make the pair match.
Change one parameter at a time and inspect the result. Use the workspace reset action to return to this lesson’s original model.