diff options
author | Marius Kintel <marius@kintel.net> | 2010-07-15 00:48:00 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2010-10-31 00:42:38 (GMT) |
commit | f0b49ee9e93c92982fe9a160c3e9aa7da17b581e (patch) | |
tree | 28056348e28bca5274e3bf7f48174fd42fb6ce94 /src/cgaladv.cc | |
parent | f2323c78b381c24d2924c6cea7c9230416542a17 (diff) |
Started refactoring of render_csg_term() into a visitor
Diffstat (limited to 'src/cgaladv.cc')
-rw-r--r-- | src/cgaladv.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/cgaladv.cc b/src/cgaladv.cc index 114620f..e79a57e 100644 --- a/src/cgaladv.cc +++ b/src/cgaladv.cc @@ -68,7 +68,6 @@ public: QString subdiv_type; int convexity, level; cgaladv_type_e type; - virtual CSGTerm *render_csg_term(double m[20], QVector<CSGTerm*> *highlights, QVector<CSGTerm*> *background) const; }; AbstractNode *CgaladvModule::evaluate(const Context *ctx, const ModuleInstantiation *inst) const @@ -131,32 +130,6 @@ void register_builtin_cgaladv() builtin_modules["subdiv"] = new CgaladvModule(SUBDIV); } -// FIXME: #ifdef ENABLE_CGAL -#if 0 -CSGTerm *CgaladvNode::render_csg_term(double m[20], QVector<CSGTerm*> *highlights, QVector<CSGTerm*> *background) const -{ - if (type == MINKOWSKI) - return render_csg_term_from_nef(m, highlights, background, "minkowski", this->convexity); - - if (type == GLIDE) - return render_csg_term_from_nef(m, highlights, background, "glide", this->convexity); - - if (type == SUBDIV) - return render_csg_term_from_nef(m, highlights, background, "subdiv", this->convexity); - - return NULL; -} - -#else // ENABLE_CGAL - -CSGTerm *CgaladvNode::render_csg_term(double m[20], QVector<CSGTerm*> *highlights, QVector<CSGTerm*> *background) const -{ - PRINT("WARNING: Found minkowski(), glide() or subdiv() statement but compiled without CGAL support!"); - return NULL; -} - -#endif // ENABLE_CGAL - std::string CgaladvNode::toString() const { std::stringstream stream; |