zsiki / GeoEasy

land surveying calculation, network adjustment, digital terrain models, regression calculation
http://digikom.hu/english/geo_easy_e.html
GNU General Public License v2.0
72 stars 34 forks source link

Volume difference #190

Closed zsiki closed 1 year ago

zsiki commented 1 year ago

Volume difference calculation gives 0.0 result if the grid size is too large comparing to the triangle size. It is used as a limit for point in triangle test.

zsiki commented 1 year ago

The tin2grid used an absolute constant to decide if a point is inside a triangle. It didn't work if the grid was to rare and the triangles were too small. The absolute constant were change to relative one, it is calculated relative to the area of triangle.