diff options
author | bubnikv <bubnikv@gmail.com> | 2018-08-17 16:53:43 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-08-17 16:53:43 +0300 |
commit | 65011f93827a6e10757faef3d14ee068d9da8c94 (patch) | |
tree | 987d53bee4ebfa5d5dddbc3a14811c26953b2aa1 /xs/src/libslic3r/Fill/FillHoneycomb.cpp | |
parent | 1ba64da3fee97433d6b580aae8fc8e9875143a66 (diff) |
Removed the x(), y(), z() Point/Pointf/Point3/Pointf3 accessors.
Diffstat (limited to 'xs/src/libslic3r/Fill/FillHoneycomb.cpp')
-rw-r--r-- | xs/src/libslic3r/Fill/FillHoneycomb.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xs/src/libslic3r/Fill/FillHoneycomb.cpp b/xs/src/libslic3r/Fill/FillHoneycomb.cpp index ce7ac4a19..6f26167a2 100644 --- a/xs/src/libslic3r/Fill/FillHoneycomb.cpp +++ b/xs/src/libslic3r/Fill/FillHoneycomb.cpp @@ -50,13 +50,13 @@ void FillHoneycomb::_fill_surface_single( bounding_box.merge(_align_to_grid(bounding_box.min, Point(m.hex_width, m.pattern_height))); } - coord_t x = bounding_box.min.x(); - while (x <= bounding_box.max.x()) { + coord_t x = bounding_box.min(0); + while (x <= bounding_box.max(0)) { Polygon p; coord_t ax[2] = { x + m.x_offset, x + m.distance - m.x_offset }; for (size_t i = 0; i < 2; ++ i) { std::reverse(p.points.begin(), p.points.end()); // turn first half upside down - for (coord_t y = bounding_box.min.y(); y <= bounding_box.max.y(); y += m.y_short + m.hex_side + m.y_short + m.hex_side) { + for (coord_t y = bounding_box.min(1); y <= bounding_box.max(1); y += m.y_short + m.hex_side + m.y_short + m.hex_side) { p.points.push_back(Point(ax[1], y + m.y_offset)); p.points.push_back(Point(ax[0], y + m.y_short - m.y_offset)); p.points.push_back(Point(ax[0], y + m.y_short + m.hex_side + m.y_offset)); |