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