Commit 390fc640 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@8 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 7ef9b117
......@@ -36,7 +36,7 @@ def ImportModel(filename):
m = normal.match(line)
if m:
if AOI:
n = Point(float(m.group('x')),-float(m.group('z')),float(m.group('y')))
n = Point(float(m.group('x')),float(m.group('z')),float(m.group('y')))
else:
n = Point(float(m.group('x')),float(m.group('y')),float(m.group('z')))
continue
......@@ -46,7 +46,7 @@ def ImportModel(filename):
m = vertex.match(line)
if m:
if AOI:
p = Point(float(m.group('x')),-float(m.group('z')),float(m.group('y')))
p = Point(float(m.group('x')),float(m.group('z')),float(m.group('y')))
else:
p = Point(float(m.group('x')),float(m.group('y')),float(m.group('z')))
# TODO: check for duplicate points (using kdtree?)
......
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