#include <FinalizeAlgorithms.hpp>
Public Member Functions | |
MeshBufferPtr | apply (const BaseMesh< BaseVecT > &mesh) |
void | setClusterColors (const ClusterMap< Rgb8Color > &colors) |
void | setMaterializerResult (const MaterializerResult< BaseVecT > &materializerResult) |
void | setVertexColors (const VertexMap< Rgb8Color > &vertexColors) |
void | setVertexNormals (const VertexMap< Normal< typename BaseVecT::CoordType >> &normals) |
TextureFinalizer (const ClusterBiMap< FaceHandle > &cluster) | |
Private Attributes | |
const ClusterBiMap< FaceHandle > & | m_cluster |
boost::optional< const ClusterMap< Rgb8Color > & > | m_clusterColors |
boost::optional< const MaterializerResult< BaseVecT > & > | m_materializerResult |
boost::optional< const VertexMap< Rgb8Color > & > | m_vertexColors |
boost::optional< const VertexMap< Normal< typename BaseVecT::CoordType > > & > | m_vertexNormals |
Algorithm that converts a BaseMesh into a MeshBuffer while destroying the original graph structure. This means that duplicate vertices will be added to the mesh buffer so that textures can be generated.
Definition at line 105 of file FinalizeAlgorithms.hpp.
lvr2::TextureFinalizer< BaseVecT >::TextureFinalizer | ( | const ClusterBiMap< FaceHandle > & | cluster | ) |
Constructor for the finalizer
cluster | a map which maps all faces to clusters and vice versa |
MeshBufferPtr lvr2::TextureFinalizer< BaseVecT >::apply | ( | const BaseMesh< BaseVecT > & | mesh | ) |
Converts the given BaseMesh into a MeshBuffer and adds further data (e.g. colors, normals) if set
mesh | the mesh to convert |
void lvr2::TextureFinalizer< BaseVecT >::setClusterColors | ( | const ClusterMap< Rgb8Color > & | colors | ) |
Sets color data for all clusters for the apply method. This has to be done before apply is called.
colors | color data for all clusters in the mesh which will be passed to apply |
void lvr2::TextureFinalizer< BaseVecT >::setMaterializerResult | ( | const MaterializerResult< BaseVecT > & | materializerResult | ) |
Sets the materializer result for the apply method. This has to be done before apply is called.
materializerResult | the result of the materializer that was run on the mesh which will be passed to apply |
void lvr2::TextureFinalizer< BaseVecT >::setVertexColors | ( | const VertexMap< Rgb8Color > & | vertexColors | ) |
Sets vertex colors for the apply method. This has to be done before apply is called.
vertexColors | color values for all vertices in the mesh which will be passed to apply |
void lvr2::TextureFinalizer< BaseVecT >::setVertexNormals | ( | const VertexMap< Normal< typename BaseVecT::CoordType >> & | normals | ) |
Sets vertex normals for the apply method. This has to be done before apply is called.
normals | normals for all vertices in the mesh which will be passed to apply |
|
private |
Definition at line 154 of file FinalizeAlgorithms.hpp.
|
private |
Definition at line 162 of file FinalizeAlgorithms.hpp.
|
private |
Definition at line 169 of file FinalizeAlgorithms.hpp.
|
private |
Definition at line 166 of file FinalizeAlgorithms.hpp.
|
private |
Definition at line 157 of file FinalizeAlgorithms.hpp.