Added back in tri stripping of tiles

This commit is contained in:
Robert Osfield
2004-04-21 11:06:39 +00:00
parent 8a923e60a8
commit b57bfb2271

View File

@@ -2165,11 +2165,6 @@ osg::Node* DataSet::DestinationTile::createPolygonal()
}
#if 0
osgUtil::TriStripVisitor tsv;
tsv.stripify(*geometry);
#endif
osg::StateSet* stateset = createStateSet();
if (stateset)
{
@@ -2185,12 +2180,18 @@ osg::Node* DataSet::DestinationTile::createPolygonal()
}
#if 1
osgUtil::Simplifier simplifier(1.0f,geometry->getBound().radius()/2000.0f);
osgUtil::Simplifier simplifier(0.5f,geometry->getBound().radius()/2000.0f);
// osgUtil::Simplifier simplifier(1.0f,1.0f);
simplifier.simplify(*geometry); // this will replace the normal vector with a new one
#endif
#if 1
osgUtil::TriStripVisitor tsv;
tsv.stripify(*geometry);
#endif
osg::Geode* geode = new osg::Geode;
geode->addDrawable(geometry);