Skip to content

Commit

Permalink
smaller example
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Dec 9, 2024
1 parent 67303dd commit f4c6cc3
Show file tree
Hide file tree
Showing 3 changed files with 1,254 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/boolean_complex_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1045,4 +1045,29 @@ TEST(BooleanComplex, DISABLED_OffsetTriangulationFailure) {
ManifoldParams().intermediateChecks = intermediateChecks;
}

TEST(BooleanComplex, DISABLED_OffsetSelfIntersect) {
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/Offset3.obj");
a = ImportMeshGL64(f);
f.close();
f.open(dir + "/models/Offset4.obj");
b = ImportMeshGL64(f);
f.close();
} catch (std::exception& err) {
std::cout << err.what() << std::endl;
FAIL();
}
Manifold x(a);
Manifold y(b);
Manifold result = x + y;
EXPECT_EQ(result.Status(), Manifold::Error::NoError);
ManifoldParams().intermediateChecks = intermediateChecks;
}

#endif
Loading

0 comments on commit f4c6cc3

Please sign in to comment.