Skip to content

Commit d516e6d

Browse files
committed
fixed numpy-stl save mesh method
1 parent 984895c commit d516e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygem/stlhandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numpy as np
55
from mpl_toolkits import mplot3d
66
from matplotlib import pyplot
7-
from stl import mesh
7+
from stl import mesh, Mode
88
import pygem.filehandler as fh
99

1010

@@ -75,7 +75,7 @@ def write(self, mesh_points, filename, write_bin=False):
7575
data['vectors'][i][j] = mesh_points[3*i + j]
7676

7777
if not write_bin:
78-
stl_mesh.save(self.outfile, mode=1, update_normals=True)
78+
stl_mesh.save(self.outfile, mode=Mode.ASCII, update_normals=True)
7979
else:
8080
stl_mesh.save(self.outfile, update_normals=True)
8181

0 commit comments

Comments
 (0)