Skip to content

Commit

Permalink
Fix rounding errors in handleCradleLineValidity.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRahm committed May 2, 2024
1 parent 2cec577 commit a79c0de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TreeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1636,8 +1636,8 @@ void TreeSupport::handleCradleLineValidity(

if (next_relevant_influence.area() > EPSILON)
{
relevant_influence = next_relevant_influence;
full_influence = full_influence.difference(cradle_influence).unionPolygons(relevant_influence);
relevant_influence = TreeSupportUtils::safeUnion(next_relevant_influence);
full_influence = TreeSupportUtils::safeUnion(full_influence.difference(cradle_influence), relevant_influence);
}
else
{
Expand Down

0 comments on commit a79c0de

Please sign in to comment.