Open3D (C++ API)  0.19.0
TriangleMeshIO.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 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 
37 bool ReadTriangleMesh(const std::string &filename,
38  geometry::TriangleMesh &mesh,
40 
61 bool WriteTriangleMesh(const std::string &filename,
62  const geometry::TriangleMesh &mesh,
63  bool write_ascii = false,
64  bool compressed = false,
65  bool write_vertex_normals = true,
66  bool write_vertex_colors = true,
67  bool write_triangle_uvs = true,
68  bool print_progress = false);
69 
71  const std::string &filename,
72  geometry::TriangleMesh &mesh,
74 
75 bool ReadTriangleMeshFromNPZ(const std::string &filename,
76  geometry::TriangleMesh &mesh,
78 
79 bool WriteTriangleMeshUsingASSIMP(const std::string &filename,
80  const geometry::TriangleMesh &mesh,
81  const bool write_ascii,
82  const bool compressed,
83  const bool write_vertex_normals,
84  const bool write_vertex_colors,
85  const bool write_triangle_uvs,
86  const bool print_progress);
87 
88 bool WriteTriangleMeshToNPZ(const std::string &filename,
89  const geometry::TriangleMesh &mesh,
90  const bool write_ascii,
91  const bool compressed,
92  const bool write_vertex_normals,
93  const bool write_vertex_colors,
94  const bool write_triangle_uvs,
95  const bool print_progress);
96 
97 } // namespace io
98 } // namespace t
99 } // namespace open3d
double t
Definition: SurfaceReconstructionPoisson.cpp:172
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:228
bool ReadTriangleMeshFromNPZ(const std::string &filename, geometry::TriangleMesh &mesh, const open3d::io::ReadTriangleMeshOptions &params)
Definition: TriangleMeshIO.cpp:160
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:126
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:712
bool ReadTriangleMesh(const std::string &filename, geometry::TriangleMesh &mesh, open3d::io::ReadTriangleMeshOptions params)
Definition: TriangleMeshIO.cpp:77
bool ReadTriangleMeshUsingASSIMP(const std::string &filename, geometry::TriangleMesh &mesh, const open3d::io::ReadTriangleMeshOptions &params)
Definition: FileASSIMP.cpp:508
std::shared_ptr< geometry::TriangleMesh > CreateMeshFromFile(const std::string &filename, bool print_progress)
Definition: TriangleMeshIO.cpp:60
Definition: PinholeCameraIntrinsic.cpp:16
Definition: TriangleMeshIO.h:22