Skip to content
Snippets Groups Projects
Commit d79b4910 authored by Tom Fischer's avatar Tom Fischer
Browse files

[App/U/GeoTools] Evaluate function in cell center

parent 7a2ae159
No related branches found
No related tags found
No related merge requests found
...@@ -198,8 +198,9 @@ int main(int argc, char* argv[]) ...@@ -198,8 +198,9 @@ int main(int argc, char* argv[])
{ {
for (std::size_t c = 0; c < header.n_cols; c++) for (std::size_t c = 0; c < header.n_cols; c++)
{ {
GeoLib::Point const p{{origin[0] + header.cell_size * c, GeoLib::Point const p{{origin[0] + header.cell_size * (c + 0.5),
origin[1] + header.cell_size * r, 0.0}}; origin[1] + header.cell_size * (r + 0.5),
0.0}};
if (!aabb.containsPoint(p, std::numeric_limits<double>::epsilon())) if (!aabb.containsPoint(p, std::numeric_limits<double>::epsilon()))
{ {
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment