Work on mesh decimation.
This commit is contained in:
parent
487962ad31
commit
32204b483f
@ -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();
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user