Skip to content

Commit

Permalink
[CURA-12153] Fix 'encompassing hole' issue (tree support). (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vandresc authored Oct 15, 2024
2 parents 48811a3 + b456526 commit 67f9041
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/TreeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,17 @@ void TreeSupport::filterFloatingLines(std::vector<Shape>& support_layer_storage)
if (! found)
{
next_removed_holes_by_idx.emplace(idx);

// Individual pieces of the hole could still be valid (if the 'hole' is made by branches surrounding others' for instance).
for (const auto& poly : hole)
{
if (poly.area() < 0)
{
auto poly_copy = poly;
poly_copy.reverse();
valid_holes[layer_idx].push_back(poly_copy);
}
}
}
else
{
Expand Down

0 comments on commit 67f9041

Please sign in to comment.