diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-01 10:01:05 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-01 10:01:05 (GMT) |
commit | 51ae2483733a75c8e7fbaa8abe7f7b0a999c1db0 (patch) | |
tree | 069262f86a94536c4e3983b78367e43fb00f1fa7 /src/projection.cc | |
parent | 07bc7dbecd8ed226ab950ee2b493ce3df2e5a8e0 (diff) |
Clifford Wolf:
Fixed building without CGAL
git-svn-id: http://svn.clifford.at/openscad/trunk@406 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/projection.cc')
-rw-r--r-- | src/projection.cc | 14 |
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()) { |