[Bf-blender-cvs] [03eee4d] master: BMesh: decrease decimate epsilon

Campbell Barton noreply at git.blender.org
Thu May 21 14:47:19 CEST 2015


Commit: 03eee4dce75960c6a789f86120d598985b6f22cf
Author: Campbell Barton
Date:   Thu May 21 22:38:23 2015 +1000
Branches: master
https://developer.blender.org/rB03eee4dce75960c6a789f86120d598985b6f22cf

BMesh: decrease decimate epsilon

Since using doubles to calculate cost,
using topology fallback cost isn't needed as much.

===================================================================

M	source/blender/bmesh/tools/bmesh_decimate_collapse.c

===================================================================

diff --git a/source/blender/bmesh/tools/bmesh_decimate_collapse.c b/source/blender/bmesh/tools/bmesh_decimate_collapse.c
index 9b35414..1073ce7 100644
--- a/source/blender/bmesh/tools/bmesh_decimate_collapse.c
+++ b/source/blender/bmesh/tools/bmesh_decimate_collapse.c
@@ -50,7 +50,7 @@
 /* if the cost from #BLI_quadric_evaluate is 'noise', fallback to topology */
 #define USE_TOPOLOGY_FALLBACK
 #ifdef  USE_TOPOLOGY_FALLBACK
-#  define   TOPOLOGY_FALLBACK_EPS  1e-6f
+#  define   TOPOLOGY_FALLBACK_EPS  FLT_EPSILON
 #endif
 
 /* these checks are for rare cases that we can't avoid since they are valid meshes still */




More information about the Bf-blender-cvs mailing list