summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CGALCache.cc4
-rw-r--r--src/CGALCache.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/CGALCache.cc b/src/CGALCache.cc
index 7d1baf8..9f308f0 100644
--- a/src/CGALCache.cc
+++ b/src/CGALCache.cc
@@ -4,6 +4,10 @@
CGALCache *CGALCache::inst = NULL;
+CGALCache::CGALCache(size_t limit) : cache(limit)
+{
+}
+
void CGALCache::insert(const std::string &id, const CGAL_Nef_polyhedron &N)
{
this->cache.insert(id, new CGAL_Nef_polyhedron(N), N.weight());
diff --git a/src/CGALCache.h b/src/CGALCache.h
index 063fef5..ee4c6c3 100644
--- a/src/CGALCache.h
+++ b/src/CGALCache.h
@@ -8,7 +8,7 @@
class CGALCache
{
public:
- CGALCache(size_t limit = 100*1024*1024) : cache(limit) {}
+ CGALCache(size_t limit = 100*1024*1024);
static CGALCache *instance() { if (!inst) inst = new CGALCache; return inst; }
contact: Jan Huwald // Impressum