mirror of https://github.com/vitalif/openscad
Compile fix
parent
fe3362faf8
commit
9d428bf515
|
@ -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());
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue