Ejemplo n.º 1
0
 def drawRaw():
     glDisable(GL_DEPTH_TEST)
     glDisable(GL_LIGHTING)
     glLineWidth(2.0)
     gldraw.xform_widget(tlocal,self.attributes.get("length",0.1),self.attributes.get("width",0.01))
     glLineWidth(1.0)
     #draw curve between frame and parent
     if item.parent() != None:
         d = vectorops.norm(tlocal[1])
         vlen = d*0.5
         v1 = so3.apply(tlocal[0],[-vlen]*3)
         v2 = [vlen]*3
         #glEnable(GL_BLEND)
         #glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA)
         #glColor4f(1,1,0,0.5)
         glColor3f(1,1,0)
         gldraw.hermite_curve(tlocal[1],v1,[0,0,0],v2,0.03)
         #glDisable(GL_BLEND)
     glEnable(GL_DEPTH_TEST)
Ejemplo n.º 2
0
 def drawRaw():
     gldraw.xform_widget(se3.identity(),self.attributes.get("length",0.1),self.attributes.get("width",0.01))