Skip to content
Snippets Groups Projects
Commit cc635eec authored by Campbell Barton's avatar Campbell Barton
Browse files

fix for bounds -> planes

parent f2c79ec3
No related branches found
No related tags found
No related merge requests found
...@@ -52,12 +52,12 @@ def points_as_bmesh_cells(verts, ...@@ -52,12 +52,12 @@ def points_as_bmesh_cells(verts,
ymin, ymax = min(ya) - margin_bounds, max(ya) + margin_bounds ymin, ymax = min(ya) - margin_bounds, max(ya) + margin_bounds
zmin, zmax = min(za) - margin_bounds, max(za) + margin_bounds zmin, zmax = min(za) - margin_bounds, max(za) + margin_bounds
convexPlanes = [ convexPlanes = [
Vector((+1.0, 0.0, 0.0, -abs(xmax))), Vector((+1.0, 0.0, 0.0, -xmax)),
Vector((-1.0, 0.0, 0.0, -abs(xmin))), Vector((-1.0, 0.0, 0.0, +xmin)),
Vector((0.0, +1.0, 0.0, -abs(ymax))), Vector((0.0, +1.0, 0.0, -ymax)),
Vector((0.0, -1.0, 0.0, -abs(ymin))), Vector((0.0, -1.0, 0.0, +ymin)),
Vector((0.0, 0.0, +1.0, -abs(zmax))), Vector((0.0, 0.0, +1.0, -zmax)),
Vector((0.0, 0.0, -1.0, -abs(zmin))), Vector((0.0, 0.0, -1.0, +zmin)),
] ]
for i, point_cell_current in enumerate(points): for i, point_cell_current in enumerate(points):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment