aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/svg_pattern.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-19 21:26:35 +0200
committerjaseg <git@jaseg.de>2022-06-19 21:26:35 +0200
commitf58cca0ba66e66e924caf96545a348584d4f48ee (patch)
tree8e6ad2003eba35934d36a04f6bc908096c8274e5 /svg-flatten/src/svg_pattern.cpp
parent446c5e59019501a8401410a4e9bb3495b155e660 (diff)
downloadgerbolyze-f58cca0ba66e66e924caf96545a348584d4f48ee.tar.gz
gerbolyze-f58cca0ba66e66e924caf96545a348584d4f48ee.tar.bz2
gerbolyze-f58cca0ba66e66e924caf96545a348584d4f48ee.zip
svg-flatten: remove debug prints
Diffstat (limited to 'svg-flatten/src/svg_pattern.cpp')
-rw-r--r--svg-flatten/src/svg_pattern.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/svg-flatten/src/svg_pattern.cpp b/svg-flatten/src/svg_pattern.cpp
index 4e5b289..cdff7a7 100644
--- a/svg-flatten/src/svg_pattern.cpp
+++ b/svg-flatten/src/svg_pattern.cpp
@@ -27,7 +27,6 @@ using namespace std;
gerbolyze::Pattern::Pattern(const pugi::xml_node &node, SVGDocument &doc) : _node(node), doc(&doc) {
/* Read pattern attributes from SVG node */
- cerr << "creating pattern for node with id \"" << node.attribute("id").value() << "\"" << endl;
x = usvg_double_attr(node, "x");
y = usvg_double_attr(node, "y");
w = usvg_double_attr(node, "width");
@@ -69,7 +68,6 @@ void gerbolyze::Pattern::tile (gerbolyze::RenderContext &ctx) {
double by = clip_bounds.top / clipper_scale;
double bw = (clip_bounds.right - clip_bounds.left) / clipper_scale;
double bh = (clip_bounds.bottom - clip_bounds.top) / clipper_scale;
- cerr << "clip bounds " << bx << ", " << by << "w=" << bw <<" h=" << bh << endl;
d2p clip_p0 = patternTransform_inv.doc2phys(d2p{bx, by});
d2p clip_p1 = patternTransform_inv.doc2phys(d2p{bx+bw, by+bh});
@@ -93,12 +91,10 @@ void gerbolyze::Pattern::tile (gerbolyze::RenderContext &ctx) {
for (double inst_off_x = fmod(inst_x, inst_w) - 2*inst_w;
inst_off_x < bx + bw + 2*inst_w;
inst_off_x += inst_w) {
- cerr << "inst_off_x " << inst_off_x << endl;
for (double inst_off_y = fmod(inst_y, inst_h) - 2*inst_h;
inst_off_y < by + bh + 2*inst_h;
inst_off_y += inst_h) {
- cerr << " inst_off_y " << inst_off_y << endl;
xform2d elem_xf;
/* Change into this individual tile's coordinate system */