Skip to content
brep-conformancegithub

shell

Changing a solid · api.md § shell · all operations

shell(s: Solid, open: list<Point3>, thickness: Length) -> Solid

Hollows the solid to walls of one thickness, open through the named faces.

The result is the set of points of s within thickness of the boundary of s, with the named faces left out of that boundary. With no faces named, the walls close round a void. thickness must be positive, and the walls must not meet.

Example. Solid 1 is a 10 × 20 × 30 mm box with one corner at the origin.

> {"cmd": "shell", "s": 1, "open": [[5, 10, 30]], "thickness": 1}
< {"ok": 2}

A face is named in the same way as an edge: each point names the face of s that the point lies on, within 10·ε.

FunctionFieldsReturns
offsets, distanceSolid
offset_facess, faces, distanceSolid
delete_facess, facesSolid
move_facess, faces, matrixSolid
thickens, faces, thicknessSolid
shells, open, thicknessSolid
drafts, faces, origin, pull, angleSolid