Sketch operations
Helpers that return ordinary sketch shapes, ready to extrude or cut:
| Helper | Result |
|---|---|
polar_copies(shape, center, count, angle=360) | copies rotated about a point |
linear_copies(shape, dx, dy, count) | copies shifted by a fixed step |
mirror(shape, line) | mirror image across a line (Point, Line, Circle, Polygon-like) |
Trace(points, width) | a constant-width stroke along a polyline, with round joins |
The plate above cuts six radial slots, a triangle and its mirror image, a row
of four holes, and engraves a 2 mm deep zig-zag Trace into its top face.
Trim, extend, intersect
| Helper | Result |
|---|---|
intersect(l1, l2) | the Point where the two (infinite) lines cross |
trim_corner(l1, l2) | both lines trimmed or extended to meet exactly at that point |
extend(line, start=0, end=0) | the line lengthened at either end (negative values shorten it) |
Draw rough construction lines, snap them into exact corners, then build the outline from the cleaned-up lines: