Cogs.Core
Public Member Functions | Private Attributes | List of all members
Cogs::RationalReducerExtension::MeshReductionManager Class Reference

Interface to Rational Reducer for reducing meshes. More...

#include <MeshReductionManager.h>

Public Member Functions

 MeshReductionManager (Context *context)
 
void setLogging (int loglevel=0)
 
void setAddNormals (bool addNormals=true)
 
std::vector< MeshHandlereduce (std::vector< Mesh * > meshes, std::vector< MaterialInstance * > materials, float percent, float epsilon=0.1f)
 
MeshHandle reduce (Mesh *mesh, float percent, float epsilon=0.1f)
 
void cleanup ()
 

Private Attributes

Contextcontext
 
int loglevel = 0
 
bool addNormals = true
 

Detailed Description

Interface to Rational Reducer for reducing meshes.

Definition at line 33 of file MeshReductionManager.h.

Constructor & Destructor Documentation

◆ MeshReductionManager()

Cogs::RationalReducerExtension::MeshReductionManager::MeshReductionManager ( Context context)
inline

Definition at line 36 of file MeshReductionManager.h.

Member Function Documentation

◆ cleanup()

void MeshReductionManager::cleanup ( )

Definition at line 269 of file MeshReductionManager.cpp.

◆ reduce() [1/2]

MeshHandle Cogs::RationalReducerExtension::MeshReductionManager::reduce ( Mesh mesh,
float  percent,
float  epsilon = 0.1f 
)

Definition at line 334 of file MeshReductionManager.cpp.

◆ reduce() [2/2]

std::vector< MeshHandle > MeshReductionManager::reduce ( std::vector< Mesh * >  meshes,
std::vector< MaterialInstance * >  materials,
float  percent,
float  epsilon = 0.1f 
)

Definition at line 275 of file MeshReductionManager.cpp.

◆ setAddNormals()

void Cogs::RationalReducerExtension::MeshReductionManager::setAddNormals ( bool  addNormals = true)
inline

Definition at line 46 of file MeshReductionManager.h.

◆ setLogging()

void Cogs::RationalReducerExtension::MeshReductionManager::setLogging ( int  loglevel = 0)
inline

Definition at line 41 of file MeshReductionManager.h.

Member Data Documentation

◆ addNormals

bool Cogs::RationalReducerExtension::MeshReductionManager::addNormals = true
private

Definition at line 58 of file MeshReductionManager.h.

◆ context

Context* Cogs::RationalReducerExtension::MeshReductionManager::context
private

Definition at line 56 of file MeshReductionManager.h.

◆ loglevel

int Cogs::RationalReducerExtension::MeshReductionManager::loglevel = 0
private

Definition at line 57 of file MeshReductionManager.h.


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