visualizevtkwrite_vtk_pointcloud_file

write_vtk_pointcloud_file

visualize.vtk.write_vtk_pointcloud_file(out_name=None, out_dir='.', points=None, scalar_data=None, scalar_data_names=None)

Write out 3D point data as a VTK point cloud.

Parameters:
  • out_name (str) – Name of the output file.

  • out_dir (str) – Directory to save the file to.

  • points (list) – List of 3D points.

  • scalar_data (list) – List of scalar data arrays. Each array should have the same length as the amount of points.

  • scalar_data_names (list) – List of names for the scalar data arrays.

Returns:

None. Writes out a .vtk file to the specified directory.