From accb6a88ff3f19144448d818d39d5f7ee54ed4c9 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 18 May 1999 16:40:32 +0000 Subject: [PATCH] Debugging tweaks ... --- Tools/Construct/Triangulate/triangle.cxx | 2 +- Tools/Construct/Triangulate/trisegs.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/Construct/Triangulate/triangle.cxx b/Tools/Construct/Triangulate/triangle.cxx index 1270e79f6..c8fd5d035 100644 --- a/Tools/Construct/Triangulate/triangle.cxx +++ b/Tools/Construct/Triangulate/triangle.cxx @@ -431,7 +431,7 @@ int FGTriangle::run_triangulate( int pass ) { triangulate(tri_options.c_str(), &in, &out, &vorout); // TEMPORARY - write_out_data(&out); + // write_out_data(&out); // now copy the results back into the corresponding FGTriangle // structures diff --git a/Tools/Construct/Triangulate/trisegs.cxx b/Tools/Construct/Triangulate/trisegs.cxx index 1f3898e21..a30f72ca2 100644 --- a/Tools/Construct/Triangulate/trisegs.cxx +++ b/Tools/Construct/Triangulate/trisegs.cxx @@ -89,7 +89,7 @@ void FGTriSegments::unique_divide_and_add( const point_list& nodes, if ( fabs(p0.x() - p1.x()) > 3 * FG_EPSILON ) { // use y = mx + b - // sort these in a sensable order + // sort these in a sensible order if ( p0.x() > p1.x() ) { Point3D tmp = p0; p0 = p1; @@ -116,7 +116,7 @@ void FGTriSegments::unique_divide_and_add( const point_list& nodes, y_err = fabs(current->y() - (m * current->x() + b)); - if ( y_err < 10 * FG_EPSILON ) { + if ( y_err < 20 * FG_EPSILON ) { // cout << "FOUND EXTRA SEGMENT NODE (Y)" << endl; // cout << p0 << " < " << *current << " < " // << p1 << endl; @@ -151,7 +151,7 @@ void FGTriSegments::unique_divide_and_add( const point_list& nodes, x_err = fabs(current->x() - p0.x()); // cout << " found a potential point, x err = " // << x_err << endl; - if ( x_err < 10*FG_EPSILON ) { + if ( x_err < 20 * FG_EPSILON ) { // cout << "FOUND EXTRA SEGMENT NODE (X)" << endl; // cout << p0 << " < " << *current << " < " // << p1 << endl; -- 2.39.5