Public Member Functions | Private Attributes | List of all members
lvr2::TextureFinalizer< BaseVecT > Class Template Reference

#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
 

Detailed Description

template<typename BaseVecT>
class lvr2::TextureFinalizer< BaseVecT >

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.

Constructor & Destructor Documentation

◆ TextureFinalizer()

template<typename BaseVecT >
lvr2::TextureFinalizer< BaseVecT >::TextureFinalizer ( const ClusterBiMap< FaceHandle > &  cluster)

Constructor for the finalizer

Parameters
clustera map which maps all faces to clusters and vice versa

Member Function Documentation

◆ apply()

template<typename BaseVecT >
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

Parameters
meshthe mesh to convert
Returns
the resulting mesh buffer

◆ setClusterColors()

template<typename BaseVecT >
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.

Parameters
colorscolor data for all clusters in the mesh which will be passed to apply

◆ setMaterializerResult()

template<typename BaseVecT >
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.

Parameters
materializerResultthe result of the materializer that was run on the mesh which will be passed to apply

◆ setVertexColors()

template<typename BaseVecT >
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.

Parameters
vertexColorscolor values for all vertices in the mesh which will be passed to apply

◆ setVertexNormals()

template<typename BaseVecT >
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.

Parameters
normalsnormals for all vertices in the mesh which will be passed to apply

Member Data Documentation

◆ m_cluster

template<typename BaseVecT >
const ClusterBiMap<FaceHandle>& lvr2::TextureFinalizer< BaseVecT >::m_cluster
private

Definition at line 154 of file FinalizeAlgorithms.hpp.

◆ m_clusterColors

template<typename BaseVecT >
boost::optional<const ClusterMap<Rgb8Color>&> lvr2::TextureFinalizer< BaseVecT >::m_clusterColors
private

Definition at line 162 of file FinalizeAlgorithms.hpp.

◆ m_materializerResult

template<typename BaseVecT >
boost::optional<const MaterializerResult<BaseVecT>&> lvr2::TextureFinalizer< BaseVecT >::m_materializerResult
private

Definition at line 169 of file FinalizeAlgorithms.hpp.

◆ m_vertexColors

template<typename BaseVecT >
boost::optional<const VertexMap<Rgb8Color>&> lvr2::TextureFinalizer< BaseVecT >::m_vertexColors
private

Definition at line 166 of file FinalizeAlgorithms.hpp.

◆ m_vertexNormals

template<typename BaseVecT >
boost::optional<const VertexMap<Normal<typename BaseVecT::CoordType> >&> lvr2::TextureFinalizer< BaseVecT >::m_vertexNormals
private

Definition at line 157 of file FinalizeAlgorithms.hpp.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:27