aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/out_dilater.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-02-06 14:59:44 +0100
committerjaseg <git@jaseg.de>2021-02-06 14:59:44 +0100
commit3e323c953c1916b6d342f01e1a28916b86b692c9 (patch)
tree33ac231f4987553f94a597c2b4f9361dba9d0a47 /svg-flatten/src/out_dilater.cpp
parent13cb49b218df952a11316988c1a02e5c72851f9d (diff)
downloadgerbolyze-3e323c953c1916b6d342f01e1a28916b86b692c9.tar.gz
gerbolyze-3e323c953c1916b6d342f01e1a28916b86b692c9.tar.bz2
gerbolyze-3e323c953c1916b6d342f01e1a28916b86b692c9.zip
Add workaround to clipper zero-height path bug
Diffstat (limited to 'svg-flatten/src/out_dilater.cpp')
-rw-r--r--svg-flatten/src/out_dilater.cpp2
1 files changed, 1 insertions, 1 deletions
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) {