From e2051ed71314368a7f3e141dd565f3dd42b2a9c2 Mon Sep 17 00:00:00 2001 From: David Williams Date: Mon, 18 Aug 2014 21:25:29 +0200 Subject: [PATCH] Tweaks to cubic surface tests. --- tests/TestCubicSurfaceExtractor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/TestCubicSurfaceExtractor.cpp b/tests/TestCubicSurfaceExtractor.cpp index 33d477e7..ccc47a22 100644 --- a/tests/TestCubicSurfaceExtractor.cpp +++ b/tests/TestCubicSurfaceExtractor.cpp @@ -121,18 +121,18 @@ void TestCubicSurfaceExtractor::testBehaviour() void TestCubicSurfaceExtractor::testEmptyVolumePerformance() { - auto emptyVol = createAndFillVolumeWithNoise< RawVolume >(32, 0, 0); + auto emptyVol = createAndFillVolumeWithNoise< SimpleVolume >(128, 0, 0); CubicMesh< uint32_t, uint16_t > emptyMesh; - QBENCHMARK{ extractCubicMeshCustom(emptyVol, emptyVol->getEnclosingRegion(), &emptyMesh); } + QBENCHMARK{ extractCubicMeshCustom(emptyVol, Region(32, 32, 32, 63, 63, 63), &emptyMesh); } QCOMPARE(emptyMesh.getNoOfVertices(), uint16_t(0)); } void TestCubicSurfaceExtractor::testNoiseVolumePerformance() { - auto noiseVol = createAndFillVolumeWithNoise< RawVolume >(32, 0, 1); + auto noiseVol = createAndFillVolumeWithNoise< SimpleVolume >(128, 0, 2); CubicMesh< uint32_t, uint16_t > noiseMesh; - QBENCHMARK{ extractCubicMeshCustom(noiseVol, noiseVol->getEnclosingRegion(), &noiseMesh); } - QCOMPARE(noiseMesh.getNoOfVertices(), uint16_t(28429)); + QBENCHMARK{ extractCubicMeshCustom(noiseVol, Region(32, 32, 32, 63, 63, 63), &noiseMesh); } + QCOMPARE(noiseMesh.getNoOfVertices(), uint16_t(57729)); } QTEST_MAIN(TestCubicSurfaceExtractor)