Skip to content

Commit

Permalink
Reapply "Simplify with += syntax."
Browse files Browse the repository at this point in the history
OK, starting from a passing state, see if this works.

This reverts commit ba6027e.
  • Loading branch information
starseeker committed Oct 18, 2024
1 parent f215cbd commit 9a3dba3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/boolean_complex_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1062,10 +1062,8 @@ TEST(BooleanComplex, SimpleOffset) {
vec3 vpos(seeds.vertProperties[3 * i + 0], seeds.vertProperties[3 * i + 1],
seeds.vertProperties[3 * i + 2]);
Manifold vsph = sph.Translate(vpos);
manifold::Manifold left = c;
manifold::Manifold right(vsph);
if (!right.NumTri()) continue;
c = left.Boolean(right, manifold::OpType::Add);
if (!vsph.NumTri()) continue;
c += vsph;
// See above discussion
EXPECT_EQ(c.Status(), Manifold::Error::NoError);
}
Expand All @@ -1090,8 +1088,7 @@ TEST(BooleanComplex, SimpleOffset) {
origin_cyl.Transform(manifold::RotateUp(evec));
manifold::Manifold right = rotated_cyl.Translate(ev1);
if (!right.NumTri()) continue;
manifold::Manifold left = c;
c = left.Boolean(right, manifold::OpType::Add);
c += right;
// See above discussion
EXPECT_EQ(c.Status(), Manifold::Error::NoError);
}
Expand Down Expand Up @@ -1185,10 +1182,9 @@ TEST(BooleanComplex, SimpleOffset) {
tri_m.vertProperties.insert(tri_m.vertProperties.end(), pts[j]);
for (int j = 0; j < 24; j++)
tri_m.triVerts.insert(tri_m.triVerts.end(), faces[j]);
manifold::Manifold left = c;
manifold::Manifold right(tri_m);
if (!right.NumTri()) continue;
c = left.Boolean(right, manifold::OpType::Add);
c += right;
// See above discussion
EXPECT_EQ(c.Status(), Manifold::Error::NoError);
}
Expand Down

0 comments on commit 9a3dba3

Please sign in to comment.