thicken
Changing a solid · api.md § thicken · all operations
definition
thicken(s: Solid, faces: list<Point3>, thickness: Length) -> Solid
Makes the solid that each face the points lie on sweeps as the face moves from where it is to a distance of thickness along its outward normal. The face moves inward where thickness is negative. The walls of the swept solid are swept along the normals from the face's edges. The input solid is not part of the result. A box's face gives a slab. A cylinder's side gives a tube. A ball's face gives a spherical shell, and a ring's face gives a hollow ring.
faces must name one face or more, and thickness must not be zero. When the face moves inward, the thickness must be less than the face's least radius of curvature on that side, so that the swept face does not fold.
Example. Solid 1 is a 10 × 20 × 30 mm box with one corner at the origin.
> {"cmd": "thicken", "s": 1, "faces": [[5, 10, 30]], "thickness": 2}
< {"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 |