add tests for invalid meshes and adjust tolerance a bit to comply with some extreme cases

This commit is contained in:
konstantinos katrioplas 2017-07-10 21:54:10 +03:00
parent 250c652241
commit 9293646193
2 changed files with 4 additions and 2 deletions

View File

@ -527,7 +527,7 @@ private:
// check degenerate cases
double tolerance = 1e-5; // to think about it
double tolerance = 1e-3; // to think about it
if ( edge1.squared_length() < tolerance ||
edge2.squared_length() < tolerance ||

View File

@ -49,7 +49,9 @@ int main(int argc, char* argv[]){
"data/tetra3",
"data/tetra4",
"data/two_tris_collinear",
"data/U"
"data/U",
"data/elephant-invalid",
"data/mech-holes-shark-invalid"
};