Hi, that worked like a charm :) Thank you very much for the quick answer.
I attach the full example. Maybe this comes handy to someone else too :) Code: osg::Geometry* contourGeom = new osg::Geometry(); contourGeom->setVertexArray(v); contourGeom->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet::LINE_LOOP, 0, v->size())); osg::ref_ptr<osgUtil::Tessellator> tess = new osgUtil::Tessellator(); tess->setTessellationType( osgUtil::Tessellator::TESS_TYPE_GEOMETRY ); tess->setWindingType( osgUtil::Tessellator::TESS_WINDING_POSITIVE ); tess->retessellatePolygons( *contourGeom ); osg::Geode* geode = new osg::Geode(); geode->addDrawable(contourGeom); root->addChild(geode); return root; [Image: http://jotschi.de/download/osg/tessellate.png ] Cheers, Johannes ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16932#16932 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

