improved method of getting the tangent axis from a bmesh triangle,
authorCampbell Barton <ideasman42@gmail.com>
Thu, 4 Apr 2013 08:47:07 +0000 (08:47 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 4 Apr 2013 08:47:07 +0000 (08:47 +0000)
commit82636ab0fbbeeccd3ca76d6ceb7ab018445acbc1
tree381c3ecbb4894bf2ba10e17c977618686bd9d82b
parent66aed41d750a36b27f485829c10cfff74e9eb7ec
improved method of getting the tangent axis from a bmesh triangle,
rather then getting the longest edge, get the edge which which is most different from the 2 others ends up giving more useful results: for an isosceles triangle it returns the base weather its longer or shorter then the other sides.
source/blender/blenlib/BLI_math_vector.h
source/blender/blenlib/intern/math_vector.c
source/blender/bmesh/intern/bmesh_marking.c
source/blender/editors/transform/transform_manipulator.c