Volume Cartographer 2.27.0
UVMapToITKMesh.hpp
Go to the documentation of this file.
1#pragma once
2
7
8namespace volcart::meshing
9{
10
18{
19public:
21 void setMesh(const ITKMesh::Pointer& m);
24
30
32 auto compute() -> ITKMesh::Pointer;
33
35 [[nodiscard]] auto getUVMesh() const -> ITKMesh::Pointer;
36
37private:
41 UVMap::Pointer uvMap_;
43 bool scaleMesh_{false};
45 ITKMesh::Pointer outputMesh_;
46};
47
48} // namespace volcart::meshing
Stores per-vertex UV mappings.
Definition: UVMap.hpp:52
std::shared_ptr< UVMap > Pointer
Definition: UVMap.hpp:55
Convert a UVMap to a mesh.
void setUVMap(UVMap::Pointer u)
Set the input UV Map.
void setScaleToUVDimensions(bool b)
If true, scale the output mesh to the width/height stored in the UVMap. Default: false.
auto getUVMesh() const -> ITKMesh::Pointer
Get the computed UV mesh.
void setMesh(const ITKMesh::Pointer &m)
Set the input mesh.
auto compute() -> ITKMesh::Pointer
Compute the UV mesh.
Mesh generation and modification library.
itk::Mesh< ITKPixel, 3, ITKMeshTraits > ITKMesh
Definition: ITKMesh.hpp:22