Don't hardcode stl file path, just name
parent
d8406847c6
commit
65f4fb25ca
|
@ -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]]
|
||||||
|
|
Loading…
Reference in New Issue