Volume Cartographer 2.27.0
|
Computes a 2D parameterization of a triangular mesh using orthographic projection. More...
#include <vc/texturing/OrthographicProjectionFlattening.hpp>
Public Member Functions | |
OrthographicProjectionFlattening ()=default | |
Default constructor. | |
ITKMesh::Pointer | compute () override |
Compute the parameterization. More... | |
![]() | |
virtual | ~FlatteningAlgorithm ()=default |
void | setMesh (const ITKMesh::Pointer &m) |
Set the input Mesh. More... | |
ITKMesh::Pointer | getMesh () |
Get the parameterized mesh. More... | |
UVMap::Pointer | getUVMap () |
Get the parameterized mesh as a UVMap | |
Static Public Member Functions | |
static Pointer | New () |
Additional Inherited Members | |
![]() | |
using | Pointer = std::shared_ptr< FlatteningAlgorithm > |
![]() | |
FlatteningAlgorithm ()=default | |
FlatteningAlgorithm (const ITKMesh::Pointer &m) | |
![]() | |
ITKMesh::Pointer | mesh_ |
ITKMesh::Pointer | output_ |
Computes a 2D parameterization of a triangular mesh using orthographic projection.
This class performs naive mesh parameterization using orthographic projection. The largest plane of the mesh bounding box is selected as the projection plane. Each vertex is orthographically projected onto this plane, and the UV coordinate is calculated as the relative position of the projected point within the bounds of the projection plane.
This class is primarily only useful for meshes which are already planar or semi-planar.
Definition at line 24 of file OrthographicProjectionFlattening.hpp.
|
overridevirtual |
Compute the parameterization.
Implements volcart::texturing::FlatteningAlgorithm.
|
static |
Make a new shared instance