Revision: 43056
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43056
Author:   mont29
Date:     2012-01-01 16:37:01 +0000 (Sun, 01 Jan 2012)
Log Message:
-----------
Fix [#29556] shrinkwrap generates spikes if vertices fall exactly on the edge

bvhtree_ray_tri_intersection now using isect_ray_tri_epsilon_v3 with 
FLT_EPSILON. All devs I asked (incuding ones in physics/painting areas) were 
rather OK with this change, and better to do it now, with more than one month 
to detect regressions, if any!

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/bvhutils.c

Modified: trunk/blender/source/blender/blenkernel/intern/bvhutils.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/bvhutils.c   2012-01-01 
16:09:32 UTC (rev 43055)
+++ trunk/blender/source/blender/blenkernel/intern/bvhutils.c   2012-01-01 
16:37:01 UTC (rev 43056)
@@ -52,7 +52,7 @@
 {
        float dist;
 
-       if(isect_ray_tri_v3(ray->origin, ray->direction, v0, v1, v2, &dist, 
NULL))
+       if(isect_ray_tri_epsilon_v3(ray->origin, ray->direction, v0, v1, v2, 
&dist, NULL, FLT_EPSILON))
                return dist;
 
        return FLT_MAX;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to