tmp update

This commit is contained in:
张壹 2021-11-12 20:53:28 +08:00
parent 2fd26a4336
commit 572d683fda

View File

@ -197,7 +197,7 @@ void make_delaunay(triangle *t)
dist = (t->cx - n_vert->x) * (t->cx - n_vert->x) + dist = (t->cx - n_vert->x) * (t->cx - n_vert->x) +
(t->cy - n_vert->y) * (t->cy - n_vert->y); (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); flip_neighboring_triangles(t, n_tri, n, v);
// Make sure the triangles also meet the empty circumcircle condition after flipping // Make sure the triangles also meet the empty circumcircle condition after flipping