Skip to content

Commit

Permalink
Fix perf test (#575)
Browse files Browse the repository at this point in the history
do translate the sphere
  • Loading branch information
sloriot authored Oct 10, 2023
1 parent d51ee70 commit 062399c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extras/perf_test_cgal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ void manifoldToCGALSurfaceMesh(Manifold &manifold, TriangleMesh &cgalMesh) {
int main(int argc, char **argv) {
for (int i = 0; i < 8; ++i) {
Manifold sphere = Manifold::Sphere(1, (8 << i) * 4);
Manifold sphere2 = sphere;
sphere2.Translate(glm::vec3(0.5));
Manifold sphere2 = sphere.Translate(glm::vec3(0.5));

TriangleMesh cgalSphere, cgalSphere2, cgalOut;
TriangleMesh cgalSphere, cgalSphere2;
manifoldToCGALSurfaceMesh(sphere, cgalSphere);
manifoldToCGALSurfaceMesh(sphere2, cgalSphere2);

Expand Down

0 comments on commit 062399c

Please sign in to comment.