diff options
author | Lukáš Hejl <hejl.lukas@gmail.com> | 2020-12-08 17:49:16 +0300 |
---|---|---|
committer | Lukáš Hejl <hejl.lukas@gmail.com> | 2021-12-10 23:53:47 +0300 |
commit | 3c8d1370dec303ce1d6e9a82073aac236784f524 (patch) | |
tree | 14f4c27d7c5be021615885914223f68862c925ed | |
parent | c3f144c7ead9786d808907b822a27a569398c5f6 (diff) |
Disable wiping even in cases when the original travel leads through holes.lh_avoid_crossing_perimeters_wipe
-rw-r--r-- | src/libslic3r/GCode/AvoidCrossingPerimeters.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libslic3r/GCode/AvoidCrossingPerimeters.cpp b/src/libslic3r/GCode/AvoidCrossingPerimeters.cpp index d29f7216a..c6948d89e 100644 --- a/src/libslic3r/GCode/AvoidCrossingPerimeters.cpp +++ b/src/libslic3r/GCode/AvoidCrossingPerimeters.cpp @@ -714,6 +714,7 @@ static bool need_wipe(const GCode &gcodegen, // The original layer is intersected with defined boundaries. Then it is necessary to make a detailed test. // If the z-lift is enabled, then a wipe is needed when the original travel leads above the holes. if (z_lift_enabled) { +#if 0 if (any_expolygon_contains(lslices, lslices_bboxes, grid_lslice, original_travel)) { // Check if original_travel and result_travel are not same. // If both are the same, then it is possible to skip testing of result_travel @@ -722,6 +723,11 @@ static bool need_wipe(const GCode &gcodegen, } else { wipe_needed = true; } +#endif + // Check if original_travel and result_travel are not same. + // If both are the same, then it is possible to skip testing of result_travel + wipe_needed = !(result_travel.size() > 2 && result_travel.first_point() == original_travel.a && result_travel.last_point() == original_travel.b) && + !any_expolygon_contains(lslices, lslices_bboxes, grid_lslice, result_travel); } else { wipe_needed = !any_expolygon_contains(lslices, lslices_bboxes, grid_lslice, result_travel); } |