- Timestamp:
- 01/08/07 12:23:52 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgdelaunay/osgdelaunay.cpp
r5923 r5928 24 24 #include <osg/Projection> 25 25 #include <osg/MatrixTransform> 26 #include <osgUtil/Tessel ator> // tesselator triangulates the constrained triangles26 #include <osgUtil/Tessellator> // tessellator triangulates the constrained triangles 27 27 28 28 #include <osgText/Text> … … 274 274 } 275 275 osg::Node* createHUD(const int ndcs,std::string what) 276 { // add a string reporting the type of winding rule tessel ation applied276 { // add a string reporting the type of winding rule tessellation applied 277 277 osg::Geode* geode = new osg::Geode(); 278 278 … … 989 989 edges->addPrimitiveSet(trgeom); 990 990 991 osg::ref_ptr<osgUtil::Tessel ator> tscx=new osgUtil::Tesselator; // this assembles all the constraints992 tscx->setTessel ationType(osgUtil::Tesselator::TESS_TYPE_GEOMETRY);991 osg::ref_ptr<osgUtil::Tessellator> tscx=new osgUtil::Tessellator; // this assembles all the constraints 992 tscx->setTessellationType(osgUtil::Tessellator::TESS_TYPE_GEOMETRY); 993 993 tscx->setBoundaryOnly(true); 994 tscx->setWindingType( osgUtil::Tessel ator::TESS_WINDING_NONZERO);994 tscx->setWindingType( osgUtil::Tessellator::TESS_WINDING_NONZERO); 995 995 // find all edges. 996 996 const osg::Vec3Array *points=dynamic_cast<osg::Vec3Array*>(getVertexArray()); 997 997 998 tscx->retessel atePolygons(*(edges)); // find all edges998 tscx->retessellatePolygons(*(edges)); // find all edges 999 999 1000 1000 if (walltexture!="") {
