Skip to content
brep-conformancegithub

thicken

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

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}

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