Hi Vincent, osgUtil::DelaunayTriangulation just generated osg::Geometry it doesn't generates a pure triangular mesh.
The OSG stores primitives in osg::Geometry in the same form as OpenGL handles primitives, the same interface is used for all primitive types, triangles aren't anything that gets special treatment in terms of storage/access. If you want convenience in accessing a generic osg::Geometry mesh (that could be in GL_TRIANGLES, GL_QUADS etc) you can use the osg::TriangleFunctor. Have a search through the OSG sources for examples of this in action. Robert. On Tue, Apr 15, 2008 at 9:59 AM, Vincent Bourdier < [EMAIL PROTECTED]> wrote: > Hi all, > > No one have any idea ? Because I'm a little bit lost on how to get the > Delaunay Triangles.. > > Thanks. > > Regards, > Vincent. > > 2008/4/14, Vincent Bourdier <[EMAIL PROTECTED]>: > > > Hi All, > > > > Using osgUtil::DelaunayTriangulator, I'm looking for obtaining the > > triangle list... but for the moment, I haven't already found it. > > > > The getTriangles() method return a DrawElementsUInt, but no way to find > > a triangle list or something approaching... > > > > Is there a (simple) way ? > > > > Thanks, > > > > Regards. > > Vincent > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org