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

#include <FinalizeAlgorithms.hpp>

Public Member Functions

MeshBufferPtr apply (const BaseMesh< BaseVecT > &mesh)
 
void setColorData (const VertexMap< Rgb8Color > &colorData)
 
void setNormalData (const VertexMap< Normal< typename BaseVecT::CoordType >> &normalData)
 
 SimpleFinalizer ()
 

Private Attributes

boost::optional< const VertexMap< Rgb8Color > & > m_colorData
 
boost::optional< const VertexMap< Normal< typename BaseVecT::CoordType > > & > m_normalData
 

Detailed Description

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

Algorithm that converts a BaseMesh into a MeshBuffer while maintaining the original graph structure. This means that no duplicate vertices will be created and therefore no textures can be generated.

Definition at line 68 of file FinalizeAlgorithms.hpp.

Constructor & Destructor Documentation

◆ SimpleFinalizer()

template<typename BaseVecT >
lvr2::SimpleFinalizer< BaseVecT >::SimpleFinalizer ( )
inline

Definition at line 75 of file FinalizeAlgorithms.hpp.

Member Function Documentation

◆ apply()

template<typename BaseVecT >
MeshBufferPtr lvr2::SimpleFinalizer< BaseVecT >::apply ( const BaseMesh< BaseVecT > &  mesh)

Converts the given BaseMesh into a MeshBuffer and adds normal and color data if set

Parameters
meshthe mesh to convert
Returns
the generated buffer

◆ setColorData()

template<typename BaseVecT >
void lvr2::SimpleFinalizer< BaseVecT >::setColorData ( const VertexMap< Rgb8Color > &  colorData)

Sets vertex colors for the apply method. This has to be done before apply is called.

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

◆ setNormalData()

template<typename BaseVecT >
void lvr2::SimpleFinalizer< BaseVecT >::setNormalData ( const VertexMap< Normal< typename BaseVecT::CoordType >> &  normalData)

Sets vertex normals for the apply method. This has to be done before apply is called.

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

Member Data Documentation

◆ m_colorData

template<typename BaseVecT >
boost::optional<const VertexMap<Rgb8Color>&> lvr2::SimpleFinalizer< BaseVecT >::m_colorData
private

Definition at line 71 of file FinalizeAlgorithms.hpp.

◆ m_normalData

template<typename BaseVecT >
boost::optional<const VertexMap<Normal<typename BaseVecT::CoordType> >&> lvr2::SimpleFinalizer< BaseVecT >::m_normalData
private

Definition at line 72 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