Esempio n. 1
0
 def click_in_tools(self,x,y,button,mods):
     picking.start(x,y,1,1)
     self.parts["tools"].draw('PICK')
     objects = picking.end()
     if objects:
         minz,maxz,label = objects[0]
         self.pick(label)
Esempio n. 2
0
 def pick_at(self,x,y):
     """Pick topmost object at x,y"""
     picking.start(x,y,1,1)
     self.draw('PICK')
     objects = picking.end()
     if objects:
         minz,maxz,label = objects[0]
         self.pick(label)
Esempio n. 3
0
 def pick_at(self, x, y):
     """Pick topmost object at x,y"""
     picking.start(x, y, 1, 1)
     self.draw('PICK')
     objects = picking.end()
     if objects:
         minz, maxz, label = objects[0]
         if minz > 1.6:
             self.nothing_near()
         else:
             self.pick(label, x, y)
 def pick_at(self,x,y):
     """Pick topmost object at x,y"""
     picking.start(x,y,1,1)
     self.draw('PICK')
     objects = picking.end()
     if objects:
         minz,maxz,label = objects[0]
         if minz > 1.6:
             self.nothing_near()
         else:
             self.pick(label,x,y)