tmp update
This commit is contained in:
parent
2fd26a4336
commit
572d683fda
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user