summaryrefslogtreecommitdiff
path: root/src/polyset.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-09 03:53:05 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-09 03:53:05 (GMT)
commitcbba974d3ac1edeb716a1384a2262ed5447fa9e6 (patch)
tree30708ef085204435d644c4ab685b87556628d22a /src/polyset.cc
parent328897c1f28e0d438aa678891f8d5a45b114f267 (diff)
Initial attempt of cleaning up polyset handling. PolySet no longer keeps a refcount, basic cache mechanism is in place, instantiating polysets are controlled through PolySetEvaluator
Diffstat (limited to 'src/polyset.cc')
-rw-r--r--src/polyset.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/polyset.cc b/src/polyset.cc
index db37b49..23b9876 100644
--- a/src/polyset.cc
+++ b/src/polyset.cc
@@ -36,28 +36,12 @@
#include <Eigen/LU>
#include <QColor>
-PolySet::PolySet() : grid(GRID_FINE)
+PolySet::PolySet() : grid(GRID_FINE), is2d(false), convexity(1)
{
- is2d = false;
- convexity = 1;
- refcount = 1;
}
PolySet::~PolySet()
{
- assert(refcount == 0);
-}
-
-PolySet* PolySet::link()
-{
- refcount++;
- return this;
-}
-
-void PolySet::unlink()
-{
- if (--refcount == 0)
- delete this;
}
void PolySet::append_poly()
contact: Jan Huwald // Impressum