open3d.io.write_voxel_grid

open3d.io.write_voxel_grid(filename, voxel_grid, write_ascii=False, compressed=False, print_progress=False)

Function to write VoxelGrid to file

Parameters
  • filename (str) – Path to file.

  • voxel_grid (open3d.cpu.pybind.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