Dear Alexandre

I have tried your case, and it fails as you describe under vs8.  However...... 
look at the first coordinate of your added constraint

float x=-10000,y=600;

bounds->push_back(osg::Vec3(x,y,getheight(x,y)));

x=1610,y=900;

all the other coordinates are near X=1600-2100. Your constraint is very (very, 
very, very....) long and thin, and moreover x=-10000 is way outside the 
terrain. I replaced the first coordinate with x=1000, and no problem the 
triangulation is fine.


Is the -10000 correct (in terms of your problem)? I agree that ideally the 
triangulator should triangulate absolutely anything, but you are probably near 
the limits of floating point precision for such a long thin constraint. (other 
cases of this error are sought).

Geoff
  ----- Original Message ----- 
  From: amalric alexandre 
  To: osg users 
  Sent: Thursday, November 30, 2006 2:03 PM
  Subject: Re: [osg-users] Delaunay triangulator of concav geometry


  I found this morning that it's due to MS VS 2005 because I made a test 
modifying the example "osgDelaunay.cpp" (attached) compiling on MS VS 2003 
there is no problem, but compiling with MS VS 2005 the program crashes in 
function lineBisects(delauneytriangulator.cpp) because of a "out of range" in 
accessing array "points". It doesn't depend on OSG version (same problem with 
OSG 1.2 and OSG 1.1).
  Please see the attached files.
  Thanks.

  Alexandre AMALRIC



   
  2006/11/30, jOan <[EMAIL PROTECTED]>: 
    I have the same problem using DelaunayTriangulator  with MS VS2005.



    2006/11/30, amalric alexandre <[EMAIL PROTECTED]>: 
      Hi,

      I want to triangulate with DelaunayTriangulator a geometry wich is 
concav. I give to the DelaunayTriangulator a set of point sorted and to the 
DelaunayConstraint the same set of point (edges of the geometry). But when i 
call the triangulate() function it crashes in lineBisects() function because of 
a value out of range. Is it a known bug of triangulator ? or is my method not 
appropriated ? If it is please explain how it is possible to triangulate a 
concave geometry ? 

      _______________________________________________
      osg-users mailing list
      [email protected]
      http://openscenegraph.net/mailman/listinfo/osg-users 
      http://www.openscenegraph.org/





    -- 
    jOan Abadie 

    _______________________________________________
    osg-users mailing list
    [email protected]
    http://openscenegraph.net/mailman/listinfo/osg-users
    http://www.openscenegraph.org/






------------------------------------------------------------------------------


  _______________________________________________
  osg-users mailing list
  [email protected]
  http://openscenegraph.net/mailman/listinfo/osg-users
  http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to