open3d.io.write_triangle_mesh¶
-
open3d.io.
write_triangle_mesh
(filename, mesh, write_ascii=False, compressed=False, write_vertex_normals=True, write_vertex_colors=True, print_progress=False)¶ Function to write TriangleMesh to file
- Parameters
filename (str) – Path to file.
mesh (open3d.geometry.TriangleMesh) – The
TriangleMesh
object for I/Owrite_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.write_vertex_normals (bool, optional, default=True) – Set to
False
to not write any vertex normals, even if present on the meshwrite_vertex_colors (bool, optional, default=True) – Set to
False
to not write any vertex colors, even if present on the meshprint_progress (bool, optional, default=False) – If set to true a progress bar is visualized in the console
- Returns
bool