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-11 23:09:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-11 23:09:01 +0400
commitc21c58f44c16b3d503d81577c1943f1f4b47b675 (patch)
tree1cb0bc60de38cd96f67f196e9c71f096b9c2c691 /source/blender/bmesh/operators/bmo_join_triangles.c
parent65895a2a383738d6edf0d82b428483065d672305 (diff)
style cleanup, also remove unused externs.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_join_triangles.c')
-rw-r--r--source/blender/bmesh/operators/bmo_join_triangles.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/bmesh/operators/bmo_join_triangles.c b/source/blender/bmesh/operators/bmo_join_triangles.c
index 1d8b77e9300..dda3e144220 100644
--- a/source/blender/bmesh/operators/bmo_join_triangles.c
+++ b/source/blender/bmesh/operators/bmo_join_triangles.c
@@ -50,13 +50,13 @@
static float measure_facepair(BMesh *UNUSED(bm), BMVert *v1, BMVert *v2,
BMVert *v3, BMVert *v4, float limit)
{
- /* gives a 'weight' to a pair of triangles that join an edge to decide how good a join they would mak */
+ /* gives a 'weight' to a pair of triangles that join an edge to decide how good a join they would make */
/* Note: this is more complicated than it needs to be and should be cleaned up.. */
float n1[3], n2[3], measure = 0.0f, angle1, angle2, diff;
float edgeVec1[3], edgeVec2[3], edgeVec3[3], edgeVec4[3];
float minarea, maxarea, areaA, areaB;
- /* First Test: Normal differenc */
+ /* First Test: Normal difference */
normal_tri_v3(n1, v1->co, v2->co, v3->co);
normal_tri_v3(n2, v1->co, v3->co, v4->co);
@@ -74,7 +74,7 @@ static float measure_facepair(BMesh *UNUSED(bm), BMVert *v1, BMVert *v2,
return measure;
}
- /* Second test: Colinearit */
+ /* Second test: Colinearity */
sub_v3_v3v3(edgeVec1, v1->co, v2->co);
sub_v3_v3v3(edgeVec2, v2->co, v3->co);
sub_v3_v3v3(edgeVec3, v3->co, v4->co);
@@ -95,7 +95,7 @@ static float measure_facepair(BMesh *UNUSED(bm), BMVert *v1, BMVert *v2,
return measure;
}
- /* Third test: Concavit */
+ /* Third test: Concavity */
areaA = area_tri_v3(v1->co, v2->co, v3->co) + area_tri_v3(v1->co, v3->co, v4->co);
areaB = area_tri_v3(v2->co, v3->co, v4->co) + area_tri_v3(v4->co, v1->co, v2->co);
@@ -176,7 +176,9 @@ static int compareFaceAttribs(BMesh *bm, BMEdge *e, int douvs, int dovcols)
/* do UV */
if (luv1 && douvs) {
- if (tp1->tpage != tp2->tpage); /* do nothin */
+ if (tp1->tpage != tp2->tpage) {
+ /* do nothing */
+ }
else {
int i;