Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Dec 9, 2024
1 parent 91dd727 commit 77c9069
Show file tree
Hide file tree
Showing 5 changed files with 8,483 additions and 121 deletions.
9 changes: 6 additions & 3 deletions test/boolean_complex_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1020,16 +1020,18 @@ TEST(BooleanComplex, SimpleOffset) {
EXPECT_EQ(c.Status(), Manifold::Error::NoError);
}

TEST(BooleanComplex, UnionDifferenceSelfIntersect) {
TEST(BooleanComplex, OffsetTriangulationFailure) {
const bool intermediateChecks = ManifoldParams().intermediateChecks;
ManifoldParams().intermediateChecks = true;
std::string file = __FILE__;
std::string dir = file.substr(0, file.rfind('/'));
MeshGL64 a, b;
std::ifstream f;
try {
f.open(dir + "/models/UnionDifference1.obj");
f.open(dir + "/models/Offset1.obj");
a = ImportMeshGL64(f);
f.close();
f.open(dir + "/models/UnionDifference2.obj");
f.open(dir + "/models/Offset2.obj");
b = ImportMeshGL64(f);
f.close();
} catch (std::exception& err) {
Expand All @@ -1040,6 +1042,7 @@ TEST(BooleanComplex, UnionDifferenceSelfIntersect) {
Manifold y(b);
Manifold result = x + y;
EXPECT_EQ(result.Status(), Manifold::Error::NoError);
ManifoldParams().intermediateChecks = intermediateChecks;
}

#endif
Loading

0 comments on commit 77c9069

Please sign in to comment.