From f0c76ffaeaccd63cffa8849dcac895bbab84ec3a Mon Sep 17 00:00:00 2001 From: Sylvain Thery Date: Wed, 28 Nov 2012 13:52:43 +0100 Subject: [PATCH] restore EMBNULL testing --- include/Topology/generic/attributeHandler.hpp | 4 ++-- include/Topology/generic/cellmarker.h | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/Topology/generic/attributeHandler.hpp b/include/Topology/generic/attributeHandler.hpp index 68decd27..e85c4122 100644 --- a/include/Topology/generic/attributeHandler.hpp +++ b/include/Topology/generic/attributeHandler.hpp @@ -137,8 +137,8 @@ inline T& AttributeHandler::operator[](Dart d) assert(valid || !"Invalid AttributeHandler") ; unsigned int a = m_map->getEmbedding(d) ; -// if (a == EMBNULL) -// a = m_map->setOrbitEmbeddingOnNewCell(d) ; + if (a == EMBNULL) + a = m_map->setOrbitEmbeddingOnNewCell(d) ; return m_attrib->operator[](a) ; } diff --git a/include/Topology/generic/cellmarker.h b/include/Topology/generic/cellmarker.h index 928c409b..1a5be9cd 100644 --- a/include/Topology/generic/cellmarker.h +++ b/include/Topology/generic/cellmarker.h @@ -132,8 +132,8 @@ public: assert(m_markVector != NULL); unsigned int a = m_map.getEmbedding(d) ; -// if (a == EMBNULL) -// a = m_map.setOrbitEmbeddingOnNewCell(d) ; + if (a == EMBNULL) + a = m_map.setOrbitEmbeddingOnNewCell(d) ; m_markVector->operator[](a).setMark(m_mark) ; } @@ -146,8 +146,8 @@ public: assert(m_markVector != NULL); unsigned int a = m_map.getEmbedding(d) ; -// if (a == EMBNULL) -// a = m_map.setOrbitEmbeddingOnNewCell(d) ; + if (a == EMBNULL) + a = m_map.setOrbitEmbeddingOnNewCell(d) ; m_markVector->operator[](a).unsetMark(m_mark) ; } @@ -160,8 +160,8 @@ public: assert(m_markVector != NULL); unsigned int a = m_map.getEmbedding(d) ; -// if (a == EMBNULL) -// return false ; + if (a == EMBNULL) + return false ; return m_markVector->operator[](a).testMark(m_mark) ; } -- GitLab