Skip to content

Commit

Permalink
fix find cell
Browse files Browse the repository at this point in the history
  • Loading branch information
alavenant committed Apr 11, 2024
1 parent 7e77169 commit 92cef3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filter_grid_decimation/grid_decimationFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ void GridDecimationFilter::processOne(BOX2D bounds, PointRef& point, PointViewPt
double y = point.getFieldAs<double>(Dimension::Id::Y);
int id = point.getFieldAs<double>(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<int>(d_width_pt);
int height = static_cast<int>(d_height_pt);
Expand Down

0 comments on commit 92cef3f

Please sign in to comment.