Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Hejl <hejl.lukas@gmail.com>2022-08-12 10:17:11 +0300
committerLukáš Hejl <hejl.lukas@gmail.com>2022-08-12 10:48:34 +0300
commit17e7b182ee13c72980beb6e0f4cf7889b1712b81 (patch)
tree5526e202cbd9365ac07ecdbb990ad2b9c394a8db
parent4fa76b2d8b38476559f8b21e46d022b49beed7fa (diff)
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.
-rw-r--r--src/libslic3r/Arachne/SkeletalTrapezoidation.cpp6
1 files 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<BeadingPropagation>&
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<coord_t>(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;
}