Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Dec 11, 2024
1 parent a827871 commit 5baa367
Showing 1 changed file with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions test/boolean_complex_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,17 +1026,12 @@ TEST(BooleanComplex, DISABLED_OffsetTriangulationFailure) {
std::string dir = file.substr(0, file.rfind('/'));
Manifold a, b;
std::ifstream f;
try {
f.open(dir + "/models/Offset1.obj");
a = Manifold::ImportMeshGL64(f);
f.close();
f.open(dir + "/models/Offset2.obj");
b = Manifold::ImportMeshGL64(f);
f.close();
} catch (std::exception& err) {
std::cout << err.what() << std::endl;
FAIL();
}
f.open(dir + "/models/Offset1.obj");
a = Manifold::ImportMeshGL64(f);
f.close();
f.open(dir + "/models/Offset2.obj");
b = Manifold::ImportMeshGL64(f);
f.close();
Manifold result = a + b;
EXPECT_EQ(result.Status(), Manifold::Error::NoError);
ManifoldParams().intermediateChecks = intermediateChecks;
Expand All @@ -1049,23 +1044,16 @@ TEST(BooleanComplex, DISABLED_OffsetSelfIntersect) {
std::string dir = file.substr(0, file.rfind('/'));
Manifold a, b;
std::ifstream f;
try {
f.open(dir + "/models/Offset3.obj");
a = Manifold::ImportMeshGL64(f);
f.close();
f.open(dir + "/models/Offset4.obj");
b = Manifold::ImportMeshGL64(f);
f.close();
} catch (std::exception& err) {
std::cout << err.what() << std::endl;
FAIL();
}
f.open(dir + "/models/Offset3.obj");
a = Manifold::ImportMeshGL64(f);
f.close();
f.open(dir + "/models/Offset4.obj");
b = Manifold::ImportMeshGL64(f);
f.close();

Manifold result = a + b;
EXPECT_EQ(result.Status(), Manifold::Error::NoError);
ManifoldParams().intermediateChecks = intermediateChecks;

ManifoldParams().intermediateChecks = intermediateChecks;
}

#endif

0 comments on commit 5baa367

Please sign in to comment.