diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-09-11 11:53:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-09-11 12:31:02 +0400 |
commit | 149ca1320b183632921c5c06110ee910a768eb93 (patch) | |
tree | 61b3422d8fa743632e0b36f87fe41f029fc85467 /source/blender/bmesh/intern/bmesh_polygon.h | |
parent | 507af0085519542647a1c605c0a1cf9940f70555 (diff) |
Fix non-deterministic editmesh normal orientations
- selecting a boundary edge would randomly point in/outside the face (now point away).
- selecting 3 verts would use the first selected edge as the tangent (now use longest).
- selecting 1 vert betweem edges, uses the edges to define the tangent.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_polygon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.h b/source/blender/bmesh/intern/bmesh_polygon.h index bc0e7e832c8..91e649edb16 100644 --- a/source/blender/bmesh/intern/bmesh_polygon.h +++ b/source/blender/bmesh/intern/bmesh_polygon.h @@ -71,4 +71,6 @@ void BM_face_as_array_vert_quad(BMFace *f, BMVert *r_verts[4]) ATTR_NONNULL(); void BM_face_as_array_loop_tri(BMFace *f, BMLoop *r_loops[3]) ATTR_NONNULL(); void BM_face_as_array_loop_quad(BMFace *f, BMLoop *r_loops[4]) ATTR_NONNULL(); +void BM_vert_tri_calc_plane(BMVert *verts[3], float r_plane[3]); + #endif /* __BMESH_POLYGON_H__ */ |