Scikit Image Marching Cubes
<p>I'm using the Scikit Image implementation of the marching cubes algorithm to generate an isosurface. </p>

<pre><code>verts, faces,normals,values = measure.marching_cubes(stack,0)
</code></pre>

<p>generates the following error: </p>

<blockquote>
  <p>ValueError: need more than 2 values to unpack</p>
</blockquote>

<p>but </p>

<pre><code> verts, faces = measure.marching_cubes(stack,0)
</code></pre>

<p>works fine so it seems the algorithm is simply not generating the values for <code>normals</code> and <code>values</code>. Has anyone had any experience with this type of issue?</p>

<p>Furthermore, I don't understand the need for the <code>faces</code> output of the algorithm, as a set of 3 vertices for each triangle in the mesh should be sufficient to describe the isosurface?</p>

<p>The <a href="http://scikit-image.org/docs/dev/api/skimage.measure.html#marching-cubes" rel="nofollow">docs</a> of <code>marching_cubes</code> on the development version of scikit-image show that it should return <code>normals</code> and <code>values</code> as well. However it has only been introduced recently. They were not returned in version 0.12, as can be seen in the <a href="http://scikit-image.org/docs/0.12.x/api/skimage.measure.html#marching-cubes" rel="nofollow">docs from that version</a>. 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 <a href="http://scikit-image.org/docs/dev/install.html#running-the-development-version" rel="nofollow">here</a>.</p>

python mesh scikit-image marching-cubes