Commit 44019bb7 authored by Pierre Kraemer's avatar Pierre Kraemer

correction bug collapseEdge dans embeddedMap2

parent 2e9620c2
......@@ -186,7 +186,7 @@ bool EmbeddedMap2<MAP2>::edgeCanCollapse(Dart d)
template <typename MAP2>
void EmbeddedMap2<MAP2>::collapseEdge(Dart d, bool delDegenerateFaces)
{
Dart dPrev = MAP2::phi_1(d) ;
Dart dPrev2 = MAP2::phi2(MAP2::phi_1(d)) ;
unsigned int vEmb = EMBNULL ;
if (MAP2::isOrbitEmbedded(VERTEX_ORBIT))
......@@ -198,9 +198,7 @@ void EmbeddedMap2<MAP2>::collapseEdge(Dart d, bool delDegenerateFaces)
if (MAP2::isOrbitEmbedded(VERTEX_ORBIT))
{
Dart dPrev2 = MAP2::phi2(dPrev) ;
if(dPrev2 != dPrev)
MAP2::embedOrbit(VERTEX_ORBIT, dPrev2, vEmb) ;
MAP2::embedOrbit(VERTEX_ORBIT, dPrev2, vEmb) ;
}
}
......
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