Commit ce36e5a4 authored by Pierre Kraemer's avatar Pierre Kraemer

mise a jour collapseEdge pour prendre en compte le cas des aretes pendantes

parent 10c7d948
......@@ -97,11 +97,11 @@ Dart GMap2::collapseEdge(Dart d, bool delDegenerateFaces = true)
Dart f = phi1(e) ;
Dart g = phi_1(e) ;
if(!isFaceTriangle(e))
if(f != d && !isFaceTriangle(e))
resV = f ;
else if(phi2(g) != g)
resV = phi2(g) ;
else if(phi2(f) != f)
else if(f != d && phi2(f) != f)
resV = phi1(phi2(f)) ;
if (f != e && delDegenerateFaces)
......
......@@ -99,11 +99,11 @@ Dart Map2::collapseEdge(Dart d, bool delDegenerateFaces)
Dart f = phi1(e) ;
Dart g = phi_1(e) ;
if(!isFaceTriangle(e))
if(f != d && !isFaceTriangle(e))
resV = f ;
else if(phi2(g) != g)
resV = phi2(g) ;
else if(phi2(f) != f)
else if(f != d && phi2(f) != f)
resV = phi1(phi2(f)) ;
if (f != e && delDegenerateFaces)
......
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