Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-09 22:28:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-09 22:28:30 +0400
commit89a963fb7fdff543b77de790355b9dac3019bd33 (patch)
tree4e1d2245e20f8c21625e99d771776f66c233a0de /source/blender/bmesh/intern/bmesh_polygon.c
parentde4bd55e01bc574c13977537ace1a0901dcfcaf0 (diff)
style cleanup: comment blocks
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_polygon.c32
1 files changed, 16 insertions, 16 deletions
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;