summaryrefslogtreecommitdiff
path: root/src/CGALCache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CGALCache.cc')
-rw-r--r--src/CGALCache.cc4
1 files changed, 4 insertions, 0 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());
contact: Jan Huwald // Impressum