Skip to content
Snippets Groups Projects
Commit 4baacdf3 authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

fixed bug in edge swapping when internal edges were there...

parent e22bcdab
No related branches found
No related tags found
No related merge requests found
......@@ -2809,6 +2809,11 @@ bool edgeSwap(std::set<swapquad> &configs, MTri3 *t1, GFace *gf, int iLocalEdge,
MVertex *v2 = t1->tri()->getVertex((iLocalEdge) % 3);
MVertex *v3 = t1->tri()->getVertex((iLocalEdge + 1) % 3);
MVertex *v4 = 0;
std::set<MEdge,Less_Edge>::iterator it = data.internalEdges.find(MEdge(v1,v2));
if (it != data.internalEdges.end())return false;
for(int i = 0; i < 3; i++)
if(t2->tri()->getVertex(i) != v1 && t2->tri()->getVertex(i) != v2)
v4 = t2->tri()->getVertex(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment