Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
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
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?
The docs of marching_cubes
on the development version of scikit-image show that it should return normals
and values
as well. However it has only been introduced recently. They were not returned in version 0.12, as can be seen in the docs from that version. To get them you'd have to update to the current development version. A guide on how to install the development version can be found here.
from Version 0.14 marching_cubes() has-been removed
skimage.measure.marching_cubes has been removed in favor of skimage.measure.marching_cubes_lewiner
so make sure which version you are using.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.