From fb9cfe928c9338369d29b092ea0ff9dd0d6f42af Mon Sep 17 00:00:00 2001 From: pca006132 Date: Sun, 5 Jun 2022 21:53:52 +0800 Subject: [PATCH] fixed perf_test error --- tools/perf_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf_test.cpp b/tools/perf_test.cpp index 2ad385a6b..c2ac36538 100644 --- a/tools/perf_test.cpp +++ b/tools/perf_test.cpp @@ -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 elapsed = end - start; std::cout << "nTri = " << sphere.NumTri() << ", time = " << elapsed.count()