diff --git a/source/PolyVoxSceneManager.cpp b/source/PolyVoxSceneManager.cpp index 8aa72206..b75fe7d7 100644 --- a/source/PolyVoxSceneManager.cpp +++ b/source/PolyVoxSceneManager.cpp @@ -1010,7 +1010,7 @@ namespace Ogre iterPatch->second.computeNormalsFromVolume(volIter); iterPatch->second.endDefinition(); bool removedVertex = false; - //for(uint ct = 0; ct < 10; ct++) + //for(uint ct = 0; ct < 20; ct++) do { removedVertex = iterPatch->second.decimate3(); diff --git a/source/SurfacePatch.cpp b/source/SurfacePatch.cpp index 8eac6916..8755c3f8 100644 --- a/source/SurfacePatch.cpp +++ b/source/SurfacePatch.cpp @@ -47,7 +47,7 @@ namespace Ogre void SurfacePatch::addTriangle(const SurfaceVertex& v0,const SurfaceVertex& v1,const SurfaceVertex& v2) { - /*if(v0.position.x > 8) + if(v0.position.x > 8) return; if(v0.position.y > 8) return; @@ -58,7 +58,7 @@ namespace Ogre if(v2.position.x > 8) return; if(v2.position.y > 8) - return;*/ + return; //if(m_uTrianglesAdded > 1) return; @@ -532,9 +532,10 @@ namespace Ogre lastAddedEdge->hasTriangle = true; (*secondEdgeIter)->hasTriangle = true; (*endEdgeIter)->hasTriangle = true; - } - didDecimation = true; - break; + + didDecimation = true; + break; + } } //LogManager::getSingleton().logMessage("Fixed = " + StringConverter::toString(fixed) + " Movable = " + StringConverter::toString(movable));