Skip to content

Commit

Permalink
Update tResample.cpp
Browse files Browse the repository at this point in the history
Improve raster resampling logic, print x,y coordinates when FindNormal found Zero Vector
  • Loading branch information
JoseBecerra1 authored Nov 21, 2024
1 parent ddd9bbc commit 48b73d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tRasTin/tResample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ tArray< double > tResample::FindNormal(double d, double x1, double y1,
tmp = x1*x1+y1*y1;
if ( fabs(tmp) <= 1.0E-9) {
cout<<"\ntResample::FindNormal found Zero Vector!..."<<endl;
cout<<"X-coordinate = "<<x1<<", Y-coordinate = "<<y1<<endl;
cout<<"Change the TIN Mesh"<<endl;
cout<<"Exiting Program..."<<endl;
exit(2);
Expand Down

0 comments on commit 48b73d2

Please sign in to comment.