Template Class SimpleFinalizer

Class Documentation

template<typename BaseVecT>
class SimpleFinalizer

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.

Public Functions

inline SimpleFinalizer()
MeshBufferPtr apply(const BaseMesh<BaseVecT> &mesh)

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

Parameters:

mesh – the mesh to convert

Returns:

the generated buffer

void setColorData(const VertexMap<RGB8Color> &colorData)

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

Parameters:

colorData – color values for all vertices in the mesh which will be passed to apply

void 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:

normalData – normals for all vertices in the mesh which will be passed to apply