open3d.t.io.write_triangle_mesh#
- open3d.t.io.write_triangle_mesh(filename: os.PathLike, mesh: open3d.t.geometry.TriangleMesh, write_ascii: bool = False, compressed: bool = False, write_vertex_normals: bool = True, write_vertex_colors: bool = True, write_triangle_uvs: bool = True, print_progress: bool = False) bool#
Function to write TriangleMesh to file
- Parameters:
filename (os.PathLike) – Path to file.
mesh (open3d.t.geometry.TriangleMesh) – The
TriangleMeshobject for I/O.write_ascii (bool, optional, default=False) – Set to
Trueto output in ascii format, otherwise binary format will be used.compressed (bool, optional, default=False) – Set to
Trueto write in compressed format.write_vertex_normals (bool, optional, default=True) – Set to
Falseto not write any vertex normals, even if present on the mesh.write_vertex_colors (bool, optional, default=True) – Set to
Falseto not write any vertex colors, even if present on the mesh.write_triangle_uvs (bool, optional, default=True) – Set to
Falseto not write any triangle uvs, even if present on the mesh. Forobjformat, mtl file is saved only whenTrueis set.print_progress (bool, optional, default=False) – If set to true a progress bar is visualized in the console.
- Returns:
bool