cast_to_polydata#

PointSet.cast_to_polydata(deep=True)[source]#

Cast this dataset to polydata.

Parameters
deepbool, optional

Whether to copy the pointset points, or to create a PolyData without copying them. Setting deep=True ensures that the original arrays can be modified outside the PolyData without affecting the PolyData. Default is True.

Returns
pyvista.PolyData

PointSet cast to a pyvista.PolyData.