diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-09 22:28:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-09 22:28:30 +0400 |
commit | 89a963fb7fdff543b77de790355b9dac3019bd33 (patch) | |
tree | 4e1d2245e20f8c21625e99d771776f66c233a0de /source/blender/bmesh | |
parent | de4bd55e01bc574c13977537ace1a0901dcfcaf0 (diff) |
style cleanup: comment blocks
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/bmesh_class.h | 2 | ||||
-rw-r--r-- | source/blender/bmesh/intern/bmesh_polygon.c | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/source/blender/bmesh/bmesh_class.h b/source/blender/bmesh/bmesh_class.h index ed4e231edea..02953f84a22 100644 --- a/source/blender/bmesh/bmesh_class.h +++ b/source/blender/bmesh/bmesh_class.h @@ -217,7 +217,7 @@ enum { BM_ELEM_HIDDEN = (1 << 1), BM_ELEM_SEAM = (1 << 2), BM_ELEM_SMOOTH = (1 << 3), /* used for faces and edges, note from the user POV, - * this is a sharp edge when disabled */ + * this is a sharp edge when disabled */ BM_ELEM_TAG = (1 << 4), /* internal flag, used for ensuring correct normals * during multires interpolation, and any other time diff --git a/source/blender/bmesh/intern/bmesh_polygon.c b/source/blender/bmesh/intern/bmesh_polygon.c index 49a4df0fc9c..e3993b42f3f 100644 --- a/source/blender/bmesh/intern/bmesh_polygon.c +++ b/source/blender/bmesh/intern/bmesh_polygon.c @@ -103,16 +103,16 @@ static void compute_poly_normal(float normal[3], float (*verts)[3], int nverts) } #endif /* newell's method - - so thats?: - (a[1] - b[1]) * (a[2] + b[2]); - a[1] * b[2] - b[1] * a[2] - b[1] * b[2] + a[1] * a[2] - - odd. half of that is the cross product. . .what's the - other half? - - also could be like a[1] * (b[2] + a[2]) - b[1] * (a[2] - b[2]) - */ + * + * so thats?: + * (a[1] - b[1]) * (a[2] + b[2]); + * a[1] * b[2] - b[1] * a[2] - b[1] * b[2] + a[1] * a[2] + * + * odd. half of that is the cross product. . .what's the + * other half? + * + * also could be like a[1] * (b[2] + a[2]) - b[1] * (a[2] - b[2]) + */ n[0] += (u[1] - v[1]) * (u[2] + v[2]); n[1] += (u[2] - v[2]) * (u[0] + v[0]); @@ -126,12 +126,12 @@ static void compute_poly_normal(float normal[3], float (*verts)[3], int nverts) #if 0 l = len_v3(n); /* fast square root, newton/babylonian method: - l2 = l * 0.1; - - l2 = (l / l2 + l2) * 0.5; - l2 = (l / l2 + l2) * 0.5; - l2 = (l / l2 + l2) * 0.5; - */ + * l2 = l * 0.1; + * + * l2 = (l / l2 + l2) * 0.5; + * l2 = (l / l2 + l2) * 0.5; + * l2 = (l / l2 + l2) * 0.5; + */ if (l == 0.0) { normal[0] = 0.0f; |