예제 #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)
예제 #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)
예제 #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)
예제 #4
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)