From f82aaad08234a5bb9213a0ff9c0f018c1adfca7c Mon Sep 17 00:00:00 2001 From: David Williams Date: Wed, 26 Sep 2007 23:57:23 +0000 Subject: [PATCH] Cleaning up decimation. --- source/PolyVoxSceneManager.cpp | 2 +- source/SurfacePatch.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/PolyVoxSceneManager.cpp b/source/PolyVoxSceneManager.cpp index a1b31ea7..5dd48d56 100644 --- a/source/PolyVoxSceneManager.cpp +++ b/source/PolyVoxSceneManager.cpp @@ -1018,7 +1018,7 @@ namespace Ogre { noOfRemovedVertices = iterPatch->second.decimate(); } - while(noOfRemovedVertices > 0); + while(noOfRemovedVertices > 10); //We don't worry about the last few vertices - it's not worth the overhead of calling the function. } //LogManager::getSingleton().logMessage("Finished Generating Mesh Data"); diff --git a/source/SurfacePatch.cpp b/source/SurfacePatch.cpp index e816626a..a29f3b8c 100644 --- a/source/SurfacePatch.cpp +++ b/source/SurfacePatch.cpp @@ -303,7 +303,6 @@ namespace Ogre { allZMatch = false; } - //FIXME - already normalised? if((*connectedIter)->getNormal().dotProduct(vertexIter->getNormal()) < 0.99) { return false;