Changeset 418117a for molecuilder/src/tesselationhelpers.cpp
- Timestamp:
- Nov 23, 2009, 6:22:33 PM (16 years ago)
- Children:
- 3d4969
- Parents:
- 09d3b8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/tesselationhelpers.cpp
r09d3b8 r418117a 77 77 78 78 if (fabs(m11) < MYEPSILON) 79 eLog() << Verbose( 0) << "ERROR:three points are colinear." << endl;79 eLog() << Verbose(1) << "three points are colinear." << endl; 80 80 81 81 center->x[0] = 0.5 * m12/ m11; … … 84 84 85 85 if (fabs(a.Distance(center) - RADIUS) > MYEPSILON) 86 eLog() << Verbose( 0) << "ERROR:The given center is further way by " << fabs(a.Distance(center) - RADIUS) << " from a than RADIUS." << endl;86 eLog() << Verbose(1) << "The given center is further way by " << fabs(a.Distance(center) - RADIUS) << " from a than RADIUS." << endl; 87 87 88 88 gsl_matrix_free(A); … … 224 224 // test whether new center is on the parameter circle's plane 225 225 if (fabs(helper.ScalarProduct(&CirclePlaneNormal)) > HULLEPSILON) { 226 eLog() << Verbose( 0) << "ERROR:Something's very wrong here: NewSphereCenter is not on the band's plane as desired by " <<fabs(helper.ScalarProduct(&CirclePlaneNormal)) << "!" << endl;226 eLog() << Verbose(1) << "Something's very wrong here: NewSphereCenter is not on the band's plane as desired by " <<fabs(helper.ScalarProduct(&CirclePlaneNormal)) << "!" << endl; 227 227 helper.ProjectOntoPlane(&CirclePlaneNormal); 228 228 } … … 230 230 // test whether the new center vector has length of CircleRadius 231 231 if (fabs(radius - CircleRadius) > HULLEPSILON) 232 eLog() << Verbose(1) << " ERROR:The projected center of the new sphere has radius " << radius << " instead of " << CircleRadius << "." << endl;232 eLog() << Verbose(1) << "The projected center of the new sphere has radius " << radius << " instead of " << CircleRadius << "." << endl; 233 233 alpha = helper.Angle(&OldSphereCenter); 234 234 // make the angle unique by checking the halfplanes/search direction … … 494 494 Vector BaseLineVector, OrthogonalVector, helper; 495 495 if (candidate1->BaseLine != candidate2->BaseLine) { // sanity check 496 Log() << Verbose(0) << "ERROR:sortCandidates was called for two different baselines: " << candidate1->BaseLine << " and " << candidate2->BaseLine << "." << endl;496 eLog() << Verbose(1) << "sortCandidates was called for two different baselines: " << candidate1->BaseLine << " and " << candidate2->BaseLine << "." << endl; 497 497 //return false; 498 498 exit(1); … … 577 577 } 578 578 } else { 579 eLog() << Verbose( 0) << "ERROR:The current cell " << LC->n[0] << "," << LC->n[1] << ","579 eLog() << Verbose(1) << "The current cell " << LC->n[0] << "," << LC->n[1] << "," 580 580 << LC->n[2] << " is invalid!" << endl; 581 581 } … … 633 633 } 634 634 } else { 635 eLog() << Verbose( 0) << "ERROR:The current cell " << LC->n[0] << "," << LC->n[1] << ","635 eLog() << Verbose(1) << "The current cell " << LC->n[0] << "," << LC->n[1] << "," 636 636 << LC->n[2] << " is invalid!" << endl; 637 637 } … … 741 741 } 742 742 } else { 743 eLog() << Verbose( 0) << "ERROR:Given vrmlfile is " << vrmlfile << "." << endl;743 eLog() << Verbose(1) << "Given vrmlfile is " << vrmlfile << "." << endl; 744 744 } 745 745 delete(center); … … 811 811 *rasterfile << "9\n# terminating special property\n"; 812 812 } else { 813 eLog() << Verbose( 0) << "ERROR:Given rasterfile is " << rasterfile << "." << endl;813 eLog() << Verbose(1) << "Given rasterfile is " << rasterfile << "." << endl; 814 814 } 815 815 IncludeSphereinRaster3D(rasterfile, Tess, cloud);
Note:
See TracChangeset
for help on using the changeset viewer.