diff options
Diffstat (limited to 'src/dxflinextrude.cc')
-rw-r--r-- | src/dxflinextrude.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/dxflinextrude.cc b/src/dxflinextrude.cc index d162b9f..b704c35 100644 --- a/src/dxflinextrude.cc +++ b/src/dxflinextrude.cc @@ -152,36 +152,6 @@ PolySet *DxfLinearExtrudeNode::render_polyset(render_mode_e mode) const return ps; } -#ifndef REMOVE_DUMP -QString DxfLinearExtrudeNode::dump(QString indent) const -{ - if (dump_cache.isEmpty()) { - QString text; - struct stat st; - memset(&st, 0, sizeof(struct stat)); - stat(filename.toAscii().data(), &st); - text.sprintf("linear_extrude(file = \"%s\", cache = \"%x.%x\", layer = \"%s\", " - "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 = %g, slices = %d", twist, slices); - text += t2; - } - QString t3; - t3.sprintf(", $fn = %g, $fa = %g, $fs = %g) {\n", fn, fa, fs); - text += t3; - foreach (AbstractNode *v, children) - text += v->dump(indent + QString("\t")); - text += indent + "}\n"; - ((AbstractNode*)this)->dump_cache = indent + QString("n%1: ").arg(idx) + text; - } - return dump_cache; -} -#endif - std::string DxfLinearExtrudeNode::toString() const { std::stringstream stream; |