From c86ec77337d0dfa77bda6c14a248862099aa9176 Mon Sep 17 00:00:00 2001 From: Lars Skiba Date: Tue, 23 Jul 2024 15:27:46 +0200 Subject: [PATCH] fix for issue #873 --- CPP/Clipper2Lib/src/clipper.offset.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CPP/Clipper2Lib/src/clipper.offset.cpp b/CPP/Clipper2Lib/src/clipper.offset.cpp index a9cdbd30..b8b03652 100644 --- a/CPP/Clipper2Lib/src/clipper.offset.cpp +++ b/CPP/Clipper2Lib/src/clipper.offset.cpp @@ -315,11 +315,11 @@ void ClipperOffset::OffsetPoint(Group& group, const Path64& path, size_t j, size #else path_out.push_back(GetPerpendic(path[j], norms[k], group_delta_)); #endif - + // this extra point is the only simple way to ensure that path reversals // (ie over-shrunk paths) are fully cleaned out with the trailing union op. // However it's probably safe to skip this whenever an angle is almost flat. - if (cos_a < 0.99) path_out.push_back(path[j]); // (#405) + if (cos_a < 0.999) path_out.push_back(path[j]); // (#405) (#873) #ifdef USINGZ path_out.push_back(Point64(GetPerpendic(path[j], norms[j], group_delta_), path[j].z));