Skip to content
Snippets Groups Projects
Commit c4d08974 authored by Rainer Weinberger's avatar Rainer Weinberger
Browse files

bugfix in src/mesh/voronoi/voronoi_2d.c function FindTriangle; one of the special cases

parent f9787c56
No related branches found
No related tags found
No related merge requests found
......@@ -904,22 +904,22 @@ int FindTriangle(tessellation *T, int tt, int pp, int *degnerate_flag, int *next
if(flag1 < 0)
{
if(ind < 0)
ind = 0;
ind = 1;
else
{
if(get_random_number() < 0.5)
ind = 0;
ind = 1;
}
}
if(flag2 < 0)
{
if(ind < 0)
ind = 0;
ind = 2;
else
{
if(get_random_number() < 0.5)
ind = 0;
ind = 2;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment