pyvista.PointSet.cast_to_polydata#

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

Cast this dataset to polydata.

Parameters:
deepbool, deep: True

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.

Returns:
pyvista.PolyData

PointSet cast to a pyvista.PolyData.