diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2021-04-24 17:20:00 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-04-24 20:17:42 +0200 |
commit | 776e0bd2069af0cfff7ce794cf3b345b613e1c02 (patch) | |
tree | 04d63001eee0ed741bd6869901610ee1b1603dd2 /svg-flatten/src/svg_geom.cpp | |
parent | 89da2b3664ec75cf5de1e5d7ee48acd0f2847df8 (diff) | |
download | gerbolyze-776e0bd2069af0cfff7ce794cf3b345b613e1c02.tar.gz gerbolyze-776e0bd2069af0cfff7ce794cf3b345b613e1c02.tar.bz2 gerbolyze-776e0bd2069af0cfff7ce794cf3b345b613e1c02.zip |
Replace cairo curve flattener from Anitgrain Graphics
This also fixes an issue where non-closed curves were not dilated
properly.
Diffstat (limited to 'svg-flatten/src/svg_geom.cpp')
-rw-r--r-- | svg-flatten/src/svg_geom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svg-flatten/src/svg_geom.cpp b/svg-flatten/src/svg_geom.cpp index 385e848..0ca66fe 100644 --- a/svg-flatten/src/svg_geom.cpp +++ b/svg-flatten/src/svg_geom.cpp @@ -20,6 +20,7 @@ #include <cmath> #include <string> +#include <iostream> #include <sstream> #include <queue> #include <assert.h> @@ -112,7 +113,6 @@ static void dehole_polytree_worker(PolyNode &ptree, Paths &out, queue<PolyTree> out.push_back(nod->Contour); } else { - /* Do not add children's children, those were handled in the recursive call above */ Clipper c; c.AddPath(nod->Contour, ptSubject, /* closed= */ true); |