Commit 7ef9b117 authored by lode_leroy's avatar lode_leroy

fix coordinate system for Art of Illusion exported STL files

git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@7 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent bf4ec246
...@@ -6,7 +6,7 @@ def ImportModel(filename): ...@@ -6,7 +6,7 @@ def ImportModel(filename):
model = Model() model = Model()
f = file(filename,"r") f = file(filename,"r")
solid = re.compile("\s*solid\s+(\w+)\s+.*") solid = re.compile("\s*solid\s+(\w+)\s+.*")
solid_AOI = re.compile("\s*solid\s+\"(\w+)\"; Produced by Art of Illusion.*") solid_AOI = re.compile("\s*solid\s+\"([\w\-]+)\"; Produced by Art of Illusion.*")
endsolid = re.compile("\s*endsolid\s+") endsolid = re.compile("\s*endsolid\s+")
facet = re.compile("\s*facet\s+") facet = re.compile("\s*facet\s+")
normal = re.compile("\s*facet\s+normal\s+(?P<x>[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?)\s+(?P<y>[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?)\s+(?P<z>[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?)\s+") normal = re.compile("\s*facet\s+normal\s+(?P<x>[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?)\s+(?P<y>[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?)\s+(?P<z>[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?)\s+")
...@@ -24,7 +24,6 @@ def ImportModel(filename): ...@@ -24,7 +24,6 @@ def ImportModel(filename):
for line in f: for line in f:
m = solid_AOI.match(line) m = solid_AOI.match(line)
if m: if m:
print "AOI"
model.name = m.group(1) model.name = m.group(1)
AOI = True AOI = True
continue continue
......
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