PolyDataFilters.edge_mask#
- PolyDataFilters.edge_mask( ) NDArray[np.bool_][source]#
Return a mask of the points of a surface mesh with a surface angle greater than angle.
- Parameters:
- Returns:
numpy.ndarrayMask of points with an angle greater than
angle.
Examples#
Download Python source code | Download Jupyter notebook
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)
Show the array of masked points.
>>> mask
array([ True, True, True, ..., False, False, False])