Main Content

removeFaces

Interactively select and remove 3-D shape faces

Since R2023b

    Description

    example

    removeFaces(shape) opens a figure window to interactively select and remove the shape faces.

    removeFaces(shape,FilterAngle=Value) opens an interactive figure window to select and remove the shape faces with shape divided into faces such that the adjacent faces have a dihedral angle that deviates from 180 degrees by an angle greater than or equal to the specified FilterAngle value. For more information on filter angle, see the featureEdges documentation.

    Examples

    collapse all

    Create a box. Remove its face number 3 interactively by either clicking on the face and then clicking Remove Faces button,

    or entering the face ID manually and then clicking the Remove Faces button.

    box = shape.Box;
    removeFaces(box)

    Figure contains an axes object and an object of type uipanel. The axes object with title Select faces to remove, xlabel x-axis, ylabel y-axis contains 12 objects of type patch.

    Input Arguments

    collapse all

    Shape to remove the selected faces, specified as a 3-D shape object.

    Example: shape.Box

    Name-Value Arguments

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: FilterAngle=15

    Filter angle for the shape faces, specified as a scalar in the range [0,180] degrees. Specifying the filter angle returns the adjacent faces of a shape that have a dihedral angle that deviates from 180 degrees by an angle greater than the specified FilterAngle value. For more information on filter angle, see the featureEdges documentation.

    Example: 15

    Data Types: double

    Version History

    Introduced in R2023b