From 67f5cc46c1bda951f23e9cf2b17a779b3f8348bd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 17 Apr 2003 13:36:41 +0000 Subject: [PATCH] Changed the maxx initializiation to use (*points)[last_valid_index].x(); --- src/osgUtil/DelaunayTriangulator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osgUtil/DelaunayTriangulator.cpp b/src/osgUtil/DelaunayTriangulator.cpp index 76da473ee..e3fdfa025 100644 --- a/src/osgUtil/DelaunayTriangulator.cpp +++ b/src/osgUtil/DelaunayTriangulator.cpp @@ -215,11 +215,13 @@ bool DelaunayTriangulator::triangulate() // find the minimum and maximum x values in the point list float minx = (*points)[0].x(); - float maxx = minx; + float maxx = (*points)[last_valid_index].x(); + // find the minimum and maximum x values in the point list float miny = (*points)[0].y(); float maxy = miny; + osg::notify(osg::INFO) << "DelaunayTriangulator: finding minimum and maximum Y values\n"; osg::Vec3Array::const_iterator mmi; for (mmi=points->begin(); mmi!=points->end(); ++mmi) {