Commit 3a374873 authored by Guillaume Seguin's avatar Guillaume Seguin

Use provided dimensions for autoplating

parent bf77d84f
...@@ -274,8 +274,12 @@ class stlwin(wx.Frame): ...@@ -274,8 +274,12 @@ class stlwin(wx.Frame):
#self.SetBackgroundColour((10, 10, 10)) #self.SetBackgroundColour((10, 10, 10))
self.mainsizer.Add(self.panel) self.mainsizer.Add(self.panel)
#self.mainsizer.AddSpacer(10) #self.mainsizer.AddSpacer(10)
if build_dimensions:
self.build_dimensions = build_dimensions
else:
self.build_dimensions = [200, 200, 100, 0, 0, 0]
if glview: if glview:
self.s = stlview.StlViewPanel(self, (580, 580), build_dimensions = build_dimensions) self.s = stlview.StlViewPanel(self, (580, 580), build_dimensions = self.build_dimensions)
else: else:
self.s = showstl(self, (580, 580), (0, 0)) self.s = showstl(self, (580, 580), (0, 0))
self.mainsizer.Add(self.s, 1, wx.EXPAND) self.mainsizer.Add(self.s, 1, wx.EXPAND)
...@@ -288,7 +292,7 @@ class stlwin(wx.Frame): ...@@ -288,7 +292,7 @@ class stlwin(wx.Frame):
def autoplate(self, event): def autoplate(self, event):
print _("Autoplating") print _("Autoplating")
separation = 2 separation = 2
bedsize = [200, 200, 100] bedsize = self.build_dimensions[0:3]
cursor = [0, 0, 0] cursor = [0, 0, 0]
newrow = 0 newrow = 0
max = [0, 0] max = [0, 0]
......
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