Volume Cartographer 2.27.0
FlatteningAlgorithm.hpp
Go to the documentation of this file.
1#pragma once
2
7
8namespace volcart::texturing
9{
10
12{
13public:
15 using Pointer = std::shared_ptr<FlatteningAlgorithm>;
16
18 virtual ~FlatteningAlgorithm() = default;
19
22 void setMesh(const ITKMesh::Pointer& m) { mesh_ = m; }
27 virtual ITKMesh::Pointer compute() = 0;
32 ITKMesh::Pointer getMesh() { return output_; }
33
38protected:
41
43 explicit FlatteningAlgorithm(const ITKMesh::Pointer& m) { mesh_ = m; }
44
46 ITKMesh::Pointer mesh_;
48 ITKMesh::Pointer output_;
49};
50} // namespace volcart::texturing
std::shared_ptr< UVMap > Pointer
Definition: UVMap.hpp:55
std::shared_ptr< FlatteningAlgorithm > Pointer
UVMap::Pointer getUVMap()
Get the parameterized mesh as a UVMap
void setMesh(const ITKMesh::Pointer &m)
Set the input Mesh.
FlatteningAlgorithm(const ITKMesh::Pointer &m)
ITKMesh::Pointer getMesh()
Get the parameterized mesh.
virtual ITKMesh::Pointer compute()=0
Compute the parameterization.
Texturing and parameterization algorithms and utilities library.