docs / Finish edges
Finish edges
Break edges, add draft, hollow out a wall, fold sheet metal.
The order of these two steps changes the result. Shelling first leaves the wall a constant thickness; filleting first would round the outside and then hollow the rounded body.
const body = box(60, 40, 24).shell(2, { face: 'top' });
// A light anodised blue over the shelled wall and rounded corners.
return body.fillet(3, { atZ: 0 }).finish('anodized', { color: '#7FA6C4' });Calls
| Call | What it does |
|---|---|
Shape.fillet(radius, edges?: EdgeSelector, opts?: { continuity?: 'G1' | 'G2' }) => Shape | Round edges. |
Shape.chamfer(distance, edges?: EdgeSelector) => Shape | Bevel edges. |
Shape.draft(angleDeg: Editable<number>, opts: { face: FaceSelector | string; neutralPlane?: string; pullDir?: [number, number, number] }) => Shape | Taper the selected face(s) for moldability. |
Shape.shell(thickness, { face: FaceSelector }) => Shape | Hollow the solid removing the named face. |
Shape.bend(edgeRef: EdgeSelector | string, angle: Editable<number>, radius: Editable<number>) => Shape | Add a sheet-metal bend along a linear edge. |
Shape.flattenPattern() => Region | Return the unfolded 2D flat-pattern of this bent sheet-metal Shape as a Region (closed outer wire + holes + bend-line metadata + source plane). |