diff options
author | Marius Kintel <marius@kintel.net> | 2010-03-30 22:53:01 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2010-10-31 00:42:35 (GMT) |
commit | 99f406d9941ef9fef8b2522ccbf6a72eb474f27a (patch) | |
tree | f9dc4a9f0e9e66fc8264044f4b6d663c87467a08 /src/import.cc | |
parent | eb81def6ebfa0997798808408e3d27f03eff1996 (diff) |
Removed temporary REMOVE_DUMP define
Diffstat (limited to 'src/import.cc')
-rw-r--r-- | src/import.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/import.cc b/src/import.cc index 99b7eeb..aeda529 100644 --- a/src/import.cc +++ b/src/import.cc @@ -189,33 +189,6 @@ PolySet *ImportNode::render_polyset(render_mode_e) const return p; } -#ifndef REMOVE_DUMP -QString ImportNode::dump(QString indent) const -{ - if (dump_cache.isEmpty()) { - QString text; - struct stat st; - memset(&st, 0, sizeof(struct stat)); - stat(filename.toAscii().data(), &st); - if (type == TYPE_STL) - text.sprintf("import_stl(file = \"%s\", cache = \"%x.%x\", convexity = %d);\n", - filename.toAscii().data(), (int)st.st_mtime, (int)st.st_size, convexity); - if (type == TYPE_OFF) - text.sprintf("import_off(file = \"%s\", cache = \"%x.%x\", convexity = %d);\n", - filename.toAscii().data(), (int)st.st_mtime, (int)st.st_size, convexity); - if (type == TYPE_DXF) - text.sprintf("import_dxf(file = \"%s\", cache = \"%x.%x\", layer = \"%s\", " - "origin = [ %g %g ], scale = %g, convexity = %d, " - "$fn = %g, $fa = %g, $fs = %g);\n", - filename.toAscii().data(), (int)st.st_mtime, (int)st.st_size, - layername.toAscii().data(), origin_x, origin_y, scale, convexity, - fn, fa, fs); - ((AbstractNode*)this)->dump_cache = indent + QString("n%1: ").arg(idx) + text; - } - return dump_cache; -} -#endif - std::string ImportNode::toString() const { std::stringstream stream; |