Commit 02625daf authored by Sylvain Thery's avatar Sylvain Thery

modification of closeHole

parent 3322f3f6
...@@ -532,12 +532,20 @@ unsigned int EmbeddedMap2::closeHole(Dart d, bool forboundary) ...@@ -532,12 +532,20 @@ unsigned int EmbeddedMap2::closeHole(Dart d, bool forboundary)
{ {
if (isOrbitEmbedded<VERTEX>()) if (isOrbitEmbedded<VERTEX>())
{ {
initDartEmbedding<VERTEX>(f, getEmbedding<VERTEX>(phi1(phi2(f)))) ; unsigned int emb = getEmbedding<VERTEX>(phi1(phi2(f)));
if (emb == EMBNULL)
initOrbitEmbeddingNewCell<VERTEX>(f) ;
else
initDartEmbedding<VERTEX>(f, emb) ;
} }
if (isOrbitEmbedded<EDGE>()) if (isOrbitEmbedded<EDGE>())
{ {
initDartEmbedding<EDGE>(f, getEmbedding<EDGE>(phi2(f))) ; unsigned int emb = getEmbedding<EDGE>(phi2(f));
if (emb == EMBNULL)
initOrbitEmbeddingNewCell<EDGE>(f) ;
else
initDartEmbedding<EDGE>(f, emb) ;
} }
f = phi1(f) ; f = phi1(f) ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment