home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Homebrewer's Handbook / vr.iso / vr386 / octcone.plg < prev    next >
Text File  |  1996-03-19  |  778b  |  36 lines

  1. # an octagonal cone visible from the outside, 1000x1000
  2. octout 9 9
  3.  
  4. # vertices:
  5. # X    Y    Z
  6.         # front face
  7. -190 -460 -500  # vertex 0
  8.  190 -460 -500  # vertex 1
  9.  460 -190 -500  # vertex 2
  10.  460  190 -500  # vertex 3
  11.  190  460 -500  # vertex 4
  12. -190  460 -500  # vertex 5
  13. -460  190 -500  # vertex 6
  14. -460 -190 -500  # vertex 7
  15.  
  16.         # point
  17.  0    0    500  # vertex 8
  18.  
  19. # polygons: all cosine-lit, assorted colors
  20. # color #verts vert1 vert2 ...
  21.  
  22. 0x11ff 8 0 1 2 3 4 5 6 7    # front face: counterclockwise
  23.  
  24. # these faces are facing us in the sketch, thus are CCW
  25. 0x12ff 3 5 4 8  # top
  26. 0x13ff 3 4 3 8
  27. 0x14ff 3 3 2 8
  28.  
  29. # these faces are away from us in the sketch, and thus CW
  30. 0x15ff 3 2 1 8
  31. 0x16ff 3 1 0 8
  32. 0x17ff 3 0 7 8
  33. 0x18ff 3 7 6 8
  34. 0x19ff 3 6 5 8
  35.  
  36.