Skip to content
Snippets Groups Projects
Commit e00c7b85 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Rename forgotten Pixel to PixelPosition

parent ca8f8612
No related branches found
No related tags found
1 merge request!121Rename forgotten Pixel to PixelPosition
Pipeline #49383 passed
......@@ -17,7 +17,7 @@
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/algorithms/is_convex.hpp>
// Even though Pixels are int, let boost perform the intersection
// Even though PixelPositions are int, let boost perform the intersection
// calculations based on floats to avoid rounding issues
BOOST_GEOMETRY_REGISTER_POINT_2D(schaapcommon::facets::PixelPosition, float,
cs::cartesian, x, y)
......@@ -55,8 +55,8 @@ std::vector<std::pair<int, int>> Facet::HorizontalIntersections(
int x2 = 0;
size_t i;
for (i = 0; i != pixels_.size(); ++i) {
const Pixel& p1 = pixels_[i];
const Pixel& p2 = pixels_[(i + 1) % pixels_.size()];
const PixelPosition& p1 = pixels_[i];
const PixelPosition& p2 = pixels_[(i + 1) % pixels_.size()];
if ((p1.y <= y_intersect && p2.y > y_intersect) ||
(p2.y <= y_intersect && p1.y > y_intersect)) {
int x;
......
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