diff options
author | Joseph Eagar <joeedh@gmail.com> | 2011-04-15 05:19:13 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2011-04-15 05:19:13 +0400 |
commit | c98148a963d37fc2f25e125afeb4cf21df6fbf14 (patch) | |
tree | 691a051e27f08e35bf09d35b6fb9c88e4c37b8d2 /source/blender/blenkernel/intern/bvhutils.c | |
parent | 0bba684d08952d0be822f3906ffb2a03b2674cc2 (diff) | |
parent | fa63c297753636c149fbb1a3877d9b3d93601357 (diff) |
=bmesh= merge from trunk at r36153
Diffstat (limited to 'source/blender/blenkernel/intern/bvhutils.c')
-rw-r--r-- | source/blender/blenkernel/intern/bvhutils.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/bvhutils.c b/source/blender/blenkernel/intern/bvhutils.c index 1a5458323d8..941f377ab42 100644 --- a/source/blender/blenkernel/intern/bvhutils.c +++ b/source/blender/blenkernel/intern/bvhutils.c @@ -27,6 +27,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file blender/blenkernel/intern/bvhutils.c + * \ingroup bke + */ + #include <stdio.h> #include <string.h> #include <math.h> @@ -126,7 +131,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const } else { - if(fabs(A00) > FLT_EPSILON) + if(fabsf(A00) > FLT_EPSILON) S = -B0/A00; else S = 0.0f; @@ -151,7 +156,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const } else { - if(fabs(A11) > FLT_EPSILON) + if(fabsf(A11) > FLT_EPSILON) T = -B1 / A11; else T = 0.0f; @@ -177,7 +182,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const } else { - if(fabs(A11) > FLT_EPSILON) + if(fabsf(A11) > FLT_EPSILON) T = -B1 / A11; else T = 0.0; @@ -203,7 +208,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const } else { - if(fabs(A00) > FLT_EPSILON) + if(fabsf(A00) > FLT_EPSILON) S = -B0 / A00; else S = 0.0f; @@ -215,7 +220,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const { // Minimum at interior lv float invDet; - if(fabs(Det) > FLT_EPSILON) + if(fabsf(Det) > FLT_EPSILON) invDet = 1.0f / Det; else invDet = 0.0f; @@ -246,7 +251,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const } else { - if(fabs(denom) > FLT_EPSILON) + if(fabsf(denom) > FLT_EPSILON) S = numer / denom; else S = 0.0f; @@ -273,7 +278,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const } else { - if(fabs(A11) > FLT_EPSILON) + if(fabsf(A11) > FLT_EPSILON) T = -B1 / A11; else T = 0.0f; @@ -299,7 +304,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const } else { - if(fabs(denom) > FLT_EPSILON) + if(fabsf(denom) > FLT_EPSILON) T = numer / denom; else T = 0.0f; @@ -326,7 +331,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const } else { - if(fabs(A00) > FLT_EPSILON) + if(fabsf(A00) > FLT_EPSILON) S = -B0 / A00; else S = 0.0f; @@ -357,7 +362,7 @@ static float nearest_point_in_tri_surface(const float *v0,const float *v1,const } else { - if(fabs(denom) > FLT_EPSILON) + if(fabsf(denom) > FLT_EPSILON) S = numer / denom; else S = 0.0f; |