Added support for using the error metric to guide the simplficiation process

This commit is contained in:
Robert Osfield
2004-04-19 23:08:30 +00:00
parent 45179b8868
commit 061244056d
4 changed files with 87 additions and 78 deletions

View File

@@ -2185,8 +2185,10 @@ osg::Node* DataSet::DestinationTile::createPolygonal()
}
#if 1
osgUtil::Simplifier simplifier;
simplifier.simplify(*geometry,0.5f); // this will replace the normal vector with a new one
osgUtil::Simplifier simplifier(1.0f,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
osg::Geode* geode = new osg::Geode;