Skip to content

Commit

Permalink
Add test for self intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
stephomi committed Jul 21, 2023
1 parent a0baf4e commit 743f77b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Binary file added samples/models/self_intersectA.glb
Binary file not shown.
Binary file added samples/models/self_intersectB.glb
Binary file not shown.
9 changes: 9 additions & 0 deletions test/samples_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,12 @@ TEST(Samples, Sponge4) {
#endif
}
#endif

#ifdef MANIFOLD_EXPORT
TEST(Samples, SelfIntersect) {
Manifold m1 = ImportMesh("../samples/models/self_intersectA.glb");
Manifold m2 = ImportMesh("../samples/models/self_intersectB.glb");
Manifold res = m1 + m2;
res.GetMeshGL(); // test crash
}
#endif

0 comments on commit 743f77b

Please sign in to comment.