summaryrefslogtreecommitdiff
path: root/stl.py
diff options
context:
space:
mode:
Diffstat (limited to 'stl.py')
-rw-r--r--stl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stl.py b/stl.py
index 7989d43..276a645 100644
--- a/stl.py
+++ b/stl.py
@@ -23,7 +23,7 @@ def read_ascii_stl(filename):
vertex.append([float(s) for s in line.strip().split()[1:]])
f.close()
- return np.array(vertex)
+ return np.array(vertex).reshape(len(vertex)//3,3,3)
def read_binary_stl(filename):
f = open(filename)
@@ -39,4 +39,4 @@ def read_binary_stl(filename):
f.read(2)
f.close()
- return np.array(vertex)
+ return np.array(vertex).reshape(len(vertex)//3,3,3)