[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3603] trunk/py/scripts/addons/ object_fracture_cell/fracture_cell_calc.py: fix for bounds -> planes

Campbell Barton ideasman42 at gmail.com
Mon Jul 9 22:37:47 CEST 2012


Revision: 3603
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3603
Author:   campbellbarton
Date:     2012-07-09 20:37:47 +0000 (Mon, 09 Jul 2012)
Log Message:
-----------
fix for bounds -> planes

Modified Paths:
--------------
    trunk/py/scripts/addons/object_fracture_cell/fracture_cell_calc.py

Modified: trunk/py/scripts/addons/object_fracture_cell/fracture_cell_calc.py
===================================================================
--- trunk/py/scripts/addons/object_fracture_cell/fracture_cell_calc.py	2012-07-09 18:47:55 UTC (rev 3602)
+++ trunk/py/scripts/addons/object_fracture_cell/fracture_cell_calc.py	2012-07-09 20:37:47 UTC (rev 3603)
@@ -52,12 +52,12 @@
         ymin, ymax = min(ya) - margin_bounds, max(ya) + margin_bounds
         zmin, zmax = min(za) - margin_bounds, max(za) + margin_bounds
         convexPlanes = [
-            Vector((+1.0, 0.0, 0.0, -abs(xmax))),
-            Vector((-1.0, 0.0, 0.0, -abs(xmin))),
-            Vector((0.0, +1.0, 0.0, -abs(ymax))),
-            Vector((0.0, -1.0, 0.0, -abs(ymin))),
-            Vector((0.0, 0.0, +1.0, -abs(zmax))),
-            Vector((0.0, 0.0, -1.0, -abs(zmin))),
+            Vector((+1.0, 0.0, 0.0, -xmax)),
+            Vector((-1.0, 0.0, 0.0, +xmin)),
+            Vector((0.0, +1.0, 0.0, -ymax)),
+            Vector((0.0, -1.0, 0.0, +ymin)),
+            Vector((0.0, 0.0, +1.0, -zmax)),
+            Vector((0.0, 0.0, -1.0, +zmin)),
             ]
 
     for i, point_cell_current in enumerate(points):



More information about the Bf-extensions-cvs mailing list