home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Homebrewer's Handbook
/
vr.iso
/
2mro
/
objects
/
octwist.plg
< prev
next >
Wrap
Text File
|
1996-03-19
|
1KB
|
46 lines
# a twisted cylinder visible from the outside, 1000x1000
# will show backface problems.
octwist 16 10
# vertices:
# X Y Z
# front face
-190 -460 -500 # vertex 0
190 -460 -500 # vertex 1
460 -190 -500 # vertex 2
460 190 -500 # vertex 3
190 460 -500 # vertex 4
-190 460 -500 # vertex 5
-460 190 -500 # vertex 6
-460 -190 -500 # vertex 7
# back face
-190 -460 500 # vertex 8
190 -460 500 # vertex 9
460 -190 500 # vertex 10
460 190 500 # vertex 11
190 460 500 # vertex 12
-190 460 500 # vertex 13
-460 190 500 # vertex 14
-460 -190 500 # vertex 15
# polygons: all cosine-lit, assorted colors
# color #verts vert1 vert2 ...
# these faces are derived from a shifted octagon
0x11ff 8 0 1 2 3 4 5 6 7 # front face: counterclockwise
0x12ff 8 15 14 13 12 11 10 9 8 # back face: clockwise
# these faces are facing us in the sketch, thus are CCW
0x13ff 4 5 4 11 12 # top
0x14ff 4 4 3 10 11
0x15ff 4 3 2 9 10 # right side
0x16ff 4 2 1 8 9
# these faces are away from us in the sketch, and thus CW
0x17ff 4 15 8 1 0 # bottom
0x18ff 4 14 15 0 7
0x19ff 4 13 14 7 6 # left side
0x1aff 4 12 13 6 5