aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/svg_doc.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-19 21:25:10 +0200
committerjaseg <git@jaseg.de>2022-06-19 21:25:10 +0200
commit446c5e59019501a8401410a4e9bb3495b155e660 (patch)
treedc32ed9bbeac53b2cae74c6fa334b585886fe8be /svg-flatten/src/svg_doc.cpp
parent5f33356f330465907cb9ec69fb4543c271f3bea4 (diff)
downloadgerbolyze-446c5e59019501a8401410a4e9bb3495b155e660.tar.gz
gerbolyze-446c5e59019501a8401410a4e9bb3495b155e660.tar.bz2
gerbolyze-446c5e59019501a8401410a4e9bb3495b155e660.zip
svg-flatten: fix patterns with offset clip path
Diffstat (limited to 'svg-flatten/src/svg_doc.cpp')
-rw-r--r--svg-flatten/src/svg_doc.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/svg-flatten/src/svg_doc.cpp b/svg-flatten/src/svg_doc.cpp
index b1c253a..0c09231 100644
--- a/svg-flatten/src/svg_doc.cpp
+++ b/svg-flatten/src/svg_doc.cpp
@@ -315,6 +315,14 @@ void gerbolyze::SVGDocument::export_svg_path(RenderContext &ctx, const pugi::xml
} else {
PolyTreeToPaths(ptree_fill, fill_paths);
+ cerr << "clip paths" << endl;
+ for (auto &p : fill_paths) {
+ cerr << " ";
+ for (auto &pt : p) {
+ cerr << "<" << pt.X << "," << pt.Y << "> ";
+ }
+ cerr << endl;
+ }
RenderContext local_ctx(ctx, xform2d(), fill_paths, true);
pattern->tile(local_ctx);
}