Commit e61643d0 authored by ws's avatar ws

As we are now calling the function "delaunayizeBDS" within…

As we are now calling the function "delaunayizeBDS" within meshGeneratorPeriodic, we don't want to swap edges such that the new edge has e.g. both points at the seam but at different sides in parametric space.
parent bbc77e6d
Pipeline #2599 passed with stage
in 17 minutes and 23 seconds
......@@ -1076,6 +1076,10 @@ bool BDS_Mesh::swap_edge(BDS_Edge *e, const BDS_SwapEdgeTest &theTest,
if(!theTest(p1, p2, op[0], op[1])) return false;
// Check if new edge op[0] - op[1] is not on a seam or degenerated
if (op[0]->degenerated && op[1]->degenerated) return false;
if (op[0]->_periodicCounterpart && op[1]->_periodicCounterpart) return false;
if(p1->iD == CHECK1 && p2->iD == CHECK2) printf("TEST2 OK\n");
BDS_Edge *p1_op1 = find_edge(p1, op[0], e->faces(0));
......
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