Work on mesh decimation.
This commit is contained in:
parent
9121f39853
commit
27f98b2b6a
@ -1010,7 +1010,7 @@ namespace Ogre
|
||||
iterPatch->second.computeNormalsFromVolume(volIter);
|
||||
iterPatch->second.endDefinition();
|
||||
bool removedVertex = false;
|
||||
//for(uint ct = 0; ct < 7; ct++)
|
||||
//for(uint ct = 0; ct < 5; ct++)
|
||||
do
|
||||
{
|
||||
removedVertex = iterPatch->second.decimateOneVertex();
|
||||
|
@ -47,7 +47,7 @@ namespace Ogre
|
||||
|
||||
void SurfacePatch::addTriangle(const SurfaceVertex& v0,const SurfaceVertex& v1,const SurfaceVertex& v2)
|
||||
{
|
||||
if(v0.position.x > 16)
|
||||
/*if(v0.position.x > 16)
|
||||
return;
|
||||
if(v0.position.y > 16)
|
||||
return;
|
||||
@ -58,7 +58,7 @@ namespace Ogre
|
||||
if(v2.position.x > 16)
|
||||
return;
|
||||
if(v2.position.y > 16)
|
||||
return;
|
||||
return;*/
|
||||
|
||||
|
||||
m_uTrianglesAdded++;
|
||||
@ -435,7 +435,7 @@ namespace Ogre
|
||||
|
||||
if(isPolygonConvex(listConnectedVertices) == false)
|
||||
{
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
|
||||
LogManager::getSingleton().logMessage("Vertex can be removed");
|
||||
|
Loading…
x
Reference in New Issue
Block a user