summaryrefslogtreecommitdiff
path: root/src/PolySetEvaluator.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-11 08:51:55 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-11 08:51:55 (GMT)
commit95949cf961d84f65ad9bfb9f2dec7361059ca515 (patch)
treeb5d50e381362d013d8cce12c524571f013a990a2 /src/PolySetEvaluator.cc
parent18e97e0bd3f6bda4fdcd17de2a85173ba59b6b00 (diff)
Implemented CGAL caching
Diffstat (limited to 'src/PolySetEvaluator.cc')
-rw-r--r--src/PolySetEvaluator.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/PolySetEvaluator.cc b/src/PolySetEvaluator.cc
index e46ae59..1f09127 100644
--- a/src/PolySetEvaluator.cc
+++ b/src/PolySetEvaluator.cc
@@ -10,11 +10,6 @@
class.
*/
-static bool filter(char c)
-{
- return c == ' ' || c == '\n' || c == '\t' || c == '\r';
-}
-
/*!
Factory method returning a PolySet from the given node. If the
node is already cached, the cached PolySet will be returned
@@ -23,8 +18,7 @@ static bool filter(char c)
*/
shared_ptr<PolySet> PolySetEvaluator::getPolySet(const AbstractNode &node, bool cache)
{
- std::string cacheid = this->tree.getString(node);
- cacheid.erase(std::remove_if(cacheid.begin(), cacheid.end(), filter), cacheid.end());
+ std::string cacheid = this->tree.getIdString(node);
if (PolySetCache::instance()->contains(cacheid)) {
// For cache debugging
contact: Jan Huwald // Impressum