From 92ce95f5d2e8a422bbfa2577d9c627f1a301874b Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sat, 30 Mar 2013 15:56:34 -0400 Subject: [PATCH] Introduced error checking at the end of the tesselation to be sure if it is worth continuing. --- zobov/voz1b1.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zobov/voz1b1.c b/zobov/voz1b1.c index c497a23..17d9e22 100644 --- a/zobov/voz1b1.c +++ b/zobov/voz1b1.c @@ -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);