Delete specified faces of box
Delete Box Faces
This example shows how to delete multiple faces from the box.
Create a box and delete the faces 4 and 6.
sh = shape.Box; deleteFaces(sh,[4 6]); view([20.28 11.41])
box — Box to remove faces
shape.Box object (default)
Box to remove faces, specified as a
faceID — Faces to remove from box
integer scalar | n-by-1 integer vector
Faces to remove from the box, specified as a scalar integer for a single face or a n-by-1 vector for multiple faces. n is the number of faces.
[1 4 5]
Introduced in R2023b