More work on compression.

This commit is contained in:
David Williams
2011-02-07 21:34:57 +00:00
parent f13e9161f8
commit 23a56ed000
4 changed files with 47 additions and 35 deletions

View File

@ -421,7 +421,7 @@ int main(int argc, char *argv[])
openGLWidget.show();
//Create an empty volume and then place a sphere in it
Volume<MaterialDensityPair44> volData(1024, 1024, 1024);
Volume<MaterialDensityPair44> volData(128, 128, 128);
//createSphereInVolume(volData, 30);
createPerlinVolume(volData);
@ -439,12 +439,12 @@ int main(int argc, char *argv[])
}*/
//Extract the surface
/*SurfaceMesh<PositionMaterialNormal> mesh;
SurfaceMesh<PositionMaterialNormal> mesh;
CubicSurfaceExtractorWithNormals<MaterialDensityPair44> surfaceExtractor(&volData, volData.getEnclosingRegion(), &mesh);
surfaceExtractor.execute();
//Pass the surface to the OpenGL window
openGLWidget.setSurfaceMeshToRender(mesh);*/
openGLWidget.setSurfaceMeshToRender(mesh);
//Run the message pump.
return app.exec();