Work on more compact version of MarchingCubesVertex.

This commit is contained in:
David Williams
2014-05-29 09:53:16 +02:00
parent e9ba998f2f
commit 85c5686ff9
3 changed files with 13 additions and 6 deletions

View File

@ -127,8 +127,11 @@ int main(int argc, char *argv[])
// Perform the extraction for this region of the volume
auto mesh = extractMarchingCubesMesh(&volData, regToExtract);
// The returned mesh needs to be decoded to be appropriate for GPU rendering.
auto decodedMesh = decode(mesh);
//Pass the surface to the OpenGL window
openGLWidget.addMesh(mesh, Vector3DInt32(x, y, z));
openGLWidget.addMesh(decodedMesh, Vector3DInt32(x, y, z));
meshCounter++;
}