edge_mask

PolyDataFilters.edge_mask(angle, progress_bar=False)

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, optional

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
>>> mesh = pyvista.Cube().triangulate().subdivide(4).clean()
>>> mask = mesh.edge_mask(45)
>>> mask  
array([ True,  True,  True, ..., False, False, False])
>>> mesh.plot(scalars=mask)