Cleaning up decimation.
This commit is contained in:
parent
4d7c83bbaf
commit
f82aaad082
@ -1018,7 +1018,7 @@ namespace Ogre
|
|||||||
{
|
{
|
||||||
noOfRemovedVertices = iterPatch->second.decimate();
|
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");
|
//LogManager::getSingleton().logMessage("Finished Generating Mesh Data");
|
||||||
|
@ -303,7 +303,6 @@ namespace Ogre
|
|||||||
{
|
{
|
||||||
allZMatch = false;
|
allZMatch = false;
|
||||||
}
|
}
|
||||||
//FIXME - already normalised?
|
|
||||||
if((*connectedIter)->getNormal().dotProduct(vertexIter->getNormal()) < 0.99)
|
if((*connectedIter)->getNormal().dotProduct(vertexIter->getNormal()) < 0.99)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user