Commit b73847af authored by Thery Sylvain's avatar Thery Sylvain

add embedding on without boundary functions

parent 818e0d50
......@@ -38,16 +38,32 @@ Dart EmbeddedMap2::newFace(unsigned int nbEdges, bool withBoundary)
{
if (isOrbitEmbedded<VERTEX>())
{
/*
Traversor2FV<EmbeddedMap2> t(*this, d);
for(Dart it = t.begin(); it != t.end(); it = t.next())
initOrbitEmbeddingNewCell<VERTEX>(it) ;
*/
Dart e = d;
do
{
initOrbitEmbeddingNewCell<VERTEX>(e) ;
e = this->phi1(e);
} while (d!=e);
}
if(isOrbitEmbedded<EDGE>())
{
/*
Traversor2FE<EmbeddedMap2> t(*this, d);
for(Dart it = t.begin(); it != t.end(); it = t.next())
initOrbitEmbeddingNewCell<EDGE>(it) ;
*/
Dart e = d;
do
{
initOrbitEmbeddingNewCell<EDGE>(e) ;
e = this->phi1(e);
} while (d!=e);
}
if(isOrbitEmbedded<FACE>())
......@@ -56,6 +72,27 @@ Dart EmbeddedMap2::newFace(unsigned int nbEdges, bool withBoundary)
initOrbitEmbeddingNewCell<FACE>(phi2(d)) ;
}
}
else
{
if (isOrbitEmbedded<VERTEX>())
{
/*
Traversor2FV<EmbeddedMap2> t(*this, d);
for(Dart it = t.begin(); it != t.end(); it = t.next())
initOrbitEmbeddingNewCell<VERTEX>(it) ;
*/
Dart e = d;
do
{
initDartEmbedding<VERTEX>(e,newCell<VERTEX>());
e = this->phi1(e);
} while (d!=e);
}
if(isOrbitEmbedded<FACE>())
initOrbitEmbeddingNewCell<FACE>(d) ;
}
return d ;
}
......@@ -278,6 +315,19 @@ void EmbeddedMap2::sewFaces(Dart d, Dart e, bool withBoundary)
if (!withBoundary)
{
Map2::sewFaces(d, e, false) ;
if(isOrbitEmbedded<EDGE>())
{
/*
Traversor2FE<EmbeddedMap2> t(*this, d);
for(Dart it = t.begin(); it != t.end(); it = t.next())
initOrbitEmbeddingNewCell<EDGE>(it) ;
*/
unsigned int emb = newCell<EDGE>();
initDartEmbedding<EDGE>(d,emb);
initDartEmbedding<EDGE>(e,emb);
}
return ;
}
......
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