Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/extra/io/StreamCropper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ namespace roofer::io {

// merge buffer ground points into regular point_clouds now that the
// proper counts have been established
for (size_t poly_i; poly_i < polygons.size(); poly_i++) {
for (size_t poly_i = 0; poly_i < polygons.size(); poly_i++) {
auto& point_cloud = point_clouds.at(poly_i);
auto classification =
point_cloud.attributes.get_if<int>("classification");
Expand Down
2 changes: 1 addition & 1 deletion src/extra/misc/PointcloudRasteriser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ namespace roofer::misc {
auto& p = pointcloud[pi];
auto& c = (*classification)[pi];
auto i = getLinearCoord(cnt_image, p[0], p[1]);
if (i < 0 || i > cnt_image.array.size()) continue;
if (i < 0 || i >= cnt_image.array.size()) continue;

// check if we have too many points in this cell
if (cnt_image.array[i] > max_cnt_per_cell) {
Expand Down