Volume Cartographer 2.27.0
MeshIO.hpp
1#pragma once
2
3#include <optional>
4#include <string>
5
6#include <opencv2/core.hpp>
7
11
12namespace volcart
13{
14
18 ITKMesh::Pointer mesh;
22 cv::Mat texture;
23};
24
33auto ReadMesh(const filesystem::path& path) -> MeshReaderResult;
34
37 std::string imgFmt{"tif"};
38};
39
53 const filesystem::path& path,
54 const ITKMesh::Pointer& mesh,
55 const UVMap::Pointer& uv = nullptr,
56 const cv::Mat& texture = cv::Mat(),
57 const MeshWriterOpts& opts = {});
58} // namespace volcart
std::shared_ptr< UVMap > Pointer
Definition: UVMap.hpp:55
Volume Cartographer library
void WriteMesh(const filesystem::path &path, const ITKMesh::Pointer &mesh, const UVMap::Pointer &uv=nullptr, const cv::Mat &texture=cv::Mat(), const MeshWriterOpts &opts={})
Write a mesh to a file.
auto ReadMesh(const filesystem::path &path) -> MeshReaderResult
Read a mesh from a file.
Result for ReadMesh.
Definition: MeshIO.hpp:16
ITKMesh::Pointer mesh
Definition: MeshIO.hpp:18
UVMap::Pointer uv
Definition: MeshIO.hpp:20
General options for WriteMesh.
Definition: MeshIO.hpp:36