From de930be1c10342efa5b273fff0b5e596ac5a3ebb Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Tue, 4 Apr 2006 23:22:34 +0000 Subject: [PATCH] Fixed a bug in the DelaunayTriangulator uniquify points method. Was always skipping the first point. --- src/osgUtil/DelaunayTriangulator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgUtil/DelaunayTriangulator.cpp b/src/osgUtil/DelaunayTriangulator.cpp index 812b159ea..2d429d4af 100644 --- a/src/osgUtil/DelaunayTriangulator.cpp +++ b/src/osgUtil/DelaunayTriangulator.cpp @@ -670,6 +670,8 @@ void DelaunayTriangulator::_uniqueifyPoints() osg::Vec3Array::iterator p = points_->begin(); osg::Vec3 v = *p; + // Always push back the first point + temppts->push_back( (v = *p)); for( ; p != points_->end(); p++ ) { if( v[0] == (*p)[0] && v[1] == (*p)[1] )