Can anyone help me with usage of Delaunay Triangulator in following case?
osg::ref_ptr<osgUtil::DelaunayTriangulator>
delaunayTriangulator =
new osgUtil::DelaunayTriangulator;
step 1.
delaunayTriangulator->setInputPointArray(inputPoints);
osg::DrawElementsUInt* triangles =
delaunayTriangulator->triangulate();
// constraint_lines are added while triangulation and not removed
before return in triangualate()
// now, if I want to use same delaunay instance , I am not able to
remove constraint created above as API exposed to remove constraint.
step2.
delaunayTriangulator->setInputPointArray(inputPoints2);
osg::DrawElementsUInt* triangles =
delaunayTriangulator->triangulate();
// inputPoints2 get modified with some points in vertex array of the
delaunay constraint created in step1
To avoid this , I have left with no option other than creating new instance
for every triangulation.
Is it a right way of keeping constraint_line which is not added explicitly
on completion of Triangulation?
Thanks,
Saurabh Arora
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org