shell
Changing a solid · api.md § shell · all operations
definition
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}common to changing a solid
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·ε.
| Function | Fields | Returns |
|---|---|---|
offset | s, distance | Solid |
offset_faces | s, faces, distance | Solid |
delete_faces | s, faces | Solid |
move_faces | s, faces, matrix | Solid |
thicken | s, faces, thickness | Solid |
shell | s, open, thickness | Solid |
draft | s, faces, origin, pull, angle | Solid |