summaryrefslogtreecommitdiff
path: root/primitive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'primitive.cc')
-rw-r--r--primitive.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/primitive.cc b/primitive.cc
index 48d819f..1f3815d 100644
--- a/primitive.cc
+++ b/primitive.cc
@@ -43,7 +43,9 @@ public:
double x, y, z, h, r1, r2;
primitive_type_e type;
PrimitiveNode(primitive_type_e type) : type(type) { }
+#ifdef ENABLE_CGAL
virtual CGAL_Nef_polyhedron render_cgal_nef_polyhedron() const;
+#endif
virtual QString dump(QString indent) const;
};
@@ -132,6 +134,8 @@ void register_builtin_primitive()
builtin_modules["cylinder"] = new PrimitiveModule(CYLINDER);
}
+#ifdef ENABLE_CGAL
+
static int cube_facets[6][4] = {
{ 0, 1, 2, 3 },
{ 7, 6, 5, 4 },
@@ -246,6 +250,8 @@ CGAL_Nef_polyhedron PrimitiveNode::render_cgal_nef_polyhedron() const
return N;
}
+#endif /* ENABLE_CGAL */
+
QString PrimitiveNode::dump(QString indent) const
{
QString text;
contact: Jan Huwald // Impressum