summaryrefslogtreecommitdiff
path: root/src/openscad.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-01 15:03:34 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-01 15:03:34 (GMT)
commit6041c34f0b458b3cb791a0e15b0f01bf3142981c (patch)
tree02236427fa8e073f81eb47b1c3a61cb92b945b1a /src/openscad.cc
parentfee63ab7aec661ea3fe5890e79df752f1af10690 (diff)
Refactored some non-CGAL functionality into separate functions in PolySetCGALEvaluator
Diffstat (limited to 'src/openscad.cc')
-rw-r--r--src/openscad.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index a13528e..5ec0659 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -33,8 +33,6 @@
#include "export.h"
#include "builtin.h"
#include "nodedumper.h"
-#include "CGALEvaluator.h"
-#include "PolySetCGALEvaluator.h"
#include "printutils.h"
#include <string>
@@ -43,6 +41,8 @@
#ifdef ENABLE_CGAL
#include "CGAL_Nef_polyhedron.h"
#include <CGAL/assertions_behaviour.h>
+#include "CGALEvaluator.h"
+#include "PolySetCGALEvaluator.h"
#endif
#include <QApplication>
@@ -259,10 +259,12 @@ int main(int argc, char **argv)
NodeCache nodecache;
NodeDumper dumper(nodecache);
Tree tree;
+#ifdef ENABLE_CGAL
// FIXME: enforce some maximum cache size (old version had 100K vertices as limit)
QHash<std::string, CGAL_Nef_polyhedron> cache;
CGALEvaluator cgalevaluator(cache, tree);
PolySetCGALEvaluator psevaluator(cgalevaluator);
+#endif
if (stl_output_file || off_output_file || dxf_output_file)
{
contact: Jan Huwald // Impressum