Commit 9d711465 authored by sumpfralle's avatar sumpfralle

fixed the toolpath simulation for bounding boxes with zero height


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@756 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 5439e0f1
......@@ -50,6 +50,11 @@ class ODEBlocks:
self.x_width = maxx - minx
self.y_width = maxy - miny
self.z_width = maxz - minz
if self.z_width <= 0:
# Use a default height of "1" if the model is flat.
# Half of the height is above and half below the plane.
self.z_width = 1.0
self.z_offset = minz - self.z_width / 2.0
self.world = ode.World()
self.space = ode.Space()
self.boxes = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment