home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / share / k3d / scripts / MeshPainterScript / cubes.py < prev    next >
Encoding:
Python Source  |  2009-02-07  |  314 b   |  21 lines

  1. #python
  2.  
  3. import k3d
  4. from OpenGL.GL import *
  5.  
  6. glPushAttrib(GL_ALL_ATTRIB_BITS)
  7. glDisable(GL_LIGHTING)
  8. glPointSize(5)
  9. glColor3d(0, 0, 1)
  10.  
  11. for primitive in Mesh.primitives():
  12.   print repr(primitive)
  13.  
  14. #glBegin(GL_POINTS)
  15. #for point in Mesh.points():
  16. #    glVertex3d(point[0], point[1], point[2])
  17. #glEnd()
  18.  
  19. glPopAttrib()
  20.  
  21.