diff options
author | bubnikv <bubnikv@gmail.com> | 2018-09-07 15:53:42 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-09-07 15:53:42 +0300 |
commit | 6de8e211317578e71398170fd0b4d215d9cc2781 (patch) | |
tree | a1636a9ea7cea6ef2eecbd2ac487ccc1f55895db /xs/src/libslic3r/EdgeGrid.cpp | |
parent | 2a81408e8bd64bd3f28319b418ab933895b301d9 (diff) |
New support settings: "support_material_auto" controls, whether
the supports shall be generated automatically.
If not, only supports inside support enforcers are generated.
Diffstat (limited to 'xs/src/libslic3r/EdgeGrid.cpp')
-rw-r--r-- | xs/src/libslic3r/EdgeGrid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xs/src/libslic3r/EdgeGrid.cpp b/xs/src/libslic3r/EdgeGrid.cpp index 804b526c7..801a27e3a 100644 --- a/xs/src/libslic3r/EdgeGrid.cpp +++ b/xs/src/libslic3r/EdgeGrid.cpp @@ -1225,7 +1225,7 @@ bool EdgeGrid::Grid::signed_distance(const Point &pt, coord_t search_radius, coo return true; } -Polygons EdgeGrid::Grid::contours_simplified(coord_t offset) const +Polygons EdgeGrid::Grid::contours_simplified(coord_t offset, bool fill_holes) const { assert(std::abs(2 * offset) < m_resolution); @@ -1239,7 +1239,7 @@ Polygons EdgeGrid::Grid::contours_simplified(coord_t offset) const cell_inside[r * cell_cols + c] = cell_inside_or_crossing(r - 1, c - 1); // Fill in empty cells, which have a left / right neighbor filled. // Fill in empty cells, which have the top / bottom neighbor filled. - { + if (fill_holes) { std::vector<char> cell_inside2(cell_inside); for (int r = 1; r + 1 < int(cell_rows); ++ r) { for (int c = 1; c + 1 < int(cell_cols); ++ c) { |