Skip to content

Commit

Permalink
Disable test cheating?
Browse files Browse the repository at this point in the history
  • Loading branch information
zalo committed Sep 17, 2024
1 parent 2dd5b8b commit d1f35e2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/boolean_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ TEST(Boolean, ConvexConvexMinkowski) {

TEST(Boolean, NonConvexConvexMinkowski) {
bool oldDeterministic = ManifoldParams().deterministic;
ManifoldParams().deterministic = true;
ManifoldParams().processOverlaps = true;
//ManifoldParams().deterministic = true;
//ManifoldParams().processOverlaps = true;

Manifold sphere = Manifold::Sphere(1.2, 20);
Manifold cube = Manifold::Cube({2.0, 2.0, 2.0}, true);
Expand All @@ -412,14 +412,14 @@ TEST(Boolean, NonConvexConvexMinkowski) {
ExportMesh("minkowski-nonconvex-convex.glb", sum.GetMeshGL(), {});
#endif

ManifoldParams().deterministic = oldDeterministic;
ManifoldParams().processOverlaps = false;
//ManifoldParams().deterministic = oldDeterministic;
//ManifoldParams().processOverlaps = false;
}

TEST(Boolean, NonConvexNonConvexMinkowski) {
bool oldDeterministic = ManifoldParams().deterministic;
ManifoldParams().deterministic = true;
ManifoldParams().processOverlaps = true;
//ManifoldParams().deterministic = true;
//ManifoldParams().processOverlaps = true;

Manifold tet = Manifold::Tetrahedron();
Manifold nonConvex = tet - tet.Rotate(0, 0, 90).Translate(vec3(1));
Expand All @@ -440,8 +440,8 @@ TEST(Boolean, NonConvexNonConvexMinkowski) {
ExportMesh("minkowski-nonconvex-nonconvex.glb", sum.GetMeshGL(), {});
#endif

ManifoldParams().deterministic = oldDeterministic;
ManifoldParams().processOverlaps = false;
//ManifoldParams().deterministic = oldDeterministic;
//ManifoldParams().processOverlaps = false;
}

/**
Expand Down

0 comments on commit d1f35e2

Please # to comment.