Skip to content

Commit

Permalink
fixed perf_test error
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Jun 5, 2022
1 parent 19dc9de commit 46376d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/perf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ using namespace manifold;
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));
auto start = std::chrono::high_resolution_clock::now();
Manifold diff = sphere - sphere2;
diff.NumTri();
auto end = std::chrono::high_resolution_clock::now();
std::chrono::duration<double> elapsed = end - start;
std::cout << "nTri = " << sphere.NumTri() << ", time = " << elapsed.count()
Expand Down

0 comments on commit 46376d5

Please sign in to comment.