OpenSCAD Transform Order example

OpenSCAD examples
/

Transform Order

Beginner

Foundations

Lesson 5 of 22

See why rotating then translating is not the same as translating then rotating.

Try changing:

angleoffset_distance

Low 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

Ctrl/Cmd+Enter or F5: preview · F6: render · Ctrl/Cmd+F: search · Ctrl+Space: complete · Tab: leave editor

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.

FAQ