Start of actual RLE compression.

This commit is contained in:
David Williams
2011-02-06 22:30:32 +00:00
parent 7be083a243
commit 4621ef8091
4 changed files with 68 additions and 7 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(128, 128, 128);
Volume<MaterialDensityPair44> volData(256, 256, 256);
//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();