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

  1. # a twisted cylinder visible from the outside, 1000x1000
  2. # will show backface problems.
  3. octwist 16 10
  4.  
  5. # vertices:
  6. # X    Y    Z
  7.         # front face
  8. -190 -460 -500  # vertex 0
  9.  190 -460 -500  # vertex 1
  10.  460 -190 -500  # vertex 2
  11.  460  190 -500  # vertex 3
  12.  190  460 -500  # vertex 4
  13. -190  460 -500  # vertex 5
  14. -460  190 -500  # vertex 6
  15. -460 -190 -500  # vertex 7
  16.  
  17.         # back face
  18. -190 -460  500  # vertex 8
  19.  190 -460  500  # vertex 9
  20.  460 -190  500  # vertex 10
  21.  460  190  500  # vertex 11
  22.  190  460  500  # vertex 12
  23. -190  460  500  # vertex 13
  24. -460  190  500  # vertex 14
  25. -460 -190  500  # vertex 15
  26.  
  27. # polygons: all cosine-lit, assorted colors
  28. # color #verts vert1 vert2 ...
  29.  
  30. # these faces are derived from a shifted octagon
  31. 0x11ff 8 0 1 2 3 4 5 6 7       # front face: counterclockwise
  32. 0x12ff 8 15 14 13 12 11 10 9 8 # back face:  clockwise
  33.  
  34. # these faces are facing us in the sketch, thus are CCW
  35. 0x13ff 4 5 4 11 12  # top
  36. 0x14ff 4 4 3 10 11
  37. 0x15ff 4 3 2 9  10  # right side
  38. 0x16ff 4 2 1 8 9
  39.  
  40. # these faces are away from us in the sketch, and thus CW
  41. 0x17ff 4 15 8 1 0   # bottom
  42. 0x18ff 4 14 15 0 7
  43. 0x19ff 4 13 14 7 6 # left side
  44. 0x1aff 4 12 13 6 5
  45.  
  46.