pysdic.PointCloud.from_vtk_file#

classmethod PointCloud.from_vtk_file(file_path, *, load_properties=True, use_module='meshio')[source]#

Create a point cloud from a legacy VTK file (.vtk, only 3D point clouds).

The vertices are read, the cells are ignored and the properties are read from the point data.

Parameters:
  • file_path (Union[str, os.PathLike]) – The path to an existing VTK file, with the extension .vtk.

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

  • use_module (str, optional (default: "meshio")) – The package used to read the file: "meshio", "pyvista" or "vtk" (see from_meshio(), from_pyvista() and from_vtk()).

Returns:

The new point cloud.

Return type:

pysdic.PointCloud