pyvista.PolyDataFilters.edge_mask#

PolyDataFilters.edge_mask(angle, progress_bar=False)[source]#

Return a mask of the points of a surface mesh that has a surface angle greater than angle.

Parameters:
anglefloat

Angle to consider an edge.

progress_barbool, default: False

Display a progress bar to indicate progress.

Returns:
numpy.ndarray

Mask of points with an angle greater than angle.

Examples

Plot the mask of points that exceed 45 degrees.

>>> import pyvista as pv
>>> mesh = pv.Cube().triangulate().subdivide(4)
>>> mask = mesh.edge_mask(45)
>>> mesh.plot(scalars=mask)
../../../_images/pyvista-PolyDataFilters-edge_mask-1_00_00.png

Show the array of masked points.

>>> mask  
array([ True,  True,  True, ..., False, False, False])