Advertisement
Guest User

Untitled

a guest
Jan 27th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1.     def draw_lines(self, lines, for_selection, j=0):
  2.         if 171 in self.state.gcodes:
  3.             glColor3f(1,0,0)
  4.             glTranslatef(0,0,self.get_xy_plane_z_position())
  5.             linuxcnc.draw_lines("XY", lines, for_selection)
  6.             glPushMatrix()
  7.             glColor3f(0,1,0)
  8.             glTranslatef(0,0,self.get_uv_plane_z_position())
  9.             linuxcnc.draw_lines("UV", lines, for_selection)
  10.             glPopMatrix()
  11.         else:
  12.             return linuxcnc.draw_lines(self.geometry, lines, for_selection)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement