diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-29 15:04:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-29 15:06:26 +0300 |
commit | ee192a35e8a0122e39c3d4d12eb62a2e26344ca7 (patch) | |
tree | ca2fcb25ca59c1cac73d53f579d56e8b88ee1dce /source/blender/bmesh/operators/bmo_normals.c | |
parent | d17e07274ab376ce518c132e36ebc44e4c4fccb4 (diff) |
Cleanup: comments (long lines) in bmesh
Diffstat (limited to 'source/blender/bmesh/operators/bmo_normals.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_normals.c | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/source/blender/bmesh/operators/bmo_normals.c b/source/blender/bmesh/operators/bmo_normals.c index ee55165244b..b24afc0f8e6 100644 --- a/source/blender/bmesh/operators/bmo_normals.c +++ b/source/blender/bmesh/operators/bmo_normals.c @@ -44,7 +44,8 @@ static bool bmo_recalc_normal_loop_filter_cb(const BMLoop *l, void *UNUSED(user_ * This uses a more comprehensive test to see if the furthest face from the center * is pointing towards the center or not. * - * A simple test could just check the dot product of the faces-normal and the direction from the center, + * A simple test could just check the dot product + * of the faces-normal and the direction from the center, * however this can fail for faces which make a sharp spike. eg: * * <pre> @@ -67,7 +68,8 @@ static bool bmo_recalc_normal_loop_filter_cb(const BMLoop *l, void *UNUSED(user_ */ /** - * \return a face index in \a faces and set \a r_is_flip if the face is flipped away from the center. + * \return a face index in \a faces and set \a r_is_flip + * if the face is flipped away from the center. */ static int recalc_face_normals_find_index(BMesh *bm, BMFace **faces, @@ -83,16 +85,23 @@ static int recalc_face_normals_find_index(BMesh *bm, int f_start_index; int i; - /* Search for the best loop. Members are compared in-order defined here. */ + /** Search for the best loop. Members are compared in-order defined here. */ struct { - /* Squared distance from the center to the loops vertex 'l->v'. - * The normalized direction between the center and this vertex is also used for the dot-products below. */ + /** + * Squared distance from the center to the loops vertex 'l->v'. + * The normalized direction between the center and this vertex + * is also used for the dot-products below. + */ float dist_sq; - /* Signed dot product using the normalized edge vector, - * (best of 'l->prev->v' or 'l->next->v'). */ + /** + * Signed dot product using the normalized edge vector, + * (best of 'l->prev->v' or 'l->next->v'). + */ float edge_dot; - /* Unsigned dot product using the loop-normal - * (sign is used to check if we need to flip) */ + /** + * Unsigned dot product using the loop-normal + * (sign is used to check if we need to flip). + */ float loop_dot; } best, test; @@ -247,13 +256,14 @@ static void bmo_recalc_face_normals_array(BMesh *bm, } } -/* - * put normal to the outside, and set the first direction flags in edges +/** + * Put normal to the outside, and set the first direction flags in edges * - * then check the object, and set directions / direction-flags: but only for edges with 1 or 2 faces - * this is in fact the 'select connected' + * then check the object, and set directions / direction-flags: + * but only for edges with 1 or 2 faces this is in fact the 'select connected' * - * in case all faces were not done: start over with 'find the ultimate ...' */ + * in case all faces were not done: start over with 'find the ultimate ...'. + */ void bmo_recalc_face_normals_exec(BMesh *bm, BMOperator *op) { |