Commit 65f4fb25 authored by Kliment Yanev's avatar Kliment Yanev

Don't hardcode stl file path, just name

parent d8406847
...@@ -420,7 +420,7 @@ class TestGlPanel(GLPanel): ...@@ -420,7 +420,7 @@ class TestGlPanel(GLPanel):
'''create opengl objects when opengl is initialized''' '''create opengl objects when opengl is initialized'''
import stltool import stltool
batch = pyglet.graphics.Batch() batch = pyglet.graphics.Batch()
s= stltool.stl("../prusa/metric-prusa/x-end-idler.stl") s= stltool.stl("x-end-idler.stl")
stl = stlview(s.facets, batch=batch) stl = stlview(s.facets, batch=batch)
#print "added vertices" #print "added vertices"
self.batches+=[[[50,50,0],batch,0]] self.batches+=[[[50,50,0],batch,0]]
......
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