Fixed a bug in the DelaunayTriangulator uniquify points method. Was always

skipping the first point.
This commit is contained in:
Don BURNS
2006-04-04 23:22:34 +00:00
parent e8967b5390
commit de930be1c1

View File

@@ -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] )