Disabled the running of tristripping and smoothing from within the Simplifier.

This commit is contained in:
Robert Osfield
2006-02-23 16:47:36 +00:00
parent 8489b22439
commit 9c350a49be

View File

@@ -3029,6 +3029,9 @@ osg::Node* DataSet::DestinationTile::createPolygonal()
float sample_ratio = (numVertices <= targetMaxNumVertices) ? 1.0f : (float)targetMaxNumVertices/(float)numVertices;
osgUtil::Simplifier simplifier(sample_ratio,geometry->getBound().radius()/2000.0f);
simplifier.setDoTriStrip(false);
simplifier.setSmoothing(false);
simplifier.simplify(*geometry, pointsToProtectDuringSimplification); // this will replace the normal vector with a new one
}