Blender Git Loki
Git Commits -> Revision 65df2fd
Revision 65df2fd by Campbell Barton (master) June 12, 2016, 05:12 (GMT) |
bmesh py api: expose BM_face_calc_tangent_* D1988 by @wisaac, with own edits and improvements. This improves on existing tangent calculation functions too. - BM_face_calc_tangent_auto: Chooses method based on number of sides, used by manipulator (not exposed to Python). - BM_face_calc_tangent_edge: from longest edge. - BM_face_calc_tangent_edge_pair: from longest edge-pair (most useful with quads). - BM_face_calc_tangent_edge_diagonal: edge farthest from any vertex. - BM_face_calc_tangent_vert_diagonal: vert farthest from any vertex. Also optimize BM_vert_tri_calc_tangent_edge* functions to avoid sqrt. |
Commit Details:
Full Hash: 65df2fd9976178c98db5401ff4e965047e35afdb
Parent Commit: 421ec97
Lines Changed: +308, -29
5 Modified Paths:
/source/blender/bmesh/intern/bmesh_marking.c (+1, -1) (Diff)
/source/blender/bmesh/intern/bmesh_polygon.c (+218, -24) (Diff)
/source/blender/bmesh/intern/bmesh_polygon.h (+7, -2) (Diff)
/source/blender/editors/transform/transform_orientations.c (+2, -2) (Diff)
/source/blender/python/bmesh/bmesh_py_types.c (+80, -0) (Diff)
/source/blender/bmesh/intern/bmesh_polygon.c (+218, -24) (Diff)
/source/blender/bmesh/intern/bmesh_polygon.h (+7, -2) (Diff)
/source/blender/editors/transform/transform_orientations.c (+2, -2) (Diff)
/source/blender/python/bmesh/bmesh_py_types.c (+80, -0) (Diff)