1
0
Fork 0

Added debugging output ... on the hunt of a T intersection problem.

This commit is contained in:
curt 2000-08-24 13:15:15 +00:00
parent 18d67137a3
commit 33ea616de8

View file

@ -60,7 +60,8 @@
#include "texparams.hxx" #include "texparams.hxx"
static const double tgAirportEpsilon = FG_EPSILON / 10.0; // static const double tgAirportEpsilon = FG_EPSILON / 10.0;
static const double tgAirportEpsilon = FG_EPSILON * 10.0;
// calculate texture coordinates for runway section using the provided // calculate texture coordinates for runway section using the provided
@ -205,11 +206,11 @@ void add_intermediate_nodes( int contour, const Point3D& start,
if ( (current->x() > (p_min.x() + FG_EPSILON)) if ( (current->x() > (p_min.x() + FG_EPSILON))
&& (current->x() < (p_max.x() - FG_EPSILON)) ) { && (current->x() < (p_max.x() - FG_EPSILON)) ) {
// printf("found a potential candidate %.7f %.7f %.7f\n", printf( "found a potential candidate %.7f %.7f %.7f\n",
// current->x(), current->y(), current->z() ); current->x(), current->y(), current->z() );
y_err = fabs(current->y() - (m * current->x() + b)); y_err = fabs(current->y() - (m * current->x() + b));
// cout << "y_err = " << y_err << endl; cout << "y_err = " << y_err << endl;
if ( y_err < tgAirportEpsilon ) { if ( y_err < tgAirportEpsilon ) {
cout << "FOUND EXTRA SEGMENT NODE (Y)" << endl; cout << "FOUND EXTRA SEGMENT NODE (Y)" << endl;
@ -255,11 +256,11 @@ void add_intermediate_nodes( int contour, const Point3D& start,
if ( (current->y() > (p_min.y() + FG_EPSILON)) if ( (current->y() > (p_min.y() + FG_EPSILON))
&& (current->y() < (p_max.y() - FG_EPSILON)) ) { && (current->y() < (p_max.y() - FG_EPSILON)) ) {
// printf("found a potential candidate %.7f %.7f %.7f\n", printf( "found a potential candidate %.7f %.7f %.7f\n",
// current->x(), current->y(), current->z() ); current->x(), current->y(), current->z() );
x_err = fabs(current->x() - (m1 * current->y() + b1)); x_err = fabs(current->x() - (m1 * current->y() + b1));
// cout << "x_err = " << x_err << endl; cout << "x_err = " << x_err << endl;
// if ( temp ) { // if ( temp ) {
// cout << " (" << counter << ") x_err = " << x_err << endl; // cout << " (" << counter << ") x_err = " << x_err << endl;