Workaround for STL loading problem. Really need to refactor this.
parent
ef278b6b1d
commit
8a8be87a75
|
@ -113,6 +113,7 @@ class previewPanel(wx.Panel):
|
||||||
triangleMesh.origonalVertexes = list(triangleMesh.vertexes)
|
triangleMesh.origonalVertexes = list(triangleMesh.vertexes)
|
||||||
for i in xrange(0, len(triangleMesh.origonalVertexes)):
|
for i in xrange(0, len(triangleMesh.origonalVertexes)):
|
||||||
triangleMesh.origonalVertexes[i] = triangleMesh.origonalVertexes[i].copy()
|
triangleMesh.origonalVertexes[i] = triangleMesh.origonalVertexes[i].copy()
|
||||||
|
triangleMesh.getMinimumZ()
|
||||||
self.triangleMesh = triangleMesh
|
self.triangleMesh = triangleMesh
|
||||||
self.gcode = None
|
self.gcode = None
|
||||||
self.updateModelTransform()
|
self.updateModelTransform()
|
||||||
|
|
Loading…
Reference in New Issue