Skip to content

Commit

Permalink
Support a special case that treat every layer as steep overhang
Browse files Browse the repository at this point in the history
  • Loading branch information
Noisyfox committed Oct 15, 2023
1 parent 50b6027 commit 2d185d8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/libslic3r/PerimeterGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,17 @@ static bool detect_steep_overhang(bool is_contour,
bool &steep_overhang_contour,
bool &steep_overhang_hole)
{
// Special case: reverse on every odd layer
if (overhang_steep_width < EPSILON) {
if (is_contour) {
steep_overhang_contour = true;
} else {
steep_overhang_hole = true;
}

return true;
}

Polygons lower_slcier_chopped = ClipperUtils::clip_clipper_polygons_with_subject_bbox(*lower_slices, extrusion_bboxs, true);

// All we need to check is whether we have lines outside `overhang_steep_width`
Expand Down

0 comments on commit 2d185d8

Please sign in to comment.