From 6529d20d79a5e55696a2fa48150055d3e4a942dd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 12 Jun 2019 09:04:10 +1000 Subject: Cleanup: spelling in comments --- source/blender/bmesh/intern/bmesh_marking.c | 2 +- source/blender/bmesh/intern/bmesh_mesh.c | 6 +++--- source/blender/bmesh/intern/bmesh_operators.c | 2 +- source/blender/bmesh/intern/bmesh_query.c | 4 ++-- source/blender/bmesh/intern/bmesh_walkers.c | 5 ++--- source/blender/bmesh/intern/bmesh_walkers.h | 2 -- 6 files changed, 9 insertions(+), 12 deletions(-) (limited to 'source/blender/bmesh/intern') diff --git a/source/blender/bmesh/intern/bmesh_marking.c b/source/blender/bmesh/intern/bmesh_marking.c index 579fbbdc05e..bb55365f619 100644 --- a/source/blender/bmesh/intern/bmesh_marking.c +++ b/source/blender/bmesh/intern/bmesh_marking.c @@ -856,7 +856,7 @@ void BM_editselection_normal(BMEditSelection *ese, float r_normal[3]) add_v3_v3v3(r_normal, eed->v1->no, eed->v2->no); sub_v3_v3v3(plane, eed->v2->co, eed->v1->co); - /* the 2 vertex normals will be close but not at rightangles to the edge + /* the 2 vertex normals will be close but not at right angles to the edge * for rotate about edge we want them to be at right angles, so we need to * do some extra calculation to correct the vert normals, * we need the plane for this */ diff --git a/source/blender/bmesh/intern/bmesh_mesh.c b/source/blender/bmesh/intern/bmesh_mesh.c index a35d10db697..dc42d86d800 100644 --- a/source/blender/bmesh/intern/bmesh_mesh.c +++ b/source/blender/bmesh/intern/bmesh_mesh.c @@ -368,7 +368,7 @@ typedef struct BMVertsCalcNormalsData { const float (*edgevec)[3]; const float (*vcos)[3]; - /* Read-write data, protected by an atomic-based fake spinlock-like system... */ + /* Read-write data, protected by an atomic-based fake spin-lock like system. */ float (*vnos)[3]; } BMVertsCalcNormalsData; @@ -412,7 +412,7 @@ static void mesh_verts_calc_normals_accum_cb(void *userdata, MempoolIterData *mp float *v_no = data->vnos ? data->vnos[BM_elem_index_get(l_iter->v)] : l_iter->v->no; /* This block is a lockless threadsafe madd_v3_v3fl. - * It uses the first float of the vector as a sort of cheap spinlock, + * It uses the first float of the vector as a sort of cheap spin-lock, * assuming FLT_MAX is a safe 'illegal' value that cannot be set here otherwise. * It also assumes that collisions between threads are highly unlikely, * else performances would be quite bad here. */ @@ -617,7 +617,7 @@ static void bm_mesh_edges_sharp_tag(BMesh *bm, else if (do_sharp_edges_tag) { /* Note that we do not care about the other sharp-edge cases * (sharp poly, non-manifold edge, etc.), - * only tag edge as sharp when it is due to angle threashold. */ + * only tag edge as sharp when it is due to angle threshold. */ BM_elem_flag_disable(e, BM_ELEM_SMOOTH); } } diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c index 2ec3ba4b91c..2534a8c35ad 100644 --- a/source/blender/bmesh/intern/bmesh_operators.c +++ b/source/blender/bmesh/intern/bmesh_operators.c @@ -1739,7 +1739,7 @@ static int BMO_opcode_from_opname_check(const char *opname) * * \note The common v/e/f suffix can be mixed, * so `avef` is can be used for all verts, edges and faces. - * Order is not important so `Hfev` is also valid (all unflagged verts, edges and faces). + * Order is not important so `Hfev` is also valid (all un-flagged verts, edges and faces). */ bool BMO_op_vinitf(BMesh *bm, BMOperator *op, const int flag, const char *_fmt, va_list vlist) diff --git a/source/blender/bmesh/intern/bmesh_query.c b/source/blender/bmesh/intern/bmesh_query.c index 479dc99beee..4a47bcccb25 100644 --- a/source/blender/bmesh/intern/bmesh_query.c +++ b/source/blender/bmesh/intern/bmesh_query.c @@ -1512,7 +1512,7 @@ float BM_loop_calc_face_normal_safe_ex(const BMLoop *l, const float epsilon_sq, { /* Note: we cannot use result of normal_tri_v3 here to detect colinear vectors * (vertex on a straight line) from zero value, - * because it does not normalize both vectors before making crossproduct. + * because it does not normalize both vectors before making cross-product. * Instead of adding two costly normalize computations, * just check ourselves for colinear case. */ /* Note: FEPSILON might need some finer tweaking at some point? @@ -1529,7 +1529,7 @@ float BM_loop_calc_face_normal_safe_ex(const BMLoop *l, const float epsilon_sq, mul_v3_v3fl(v_tmp, v2, fac); sub_v3_v3(v_tmp, v1); if (fac != 0.0f && !is_zero_v3(v1) && len_squared_v3(v_tmp) > epsilon_sq) { - /* Not co-linear, we can compute crossproduct and normalize it into normal. */ + /* Not co-linear, we can compute cross-product and normalize it into normal. */ cross_v3_v3v3(r_normal, v1, v2); return normalize_v3(r_normal); } diff --git a/source/blender/bmesh/intern/bmesh_walkers.c b/source/blender/bmesh/intern/bmesh_walkers.c index b850c87d5aa..05ae8c940af 100644 --- a/source/blender/bmesh/intern/bmesh_walkers.c +++ b/source/blender/bmesh/intern/bmesh_walkers.c @@ -64,9 +64,8 @@ void *BMW_begin(BMWalker *walker, void *start) /** * \brief Init Walker * - * Allocates and returns a new mesh walker of - * a given type. The elements visited are filtered - * by the bitmask 'searchmask'. + * Allocates and returns a new mesh walker of a given type. + * The elements visited are filtered by the bitmask 'searchmask'. */ void BMW_init(BMWalker *walker, BMesh *bm, diff --git a/source/blender/bmesh/intern/bmesh_walkers.h b/source/blender/bmesh/intern/bmesh_walkers.h index 54cfccb9ed8..0b862a5e9a1 100644 --- a/source/blender/bmesh/intern/bmesh_walkers.h +++ b/source/blender/bmesh/intern/bmesh_walkers.h @@ -68,8 +68,6 @@ typedef struct BMWalker { /* define to make BMW_init more clear */ #define BMW_MASK_NOP 0 -/* initialize a walker. searchmask restricts some (not all) walkers to - * elements with a specific tool flag set. flags is specific to each walker.*/ void BMW_init(struct BMWalker *walker, BMesh *bm, int type, -- cgit v1.2.3