Skip to content
brep-conformancegithub

delete_faces

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

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}

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