From 3e323c953c1916b6d342f01e1a28916b86b692c9 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 6 Feb 2021 14:59:44 +0100 Subject: Add workaround to clipper zero-height path bug --- svg-flatten/src/out_dilater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svg-flatten/src/out_dilater.cpp') diff --git a/svg-flatten/src/out_dilater.cpp b/svg-flatten/src/out_dilater.cpp index 1ac1040..e9aefa8 100644 --- a/svg-flatten/src/out_dilater.cpp +++ b/svg-flatten/src/out_dilater.cpp @@ -58,7 +58,7 @@ Dilater &Dilater::operator<<(const Polygon &poly) { } ClipperLib::ClipperOffset offx; - offx.ArcTolerance = 0.01 * clipper_scale; /* 10µm; TODO: Make this configurable */ + offx.ArcTolerance = 0.05 * clipper_scale; /* 10µm; TODO: Make this configurable */ offx.AddPath(poly_c, ClipperLib::jtRound, ClipperLib::etClosedPolygon); double dilation = m_dilation; if (m_current_polarity == GRB_POL_CLEAR) { -- cgit