Choreonoid  1.8
Public Types | Public Member Functions | List of all members
cnoid::MeshFilter Class Reference

#include <MeshFilter.h>

Public Types

enum  FaceReductionMode { KEEP_OVERLAPPING_FACES_WTIH_DIFFERENT_DIRECTIONS, KEEP_FIRST_OVERLAPPING_FACES, KEEP_LAST_OVERLAPPING_FACES }
 

Public Member Functions

 MeshFilter ()
 
 MeshFilter (const MeshFilter &org)
 
 ~MeshFilter ()
 
void integrateMeshes (SgMesh *mesh1, SgMesh *mesh2)
 
void removeRedundantVertices (SgNode *scene)
 
void removeRedundantVertices (SgMesh *mesh)
 
void removeRedundantFaces (SgNode *scene, int reductionMode=KEEP_OVERLAPPING_FACES_WTIH_DIFFERENT_DIRECTIONS)
 
void removeRedundantFaces (SgMesh *mesh, int reductionMode=KEEP_OVERLAPPING_FACES_WTIH_DIFFERENT_DIRECTIONS)
 
void removeRedundantNormals (SgNode *scene)
 
void removeRedundantNormals (SgMesh *mesh)
 
bool generateNormals (SgMesh *mesh, float creaseAngle=3.14159f, bool removeRedundantVertices=false)
 
void setNormalOverwritingEnabled (bool on)
 
void setMinCreaseAngle (float angle)
 
void setMaxCreaseAngle (float angle)
 
void setOverwritingEnabled (bool on)
 

Member Enumeration Documentation

◆ FaceReductionMode

Enumerator
KEEP_OVERLAPPING_FACES_WTIH_DIFFERENT_DIRECTIONS 
KEEP_FIRST_OVERLAPPING_FACES 
KEEP_LAST_OVERLAPPING_FACES 

Constructor & Destructor Documentation

◆ MeshFilter() [1/2]

MeshFilter::MeshFilter ( )

◆ MeshFilter() [2/2]

MeshFilter::MeshFilter ( const MeshFilter org)

◆ ~MeshFilter()

MeshFilter::~MeshFilter ( )

Member Function Documentation

◆ generateNormals()

bool MeshFilter::generateNormals ( SgMesh mesh,
float  creaseAngle = 3.14159f,
bool  removeRedundantVertices = false 
)

◆ integrateMeshes()

void MeshFilter::integrateMeshes ( SgMesh mesh1,
SgMesh mesh2 
)

◆ removeRedundantFaces() [1/2]

void MeshFilter::removeRedundantFaces ( SgMesh mesh,
int  reductionMode = KEEP_OVERLAPPING_FACES_WTIH_DIFFERENT_DIRECTIONS 
)

◆ removeRedundantFaces() [2/2]

void MeshFilter::removeRedundantFaces ( SgNode scene,
int  reductionMode = KEEP_OVERLAPPING_FACES_WTIH_DIFFERENT_DIRECTIONS 
)

The following functions can only be applied to the meshes that do not have redundant vertices

◆ removeRedundantNormals() [1/2]

void MeshFilter::removeRedundantNormals ( SgMesh mesh)

◆ removeRedundantNormals() [2/2]

void MeshFilter::removeRedundantNormals ( SgNode scene)

◆ removeRedundantVertices() [1/2]

void MeshFilter::removeRedundantVertices ( SgMesh mesh)

◆ removeRedundantVertices() [2/2]

void MeshFilter::removeRedundantVertices ( SgNode scene)

◆ setMaxCreaseAngle()

void MeshFilter::setMaxCreaseAngle ( float  angle)

◆ setMinCreaseAngle()

void MeshFilter::setMinCreaseAngle ( float  angle)

◆ setNormalOverwritingEnabled()

void MeshFilter::setNormalOverwritingEnabled ( bool  on)

◆ setOverwritingEnabled()

void MeshFilter::setOverwritingEnabled ( bool  on)

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