From 17e7b182ee13c72980beb6e0f4cf7889b1712b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Fri, 12 Aug 2022 09:17:11 +0200 Subject: [PATCH] Follow-up to 0161a59a93e326d5e573cffe61b9549a4d925189: Too big epsilon created tiny unconnected extrusions, so epsilon was changed to the smallest value that allows resolving rounding issues after division by two. --- src/libslic3r/Arachne/SkeletalTrapezoidation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libslic3r/Arachne/SkeletalTrapezoidation.cpp b/src/libslic3r/Arachne/SkeletalTrapezoidation.cpp index 03677b5db..d78ce06d1 100644 --- a/src/libslic3r/Arachne/SkeletalTrapezoidation.cpp +++ b/src/libslic3r/Arachne/SkeletalTrapezoidation.cpp @@ -2029,10 +2029,10 @@ void SkeletalTrapezoidation::generateJunctions(ptr_vector_t& for (junction_idx = (std::max(size_t(1), beading->toolpath_locations.size()) - 1) / 2; junction_idx < num_junctions; junction_idx--) { coord_t bead_R = beading->toolpath_locations[junction_idx]; - // toolpath_locations computed inside DistributedBeadingStrategy be off by 1 because of rounding errors. + // toolpath_locations computed inside DistributedBeadingStrategy could be off by 1 because of rounding errors. // In GH issue #8472, these roundings errors caused missing the middle extrusion. - // Adding some epsilon should help resolve those cases. - if (bead_R <= start_R + scaled(0.005)) + // Adding small epsilon should help resolve those cases. + if (bead_R <= start_R + 1) { // Junction coinciding with start node is used in this function call break; }