Work on mesh decimation.

This commit is contained in:
David Williams 2007-09-23 16:52:23 +00:00
parent 9121f39853
commit 27f98b2b6a
2 changed files with 4 additions and 4 deletions

View File

@ -1010,7 +1010,7 @@ namespace Ogre
iterPatch->second.computeNormalsFromVolume(volIter); iterPatch->second.computeNormalsFromVolume(volIter);
iterPatch->second.endDefinition(); iterPatch->second.endDefinition();
bool removedVertex = false; bool removedVertex = false;
//for(uint ct = 0; ct < 7; ct++) //for(uint ct = 0; ct < 5; ct++)
do do
{ {
removedVertex = iterPatch->second.decimateOneVertex(); removedVertex = iterPatch->second.decimateOneVertex();

View File

@ -47,7 +47,7 @@ namespace Ogre
void SurfacePatch::addTriangle(const SurfaceVertex& v0,const SurfaceVertex& v1,const SurfaceVertex& v2) void SurfacePatch::addTriangle(const SurfaceVertex& v0,const SurfaceVertex& v1,const SurfaceVertex& v2)
{ {
if(v0.position.x > 16) /*if(v0.position.x > 16)
return; return;
if(v0.position.y > 16) if(v0.position.y > 16)
return; return;
@ -58,7 +58,7 @@ namespace Ogre
if(v2.position.x > 16) if(v2.position.x > 16)
return; return;
if(v2.position.y > 16) if(v2.position.y > 16)
return; return;*/
m_uTrianglesAdded++; m_uTrianglesAdded++;
@ -435,7 +435,7 @@ namespace Ogre
if(isPolygonConvex(listConnectedVertices) == false) if(isPolygonConvex(listConnectedVertices) == false)
{ {
return false; continue;
} }
LogManager::getSingleton().logMessage("Vertex can be removed"); LogManager::getSingleton().logMessage("Vertex can be removed");