Commit 1deb61b2 authored by Kliment Yanev's avatar Kliment Yanev

Fix snap to z=0 when autoplating

parent 2c84a64a
...@@ -89,7 +89,7 @@ class showstl(wx.Window): ...@@ -89,7 +89,7 @@ class showstl(wx.Window):
newrow = 0 newrow = 0
max = [0,0] max = [0,0]
for i in self.models: for i in self.models:
self.models[i].offsets[2]=-1.0*min(m.facetsminz)[0] self.models[i].offsets[2]=-1.0*self.models[i].dims[4]
x = abs(self.models[i].dims[0] - self.models[i].dims[1]) x = abs(self.models[i].dims[0] - self.models[i].dims[1])
y = abs(self.models[i].dims[2] - self.models[i].dims[3]) y = abs(self.models[i].dims[2] - self.models[i].dims[3])
centre = [x/2, y/2] centre = [x/2, y/2]
......
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