From d0d9fee36e997d1578a424e49edacb8db202f863 Mon Sep 17 00:00:00 2001 From: "Josh Warner (Mac)" Date: Sun, 1 Sep 2013 20:49:58 -0500 Subject: [PATCH] DOC: Minor documentation formatting fixes in marching cubes --- skimage/measure/_marching_cubes.py | 6 +++--- skimage/measure/_marching_cubes_cy.pyx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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