pysdic.PointCloud.to_vtk#

PointCloud.to_vtk(*, only_finite=False, save_properties=True)[source]#

Convert the point cloud to a vtkPolyData (only for 3D point clouds).

The points are stored with one vertex cell per point, and the properties as point data arrays (named after the properties).

Note

VTK arrays have at most 2 dimensions: a property of shape \((N_p, A, B)\) raises a ValueError. Boolean properties are stored as uint8 arrays.

Parameters:
  • only_finite (bool, optional (default: False)) – If True, the points with non-finite coordinates are skipped. Otherwise, a ValueError is raised if such points exist.

  • save_properties (bool, optional (default: True)) – If False, the properties are not saved.

Returns:

The VTK representation of the point cloud (with copies of the arrays).

Return type:

vtkPolyData