Commit 999fa8cf authored by Guillaume Seguin's avatar Guillaume Seguin

Pass build dimensions to simarrange

parent 8533b63c
...@@ -346,7 +346,9 @@ class StlPlater(Plater): ...@@ -346,7 +346,9 @@ class StlPlater(Plater):
print _("Autoplating using simarrange") print _("Autoplating using simarrange")
models = dict(self.models) models = dict(self.models)
files = [model.filename for model in models.values()] files = [model.filename for model in models.values()]
p = subprocess.Popen(["./simarrange/sa", "--dryrun"] + files, p = subprocess.Popen(["./simarrange/sa", "--dryrun",
"-x", str(self.build_dimensions[0]),
"-y", str(self.build_dimensions[1])] + files,
stdout = subprocess.PIPE) stdout = subprocess.PIPE)
pos_regexp = re.compile("File: (.*) minx: ([0-9]+), miny: ([0-9]+), minrot: ([0-9]+)") pos_regexp = re.compile("File: (.*) minx: ([0-9]+), miny: ([0-9]+), minrot: ([0-9]+)")
......
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