Re: [osg-users] DelaunayTriangulator - DelaunayConstraint for convex shapes

2009-09-09 Thread Mike Connell
Hi Do you mean this streaming Delauney triangulator - http://www.cs.unc.edu/~isenburg/sd/ ? Unfortunately I don't think it's under a commercially usable license - it asserts copyright, disclaims liability, and that's it - there is no explicit permission to redistribute. I was initially

[osg-users] DelaunayTriangulator - DelaunayConstraint for convex shapes

2009-09-01 Thread Johannes Schüth
Hi, i want to triangulate the following U character like shape. [Image: http://jotschi.de/download/osg/delaunay_3.png ] The DelaunayTriangulator generates this triangulated mesh. But as you can see the space in the middle of the U is also triangulated which i do not want. [Image:

Re: [osg-users] DelaunayTriangulator - DelaunayConstraint for convex shapes

2009-09-01 Thread Glenn Waldron
Johannes, If you just want to triangulate an outline, try the osgUtil::Tessellator. First build an osg::Geometry as a line loop, then do something like: osgUtil::Tessellator tess; tess.setTessellationType( osgUtil::Tessellator::TESS_TYPE_GEOMETRY ); tess.setWindingType(

Re: [osg-users] DelaunayTriangulator - DelaunayConstraint for convex shapes

2009-09-01 Thread Johannes Schüth
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

Re: [osg-users] DelaunayTriangulator - DelaunayConstraint for convex shapes

2009-09-01 Thread Martin Beckett
If you need to do this with a complex model (1000s of points) the Delauney triangulator doesn't work very well. I have a written a wrapper for Jonathon Shewchuk's Delauney code but that code is restricted to non-commercial use so I haven't submitted it. If you can accept this and need a worlds