[Bf-extensions-cvs] [d030a69] master: Fix T38788: zero area faces raised exception with overhang test

Campbell Barton noreply at git.blender.org
Mon Feb 24 00:36:55 CET 2014


Commit: d030a694ef323390861bfff6d2bacdadd41dd484
Author: Campbell Barton
Date:   Mon Feb 24 10:36:02 2014 +1100
https://developer.blender.org/rBAd030a694ef323390861bfff6d2bacdadd41dd484

Fix T38788: zero area faces raised exception with overhang test

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

M	object_print3d_utils/operators.py

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

diff --git a/object_print3d_utils/operators.py b/object_print3d_utils/operators.py
index 7ebf595..4f9bc64 100644
--- a/object_print3d_utils/operators.py
+++ b/object_print3d_utils/operators.py
@@ -297,8 +297,9 @@ class Print3DCheckOverhang(Operator):
         z_down = Vector((0, 0, -1.0))
         z_down_angle = z_down.angle
 
+        # 4.0 ignores zero area faces
         faces_overhang = [ele.index for ele in bm.faces
-                          if z_down_angle(ele.normal) < angle_overhang]
+                          if z_down_angle(ele.normal, 4.0) < angle_overhang]
 
         info.append(("Overhang Face: %d" % len(faces_overhang),
                     (bmesh.types.BMFace, faces_overhang)))



More information about the Bf-extensions-cvs mailing list