Skip to content

Commit

Permalink
Move forgotten export ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffder committed Jul 13, 2023
1 parent bfd4fce commit b54fc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/manifold_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,6 @@ TEST(Manifold, PinchedVert) {
}

TEST(Manifold, Hull) {
#ifdef MANIFOLD_EXPORT
auto sphere = Manifold::Sphere(100, 36);
auto spheres = sphere + sphere.Translate({0, 0, 300});
auto tictac = spheres.Hull();
Expand All @@ -726,13 +725,14 @@ TEST(Manifold, Hull) {
};
auto cube = Manifold::Hull(cubePts);

#ifdef MANIFOLD_EXPORT
if (options.exportModels) {
ExportMesh("tictac_hull.glb", tictac.GetMesh(), {});
}
#endif

EXPECT_FLOAT_EQ(hollow.Hull().GetProperties().volume,
sphere.GetProperties().volume);
EXPECT_EQ(spheres.NumVert() / 2 + 36, tictac.NumVert());
EXPECT_FLOAT_EQ(cube.GetProperties().volume, 1);
#endif
}

0 comments on commit b54fc4b

Please sign in to comment.