From: Barak Itkin Date: Sat, 19 May 2012 10:02:58 +0000 (+0300) Subject: Fix a fatal bug in p2tr_cdt_insert_point_into_triangle X-Git-Tag: p2tc-0.1.0~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2ca82f2ba8bf0726b07150aac5d1a3ca27f1f6c;p=poly2tri-c Fix a fatal bug in p2tr_cdt_insert_point_into_triangle --- diff --git a/refine/cdt.c b/refine/cdt.c index b2ecb7c..0cf46cf 100644 --- a/refine/cdt.c +++ b/refine/cdt.c @@ -291,9 +291,9 @@ p2tr_cdt_insert_point_into_triangle (P2trCDT *self, P2trPoint *B = tri->edges[1]->end; P2trPoint *C = tri->edges[2]->end; - P2trEdge *CA = tri->edges[1]; - P2trEdge *AB = tri->edges[2]; - P2trEdge *BC = tri->edges[0]; + P2trEdge *CA = tri->edges[0]; + P2trEdge *AB = tri->edges[1]; + P2trEdge *BC = tri->edges[2]; P2trEdge *AP, *BP, *CP;