Added osgsimplifier example.

This commit is contained in:
Robert Osfield
2004-04-18 16:15:49 +00:00
parent e524092e1e
commit a1caa14a61
7 changed files with 157 additions and 6 deletions

View File

@@ -1924,7 +1924,7 @@ osg::Node* DataSet::DestinationTile::createPolygonal()
return 0;
}
bool createSkirt = true;
bool createSkirt = false;
// compute sizes.
unsigned int numColumns = grid->getNumColumns();
@@ -2184,7 +2184,7 @@ osg::Node* DataSet::DestinationTile::createPolygonal()
geometry->setColorBinding(osg::Geometry::BIND_OVERALL);
}
#if 0
#if 1
osgUtil::Simplifier simplifier;
simplifier.simplify(*geometry,0.5f); // this will replace the normal vector with a new one
#endif