delete_faces
Changing a solid · api.md § delete_faces · all operations
definition
delete_faces(s: Solid, faces: list<Point3>) -> Solid
Takes the faces that the points lie on out of the solid, and closes the gap by extending or trimming the faces round them, as defeaturing does. Taking out a hole's face leaves the plate whole. Taking out a notch's or groove's faces leaves the block or shaft that the notch or groove was cut from. Taking out a chamfer restores the corner. The faces round the gap must be able to close the gap.
Example. Solid 2 is the box with one edge chamfered. The point names the chamfer's face.
> {"cmd": "delete_faces", "s": 2, "faces": [[1, 1, 15]]}
< {"ok": 3}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 |