diff --git a/delaunay.h b/delaunay.h index afa0846..d5638b7 100644 --- a/delaunay.h +++ b/delaunay.h @@ -197,7 +197,7 @@ void make_delaunay(triangle *t) dist = (t->cx - n_vert->x) * (t->cx - n_vert->x) + (t->cy - n_vert->y) * (t->cy - n_vert->y); - if ((dist - t->cr) <= ZERO) // need to be flipped + if ((dist - t->cr) < -1.0*ZERO) // need to be flipped { flip_neighboring_triangles(t, n_tri, n, v); // Make sure the triangles also meet the empty circumcircle condition after flipping