Coupure prévue mardi 3 Août au matin pour maintenance du serveur. Nous faisons au mieux pour que celle-ci soit la plus brève possible.

Commit b73847af authored by Thery Sylvain's avatar Thery Sylvain
Browse files

add embedding on without boundary functions

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