open3d.io.write_voxel_grid#

open3d.io.write_voxel_grid(filename: os.PathLike, voxel_grid: open3d.geometry.VoxelGrid, write_ascii: bool = False, compressed: bool = False, print_progress: bool = False) bool#

Function to write VoxelGrid to file

Parameters:
  • filename (os.PathLike) – Path to file.

  • voxel_grid (open3d.geometry.VoxelGrid) – The VoxelGrid object for I/O

  • write_ascii (bool, optional, default=False) – Set to True to output in ascii format, otherwise binary format will be used.

  • compressed (bool, optional, default=False) – Set to True to write in compressed format.

  • print_progress (bool, optional, default=False) – If set to true a progress bar is visualized in the console

Returns:

bool