I'm using the Scikit Image implementation of the marching cubes algorithm to generate an isosurface.
verts, faces = measure.marching_cubes(stack,10)
Creates an isosurface of value 10 of the image stack stack
, and outputs the vertex data to verts
, and face data to `faces.
The format of the output arrays for verts
and faces
is of the form (n,3)
where n is the number of the vertex/face and the three columns correspond to coordinates.
Does anyone know how these output arrays are indexed? What determines the order in which they are registered in the array? Also, why is the faces
array needed, as the knowledge of the vertices alone should be enough to construct the isosurface?