Skip to content

Commit 0413c1b

Browse files
committed
NFC:Triangulation - don't add zero-length bridges to avoid list.
1 parent b208cd8 commit 0413c1b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/srf/triangulate.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,10 @@ bool SContour::BridgeToContour(SContour *sc,
210210

211211
// and future bridges mustn't cross our bridge, and it's tricky to get
212212
// things right if two bridges come from the same point
213-
avoidEdges->AddEdge(a, b);
214-
avoidPts->Add(&a);
213+
if(withbridge) {
214+
avoidEdges->AddEdge(a, b);
215+
avoidPts->Add(&a);
216+
}
215217
avoidPts->Add(&b);
216218

217219
l.Clear();

0 commit comments

Comments
 (0)