DOC: Minor documentation formatting fixes in marching cubes

This commit is contained in:
Josh Warner (Mac)
2013-09-01 20:49:58 -05:00
parent 997339beae
commit d0d9fee36e
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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.
+2 -2
View File
@@ -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