Open3D (C++ API)  0.18.0
TriangleMeshIO.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <string>
11 
14 
15 namespace open3d {
16 namespace t {
17 namespace io {
18 
21 std::shared_ptr<geometry::TriangleMesh> CreateMeshFromFile(
22  const std::string &filename, bool print_progress = false);
23 
32 bool ReadTriangleMesh(const std::string &filename,
33  geometry::TriangleMesh &mesh,
35 
43 bool WriteTriangleMesh(const std::string &filename,
44  const geometry::TriangleMesh &mesh,
45  bool write_ascii = false,
46  bool compressed = false,
47  bool write_vertex_normals = true,
48  bool write_vertex_colors = true,
49  bool write_triangle_uvs = true,
50  bool print_progress = false);
51 
53  const std::string &filename,
54  geometry::TriangleMesh &mesh,
56 
57 bool ReadTriangleMeshFromNPZ(const std::string &filename,
58  geometry::TriangleMesh &mesh,
60 
61 bool WriteTriangleMeshUsingASSIMP(const std::string &filename,
62  const geometry::TriangleMesh &mesh,
63  const bool write_ascii,
64  const bool compressed,
65  const bool write_vertex_normals,
66  const bool write_vertex_colors,
67  const bool write_triangle_uvs,
68  const bool print_progress);
69 
70 bool WriteTriangleMeshToNPZ(const std::string &filename,
71  const geometry::TriangleMesh &mesh,
72  const bool write_ascii,
73  const bool compressed,
74  const bool write_vertex_normals,
75  const bool write_vertex_colors,
76  const bool write_triangle_uvs,
77  const bool print_progress);
78 
79 } // namespace io
80 } // namespace t
81 } // namespace open3d
bool WriteTriangleMeshToNPZ(const std::string &filename, const geometry::TriangleMesh &mesh, const bool write_ascii, const bool compressed, const bool write_vertex_normals, const bool write_vertex_colors, const bool write_triangle_uvs, const bool print_progress)
Definition: TriangleMeshIO.cpp:214
bool ReadTriangleMeshFromNPZ(const std::string &filename, geometry::TriangleMesh &mesh, const open3d::io::ReadTriangleMeshOptions &params)
Definition: TriangleMeshIO.cpp:146
bool WriteTriangleMesh(const std::string &filename, const geometry::TriangleMesh &mesh, bool write_ascii, bool compressed, bool write_vertex_normals, bool write_vertex_colors, bool write_triangle_uvs, bool print_progress)
Definition: TriangleMeshIO.cpp:112
bool WriteTriangleMeshUsingASSIMP(const std::string &filename, const geometry::TriangleMesh &mesh, const bool write_ascii, const bool compressed, const bool write_vertex_normals, const bool write_vertex_colors, const bool write_triangle_uvs, const bool print_progress)
Definition: FileASSIMP.cpp:210
bool ReadTriangleMesh(const std::string &filename, geometry::TriangleMesh &mesh, open3d::io::ReadTriangleMeshOptions params)
Definition: TriangleMeshIO.cpp:73
bool ReadTriangleMeshUsingASSIMP(const std::string &filename, geometry::TriangleMesh &mesh, const open3d::io::ReadTriangleMeshOptions &params)
Definition: FileASSIMP.cpp:46
std::shared_ptr< geometry::TriangleMesh > CreateMeshFromFile(const std::string &filename, bool print_progress)
Definition: TriangleMeshIO.cpp:51
Definition: PinholeCameraIntrinsic.cpp:16
Definition: TriangleMeshIO.h:22