]> git.mxchange.org Git - flightgear.git/commitdiff
Debugging tweaks ...
authorcurt <curt>
Tue, 18 May 1999 16:40:32 +0000 (16:40 +0000)
committercurt <curt>
Tue, 18 May 1999 16:40:32 +0000 (16:40 +0000)
Tools/Construct/Triangulate/triangle.cxx
Tools/Construct/Triangulate/trisegs.cxx

index 1270e79f6cdb21bb1686a8abc3f8f4c30388be2b..c8fd5d0350ab7edf774abccaedc9804156c691f0 100644 (file)
@@ -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
index 1f3898e21bb8f462dc15269888435690a3232b24..a30f72ca22b9206d64bbecb5768b37ebd929f026 100644 (file)
@@ -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;