Closed bmmeijers closed 10 years ago
With zero based indexing and all comments removed, it segfaults even earlier:
6 3 0 0
0 0 0 0
1 0 1 0
2 1 0 0
3 0 1 1
4 0 0 1
5 1 0 1
5 0
1
3 0 1 2
1
3 3 4 5
1
4 0 4 3 1
1
4 0 2 5 4
1
4 2 1 3 5
0
0
Output:
$ ./val3dity /tmp/one.poly
Reading 1 file(s).
Reading outer shell: /tmp/one.poly
Validating surface in 2D with GEOS (their projection)
Segmentation fault
Fixed. The # of holes is not mandatory, so you were right not to put it for your file. Now the code handles with or without, and should recover from spaces also between and after.
With simple input file, val3dity on Linux segfaults (although I am not sure what is wrong, the input file is dealt with properly by tetgen 1.5.0).
And the input file contents: