Skip to content

Commit

Permalink
Fixed tree support generating hanging in certain situations
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRahm committed Dec 4, 2021
1 parent 8b32357 commit d5aad83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TreeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ Polygons TreeSupport::ensureMaximumDistancePolyline(const Polygons& input, coord
if (length < 2 * distance && min_points <= 1)
{
ClosestPolygonPoint middle_point(part[0], 0, part);
middle_point = PolygonUtils::walk(middle_point, coord_t(length / 2 + 10));
middle_point = PolygonUtils::walk(middle_point, coord_t(length / 2));
line.add(middle_point.location);
}
else
Expand Down

0 comments on commit d5aad83

Please sign in to comment.