diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-12-17 11:51:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-12-17 11:58:23 +0300 |
commit | 15bde0dbeac81d2fa9f4822753963a3e377ff191 (patch) | |
tree | 3e93406698b63f24933237a734d7359636920093 /source/blender/bmesh/tools/bmesh_beautify.c | |
parent | 3e61478b1be7b11b11fbccc37d6d64c99f354717 (diff) |
Docs: comments (hash table & beauty fill)
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_beautify.c')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_beautify.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/bmesh/tools/bmesh_beautify.c b/source/blender/bmesh/tools/bmesh_beautify.c index a5b60268b8e..1c6dc6f5c0e 100644 --- a/source/blender/bmesh/tools/bmesh_beautify.c +++ b/source/blender/bmesh/tools/bmesh_beautify.c @@ -125,9 +125,6 @@ static void erot_state_alternate(const BMEdge *e, EdRotState *e_state) /* -------------------------------------------------------------------- */ /* Calculate the improvement of rotating the edge */ -/** - * \return a negative value means the edge can be rotated. - */ static float bm_edge_calc_rotate_beauty__area( const float v1[3], const float v2[3], const float v3[3], const float v4[3]) { @@ -272,6 +269,12 @@ static float bm_edge_calc_rotate_beauty__angle( return FLT_MAX; } +/** + * Assuming we have 2 triangles sharing an edge (2 - 4), + * check if the edge running from (1 - 3) gives better results. + * + * \return (negative number means the edge can be rotated, lager == better). + */ float BM_verts_calc_rotate_beauty( const BMVert *v1, const BMVert *v2, const BMVert *v3, const BMVert *v4, const short flag, const short method) |