Sketch operations
Renders the 3D model in your browser. The first run downloads the Python runtime (≈30 MB).
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 sketch Line: points, lines, arcs, circles, Spline / Bezier / BSpline, custom open / closed shapes (same type back), Polygon-like shapes (as a Polygon); ellipses across a line along x or y |
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.
A mirrored Spline goes through the mirrored points; the kernel’s smooth
interpolation picks its own end tangents, so for an exactly symmetric curve use
arcs or a Bezier. To bring existing model edges into a sketch (“Use”), see
3D curves & sketch Use.
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:
Renders the 3D model in your browser. The first run downloads the Python runtime (≈30 MB).