+ def _printWireframe(self, mesh):
+ """Print the wireframe using mesh edges... is this the correct way?
+ """
+
+ print mesh.edges
+ print
+ print mesh.verts
+
+ stroke_width=0.5
+ stroke_col = [0, 0, 0]
+
+ self.file.write("<g>\n")
+
+ for e in mesh.edges:
+ self.file.write("<line x1=\"%g\" y1=\"%g\" x2=\"%g\" y2=\"%g\"\n"
+ % ( e.v1[0], e.v1[1], e.v2[0], e.v2[1] ) )
+ self.file.write(" style=\"stroke:rgb("+str(stroke_col[0])+","+str(stroke_col[1])+","+str(stroke_col[2])+");")
+ self.file.write(" stroke-width:"+str(stroke_width)+";\n")
+ self.file.write(" stroke-linecap:round;stroke-linejoin:round")
+ self.file.write("\"/>\n")
+
+ self.file.write("</g>\n")
+
+
+