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:
- 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) >>> mask = mesh.edge_mask(45) >>> mask array([ True, True, True, ..., False, False, False]) >>> mesh.plot(scalars=mask)