Split 'decode()' function into several variants so it's not so heavily overloaded.

This commit is contained in:
David Williams
2014-07-24 16:55:11 +02:00
parent 98e722271e
commit bfa14a32df
8 changed files with 18 additions and 19 deletions

View File

@ -128,7 +128,7 @@ int main(int argc, char *argv[])
auto mesh = extractMarchingCubesMesh(&volData, regToExtract);
// The returned mesh needs to be decoded to be appropriate for GPU rendering.
auto decodedMesh = decode(mesh);
auto decodedMesh = decodeMesh(mesh);
// Pass the surface to the OpenGL window. Note that we are also passing an offset in this multi-mesh example. This is because
// the surface extractors return a mesh with 'local space' positions to reduce storage requirements and precision problems.