]> granicus.if.org Git - poly2tri-c/commitdiff
Fix a fatal bug in p2tr_cdt_insert_point_into_triangle
authorBarak Itkin <lightningismyname@gmail.com>
Sat, 19 May 2012 10:02:58 +0000 (13:02 +0300)
committerBarak Itkin <lightningismyname@gmail.com>
Sat, 19 May 2012 10:02:58 +0000 (13:02 +0300)
refine/cdt.c

index b2ecb7c42a95e9875a332935529aac9e399e332f..0cf46cf31fd0eb2aba62dbbc4765bccc9eccdcfd 100644 (file)
@@ -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;