mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Introduced error checking at the end of the tesselation to be sure if it is worth continuing.
This commit is contained in:
parent
765ba3b500
commit
92ce95f5d2
1 changed files with 5 additions and 0 deletions
|
@ -277,6 +277,11 @@ int main(int argc, char *argv[]) {
|
|||
/* Do tesselation*/
|
||||
printf("File read. Tessellating ...\n"); fflush(stdout);
|
||||
exitcode = delaunadj(parts, nvp, nvpbuf, nvpall, &adjs);
|
||||
if (exitcode != 0)
|
||||
{
|
||||
printf("Error while tesselating. Stopping here."); fflush(stdout);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* Now calculate volumes*/
|
||||
printf("Now finding volumes ...\n"); fflush(stdout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue