Commit 03cfa393 authored by Jund Thomas's avatar Jund Thomas
Browse files

Merge cgogn.unistra.fr:~thery/CGoGN

parents 9ae6a09f 02625daf
......@@ -532,12 +532,20 @@ unsigned int EmbeddedMap2::closeHole(Dart d, bool forboundary)
{
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>())
{
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) ;
......
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