diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-10 00:37:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-10 00:37:47 +0400 |
commit | cc635eecbc4019f96a6ac10dfa28f19bfbcb29da (patch) | |
tree | 7459e7887ed7fc22728a9b5da2efa13ff5b3548f /object_fracture_cell | |
parent | f2c79ec35dc8bf9834fadc8274a48b04d23a0173 (diff) |
fix for bounds -> planes
Diffstat (limited to 'object_fracture_cell')
-rw-r--r-- | object_fracture_cell/fracture_cell_calc.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/object_fracture_cell/fracture_cell_calc.py b/object_fracture_cell/fracture_cell_calc.py index 227512b4..3e0b9b2d 100644 --- a/object_fracture_cell/fracture_cell_calc.py +++ b/object_fracture_cell/fracture_cell_calc.py @@ -52,12 +52,12 @@ def points_as_bmesh_cells(verts, 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): |