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' });
JavaScript is off — the listing above is the whole example.

Calls

CallWhat it does
Shape.fillet(radius, edges?: EdgeSelector, opts?: { continuity?: 'G1' | 'G2' }) => ShapeRound edges.
Shape.chamfer(distance, edges?: EdgeSelector) => ShapeBevel edges.
Shape.draft(angleDeg: Editable<number>, opts: { face: FaceSelector | string; neutralPlane?: string; pullDir?: [number, number, number] }) => ShapeTaper the selected face(s) for moldability.
Shape.shell(thickness, { face: FaceSelector }) => ShapeHollow the solid removing the named face.
Shape.bend(edgeRef: EdgeSelector | string, angle: Editable<number>, radius: Editable<number>) => ShapeAdd a sheet-metal bend along a linear edge.
Shape.flattenPattern() => RegionReturn the unfolded 2D flat-pattern of this bent sheet-metal Shape as a Region (closed outer wire + holes + bend-line metadata + source plane).