6 #ifndef CNOID_UTIL_MESH_FILTER_H
7 #define CNOID_UTIL_MESH_FILTER_H
9 #include "exportdecl.h"
26 void removeRedundantVertices(
SgNode* scene);
27 void removeRedundantVertices(
SgMesh* mesh);
32 KEEP_LAST_OVERLAPPING_FACES
38 void removeRedundantFaces(
SgNode* scene,
int reductionMode = KEEP_OVERLAPPING_FACES_WTIH_DIFFERENT_DIRECTIONS);
39 void removeRedundantFaces(
SgMesh* mesh,
int reductionMode = KEEP_OVERLAPPING_FACES_WTIH_DIFFERENT_DIRECTIONS);
41 void removeRedundantNormals(
SgNode* scene);
42 void removeRedundantNormals(
SgMesh* mesh);
44 bool generateNormals(
SgMesh* mesh,
float creaseAngle = 3.14159f,
bool removeRedundantVertices =
false);
45 void setNormalOverwritingEnabled(
bool on);
46 void setMinCreaseAngle(
float angle);
47 void setMaxCreaseAngle(
float angle);
50 void setOverwritingEnabled(
bool on);