correctly check for degenerated edges

This commit is contained in:
Christopher Lackner 2024-06-27 21:00:52 +02:00
parent a2d9455627
commit 3974191ffa

View File

@ -616,8 +616,8 @@ namespace netgen
endp = vert2meshpt[edge->GetEndVertex().nr]; endp = vert2meshpt[edge->GetEndVertex().nr];
// ignore collapsed edges // ignore collapsed edges
if(startp == endp && edge->GetLength() < 1e-10 * bounding_box.Diam()) if(edge->IsDegenerated())
continue; continue;
// ----------- Add Points to mesh and create segments ----- // ----------- Add Points to mesh and create segments -----
auto & pnums = all_pnums[edgenr]; auto & pnums = all_pnums[edgenr];