diff options
Diffstat (limited to 'csg.cc')
-rw-r--r-- | csg.cc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -41,7 +41,9 @@ class CsgNode : public AbstractNode public: csg_type_e type; CsgNode(csg_type_e type) : type(type) { } +#ifdef ENABLE_CGAL virtual CGAL_Nef_polyhedron render_cgal_nef_polyhedron() const; +#endif virtual QString dump(QString indent) const; }; @@ -56,6 +58,8 @@ AbstractNode *CsgModule::evaluate(const Context*, const QVector<QString>&, const return node; } +#ifdef ENABLE_CGAL + CGAL_Nef_polyhedron CsgNode::render_cgal_nef_polyhedron() const { bool first; @@ -76,6 +80,8 @@ CGAL_Nef_polyhedron CsgNode::render_cgal_nef_polyhedron() const return N; } +#endif /* ENABLE_CGAL */ + QString CsgNode::dump(QString indent) const { QString text = indent; |