Work on mesh decimation.

This commit is contained in:
David Williams
2007-09-14 22:37:04 +00:00
parent 358192b38a
commit 8d514a2bb9
6 changed files with 231 additions and 72 deletions

View File

@ -48,9 +48,16 @@ namespace Ogre
void collapseEdge(SurfaceEdgeIterator edgeIter);
#endif
#ifdef BLAH2
bool decimate2(void);
bool canCollapseEdge2(SurfaceVertex target, SurfaceVertex other);
void collapseEdge2(SurfaceEdgeIterator edgeIter);
bool matchesAll(uchar target, uchar other);
#endif
#ifdef BLAH3
bool decimate3(void);
#endif
//bool verticesArePlanar(SurfaceVertexIterator iterCurrentVertex);

View File

@ -41,6 +41,9 @@ namespace Ogre
Vector3 normal;
float alpha;
uchar flags;
uchar noOfUses;
bool fixed;
SurfaceEdgeIterator edge;