Main Content

deleteFaces

Delete specified faces of box

Since R2023b

    Description

    deleteFaces(box,faceID) deletes the specified faces from the box shape.

    example

    Examples

    collapse all

    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])

    Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch.

    Input Arguments

    collapse all

    Box to remove faces, specified as a shape.Box object.

    Example: shape.Box

    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.

    Example: 2

    Example: [1 4 5]

    Data Types: double

    Version History

    Introduced in R2023b

    See Also

    Objects

    Functions