summaryrefslogtreecommitdiff
path: root/src/projection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/projection.cc')
-rw-r--r--src/projection.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/projection.cc b/src/projection.cc
index 77b7bf9..75aaf44 100644
--- a/src/projection.cc
+++ b/src/projection.cc
@@ -93,6 +93,8 @@ void register_builtin_projection()
builtin_modules["projection"] = new ProjectionModule();
}
+#ifdef ENABLE_CGAL
+
static void report_func(const class AbstractNode*, void *vp, int mark)
{
QProgressDialog *pd = (QProgressDialog*)vp;
@@ -291,6 +293,18 @@ cant_project_non_simple_polyhedron:
return ps;
}
+#else // ENABLE_CGAL
+
+PolySet *ProjectionNode::render_polyset(render_mode_e) const
+{
+ PRINT("WARNING: Found projection() statement but compiled without CGAL support!");
+ PolySet *ps = new PolySet();
+ ps->is2d = true;
+ return ps;
+}
+
+#endif // ENABLE_CGAL
+
QString ProjectionNode::dump(QString indent) const
{
if (dump_cache.isEmpty()) {
contact: Jan Huwald // Impressum