diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-15 18:36:53 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-15 18:36:53 (GMT) |
commit | f97f0258a4c0f5876e3c02c5b46bfcf713c1e8b5 (patch) | |
tree | 68f869f0a6bf675e5f24e53cc87bc045d3481691 /dxflinextrude.cc | |
parent | 71bc0ed97e431dbcfd407d985c866475552f735f (diff) |
Make CSG tree dumps more readable
git-svn-id: http://svn.clifford.at/openscad/trunk@320 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'dxflinextrude.cc')
-rw-r--r-- | dxflinextrude.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dxflinextrude.cc b/dxflinextrude.cc index 740bb1f..7e0c2c6 100644 --- a/dxflinextrude.cc +++ b/dxflinextrude.cc @@ -305,17 +305,17 @@ QString DxfLinearExtrudeNode::dump(QString indent) const memset(&st, 0, sizeof(struct stat)); stat(filename.toAscii().data(), &st); text.sprintf("linear_extrude(file = \"%s\", cache = \"%x.%x\", layer = \"%s\", " - "height = %f, origin = [ %f %f ], scale = %f, center = %s, convexity = %d", + "height = %g, origin = [ %g %g ], scale = %g, center = %s, convexity = %d", filename.toAscii().data(), (int)st.st_mtime, (int)st.st_size, layername.toAscii().data(), height, origin_x, origin_y, scale, center ? "true" : "false", convexity); if (has_twist) { QString t2; - t2.sprintf(", twist = %f, slices = %d", twist, slices); + t2.sprintf(", twist = %g, slices = %d", twist, slices); text += t2; } QString t3; - t3.sprintf(", $fn = %f, $fa = %f, $fs = %f) {\n", fn, fs, fa); + t3.sprintf(", $fn = %g, $fa = %g, $fs = %g) {\n", fn, fs, fa); text += t3; foreach (AbstractNode *v, children) text += v->dump(indent + QString("\t")); |