Volume Cartographer 2.27.0
Public Member Functions | Static Public Member Functions | List of all members
volcart::texturing::OrthographicProjectionFlattening Class Reference

Computes a 2D parameterization of a triangular mesh using orthographic projection. More...

#include <vc/texturing/OrthographicProjectionFlattening.hpp>

Inheritance diagram for volcart::texturing::OrthographicProjectionFlattening:
[legend]
Collaboration diagram for volcart::texturing::OrthographicProjectionFlattening:
[legend]

Public Member Functions

 OrthographicProjectionFlattening ()=default
 Default constructor.
 
ITKMesh::Pointer compute () override
 Compute the parameterization. More...
 
- Public Member Functions inherited from volcart::texturing::FlatteningAlgorithm
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

- Public Types inherited from volcart::texturing::FlatteningAlgorithm
using Pointer = std::shared_ptr< FlatteningAlgorithm >
 
- Protected Member Functions inherited from volcart::texturing::FlatteningAlgorithm
 FlatteningAlgorithm ()=default
 
 FlatteningAlgorithm (const ITKMesh::Pointer &m)
 
- Protected Attributes inherited from volcart::texturing::FlatteningAlgorithm
ITKMesh::Pointer mesh_
 
ITKMesh::Pointer output_
 

Detailed Description

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.

Member Function Documentation

◆ compute()

ITKMesh::Pointer volcart::texturing::OrthographicProjectionFlattening::compute ( )
overridevirtual

Compute the parameterization.

Implements volcart::texturing::FlatteningAlgorithm.

◆ New()

static Pointer volcart::texturing::OrthographicProjectionFlattening::New ( )
static

Make a new shared instance


The documentation for this class was generated from the following file: