Add dilation option

This commit is contained in:
jaseg 2021-01-30 15:18:56 +01:00
parent a6540b73da
commit f88134f9ca
5 changed files with 134 additions and 8 deletions

View file

@ -301,6 +301,7 @@ void gerbolyze::SVGDocument::export_svg_path(const RenderSettings &rset, const p
if (stroke_color && stroke_width > 0.0) {
ClipperOffset offx;
offx.ArcTolerance = 0.01 * clipper_scale; /* 10µm; TODO: Make this configurable */
/* For stroking we have to separately handle open and closed paths */
for (const auto &poly : closed_paths) {