This commit is contained in:
David Williams 2011-02-10 23:56:33 +00:00
parent 81d2bb6408
commit 9b3deca7f0

View File

@ -502,7 +502,7 @@ int main(int argc, char *argv[])
openGLWidget.show();
//Create an empty volume and then place a sphere in it
Volume<MaterialDensityPair44> volData(4096, 4096, 256);
Volume<MaterialDensityPair44> volData(256, 256, 256);
//createSphereInVolume(volData, 30);
createPerlinTerrain(volData);
//createPerlinVolumeSlow(volData);
@ -522,12 +522,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();