From 0413c1b9262902e9d8a0b41d7bb56530b72fba9c Mon Sep 17 00:00:00 2001 From: phkahler <14852918+phkahler@users.noreply.github.com> Date: Tue, 8 Sep 2020 13:01:37 -0400 Subject: [PATCH] NFC:Triangulation - don't add zero-length bridges to avoid list. --- src/srf/triangulate.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/srf/triangulate.cpp b/src/srf/triangulate.cpp index 7b75bd1..e2e94c6 100644 --- a/src/srf/triangulate.cpp +++ b/src/srf/triangulate.cpp @@ -210,8 +210,10 @@ haveEdge: // and future bridges mustn't cross our bridge, and it's tricky to get // things right if two bridges come from the same point - avoidEdges->AddEdge(a, b); - avoidPts->Add(&a); + if(withbridge) { + avoidEdges->AddEdge(a, b); + avoidPts->Add(&a); + } avoidPts->Add(&b); l.Clear();