From 92cef3f0b68ba80f2221de0a8ceeac2463f5013e Mon Sep 17 00:00:00 2001 From: Antoine Lavenant Date: Thu, 11 Apr 2024 17:28:26 +0200 Subject: [PATCH] fix find cell --- src/filter_grid_decimation/grid_decimationFilter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filter_grid_decimation/grid_decimationFilter.cpp b/src/filter_grid_decimation/grid_decimationFilter.cpp index 69a9e28..bc771f4 100755 --- a/src/filter_grid_decimation/grid_decimationFilter.cpp +++ b/src/filter_grid_decimation/grid_decimationFilter.cpp @@ -81,8 +81,8 @@ void GridDecimationFilter::processOne(BOX2D bounds, PointRef& point, PointViewPt double y = point.getFieldAs(Dimension::Id::Y); int id = point.getFieldAs(Dimension::Id::PointId); - double d_width_pt = std::floor((x - bounds.minx) / m_args->m_edgeLength) + 1; - double d_height_pt = std::floor((y - bounds.miny) / m_args->m_edgeLength) + 1; + double d_width_pt = std::floor((x - bounds.minx) / m_args->m_edgeLength); + double d_height_pt = std::floor((y - bounds.miny) / m_args->m_edgeLength); int width = static_cast(d_width_pt); int height = static_cast(d_height_pt);