From a166f37e4f9c5b482fa97a3fba23c8097913658d Mon Sep 17 00:00:00 2001 From: supermerill Date: Tue, 26 Oct 2021 22:39:49 +0200 Subject: [PATCH] fix infinite loop supermerill/SuperSlicer#1711 --- src/libslic3r/ExPolygon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/ExPolygon.cpp b/src/libslic3r/ExPolygon.cpp index fd1677251..e4868f934 100644 --- a/src/libslic3r/ExPolygon.cpp +++ b/src/libslic3r/ExPolygon.cpp @@ -213,7 +213,7 @@ ExPolygon::remove_point_too_near(const coord_t tolerance) { //go to next one //if you removed a point, it check if the next one isn't too near from the previous one. // if not, it byepass it. - if (newdist > tolerance_sq) { + if (newdist >= tolerance_sq) { ++id; } }