pysdic.PointCloud.from_pyvista#

classmethod PointCloud.from_pyvista(mesh, *, load_properties=True)[source]#

Create a point cloud from the points of a pyvista.DataSet (pyvista.PolyData, pyvista.UnstructuredGrid, …).

The cells are ignored and the properties are read from the point data (their data types are kept). The point cloud is always 3D (\(E = 3\)).

Parameters:
  • mesh (pyvista.DataSet) – The dataset to read.

  • load_properties (bool, optional (default: True)) – If False, the point data are ignored.

Returns:

The new point cloud.

Return type:

pysdic.PointCloud