I'm using the Scikit Image implementation of the marching cubes algorithm to generate an isosurface.
verts, faces,normals,values = measure.marching_cubes(stack,0)
generates the following error:
ValueError: need more than 2 values to unpack
but
verts, faces = measure.marching_cubes(stack,0)
works fine so it seems the algorithm is simply not generating the values for normals
and values
. Has anyone had any experience with this type of issue?
Furthermore, I don't understand the need for the faces
output of the algorithm, as a set of 3 vertices for each triangle in the mesh should be sufficient to describe the isosurface?