Introduced error checking at the end of the tesselation to be sure if it is worth continuing.

This commit is contained in:
Guilhem Lavaux 2013-03-30 15:56:34 -04:00
parent 765ba3b500
commit 92ce95f5d2

View file

@ -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);