Scikit Image Marching Cubes Output

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?


From the documentation:

The output is a triangular mesh consisting of a set of unique vertices and connecting triangles. The order of these vertices and triangles in the output list is determined by the position of the smallest x,y,z (in lexicographical order) coordinate in the contour. This is a side-effect of how the input array is traversed, but can be relied upon.

链接地址: http://www.djcxy.com/p/37258.html

上一篇: 对称双射弦算法?

下一篇: Scikit Image Marching Cubes输出