summaryrefslogtreecommitdiff
path: root/openscad.h
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-03 07:51:22 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-03 07:51:22 (GMT)
commitcb6dbb3a37602a9113b970477fdffc827e239baa (patch)
treed1df82ebfa09ed529de1e1a6abb336586f008160 /openscad.h
parent5c239e7868842195189c9c5782ba8a07c948f1e5 (diff)
Clifford Wolf:
Added caching of cgal nef polyhydrons git-svn-id: http://svn.clifford.at/openscad/trunk@49 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.h')
-rw-r--r--openscad.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openscad.h b/openscad.h
index 27b0c70..551b488 100644
--- a/openscad.h
+++ b/openscad.h
@@ -37,6 +37,7 @@ static inline uint qHash(double v) {
#endif
#include <QHash>
+#include <QCache>
#include <QVector>
#include <QMainWindow>
#include <QSplitter>
@@ -404,10 +405,13 @@ public:
int idx;
static int idx_counter;
+ QString dump_cache;
AbstractNode(const ModuleInstanciation *mi);
virtual ~AbstractNode();
#ifdef ENABLE_CGAL
+ static QCache<QString, CGAL_Nef_polyhedron> cgal_nef_cache;
+ virtual QString cgal_nef_cache_id() const;
virtual CGAL_Nef_polyhedron render_cgal_nef_polyhedron() const;
#endif
virtual CSGTerm *render_csg_term(double m[16], QVector<CSGTerm*> *highlights) const;
contact: Jan Huwald // Impressum