summaryrefslogtreecommitdiff
path: root/csg.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-23 19:56:46 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-23 19:56:46 (GMT)
commit4daae374011de97aafa999f2353e2c7d17511046 (patch)
treebc51daf75fb7d4be3d17ed4fd3206f08bf7d0aee /csg.cc
parent0fcdcb6bd6117e8e8ccaff15b0a083c2f76266a6 (diff)
Clifford Wolf:
Added GUI git-svn-id: http://svn.clifford.at/openscad/trunk@13 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'csg.cc')
-rw-r--r--csg.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/csg.cc b/csg.cc
index 3ad02d6..de3b6b9 100644
--- a/csg.cc
+++ b/csg.cc
@@ -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;
contact: Jan Huwald // Impressum