From 347028199c4fe65ca41904b27327d3f173b3eb04 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 11 May 2014 16:27:38 +0200 Subject: [PATCH] Paging example now also uses free-function surface extractor. --- examples/Paging/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/Paging/main.cpp b/examples/Paging/main.cpp index 27236afd..64b2e9c6 100644 --- a/examples/Paging/main.cpp +++ b/examples/Paging/main.cpp @@ -186,11 +186,7 @@ int main(int argc, char *argv[]) std::cout << "Compression ratio: 1 to " << (1.0/(volData.calculateCompressionRatio())) << std::endl; //Extract the surface - SurfaceMesh mesh; - CubicSurfaceExtractorWithNormals< LargeVolume > surfaceExtractor(&volData, reg, &mesh); - //MarchingCubesSurfaceExtractor< LargeVolume > surfaceExtractor(&volData, reg, &mesh); - //CubicSurfaceExtractorWithNormals surfaceExtractor(&volData, reg, &mesh); - surfaceExtractor.execute(); + auto mesh = extractMarchingCubesSurface(&volData, reg); std::cout << "#vertices: " << mesh.getNoOfVertices() << std::endl; //Pass the surface to the OpenGL window