Open3D (C++ API)  0.17.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 } // namespace io
58 } // namespace t
59 } // namespace open3d
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:106
bool ReadTriangleMesh(const std::string &filename, geometry::TriangleMesh &mesh, open3d::io::ReadTriangleMeshOptions params)
Definition: TriangleMeshIO.cpp:67
bool ReadTriangleMeshUsingASSIMP(const std::string &filename, geometry::TriangleMesh &mesh, const open3d::io::ReadTriangleMeshOptions &params)
Definition: FileASSIMP.cpp:44
std::shared_ptr< geometry::TriangleMesh > CreateMeshFromFile(const std::string &filename, bool print_progress)
Definition: TriangleMeshIO.cpp:45
Definition: PinholeCameraIntrinsic.cpp:16
Definition: TriangleMeshIO.h:22