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

  1. # an octagonal cone visible from the outside, 1000x1000
  2. octout 10 16
  3.  
  4. # vertices:
  5. # X    Y    Z
  6.            # center ring
  7. -190 -460   0  # vertex 0
  8.  190 -460   0  # vertex 1
  9.  460 -190   0  # vertex 2
  10.  460  190   0  # vertex 3
  11.  190  460   0  # vertex 4
  12. -190  460   0  # vertex 5
  13. -460  190   0  # vertex 6
  14. -460 -190   0  # vertex 7
  15.  
  16.            # points
  17.  0    0   500  # vertex 8
  18.  0    0  -500  # vertex 9
  19.  
  20. # polygons: all cosine-lit, assorted colors
  21. # color #verts vert1 vert2 ...
  22.  
  23. # far cone
  24.  
  25. # these faces are facing us in the sketch, thus are CCW
  26. 0x12ff 3 5 4 8  # top
  27. 0x13ff 3 4 3 8
  28. 0x14ff 3 3 2 8
  29.  
  30. # these faces are away from us in the sketch, and thus CW
  31. 0x15ff 3 2 1 8
  32. 0x16ff 3 1 0 8
  33. 0x17ff 3 0 7 8
  34. 0x18ff 3 7 6 8
  35. 0x19ff 3 6 5 8
  36.  
  37. # near cone: could be produced mechanically by copying the far cone
  38. # polys, changing vertex 8 to 9, and reversing the order of the
  39. # other 2 vertices (because the z axis is reversed we must also
  40. # reverse the order of vertices)
  41.  
  42. 0x19ff 3 4 5 9  # top
  43. 0x18ff 3 3 4 9
  44. 0x17ff 3 2 3 9
  45. 0x16ff 3 1 2 9
  46. 0x15ff 3 0 1 9
  47. 0x14ff 3 7 0 9
  48. 0x13ff 3 6 7 9
  49. 0x12ff 3 5 6 9
  50.  
  51.