Commit d958a594 authored by sumpfralle's avatar sumpfralle

r579@erker: lars | 2010-02-05 00:19:54 +0100

 use public function for getting all triangles of the model


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@102 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 62ab2b95
......@@ -30,7 +30,7 @@ class STLExporter:
def get_output_lines(self):
date = datetime.date.today().isoformat()
yield """solid "%s"; Produced by %s, %s""" % (self.name, self.created_by, date)
for tr in self.model._triangles:
for tr in self.model.triangles():
norm = tr.normal().normalize()
yield "facet normal %f %f %f" % (norm.x, norm.y, norm.z)
yield " outer loop"
......
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