From 400db7c3a9553cac2f58c55c56df58f9b78612d2 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 3 Sep 2003 22:12:45 +0000 Subject: [PATCH] Oops a previous change (thought to be harmless) turned out to be harmful. This could cause tile edges to no longer match up becuase this routine would adjust node elevations which it shouldn't have. Hopefully this change fixes the problem. --- src/Lib/Geometry/trinodes.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lib/Geometry/trinodes.cxx b/src/Lib/Geometry/trinodes.cxx index cad64da7..2fa771e4 100644 --- a/src/Lib/Geometry/trinodes.cxx +++ b/src/Lib/Geometry/trinodes.cxx @@ -50,7 +50,7 @@ int TGTriNodes::unique_add( const Point3D& p ) { // cout << "found an existing match!" << endl; // update elevation if new point has better info - if ( p.z() > current->z() ) { + if ( current->z() < -9000 ) { current->setz( p.z() ); } @@ -120,7 +120,7 @@ int TGTriNodes::course_add( const Point3D& p ) { // cout << "found an existing match!" << endl; // update elevation if new point has better info - if ( p.z() > current->z() ) { + if ( current->z() < -9000 ) { current->setz( p.z() ); }