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/cgaladv.cc | |
parent | eb81def6ebfa0997798808408e3d27f03eff1996 (diff) |
Removed temporary REMOVE_DUMP define
Diffstat (limited to 'src/cgaladv.cc')
-rw-r--r-- | src/cgaladv.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/cgaladv.cc b/src/cgaladv.cc index 260850a..87975d2 100644 --- a/src/cgaladv.cc +++ b/src/cgaladv.cc @@ -69,9 +69,6 @@ public: int convexity, level; cgaladv_type_e type; virtual CSGTerm *render_csg_term(double m[20], QVector<CSGTerm*> *highlights, QVector<CSGTerm*> *background) const; -#ifndef REMOVE_DUMP - virtual QString dump(QString indent) const; -#endif }; AbstractNode *CgaladvModule::evaluate(const Context *ctx, const ModuleInstantiation *inst) const @@ -160,28 +157,6 @@ CSGTerm *CgaladvNode::render_csg_term(double m[20], QVector<CSGTerm*> *highlight #endif // ENABLE_CGAL -#ifndef REMOVE_DUMP -QString CgaladvNode::dump(QString indent) const -{ - if (dump_cache.isEmpty()) { - QString text; - if (type == MINKOWSKI) - text.sprintf("minkowski(convexity = %d) {\n", this->convexity); - if (type == GLIDE) { - text.sprintf(", convexity = %d) {\n", this->convexity); - text = QString("glide(path = ") + this->path.dump() + text; - } - if (type == SUBDIV) - text.sprintf("subdiv(level = %d, convexity = %d) {\n", this->level, this->convexity); - foreach (AbstractNode *v, this->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 CgaladvNode::toString() const { std::stringstream stream; |