- UnstructuredGrid.cast_to_pointset(deep: bool = False) PointSet #
Get a new representation of this object as a
Truemakes a full copy of the object. When
False, performs a shallow copy where the points and data arrays are references to the original object.
>>> import pyvista >>> mesh = pyvista.Sphere() >>> pointset = mesh.cast_to_pointset() >>> type(pointset) <class 'pyvista.core.pointset.PointSet'>