diff --git a/skimage/measure/_marching_cubes.py b/skimage/measure/_marching_cubes.py index 6af60672..772c52f1 100644 --- a/skimage/measure/_marching_cubes.py +++ b/skimage/measure/_marching_cubes.py @@ -41,8 +41,8 @@ def marching_cubes(volume, level, sampling=(1., 1., 1.)): / | / | ^ z v4 ------ v3 | | / | v5 ----|- v6 |/ (note: NOT right handed!) - | / | / ----> x - |/ | / + | / | / ----> x + | / | / v1 ------ v2 Most notably, if v4, v8, v2, and v6 are all >= `level` (or any @@ -153,5 +153,5 @@ def mesh_surface_area(verts, tris): b = actual_verts[:, 0, :] - actual_verts[:, 2, :] del actual_verts - # Area of triangle = 1/2 * Euclidean norm of cross product + # Area of triangle in 3D = 1/2 * Euclidean norm of cross product return ((np.cross(a, b) ** 2).sum(axis=1) ** 0.5).sum() / 2. diff --git a/skimage/measure/_marching_cubes_cy.pyx b/skimage/measure/_marching_cubes_cy.pyx index 4343c1e5..a0f63d1c 100644 --- a/skimage/measure/_marching_cubes_cy.pyx +++ b/skimage/measure/_marching_cubes_cy.pyx @@ -94,8 +94,8 @@ def iterate_and_store_3d(double[:, :, ::1] arr, double level, # / | / | ^ z # v4 ------ v3 | | / # | v5 ----|- v6 |/ (note: NOT right handed!) - # | / | / ----> x - # |/ | / + # | / | / ----> x + # | / | / # v1 ------ v2 # # We also maintain the current 2D coordinates for v1, and ensure the array