From 9c350a49bed224b864329e0684c78d07ab6cae63 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 23 Feb 2006 16:47:36 +0000 Subject: [PATCH] Disabled the running of tristripping and smoothing from within the Simplifier. --- src/osgTerrain/DataSet.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgTerrain/DataSet.cpp b/src/osgTerrain/DataSet.cpp index 452032728..c4e429701 100644 --- a/src/osgTerrain/DataSet.cpp +++ b/src/osgTerrain/DataSet.cpp @@ -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 }