home *** CD-ROM | disk | FTP | other *** search
Unknown | 1993-02-22 | 58.6 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Wanton Packer Module (music/wantonPacker)
| ext
| Supported |
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 04 00 e8 7b 04 00 02 14 |........|...{....|
|00000010| 04 00 02 22 04 00 02 0c | 04 00 02 24 00 04 86 88 |..."....|...$....|
|00000020| 00 04 86 84 00 04 86 80 | 00 04 86 90 00 04 86 8c |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 04 00 00 00 00 00 00 |........|........|
|00000040| 09 00 00 00 00 00 00 ff | ff 00 ff 00 02 00 1c 00 |........|........|
|00000050| 00 3f 1e 9b 02 60 00 00 | 4e 39 00 39 00 00 00 00 |.?...`..|N9.9....|
|00000060| 00 00 00 00 00 39 00 00 | 00 00 ff 00 00 00 00 00 |.....9..|........|
|00000070| 00 00 00 00 00 00 01 01 | 02 64 00 00 00 48 00 48 |........|.d...H.H|
|00000080| 00 01 00 18 03 18 02 64 | 00 00 00 00 02 da 02 2f |.......d|......./|
|00000090| 00 64 00 04 00 00 04 00 | e5 28 01 72 1e 16 00 6d |.d......|.(.r...m|
|000000a0| 00 0e 04 00 e5 28 01 8e | 1e 16 00 cf 00 0e 00 87 |.....(..|........|
|000000b0| 00 00 07 da 00 00 00 00 | ff ff 00 00 00 00 00 00 |........|........|
|000000c0| ea 63 00 00 ea 63 00 00 | ea 63 00 01 34 93 00 00 |.c...c..|.c..4...|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 04 00 dd d3 | 04 00 02 14 04 00 02 22 |........|......."|
|00000110| 04 00 02 0c 04 00 02 24 | 00 04 86 88 00 04 86 84 |.......$|........|
|00000120| 00 04 86 80 00 04 86 90 | 00 04 86 8c 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 04 00 00 | 00 00 00 00 09 00 00 00 |........|........|
|00000140| 00 00 00 ff 00 00 ff 00 | 02 00 1b b7 00 3f 1e 52 |........|.....?.R|
|00000150| 02 60 00 00 4e 39 00 39 | 00 00 00 00 00 00 00 00 |.`..N9.9|........|
|00000160| 00 39 00 00 00 00 ff 00 | 00 00 00 00 00 00 00 00 |.9......|........|
|00000170| 00 00 01 01 02 64 00 00 | 00 48 00 48 00 01 00 18 |.....d..|.H.H....|
|00000180| 03 18 02 64 00 00 00 00 | 02 da 02 2f 00 64 00 04 |...d....|.../.d..|
|00000190| 00 00 04 00 db d2 00 62 | 1c 95 00 5a 00 0e 04 00 |.......b|...Z....|
|000001a0| db d2 00 62 1c 95 00 5a | 00 0e 00 87 00 00 00 00 |...b...Z|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 df b5 00 00 |........|........|
|000001c0| df b5 00 00 df b5 00 01 | 34 93 00 00 00 00 00 00 |........|4.......|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 04 0d 0d 0d 0d 00 04 | 0d 0d 0d 0d 00 06 00 08 |........|........|
|00000210| 00 00 00 00 00 0c 04 00 | 02 00 00 38 04 00 02 06 |........|...8....|
|00000220| 00 38 00 00 00 78 00 03 | 00 00 00 48 00 48 00 00 |.8...x..|...H.H..|
|00000230| 00 00 02 da 02 2f 00 00 | 00 00 03 18 02 64 01 5b |...../..|.....d.[|
|00000240| 05 28 03 fc 00 02 00 00 | 00 48 00 48 00 00 00 00 |.(......|.H.H....|
|00000250| 03 18 02 64 00 01 00 00 | 00 64 00 00 00 01 00 01 |...d....|.d......|
|00000260| 01 01 00 00 00 01 27 0f | 00 01 00 01 00 00 00 00 |......'.|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 02 00 19 01 90 00 00 |........|........|
|00000280| 00 00 00 40 00 00 00 00 | 00 00 00 00 00 00 00 00 |...@....|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 02 3a |........|.......:|
|000002a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 66 | | of|
|000002c0| 20 61 64 6a 61 63 65 6e | 74 20 70 6f 6c 79 67 6f | adjacen|t polygo|
|000002d0| 6e 73 20 75 73 69 6e 67 | 20 74 68 65 20 70 6f 6c |ns using| the pol|
|000002e0| 79 67 6f 6e 6c 69 73 74 | 63 65 6c 6c 2e 0d ff 00 |ygonlist|cell....|
|000002f0| 14 0c 02 f7 56 69 73 56 | 65 72 74 65 78 43 65 6c |....VisV|ertexCel|
|00000300| 6c ff 00 14 0c 00 f7 20 | 20 20 20 3a 20 41 20 76 |l...... | : A v|
|00000310| 69 73 69 62 6c 65 20 76 | 65 72 74 65 78 20 74 68 |isible v|ertex th|
|00000320| 61 74 20 72 65 6d 61 69 | 6e 73 20 61 66 74 65 72 |at remai|ns after|
|00000330| 20 63 6c 69 70 70 69 6e | 67 2e 20 20 54 68 65 20 | clippin|g. The |
|00000340| 63 6c 69 70 70 69 6e 67 | 20 72 6f 75 74 69 6e 65 |clipping| routine|
|00000350| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 74 | | t|
|00000370| 61 6b 65 73 20 61 20 6c | 69 73 74 20 6f 66 20 76 |akes a l|ist of v|
|00000380| 65 72 74 69 63 65 73 20 | 61 6e 64 20 67 65 6e 65 |ertices |and gene|
|00000390| 72 61 74 65 73 20 61 20 | 6e 65 77 20 6c 69 73 74 |rates a |new list|
|000003a0| 20 6f 66 20 76 69 73 69 | 62 6c 65 20 76 65 72 74 | of visi|ble vert|
|000003b0| 69 63 65 73 2e 0d fc 00 | 5a 02 0a 00 5a 00 0e 02 |ices....|Z...Z...|
|000003c0| b0 06 30 f7 09 2d 20 ff | 00 14 0c 01 f7 66 69 65 |..0..- .|.....fie|
|000003d0| 6c 64 73 ff 00 14 0c 00 | f7 0d 20 09 ff 00 14 0c |lds.....|.. .....|
|000003e0| 02 f7 42 ff 00 14 0c 00 | f7 20 3a 20 63 6f 6c 6f |..B.....|. : colo|
|000003f0| 72 20 28 72 61 64 69 6f | 73 69 74 79 29 20 6f 66 |r (radio|sity) of|
|00000400| 20 74 68 65 20 76 65 72 | 74 65 78 20 43 65 6c 6c | the ver|tex Cell|
|00000410| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000420| 20 20 20 20 20 20 20 20 | 20 20 20 20 ff 00 14 0c | | ....|
|00000430| 02 f7 56 69 65 77 50 6f | 73 69 74 69 6f 6e ff 00 |..ViewPo|sition..|
|00000440| 14 0c 00 f7 20 3a 20 74 | 68 65 20 70 6f 73 69 74 |.... : t|he posit|
|00000450| 69 6f 6e 20 6f 66 20 74 | 68 65 20 76 65 72 74 65 |ion of t|he verte|
|00000460| 78 20 69 6e 20 76 69 65 | 77 20 63 6f 6f 72 64 69 |x in vie|w coordi|
|00000470| 6e 61 74 65 73 2e 0d ff | 00 14 0c 02 f7 50 6f 6c |nates...|.....Pol|
|00000480| 79 67 6f 6e 43 65 6c 6c | ff 00 14 0c 00 f7 20 20 |ygonCell|...... |
|00000490| 20 20 09 3a 20 53 74 6f | 72 65 73 20 61 20 70 6f | .: Sto|res a po|
|000004a0| 6c 79 67 6f 6e 2e 20 20 | 54 68 69 73 20 73 61 6d |lygon. |This sam|
|000004b0| 65 20 64 61 74 61 2d 73 | 74 72 75 63 74 75 72 65 |e data-s|tructure|
|000004c0| 73 20 69 73 20 75 73 65 | 64 20 66 6f 72 20 70 61 |s is use|d for pa|
|000004d0| 74 63 68 65 73 20 61 6e | 64 0d 02 73 20 20 20 20 |tches an|d..s |
|000004e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004f0| 20 20 20 20 20 20 20 20 | 20 65 6c 65 6d 65 6e 74 | | element|
|00000500| 73 2e 0d 09 2d 20 ff 00 | 14 0c 01 f7 66 69 65 6c |s...- ..|....fiel|
|00000510| 64 73 ff 00 14 0c 00 f7 | 0d 20 20 20 20 20 20 20 |ds......|. |
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 09 ff 00 14 | | ....|
|00000530| 0c 02 f7 56 65 72 74 69 | 63 65 73 ff 00 14 0c 00 |...Verti|ces.....|
|00000540| f7 20 3a 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |. : a po|inter to|
|00000550| 20 74 68 65 20 70 6f 6c | 79 67 6f 6e 27 73 20 76 | the pol|ygon's v|
|00000560| 65 72 74 69 63 65 73 2e | 0d 09 ff 00 14 0c 02 f7 |ertices.|........|
|00000570| 56 69 73 56 65 72 74 69 | 63 65 73 ff 00 14 0c 00 |VisVerti|ces.....|
|00000580| f7 20 3a 20 61 20 70 6f | 6e 74 65 72 20 74 6f 20 |. : a po|nter to |
|00000590| 74 68 65 20 70 6f 6c 67 | 6f 6e 27 73 20 76 69 73 |the polg|on's vis|
|000005a0| 69 62 6c 65 20 76 65 72 | 74 69 63 65 73 20 28 61 |ible ver|tices (a|
|000005b0| 66 74 65 72 20 63 6c 69 | 70 70 69 6e 67 29 0d 09 |fter cli|pping)..|
|000005c0| ff 00 14 0c 02 f7 4e 6f | 72 6d 61 6c ff 00 14 0c |......No|rmal....|
|000005d0| 00 f7 20 3a 20 74 68 65 | 20 70 6f 6c 79 67 6f 6e |.. : the| polygon|
|000005e0| 27 73 20 6e 6f 72 6d 61 | 6c 20 20 20 20 20 20 20 |'s norma|l |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000600| 20 0d fc 00 5a 02 0a 00 | 5a 00 0e 02 b8 06 30 f7 | ...Z...|Z.....0.|
|00000610| ff 00 14 0c 01 f7 09 ff | 00 14 0c 02 f7 4e 65 78 |........|.....Nex|
|00000620| 74 ff 00 14 0c 00 f7 20 | 3a 20 74 68 65 20 6e 65 |t...... |: the ne|
|00000630| 78 74 20 70 6f 6c 79 67 | 6f 6e 20 69 6e 20 74 68 |xt polyg|on in th|
|00000640| 65 20 70 6f 6c 79 67 6f | 6e 20 6c 69 73 74 0d 09 |e polygo|n list..|
|00000650| ff 00 14 0c 02 f7 53 75 | 62 73 ff 00 14 0c 00 f7 |......Su|bs......|
|00000660| 20 3a 20 61 6e 20 61 72 | 72 61 79 20 6f 66 20 70 | : an ar|ray of p|
|00000670| 6f 6c 79 67 6f 6e 20 70 | 6f 69 6e 74 65 72 73 20 |olygon p|ointers |
|00000680| 74 68 61 74 20 70 6f 69 | 6e 74 20 74 6f 20 74 68 |that poi|nt to th|
|00000690| 65 20 65 6c 65 6d 65 6e | 74 73 20 28 69 66 20 61 |e elemen|ts (if a|
|000006a0| 6e 79 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ny). | |
|000006b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006d0| 6f 66 20 74 68 65 20 70 | 6f 6c 79 67 6f 6e 0d 09 |of the p|olygon..|
|000006e0| ff 00 14 0c 02 f7 49 44 | ff 00 14 0c 00 f7 20 3a |......ID|...... :|
|000006f0| 20 61 20 75 6e 69 71 75 | 65 20 69 6e 74 65 67 65 | a uniqu|e intege|
|00000700| 72 20 74 68 61 74 20 69 | 64 65 6e 74 69 66 69 65 |r that i|dentifie|
|00000710| 73 20 74 68 65 20 70 6f | 6c 79 67 6f 6e 0d 09 ff |s the po|lygon...|
|00000720| 00 14 0c 02 f7 54 65 78 | 74 75 72 65 64 ff 00 14 |.....Tex|tured...|
|00000730| 0c 00 f7 20 3a 20 69 73 | 20 74 68 65 20 70 6f 6c |... : is| the pol|
|00000740| 79 67 6f 6e 20 74 65 78 | 74 75 72 65 64 3f 0d 03 |ygon tex|tured?..|
|00000750| 9f 09 ff 00 14 0c 02 f7 | 42 ff 00 14 0c 00 f7 20 |........|B...... |
|00000760| 3a 20 74 68 65 20 63 6f | 6c 6f 72 20 28 72 61 64 |: the co|lor (rad|
|00000770| 69 6f 73 69 74 79 29 20 | 6f 66 20 74 68 65 20 70 |iosity) |of the p|
|00000780| 6f 6c 79 67 6f 6e 0d 09 | ff 00 14 0c 02 f7 52 ff |olygon..|......R.|
|00000790| 00 14 0c 00 f7 20 3a 20 | 74 68 65 20 72 65 66 6c |..... : |the refl|
|000007a0| 65 63 74 69 76 69 74 79 | 20 6f 66 20 74 68 65 20 |ectivity| of the |
|000007b0| 70 6f 6c 79 67 6f 6e 0d | 09 ff 00 14 0c 02 f7 45 |polygon.|.......E|
|000007c0| ff 00 14 0c 00 f7 20 3a | 20 54 68 65 20 65 6d 69 |...... :| The emi|
|000007d0| 73 73 69 76 69 74 79 20 | 6f 66 20 74 68 65 20 70 |ssivity |of the p|
|000007e0| 6f 6c 67 79 6f 6e 0d 09 | ff 00 14 0c 02 f7 43 75 |olgyon..|......Cu|
|000007f0| 6c 6c 65 64 ff 00 14 0c | 00 f7 20 3a 20 68 61 73 |lled....|.. : has|
|00000800| 20 74 68 65 20 70 6f 6c | 79 67 6f 6e 20 62 65 65 | the pol|ygon bee|
|00000810| 6e 20 63 75 6c 6c 65 64 | 3f 0d ff 00 14 0c 02 f7 |n culled|?.......|
|00000820| 56 65 72 74 65 78 43 65 | 6c 6c ff 00 14 0c 00 f7 |VertexCe|ll......|
|00000830| 20 20 20 20 20 20 20 20 | 20 20 3a 20 53 74 6f 72 | | : Stor|
|00000840| 65 73 20 61 20 76 65 72 | 74 65 78 2e 0d 09 2d 20 |es a ver|tex...- |
|00000850| ff 00 14 0c 01 f7 66 69 | 65 6c 64 73 ff 00 14 0c |......fi|elds....|
|00000860| 00 f7 0d 09 ff 00 14 0c | 02 f7 57 6f 72 6c 64 50 |........|..WorldP|
|00000870| 6f 73 69 74 69 6f 6e ff | 00 14 0c 00 f7 20 3a 20 |osition.|..... : |
|00000880| 74 68 65 20 70 6f 73 69 | 74 69 6f 6e 20 6f 66 20 |the posi|tion of |
|00000890| 74 68 65 20 76 65 72 74 | 65 78 20 69 6e 20 77 6f |the vert|ex in wo|
|000008a0| 72 6c 64 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 0d |rld coor|dinates.|
|000008b0| 09 ff 00 14 0c 02 f7 56 | 69 65 77 50 6f 73 69 74 |.......V|iewPosit|
|000008c0| 69 6f 6e ff 00 14 0c 00 | f7 20 3a 20 74 68 65 20 |ion.....|. : the |
|000008d0| 70 6f 73 69 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |position| of the |
|000008e0| 76 65 72 74 65 78 20 69 | 6e 20 76 69 65 77 20 63 |vertex i|n view c|
|000008f0| 6f 6f 72 64 69 6e 61 74 | 65 73 0d 09 ff 00 14 0c |oordinat|es......|
|00000900| 02 f7 4e 6f 72 6d 61 6c | ff 00 14 0c 00 f7 20 3a |..Normal|...... :|
|00000910| 20 74 68 65 20 6e 6f 72 | 6d 61 6c 20 6f 66 20 74 | the nor|mal of t|
|00000920| 68 65 20 76 65 72 74 65 | 78 20 28 61 70 70 72 6f |he verte|x (appro|
|00000930| 78 69 6d 61 74 69 6e 67 | 20 62 79 20 61 76 65 72 |ximating| by aver|
|00000940| 61 67 69 6e 67 0d 09 20 | 20 20 20 20 20 20 20 20 |aging.. | |
|00000950| 20 20 20 20 20 20 20 6e | 6f 72 6d 61 6c 73 20 6f | n|ormals o|
|00000960| 66 20 73 75 72 72 6f 75 | 6e 64 69 6e 67 20 76 65 |f surrou|nding ve|
|00000970| 72 74 69 63 65 73 0d 09 | ff 00 14 0c 02 f7 4e 75 |rtices..|......Nu|
|00000980| 6d 62 65 72 ff 00 14 0c | 00 f7 20 3a 20 61 20 75 |mber....|.. : a u|
|00000990| 6e 69 71 75 65 20 69 6e | 74 65 67 65 72 20 74 68 |nique in|teger th|
|000009a0| 61 74 20 69 64 65 6e 74 | 69 66 69 65 73 20 74 68 |at ident|ifies th|
|000009b0| 65 20 76 65 72 74 65 78 | 2e 0d 09 ff 00 14 0c 02 |e vertex|........|
|000009c0| f7 49 6e 74 65 6e 73 69 | 74 79 ff 00 14 0c 00 f7 |.Intensi|ty......|
|000009d0| 20 3a 20 74 68 65 20 69 | 6e 74 65 6e 73 69 74 79 | : the i|ntensity|
|000009e0| 20 6f 66 20 74 68 65 20 | 76 65 72 74 65 78 20 28 | of the |vertex (|
|000009f0| 6d 6f 6e 6f 63 68 72 6f | 6d 65 20 6f 6e 6c 79 29 |monochro|me only)|
|00000a00| 0d 09 ff 00 14 0c 02 f7 | 50 6f 6c 79 67 6f 6e 73 |........|Polygons|
|00000a10| ff 00 14 0c 00 f7 20 3a | 20 61 20 70 6f 69 6e 74 |...... :| a point|
|00000a20| 65 72 20 74 6f 20 74 68 | 65 20 6c 69 73 74 20 6f |er to th|e list o|
|00000a30| 66 20 73 75 72 72 6f 75 | 6e 64 69 6e 67 20 70 6f |f surrou|nding po|
|00000a40| 6c 79 67 6f 6e 73 2e 09 | ff 00 14 0c 02 f7 4e 65 |lygons..|......Ne|
|00000a50| 78 74 ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 6e |xt......| : the n|
|00000a60| 65 78 74 20 76 65 72 74 | 65 78 2e 0d 09 ff 00 14 |ext vert|ex......|
|00000a70| 0c 02 f7 42 ff 00 14 0c | 00 f7 20 3a 20 74 68 65 |...B....|.. : the|
|00000a80| 20 63 6f 6c 6f 72 20 28 | 72 61 64 69 6f 73 69 74 | color (|radiosit|
|00000a90| 79 20 6f 66 20 74 68 65 | 20 76 65 72 74 65 78 29 |y of the| vertex)|
|00000aa0| 2d 2d 66 6f 75 6e 64 20 | 62 79 20 61 76 65 72 61 |--found |by avera|
|00000ab0| 67 69 6e 67 20 0d 20 20 | 20 20 20 20 20 20 20 20 |ging . | |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ad0| 20 20 20 20 20 20 20 73 | 75 72 72 6f 75 6e 64 69 | s|urroundi|
|00000ae0| 6e 67 20 72 61 64 69 6f | 73 69 74 69 65 73 2e 0d |ng radio|sities..|
|00000af0| 02 3c ff 00 14 0c 02 f7 | 55 43 6f 6c 6f 72 ff 00 |.<......|UColor..|
|00000b00| 14 0c 00 f7 20 20 3a 20 | 61 20 63 6f 6c 6f 72 20 |.... : |a color |
|00000b10| 77 68 65 72 65 20 72 2c | 67 2c 62 20 61 72 65 20 |where r,|g,b are |
|00000b20| 62 65 74 77 65 65 6e 20 | 30 20 61 6e 64 20 32 35 |between |0 and 25|
|00000b30| 35 0d ff 00 14 0c 02 f7 | 43 6f 6c 6f 72 ff 00 14 |5.......|Color...|
|00000b40| 0c 00 f7 20 20 20 20 20 | 3a 20 61 20 63 6f 6c 6f |... |: a colo|
|00000b50| 72 20 77 68 65 72 65 20 | 72 2c 67 2c 62 20 61 72 |r where |r,g,b ar|
|00000b60| 65 20 62 65 74 77 65 65 | 6e 20 30 20 61 6e 64 20 |e betwee|n 0 and |
|00000b70| 31 20 28 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |1 (float|ing poin|
|00000b80| 74 20 63 6f 6c 6f 72 73 | 29 0d ff 00 14 0c 02 f7 |t colors|).......|
|00000b90| 57 69 6e 64 6f 77 20 ff | 00 14 0c 00 f7 3a 20 74 |Window .|.....: t|
|00000ba0| 68 65 20 6c 65 66 74 2c | 72 69 67 68 74 2c 74 6f |he left,|right,to|
|00000bb0| 70 2c 61 6e 64 20 62 6f | 74 74 6f 6d 20 63 6f 6f |p,and bo|ttom coo|
|00000bc0| 72 64 69 6e 61 74 65 73 | 20 6f 66 20 61 20 77 69 |rdinates| of a wi|
|00000bd0| 6e 64 6f 77 0d 0d 44 61 | 74 61 20 73 74 72 75 63 |ndow..Da|ta struc|
|00000be0| 74 75 72 65 73 20 75 73 | 65 64 20 74 6f 20 73 74 |tures us|ed to st|
|00000bf0| 6f 72 65 20 6f 62 6a 65 | 63 74 73 20 69 6e 20 74 |ore obje|cts in t|
|00000c00| 68 65 20 73 63 65 6e 65 | 3a 0d 0d ff 00 14 0c 02 |he scene|:.......|
|00000c10| f7 56 65 72 74 65 78 4c | 69 73 74 43 65 6c 6c ff |.VertexL|istCell.|
|00000c20| 00 14 0c 00 f7 20 20 20 | 3a 20 75 73 65 64 20 61 |..... |: used a|
|00000c30| 73 20 61 20 63 65 6c 6c | 20 69 6e 20 61 20 6c 69 |s a cell| in a li|
|00000c40| 73 74 20 6f 66 20 76 65 | 72 74 65 78 20 70 6f 69 |st of ve|rtex poi|
|00000c50| 6e 74 65 72 73 2e 20 20 | 45 61 63 68 20 70 6f 6c |nters. |Each pol|
|00000c60| 79 67 6f 6e 20 73 74 6f | 72 65 73 20 61 20 6c 69 |ygon sto|res a li|
|00000c70| 73 74 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |st. | |
|00000c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c90| 6f 66 20 69 74 73 20 76 | 65 72 74 69 63 65 73 20 |of its v|ertices |
|00000ca0| 61 6e 64 20 75 73 65 73 | 20 56 65 72 74 65 78 4c |and uses| VertexL|
|00000cb0| 69 73 74 43 65 6c 6c 73 | 20 74 6f 20 68 6f 6c 64 |istCells| to hold|
|00000cc0| 20 74 68 65 6d 2e 0d ff | 00 14 0c 02 f7 50 6f 6c | them...|.....Pol|
|00000cd0| 79 67 6f 6e 4c 69 73 74 | 43 65 6c 6c ff 00 14 0c |ygonList|Cell....|
|00000ce0| 00 f7 20 3a 20 75 73 65 | 64 20 61 73 20 61 20 63 |.. : use|d as a c|
|00000cf0| 65 6c 6c 20 69 6e 20 61 | 20 6c 69 73 74 20 6f 66 |ell in a| list of|
|00000d00| 20 70 6f 6c 79 67 6f 6e | 20 70 6f 69 6e 74 65 72 | polygon| pointer|
|00000d10| 73 2e 20 20 45 61 63 68 | 20 76 65 72 74 65 78 20 |s. Each| vertex |
|00000d20| 73 74 6f 72 65 73 20 61 | 20 6c 69 73 74 0d 02 82 |stores a| list...|
|00000d30| ff 00 14 0c 02 f7 4f 62 | 6a 65 63 74 43 65 6c 6c |......Ob|jectCell|
|00000d40| ff 00 14 0c 00 f7 20 20 | 20 20 20 20 20 09 3a 20 |...... | .: |
|00000d50| 53 74 6f 72 65 73 20 61 | 6e 20 6f 62 6a 65 63 74 |Stores a|n object|
|00000d60| 20 69 6e 20 61 20 73 63 | 65 6e 65 0d 09 2d 20 ff | in a sc|ene..- .|
|00000d70| 00 14 0c 01 f7 66 69 65 | 6c 64 73 ff 00 14 0c 00 |.....fie|lds.....|
|00000d80| f7 0d 09 ff 00 14 0c 02 | f7 4e 75 6d 62 65 72 ff |........|.Number.|
|00000d90| 00 14 0c 00 f7 20 3a 20 | 61 20 75 6e 69 71 75 65 |..... : |a unique|
|00000da0| 20 69 6e 74 65 67 65 72 | 20 74 68 61 74 20 69 64 | integer| that id|
|00000db0| 65 6e 74 69 66 69 65 73 | 20 74 68 65 20 6f 62 6a |entifies| the obj|
|00000dc0| 65 63 74 2e 09 ff 00 14 | 0c 02 f7 54 65 78 74 75 |ect.....|...Textu|
|00000dd0| 72 65 4d 61 70 ff 00 14 | 0c 00 f7 20 3a 20 61 20 |reMap...|... : a |
|00000de0| 74 77 6f 2d 64 69 6d 65 | 6e 73 69 6f 6e 61 6c 20 |two-dime|nsional |
|00000df0| 61 72 72 61 79 20 74 68 | 61 74 20 73 74 6f 72 65 |array th|at store|
|00000e00| 73 20 74 68 65 20 74 65 | 78 74 75 72 65 0d 09 20 |s the te|xture.. |
|00000e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e20| 20 20 20 20 20 20 6d 61 | 70 20 6f 66 20 74 68 65 | ma|p of the|
|00000e30| 20 6f 62 6a 65 63 74 20 | 28 69 66 20 61 6e 79 29 | object |(if any)|
|00000e40| 0d 09 ff 00 14 0c 02 f7 | 6d 61 70 48 65 69 67 68 |........|mapHeigh|
|00000e50| 74 ff 00 14 0c 00 f7 20 | 3a 20 74 68 65 20 68 65 |t...... |: the he|
|00000e60| 69 67 68 74 20 28 69 6e | 20 70 69 78 65 6c 73 29 |ight (in| pixels)|
|00000e70| 20 6f 66 20 74 68 65 20 | 74 65 78 74 75 72 65 20 | of the |texture |
|00000e80| 6d 61 70 20 28 69 66 20 | 61 6e 79 29 0d 09 ff 00 |map (if |any)....|
|00000e90| 14 0c 02 f7 6d 61 70 57 | 69 64 74 68 ff 00 14 0c |....mapW|idth....|
|00000ea0| 00 f7 20 3a 20 74 68 65 | 20 77 69 64 74 68 20 28 |.. : the| width (|
|00000eb0| 69 6e 20 70 69 78 65 6c | 73 29 20 6f 66 20 74 68 |in pixel|s) of th|
|00000ec0| 65 20 74 65 78 74 75 72 | 65 20 6d 61 70 20 28 69 |e textur|e map (i|
|00000ed0| 66 20 61 6e 79 29 0d 09 | ff 00 14 0c 02 f7 4e 6f |f any)..|......No|
|00000ee0| 6f 66 56 65 72 74 69 63 | 65 73 ff 00 14 0c 00 f7 |ofVertic|es......|
|00000ef0| 20 3a 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 | : the n|umber of|
|00000f00| 20 76 65 72 74 69 63 65 | 73 20 74 68 61 74 20 74 | vertice|s that t|
|00000f10| 68 65 20 6f 62 6a 65 63 | 74 20 68 61 73 2e 0d 09 |he objec|t has...|
|00000f20| ff 00 14 0c 02 f7 4e 6f | 6f 66 50 6f 6c 79 67 6f |......No|ofPolygo|
|00000f30| 6e 73 ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 6e |ns......| : the n|
|00000f40| 75 6d 62 65 72 20 6f 66 | 20 70 6f 6c 79 67 6f 6e |umber of| polygon|
|00000f50| 73 20 74 68 61 74 20 74 | 68 65 20 6f 62 6a 65 63 |s that t|he objec|
|00000f60| 74 20 68 61 73 2e 0d 09 | ff 00 14 0c 02 f7 56 65 |t has...|......Ve|
|00000f70| 72 74 65 78 48 65 61 64 | ff 00 14 0c 00 f7 20 3a |rtexHead|...... :|
|00000f80| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 74 68 | a point|er to th|
|00000f90| 65 20 6c 69 73 74 20 6f | 66 20 76 65 72 74 69 63 |e list o|f vertic|
|00000fa0| 65 73 20 6f 66 20 74 68 | 65 20 6f 62 6a 65 63 74 |es of th|e object|
|00000fb0| 2e 0d 00 d6 09 ff 00 14 | 0c 02 f7 77 69 6e 57 69 |........|...winWi|
|00000fc0| 64 74 68 ff 00 14 0c 00 | f7 20 20 20 20 20 3a 20 |dth.....|. : |
|00000fd0| 54 68 65 20 77 69 64 74 | 68 20 6f 66 20 74 68 65 |The widt|h of the|
|00000fe0| 20 76 69 65 77 70 6c 61 | 6e 65 20 69 6e 20 70 69 | viewpla|ne in pi|
|00000ff0| 78 65 6c 73 2e 0d 09 ff | 00 14 0c 02 f7 77 69 6e |xels....|.....win|
|00001000| 48 65 69 67 68 74 ff 00 | 14 0c 00 f7 20 20 20 20 |Height..|.... |
|00001010| 3a 20 54 68 65 20 68 65 | 69 67 68 74 20 6f 66 20 |: The he|ight of |
|00001020| 74 68 65 20 76 69 65 77 | 70 6c 61 6e 65 20 69 6e |the view|plane in|
|00001030| 20 70 69 78 65 6c 73 2e | 0d 09 ff 00 14 0c 02 f7 | pixels.|........|
|00001040| 56 69 65 77 57 69 6e 64 | 6f 77 ff 00 14 0c 00 f7 |ViewWind|ow......|
|00001050| 20 3a 20 74 68 65 20 77 | 69 6e 64 6f 77 20 28 69 | : the w|indow (i|
|00001060| 6e 20 76 69 65 77 20 63 | 6f 6f 72 64 69 6e 61 74 |n view c|oordinat|
|00001070| 65 73 29 20 74 6f 20 62 | 65 20 70 72 6f 6a 65 63 |es) to b|e projec|
|00001080| 74 65 64 20 6f 6e 74 6f | 2e 0d 01 ac 09 09 ff 00 |ted onto|........|
|00001090| 14 0c 02 f7 64 65 6c 74 | 61 46 46 ff 00 14 0c 00 |....delt|aFF.....|
|000010a0| f7 20 3a 20 74 68 65 20 | 64 65 6c 74 61 20 66 6f |. : the |delta fo|
|000010b0| 72 6d 2d 66 61 63 74 6f | 72 20 66 6f 72 20 74 68 |rm-facto|r for th|
|000010c0| 65 20 70 69 78 65 6c 2e | 0d 09 09 ff 00 14 0c 02 |e pixel.|........|
|000010d0| f7 49 44 ff 00 14 0c 00 | f7 20 3a 20 74 68 65 20 |.ID.....|. : the |
|000010e0| 49 44 20 6f 66 20 74 68 | 65 20 70 6f 6c 79 67 6f |ID of th|e polygo|
|000010f0| 6e 20 74 68 61 74 20 68 | 61 73 20 70 72 6f 6a 65 |n that h|as proje|
|00001100| 63 74 65 64 20 74 68 65 | 72 65 2e ff 00 14 0c 00 |cted the|re......|
|00001110| f7 0d 09 09 0d ff 00 14 | 0c 05 f7 43 6f 6e 73 74 |........|...Const|
|00001120| 61 6e 74 73 ff 00 14 0c | 00 f7 20 3a 0d ff 00 14 |ants....|.. :....|
|00001130| 0c 02 f7 0d 48 65 6d 69 | 52 65 73 ff 00 14 0c 00 |....Hemi|Res.....|
|00001140| f7 20 3a 20 74 68 65 20 | 77 69 64 74 68 20 28 69 |. : the |width (i|
|00001150| 6e 20 70 69 78 65 6c 73 | 29 20 6f 66 20 74 68 65 |n pixels|) of the|
|00001160| 20 68 65 6d 69 63 75 62 | 65 2e 0d ff 00 14 0c 02 | hemicub|e.......|
|00001170| f7 48 61 6c 66 52 65 73 | ff 00 14 0c 00 f7 20 20 |.HalfRes|...... |
|00001180| 20 3a 20 74 68 65 20 68 | 65 69 67 68 74 20 28 69 | : the h|eight (i|
|00001190| 6e 20 70 69 78 65 6c 73 | 29 20 6f 66 20 74 68 65 |n pixels|) of the|
|000011a0| 20 68 65 6d 69 63 75 62 | 65 2e 0d ff 00 14 0c 02 | hemicub|e.......|
|000011b0| f7 50 49 ff 00 14 0c 00 | f7 20 20 20 20 20 20 20 |.PI.....|. |
|000011c0| 20 20 20 20 20 3a 20 63 | 6f 6e 73 74 61 6e 74 20 | : c|onstant |
|000011d0| 50 49 20 74 6f 20 31 30 | 20 64 69 67 69 74 73 2e |PI to 10| digits.|
|000011e0| 0d 0d ff 00 14 0c 05 f7 | 56 61 72 69 61 62 6c 65 |........|Variable|
|000011f0| 73 ff 00 14 0c 00 f7 20 | 3a 0d 0d ff 00 14 0c 02 |s...... |:.......|
|00001200| f7 48 65 6d 69 46 72 6f | 6e 74 ff 00 14 0c 00 f7 |.HemiFro|nt......|
|00001210| 20 20 20 20 3a 20 74 68 | 65 20 66 72 6f 6e 74 20 | : th|e front |
|00001220| 70 6c 61 6e 65 20 6f 66 | 20 74 68 65 20 68 65 6d |plane of| the hem|
|00001230| 69 2d 63 75 62 65 20 0d | 03 77 09 ff 00 14 0c 02 |i-cube .|.w......|
|00001240| f7 41 ff 00 14 0c 00 f7 | 20 20 20 20 20 20 20 20 |.A......| |
|00001250| 3a 20 54 68 65 20 76 65 | 72 74 65 78 20 74 6f 20 |: The ve|rtex to |
|00001260| 62 65 20 63 68 65 63 6b | 65 64 0d 09 ff 00 14 0c |be check|ed......|
|00001270| 02 f7 43 61 73 65 ff 00 | 14 0c 00 f7 20 20 20 3a |..Case..|.... :|
|00001280| 20 75 73 65 64 20 74 6f | 20 64 65 74 65 72 6d 69 | used to| determi|
|00001290| 6e 65 20 77 68 69 63 68 | 20 63 6f 6f 72 64 69 6e |ne which| coordin|
|000012a0| 61 74 65 20 6f 66 20 74 | 68 65 20 76 65 72 74 65 |ate of t|he verte|
|000012b0| 78 20 74 6f 20 63 6f 6d | 70 61 72 65 20 62 6f 75 |x to com|pare bou|
|000012c0| 6e 64 20 74 6f 0d 20 20 | 20 20 20 20 20 20 20 20 |nd to. | |
|000012d0| 20 20 20 20 20 20 20 20 | 20 46 6f 72 20 65 78 61 | | For exa|
|000012e0| 6d 70 6c 65 2c 20 69 66 | 20 63 61 73 65 20 69 73 |mple, if| case is|
|000012f0| 20 32 2c 20 74 68 65 79 | 20 74 68 65 20 72 6f 75 | 2, they| the rou|
|00001300| 74 69 6e 65 20 69 73 20 | 63 68 65 63 6b 69 6e 67 |tine is |checking|
|00001310| 20 74 68 65 20 72 69 67 | 68 74 20 77 61 6c 6c 20 | the rig|ht wall |
|00001320| 61 6e 64 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |and. | |
|00001330| 20 20 20 20 20 20 20 74 | 68 75 73 20 6d 75 73 74 | t|hus must|
|00001340| 20 6c 6f 6f 6b 20 61 74 | 20 74 68 65 20 78 20 76 | look at| the x v|
|00001350| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 76 65 72 74 |alue of |the vert|
|00001360| 65 78 2e 0d 09 ff 00 14 | 0c 02 f7 62 6f 75 6e 64 |ex......|...bound|
|00001370| ff 00 14 0c 00 f7 20 3a | 20 74 68 65 20 61 63 74 |...... :| the act|
|00001380| 75 61 6c 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |ual valu|e of the|
|00001390| 20 62 6f 75 6e 64 69 6e | 67 20 70 6c 61 6e 65 2e | boundin|g plane.|
|000013a0| 20 20 28 62 65 63 61 75 | 73 65 20 76 69 65 77 2d | (becau|se view-|
|000013b0| 76 6f 6c 75 6d 65 20 68 | 61 73 20 62 65 65 6e 20 |volume h|as been |
|000013c0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000013d0| 20 20 20 20 70 72 65 77 | 61 72 70 65 64 2c 20 6f | prew|arped, o|
|000013e0| 6e 6c 79 20 6f 6e 65 20 | 75 6e 69 71 75 65 20 76 |nly one |unique v|
|000013f0| 61 6c 75 65 20 6d 75 73 | 74 20 62 65 20 73 74 6f |alue mus|t be sto|
|00001400| 72 65 64 20 66 6f 72 20 | 65 61 63 68 20 63 6c 69 |red for |each cli|
|00001410| 70 70 69 6e 67 20 70 6c | 61 6e 65 2e 0d 09 2d ff |pping pl|ane...-.|
|00001420| 00 14 0c 03 f7 20 ff 00 | 14 0c 01 f7 6c 6f 63 61 |..... ..|....loca|
|00001430| 6c 73 ff 00 14 0c 00 f7 | 0d 09 ff 00 14 0c 02 f7 |ls......|........|
|00001440| 74 65 6d 70 ff 00 14 0c | 00 f7 20 3a 20 75 73 65 |temp....|.. : use|
|00001450| 64 20 74 6f 20 74 65 6d | 70 6f 72 69 6c 79 20 73 |d to tem|porily s|
|00001460| 74 6f 72 65 20 72 65 74 | 75 72 6e 20 76 61 6c 75 |tore ret|urn valu|
|00001470| 65 2e 0d 09 2d 20 ff 00 | 14 0c 01 f7 64 65 70 65 |e...- ..|....depe|
|00001480| 6e 64 65 6e 63 69 65 73 | ff 00 14 0c 00 f7 0d 09 |ndencies|........|
|00001490| ff 00 14 0c 02 f7 6e 6f | 6e 65 ff 00 14 0c 00 f7 |......no|ne......|
|000014a0| 0d ff 00 14 0c 02 f7 0d | 4f 75 74 73 69 64 65 20 |........|Outside |
|000014b0| ff 00 14 0c 00 f7 3a 20 | 54 68 65 20 6c 6f 67 69 |......: |The logi|
|000014c0| 63 61 6c 20 6f 70 70 6f | 73 69 74 69 65 20 6f 66 |cal oppo|sitie of|
|000014d0| 20 49 6e 73 69 64 65 20 | 28 54 6f 20 63 68 65 63 | Inside |(To chec|
|000014e0| 6b 20 61 6e 64 20 73 65 | 65 20 69 66 20 74 68 65 |k and se|e if the|
|000014f0| 20 76 65 72 74 65 78 20 | 6c 69 65 73 20 69 6e 20 | vertex |lies in |
|00001500| 74 68 65 20 09 20 20 20 | 20 20 20 20 20 20 20 6f |the . | o|
|00001510| 75 74 73 69 64 65 20 68 | 61 6c 66 73 70 61 63 65 |utside h|alfspace|
|00001520| 20 6f 66 20 74 68 65 20 | 70 6c 61 6e 65 2e 20 20 | of the |plane. |
|00001530| 53 69 6d 70 6c 79 20 63 | 61 6c 6c 73 20 49 6e 73 |Simply c|alls Ins|
|00001540| 69 64 65 20 61 6e 64 20 | 6e 65 67 61 74 65 73 20 |ide and |negates |
|00001550| 74 68 65 20 72 65 73 75 | 6c 74 2e 20 20 46 6f 72 |the resu|lt. For|
|00001560| 20 20 20 20 20 20 20 20 | 20 0d 20 20 20 20 20 20 | | . |
|00001570| 20 20 20 20 20 20 20 20 | 20 20 69 6e 66 6f 20 6f | | info o|
|00001580| 6e 20 70 61 72 61 6d 65 | 74 65 72 73 20 73 65 65 |n parame|ters see|
|00001590| 20 74 68 65 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 | the def|inition |
|000015a0| 6f 66 20 49 6e 73 69 64 | 65 20 61 62 6f 76 65 2e |of Insid|e above.|
|000015b0| 0d 02 89 09 ff 00 14 0c | 02 f7 54 72 61 76 65 72 |........|..Traver|
|000015c0| 73 65 ff 00 14 0c 00 f7 | 20 3a 20 75 73 65 64 20 |se......| : used |
|000015d0| 74 6f 20 74 72 61 76 65 | 72 73 65 20 76 69 73 76 |to trave|rse visv|
|000015e0| 65 72 74 65 78 63 65 6c | 6c 20 6c 69 73 74 2e 0d |ertexcel|l list..|
|000015f0| 09 ff 00 14 0c 02 f7 4f | 75 74 70 75 74 ff 00 14 |.......O|utput...|
|00001600| 0c 00 f7 20 3a 20 53 68 | 6f 75 6c 64 20 76 65 72 |... : Sh|ould ver|
|00001610| 74 65 78 20 42 20 62 65 | 20 61 64 64 65 64 20 74 |tex B be| added t|
|00001620| 6f 20 74 68 65 20 6e 65 | 77 20 6c 69 73 74 3f 0d |o the ne|w list?.|
|00001630| 09 ff 00 14 0c 02 f7 49 | 6e 74 65 72 73 65 63 74 |.......I|ntersect|
|00001640| ff 00 14 0c 00 f7 20 3a | 20 48 61 73 20 61 20 6e |...... :| Has a n|
|00001650| 65 77 20 76 65 72 74 65 | 78 20 62 65 65 6e 20 63 |ew verte|x been c|
|00001660| 72 65 61 74 65 64 3f 0d | 09 ff 00 14 0c 02 f7 74 |reated?.|.......t|
|00001670| ff 00 14 0c 00 f7 20 3a | 20 74 68 65 20 69 6e 74 |...... :| the int|
|00001680| 65 72 73 65 63 74 69 6f | 6e 20 74 69 6d 65 20 6f |ersectio|n time o|
|00001690| 66 20 74 68 65 20 6c 69 | 6e 65 20 73 65 67 6d 65 |f the li|ne segme|
|000016a0| 6e 74 20 62 65 69 6e 67 | 20 70 72 6f 63 65 73 73 |nt being| process|
|000016b0| 65 64 20 61 6e 64 20 74 | 68 65 20 63 6c 69 70 70 |ed and t|he clipp|
|000016c0| 69 6e 67 20 70 6c 61 6e | 65 2e 0d 09 ff 00 14 0c |ing plan|e.......|
|000016d0| 02 f7 74 72 61 76 65 72 | 73 65 ff 00 14 0c 00 f7 |..traver|se......|
|000016e0| 20 3a 20 75 73 65 64 20 | 74 6f 20 74 72 61 76 65 | : used |to trave|
|000016f0| 72 73 65 20 76 69 73 20 | 76 65 72 74 65 78 20 6c |rse vis |vertex l|
|00001700| 69 73 74 2e 0d 09 ff 00 | 14 0c 02 f7 74 65 6d 70 |ist.....|....temp|
|00001710| 66 72 65 65 ff 00 14 0c | 00 f7 20 3a 20 75 73 65 |free....|.. : use|
|00001720| 64 20 74 6f 20 66 72 65 | 65 20 75 70 20 6d 65 6d |d to fre|e up mem|
|00001730| 6f 72 79 2e 0d 20 20 20 | 20 20 20 2d 20 ff 00 14 |ory.. | - ...|
|00001740| 0c 01 f7 64 65 70 65 6e | 64 65 6e 63 69 65 73 ff |...depen|dencies.|
|00001750| 00 14 0c 00 f7 0d 20 20 | 20 20 20 ff 00 14 0c 02 |...... | .....|
|00001760| f7 20 49 6e 73 69 64 65 | 2f 43 6c 69 70 2e 63 0d |. Inside|/Clip.c.|
|00001770| 09 4f 75 74 73 69 64 65 | 2f 43 6c 69 70 2e 63 0d |.Outside|/Clip.c.|
|00001780| 0d 43 6c 69 70 50 6f 6c | 79 67 6f 6e ff 00 14 0c |.ClipPol|ygon....|
|00001790| 00 f7 20 3a 20 43 6c 69 | 70 73 20 61 20 70 6f 6c |.. : Cli|ps a pol|
|000017a0| 79 67 6f 6e 20 74 6f 20 | 74 68 65 20 76 69 65 77 |ygon to |the view|
|000017b0| 20 76 6f 6c 75 6d 65 20 | 73 70 65 63 69 66 69 65 | volume |specifie|
|000017c0| 64 20 62 79 20 56 69 65 | 77 57 69 6e 64 6f 77 2e |d by Vie|wWindow.|
|000017d0| 20 46 69 72 73 74 0d 20 | 20 20 20 20 20 20 20 20 | First. | |
|000017e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I|
|000017f0| 74 20 63 6c 69 70 73 20 | 74 6f 20 61 20 77 20 70 |t clips |to a w p|
|00001800| 6c 61 6e 65 20 77 68 69 | 63 68 20 73 65 74 73 20 |lane whi|ch sets |
|00001810| 72 69 67 68 74 20 69 6e | 20 66 72 6f 6e 74 20 6f |right in| front o|
|00001820| 66 20 74 68 65 20 45 79 | 65 2e 20 20 54 68 69 73 |f the Ey|e. This|
|00001830| 20 65 6c 69 6d 69 6e 61 | 74 65 73 0d 03 22 09 2d | elimina|tes..".-|
|00001840| 20 ff 00 14 0c 01 f7 76 | 61 72 69 61 62 6c 65 73 | ......v|ariables|
|00001850| ff 00 14 0c 00 f7 20 3a | 20 09 0d 09 ff 00 14 0c |...... :| .......|
|00001860| 02 f7 45 64 67 65 4c 69 | 73 74 ff 00 14 0c 00 f7 |..EdgeLi|st......|
|00001870| 20 3a 20 75 73 65 64 20 | 74 6f 20 73 74 6f 72 65 | : used |to store|
|00001880| 20 74 68 65 20 72 65 73 | 75 6c 74 73 20 6f 66 20 | the res|ults of |
|00001890| 72 61 73 74 65 72 69 7a | 69 6e 67 20 74 68 65 20 |rasteriz|ing the |
|000018a0| 6c 69 6e 65 73 20 6f 66 | 20 74 68 65 20 70 6f 6c |lines of| the pol|
|000018b0| 79 67 6f 6e 73 2e 0d 09 | ff 00 14 0c 02 f7 6c 6f |ygons...|......lo|
|000018c0| 6f 70 2c 20 6c 6f 6f 70 | 32 ff 00 14 0c 00 f7 20 |op, loop|2...... |
|000018d0| 3a 20 63 6f 75 6e 74 65 | 72 20 76 61 72 69 61 62 |: counte|r variab|
|000018e0| 6c 65 73 2e 0d 09 ff 00 | 14 0c 02 f7 43 75 72 72 |les.....|....Curr|
|000018f0| 65 6e 74 50 6f 6c 79 ff | 00 14 0c 00 f7 20 3a 20 |entPoly.|..... : |
|00001900| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |a pointe|r to the|
|00001910| 20 70 6f 6c 79 67 6f 6e | 20 63 75 72 72 65 6e 74 | polygon| current|
|00001920| 6c 79 20 62 65 69 6e 67 | 20 70 72 6f 63 65 73 73 |ly being| process|
|00001930| 65 64 2e 0d 09 ff 00 14 | 0c 02 f7 4f 62 6a 65 63 |ed......|...Objec|
|00001940| 74 ff 00 14 0c 00 f7 20 | 3a 20 61 20 70 6f 69 6e |t...... |: a poin|
|00001950| 74 65 72 20 74 6f 20 74 | 68 65 20 6f 62 6a 65 63 |ter to t|he objec|
|00001960| 74 20 63 75 72 72 65 6e | 74 6c 79 20 62 65 69 6e |t curren|tly bein|
|00001970| 67 20 70 72 6f 63 65 73 | 73 65 64 2e 0d 09 ff 00 |g proces|sed.....|
|00001980| 14 0c 02 f7 46 69 72 73 | 74 56 65 72 74 65 78 ff |....Firs|tVertex.|
|00001990| 00 14 0c 00 f7 20 3a 20 | 73 74 6f 72 65 73 20 74 |..... : |stores t|
|000019a0| 68 65 20 66 69 72 73 74 | 20 76 69 73 76 65 72 74 |he first| visvert|
|000019b0| 65 78 20 6f 66 20 74 68 | 65 20 70 6f 6c 79 67 6f |ex of th|e polygo|
|000019c0| 6e 20 28 75 73 65 64 20 | 77 68 65 6e 20 72 61 73 |n (used |when ras|
|000019d0| 74 65 72 69 7a 69 6e 67 | 0d 20 20 20 20 20 20 20 |terizing|. |
|000019e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019f0| 20 20 20 20 20 66 69 6e | 61 6c 20 6c 69 6e 65 20 | fin|al line |
|00001a00| 6f 66 20 70 6f 6c 79 67 | 6f 6e 29 2e 0d 09 ff 00 |of polyg|on).....|
|00001a10| 14 0c 02 f7 54 72 61 76 | 65 72 73 65 ff 00 14 0c |....Trav|erse....|
|00001a20| 00 f7 20 3a 20 75 73 65 | 64 20 74 6f 20 74 72 61 |.. : use|d to tra|
|00001a30| 76 65 72 73 65 20 74 68 | 65 20 76 69 73 76 65 72 |verse th|e visver|
|00001a40| 74 65 78 20 6c 69 73 74 | 2e 0d 09 ff 00 14 0c 02 |tex list|........|
|00001a50| f7 7a 2c 7a 69 6e 63 ff | 00 14 0c 00 f7 20 3a 20 |.z,zinc.|..... : |
|00001a60| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 65 70 74 |the curr|ent dept|
|00001a70| 68 20 61 73 20 77 65 6c | 6c 20 61 73 20 74 68 65 |h as wel|l as the|
|00001a80| 20 64 65 70 74 68 20 69 | 6e 63 72 65 6d 65 6e 74 | depth i|ncrement|
|00001a90| 20 74 6f 20 62 65 20 61 | 64 64 65 64 20 74 6f 20 | to be a|dded to |
|00001aa0| 67 65 74 0d 09 20 20 20 | 20 20 20 20 20 20 20 20 |get.. | |
|00001ab0| 20 64 65 70 74 68 20 6f | 66 20 6e 65 78 74 20 70 | depth o|f next p|
|00001ac0| 69 78 65 6c 2e 0d 09 ff | 00 14 0c 02 f7 47 6f 6e |ixel....|.....Gon|
|00001ad0| 65 ff 00 14 0c 00 f7 20 | 3a 20 68 61 73 20 74 68 |e...... |: has th|
|00001ae0| 65 20 70 6f 6c 79 67 6f | 6e 20 62 65 65 6e 20 63 |e polygo|n been c|
|00001af0| 6f 6d 70 6c 65 74 65 6c | 79 20 63 6c 69 70 70 65 |ompletel|y clippe|
|00001b00| 64 20 61 77 61 79 3f 20 | 0d 09 2d 20 ff 00 14 0c |d away? |..- ....|
|00001b10| 01 f7 64 65 70 65 6e 64 | 65 6e 63 69 65 73 20 3a |..depend|encies :|
|00001b20| ff 00 14 0c 00 f7 0d ff | 00 14 0c 02 f7 09 43 6c |........|......Cl|
|00001b30| 69 70 50 6f 6c 79 67 6f | 6e 2f 63 6c 69 70 2e 63 |ipPolygo|n/clip.c|
|00001b40| 0d 09 52 61 73 74 65 72 | 69 7a 65 45 64 67 65 2f |..Raster|izeEdge/|
|00001b50| 72 65 6e 64 65 72 2e 63 | 0d ff 00 14 0c 00 f7 0d |render.c|........|
|00001b60| 03 4e 09 2d 20 ff 00 14 | 0c 01 f7 72 65 74 75 72 |.N.- ...|...retur|
|00001b70| 6e 73 ff 00 14 0c 00 f7 | 0d 20 20 20 20 20 20 61 |ns......|. a|
|00001b80| 20 62 6f 6f 6c 65 61 6e | 20 74 65 6c 6c 69 6e 67 | boolean| telling|
|00001b90| 20 77 68 65 74 68 65 72 | 20 74 68 65 20 76 65 72 | whether| the ver|
|00001ba0| 74 65 78 20 69 73 20 69 | 6e 20 74 68 65 20 6f 75 |tex is i|n the ou|
|00001bb0| 74 73 69 64 65 20 68 61 | 6c 66 73 70 61 63 65 20 |tside ha|lfspace |
|00001bc0| 6f 66 20 74 68 65 20 63 | 6c 69 70 70 69 6e 67 20 |of the c|lipping |
|00001bd0| 70 6c 61 6e 65 2e 0d fc | 00 5a 02 0a 00 5a 00 0e |plane...|.Z...Z..|
|00001be0| 02 b8 06 30 f7 20 20 20 | 20 20 20 2d 20 ff 00 14 |...0. | - ...|
|00001bf0| 0c 01 f7 64 65 70 65 6e | 64 65 6e 63 69 65 73 ff |...depen|dencies.|
|00001c00| 00 14 0c 00 f7 0d 20 20 | 20 ff 00 14 0c 02 f7 20 |...... | ...... |
|00001c10| 20 20 49 6e 73 69 64 65 | 2f 43 6c 69 70 2e 63 0d | Inside|/Clip.c.|
|00001c20| 0d 43 6c 69 70 54 6f ff | 00 14 0c 00 f7 20 3a 20 |.ClipTo.|..... : |
|00001c30| 43 6c 69 70 73 20 61 20 | 70 6f 6c 79 67 6f 6e 20 |Clips a |polygon |
|00001c40| 61 67 61 69 6e 73 74 20 | 61 20 70 6c 61 6e 65 20 |against |a plane |
|00001c50| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 43 61 73 |specifie|d by Cas|
|00001c60| 65 20 61 6e 64 20 42 6f | 75 6e 64 2e 20 20 0d fc |e and Bo|und. ..|
|00001c70| 00 5a 02 0a 00 5a 00 0e | 01 b4 02 b8 06 30 f7 09 |.Z...Z..|.....0..|
|00001c80| 2d 20 ff 00 14 0c 01 f7 | 70 61 72 61 6d 65 74 65 |- ......|paramete|
|00001c90| 72 73 ff 00 14 0c 00 f7 | 0d 09 ff 00 14 0c 02 f7 |rs......|........|
|00001ca0| 4f 6c 64 56 65 72 74 73 | ff 00 14 0c 00 f7 20 3a |OldVerts|...... :|
|00001cb0| 20 41 20 6c 69 73 74 20 | 6f 66 20 74 68 65 20 76 | A list |of the v|
|00001cc0| 65 72 74 69 63 65 73 20 | 62 65 66 6f 72 65 20 63 |ertices |before c|
|00001cd0| 6c 69 70 70 69 6e 67 20 | 61 67 61 69 6e 73 74 20 |lipping |against |
|00001ce0| 70 6c 61 6e 65 2e 0d 09 | ff 00 14 0c 02 f7 50 6f |plane...|......Po|
|00001cf0| 6c 79 ff 00 14 0c 00 f7 | 20 3a 20 41 20 70 6f 69 |ly......| : A poi|
|00001d00| 6e 74 65 72 20 74 6f 20 | 74 68 65 20 70 6f 6c 79 |nter to |the poly|
|00001d10| 67 6f 6e 20 74 68 61 74 | 20 69 73 20 62 65 69 6e |gon that| is bein|
|00001d20| 67 20 63 6c 69 70 70 65 | 64 2e 0d 09 ff 00 14 0c |g clippe|d.......|
|00001d30| 02 f7 47 6f 6e 65 ff 00 | 14 0c 00 f7 20 3a 20 57 |..Gone..|.... : W|
|00001d40| 61 73 20 74 68 65 20 70 | 6f 6c 79 67 6f 6e 20 63 |as the p|olygon c|
|00001d50| 6f 6d 70 6c 65 74 65 6c | 79 20 63 6c 69 70 70 65 |ompletel|y clippe|
|00001d60| 64 20 6f 75 74 3f 0d 09 | ff 00 14 0c 02 f7 43 61 |d out?..|......Ca|
|00001d70| 73 65 ff 00 14 0c 00 f7 | 20 3a 20 57 68 69 63 68 |se......| : Which|
|00001d80| 20 70 6c 61 6e 65 20 6f | 66 20 74 68 65 20 76 69 | plane o|f the vi|
|00001d90| 65 77 2d 76 6f 6c 75 6d | 65 20 61 72 65 20 77 65 |ew-volum|e are we|
|00001da0| 20 63 6c 69 70 70 69 6e | 67 20 61 67 61 69 6e 73 | clippin|g agains|
|00001db0| 74 3f 0d 09 ff 00 14 0c | 02 f7 62 6f 75 6e 64 ff |t?......|..bound.|
|00001dc0| 00 14 0c 00 f7 20 3a 20 | 57 68 61 74 20 69 73 20 |..... : |What is |
|00001dd0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 61 |the valu|e of tha|
|00001de0| 74 20 70 6c 61 6e 65 3f | 0d 09 2d 20 ff 00 14 0c |t plane?|..- ....|
|00001df0| 01 f7 6c 6f 63 61 6c 73 | ff 00 14 0c 02 f7 0d 09 |..locals|........|
|00001e00| 4e 65 77 2c 4e 65 77 42 | ff 00 14 0c 00 f7 20 3a |New,NewB|...... :|
|00001e10| 20 70 6f 69 6e 74 65 72 | 73 20 74 6f 20 76 69 73 | pointer|s to vis|
|00001e20| 76 65 72 74 65 78 63 65 | 6c 6c 73 20 75 73 65 64 |vertexce|lls used|
|00001e30| 20 74 6f 20 63 72 65 61 | 74 65 20 6e 65 77 20 76 | to crea|te new v|
|00001e40| 69 73 76 65 72 74 65 78 | 20 69 66 20 6e 65 65 64 |isvertex| if need|
|00001e50| 65 64 2e 0d 09 ff 00 14 | 0c 02 f7 41 2c 42 ff 00 |ed......|...A,B..|
|00001e60| 14 0c 00 f7 20 3a 20 54 | 68 65 20 74 77 6f 20 76 |.... : T|he two v|
|00001e70| 65 72 74 69 63 65 73 20 | 74 68 61 74 20 6d 61 6b |ertices |that mak|
|00001e80| 65 20 75 70 20 74 68 65 | 20 6c 69 6e 65 20 73 65 |e up the| line se|
|00001e90| 67 6d 65 6e 74 20 63 75 | 72 72 65 6e 74 6c 79 20 |gment cu|rrently |
|00001ea0| 62 65 69 6e 67 20 65 78 | 61 6d 69 6e 65 64 2e 0d |being ex|amined..|
|00001eb0| 02 26 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.& | |
|00001ec0| 20 20 20 20 20 20 20 20 | 20 20 70 6f 6c 79 67 6f | | polygo|
|00001ed0| 6e 73 20 62 65 68 69 6e | 64 20 74 68 65 20 65 79 |ns behin|d the ey|
|00001ee0| 65 2e 20 20 54 68 65 6e | 2c 20 69 74 20 64 6f 65 |e. Then|, it doe|
|00001ef0| 73 20 74 68 65 20 70 65 | 72 73 70 65 63 74 69 76 |s the pe|rspectiv|
|00001f00| 65 20 77 61 72 70 69 6e | 67 20 73 6f 20 74 68 61 |e warpin|g so tha|
|00001f10| 74 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t. | |
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 74 68 65 20 72 65 | | the re|
|00001f30| 73 74 20 6f 66 20 74 68 | 65 20 63 6c 69 70 70 69 |st of th|e clippi|
|00001f40| 6e 67 20 69 73 20 74 72 | 69 76 69 61 6c 2e 20 20 |ng is tr|ivial. |
|00001f50| 49 74 20 74 68 65 6e 20 | 63 6c 69 70 73 20 74 6f |It then |clips to|
|00001f60| 20 65 61 63 68 20 73 69 | 64 65 20 6f 66 20 77 61 | each si|de of wa|
|00001f70| 72 70 65 64 0d 20 20 20 | 20 20 20 20 20 20 20 20 |rped. | |
|00001f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 76 69 65 | | vie|
|00001f90| 77 2d 76 6f 6c 75 6d 65 | 20 69 6e 20 74 75 72 6e |w-volume| in turn|
|00001fa0| 20 75 73 69 6e 67 20 74 | 68 65 20 72 6f 75 74 69 | using t|he routi|
|00001fb0| 6e 65 20 43 6c 69 70 54 | 6f 2e 0d 09 2d 20 ff 00 |ne ClipT|o...- ..|
|00001fc0| 14 0c 01 f7 70 61 72 61 | 6d 65 74 65 72 73 ff 00 |....para|meters..|
|00001fd0| 14 0c 02 f7 0d 09 50 6f | 6c 79 ff 00 14 0c 00 f7 |......Po|ly......|
|00001fe0| 20 3a 20 54 68 65 20 70 | 6f 6c 79 67 6f 6e 20 74 | : The p|olygon t|
|00001ff0| 6f 20 62 65 20 63 6c 69 | 70 70 65 64 2e 0d 09 ff |o be cli|pped....|
|00002000| 00 14 0c 02 f7 56 69 65 | 77 57 69 6e 64 6f 77 ff |.....Vie|wWindow.|
|00002010| 00 14 0c 00 f7 20 3a 20 | 54 68 65 20 76 69 65 77 |..... : |The view|
|00002020| 77 69 6e 64 6f 77 20 74 | 6f 20 63 6c 69 70 20 61 |window t|o clip a|
|00002030| 67 61 69 6e 73 74 2e 0d | 09 ff 00 14 0c 02 f7 47 |gainst..|.......G|
|00002040| 6f 6e 65 ff 00 14 0c 00 | f7 20 3a 20 57 61 73 20 |one.....|. : Was |
|00002050| 74 68 65 20 70 6f 6c 79 | 67 6f 6e 20 63 6f 6d 70 |the poly|gon comp|
|00002060| 6c 65 74 65 6c 79 20 63 | 6c 69 70 70 65 64 20 61 |letely c|lipped a|
|00002070| 77 61 79 3f 0d 09 2d 20 | ff 00 14 0c 01 f7 6c 6f |way?..- |......lo|
|00002080| 63 61 6c 73 ff 00 14 0c | 00 f7 0d 09 ff 00 14 0c |cals....|........|
|00002090| 02 f7 74 72 61 76 65 72 | 73 65 6c 69 73 74 ff 00 |..traver|selist..|
|000020a0| 14 0c 00 f7 20 3a 20 75 | 73 65 64 20 74 6f 20 74 |.... : u|sed to t|
|000020b0| 72 61 76 65 72 73 65 20 | 74 68 65 20 76 65 72 74 |raverse |the vert|
|000020c0| 65 78 20 6c 69 73 74 20 | 6f 66 20 74 68 65 20 70 |ex list |of the p|
|000020d0| 6f 6c 79 67 6f 6e 2e 0d | 03 0f ff 00 14 0c 02 f7 |olygon..|........|
|000020e0| 48 65 6d 69 52 69 67 68 | 74 ff 00 14 0c 00 f7 20 |HemiRigh|t...... |
|000020f0| 20 20 20 3a 20 74 68 65 | 20 72 69 67 68 74 20 70 | : the| right p|
|00002100| 6c 61 6e 65 20 6f 66 20 | 74 68 65 20 68 65 6d 69 |lane of |the hemi|
|00002110| 2d 63 75 62 65 0d ff 00 | 14 0c 02 f7 48 65 6d 69 |-cube...|....Hemi|
|00002120| 54 6f 70 ff 00 14 0c 00 | f7 20 20 20 20 20 20 3a |Top.....|. :|
|00002130| 20 20 74 68 65 20 74 6f | 70 20 70 6c 61 6e 65 20 | the to|p plane |
|00002140| 6f 66 20 74 68 65 20 68 | 65 6d 69 2d 63 75 62 65 |of the h|emi-cube|
|00002150| 0d ff 00 14 0c 02 f7 48 | 65 6d 69 4c 65 66 74 ff |.......H|emiLeft.|
|00002160| 00 14 0c 00 f7 20 20 20 | 20 20 20 3a 20 20 74 68 |..... | : th|
|00002170| 65 20 6c 65 66 74 20 70 | 6c 61 6e 65 20 6f 66 20 |e left p|lane of |
|00002180| 74 68 65 20 68 65 6d 69 | 2d 63 75 62 65 0d ff 00 |the hemi|-cube...|
|00002190| 14 0c 02 f7 48 65 6d 69 | 42 6f 74 74 6f 6d ff 00 |....Hemi|Bottom..|
|000021a0| 14 0c 00 f7 20 3a 20 20 | 74 68 65 20 62 6f 74 74 |.... : |the bott|
|000021b0| 6f 6d 20 70 6c 61 6e 65 | 20 6f 66 20 74 68 65 20 |om plane| of the |
|000021c0| 68 65 6d 69 2d 63 75 62 | 65 0d 0d ff 00 14 0c 05 |hemi-cub|e.......|
|000021d0| f7 46 75 6e 63 74 69 6f | 6e 73 ff 00 14 0c 01 f7 |.Functio|ns......|
|000021e0| 20 ff 00 14 0c 00 f7 3a | 0d 0d ff 00 14 0c 02 f7 | ......:|........|
|000021f0| 48 65 6d 69 52 65 6e 64 | 65 72 4f 62 6a 65 63 74 |HemiRend|erObject|
|00002200| 73 ff 00 14 0c 00 f7 20 | 3a 20 70 72 6f 6a 65 63 |s...... |: projec|
|00002210| 74 73 20 61 6c 6c 20 6f | 66 20 74 68 65 20 70 61 |ts all o|f the pa|
|00002220| 74 63 68 65 73 20 28 6e | 6f 74 20 65 6c 65 6d 65 |tches (n|ot eleme|
|00002230| 6e 74 73 29 20 6f 6e 74 | 6f 20 74 68 65 20 76 69 |nts) ont|o the vi|
|00002240| 65 77 70 6c 61 6e 65 0d | 20 20 20 20 20 20 20 20 |ewplane.| |
|00002250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 61 6e 64 20 72 | | and r|
|00002270| 61 73 74 65 72 69 7a 65 | 73 20 74 68 65 6d 20 75 |asterize|s them u|
|00002280| 73 69 6e 67 20 5a 2d 62 | 75 66 66 65 72 20 74 79 |sing Z-b|uffer ty|
|00002290| 70 65 20 61 6c 67 6f 72 | 69 74 68 6d 2e 20 20 50 |pe algor|ithm. P|
|000022a0| 75 74 73 20 74 68 65 0d | 20 09 09 20 20 20 20 20 |uts the.| .. |
|000022b0| 20 20 49 44 27 73 20 63 | 6f 72 72 65 73 70 6f 6e | ID's c|orrespon|
|000022c0| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 70 6f 6c 79 |ding to |the poly|
|000022d0| 67 6f 6e 73 20 74 68 61 | 74 20 68 61 76 65 20 70 |gons tha|t have p|
|000022e0| 72 6f 6a 65 63 74 65 64 | 20 69 6e 74 6f 20 0d fa |rojected| into ..|
|000022f0| 80 f7 09 20 20 20 20 20 | 20 20 74 68 65 20 68 65 |... | the he|
|00002300| 6d 69 2d 70 69 78 65 6c | 73 20 6f 66 20 74 68 65 |mi-pixel|s of the|
|00002310| 20 68 65 6d 69 63 75 62 | 65 20 76 61 72 69 61 62 | hemicub|e variab|
|00002320| 6c 65 73 2e 0d 09 2d 20 | ff 00 14 0c 01 f7 70 61 |les...- |......pa|
|00002330| 72 61 6d 65 74 65 72 73 | ff 00 14 0c 00 f7 20 3a |rameters|...... :|
|00002340| 0d 09 ff 00 14 0c 02 f7 | 4f 62 6a 65 63 74 48 65 |........|ObjectHe|
|00002350| 61 64 ff 00 14 0c 00 f7 | 20 3a 20 41 20 70 6f 69 |ad......| : A poi|
|00002360| 6e 74 65 72 20 74 6f 20 | 74 68 65 20 6c 69 73 74 |nter to |the list|
|00002370| 20 6f 66 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 6f | of all |of the o|
|00002380| 62 6a 65 63 74 73 20 69 | 6e 20 74 68 65 20 73 63 |bjects i|n the sc|
|00002390| 65 6e 65 2e 0d 09 ff 00 | 14 0c 02 f7 43 61 73 65 |ene.....|....Case|
|000023a0| ff 00 14 0c 00 f7 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|000023b0| 20 20 20 3a 20 77 68 69 | 63 68 20 73 69 64 65 20 | : whi|ch side |
|000023c0| 6f 66 20 74 68 65 20 68 | 65 6d 69 2d 63 75 62 65 |of the h|emi-cube|
|000023d0| 20 61 72 65 20 77 65 20 | 70 72 6f 6a 65 63 74 69 | are we |projecti|
|000023e0| 6e 67 20 6f 6e 74 6f 3f | 0d 03 df 09 ff 00 14 0c |ng onto?|........|
|000023f0| 02 f7 50 6f 6c 79 ff 00 | 14 0c 00 f7 20 3a 20 54 |..Poly..|.... : T|
|00002400| 68 65 20 70 6f 6c 79 67 | 6f 6e 20 74 68 61 74 20 |he polyg|on that |
|00002410| 74 68 65 20 68 65 6d 69 | 2d 63 75 62 65 20 73 75 |the hemi|-cube su|
|00002420| 72 72 6f 75 6e 64 73 2e | 0d 09 ff 00 14 0c 02 f7 |rrounds.|........|
|00002430| 52 6f 77 ff 00 14 0c 00 | f7 20 3a 20 54 68 65 20 |Row.....|. : The |
|00002440| 72 65 73 75 6c 74 69 6e | 67 20 61 72 72 61 79 20 |resultin|g array |
|00002450| 6f 66 20 66 6f 72 6d 2d | 66 61 63 74 6f 72 73 2e |of form-|factors.|
|00002460| 0d 09 2d 20 ff 00 14 0c | 01 f7 76 61 72 69 62 6c |..- ....|..varibl|
|00002470| 65 73 20 3a ff 00 14 0c | 00 f7 20 0d 09 ff 00 14 |es :....|.. .....|
|00002480| 0c 02 f7 56 52 50 ff 00 | 14 0c 00 f7 20 3a 20 74 |...VRP..|.... : t|
|00002490| 68 65 20 76 69 65 77 2d | 72 65 66 65 72 65 6e 63 |he view-|referenc|
|000024a0| 65 20 70 6f 69 6e 74 20 | 75 73 65 64 20 74 6f 20 |e point |used to |
|000024b0| 70 72 6f 6a 65 63 74 20 | 73 63 65 6e 65 20 6f 6e |project |scene on|
|000024c0| 74 6f 20 6f 6e 65 20 73 | 69 64 65 20 6f 66 20 68 |to one s|ide of h|
|000024d0| 65 6d 69 2d 63 75 62 65 | 2e 0d 09 ff 00 14 0c 02 |emi-cube|........|
|000024e0| f7 63 65 6e 74 65 72 ff | 00 14 0c 00 f7 20 3a 20 |.center.|..... : |
|000024f0| 74 68 65 20 63 65 6e 74 | 65 72 20 6f 66 20 74 68 |the cent|er of th|
|00002500| 65 20 70 61 73 73 65 64 | 20 6f 6e 20 70 6f 6c 79 |e passed| on poly|
|00002510| 67 6f 6e 2e 0d 09 ff 00 | 14 0c 02 f7 6c 6f 6f 70 |gon.....|....loop|
|00002520| 32 2c 6c 6f 6f 70 33 ff | 00 14 0c 00 f7 20 3a 20 |2,loop3.|..... : |
|00002530| 73 69 6d 70 6c 65 20 6c | 6f 6f 70 20 76 61 72 69 |simple l|oop vari|
|00002540| 61 62 6c 65 73 2e 0d 09 | ff 00 14 0c 02 f7 74 72 |ables...|......tr|
|00002550| 61 76 65 72 73 65 ff 00 | 14 0c 00 f7 20 3a 20 75 |averse..|.... : u|
|00002560| 73 65 64 20 74 6f 20 74 | 72 61 76 65 72 73 65 20 |sed to t|raverse |
|00002570| 74 68 65 20 76 65 72 74 | 69 63 65 73 20 6f 66 20 |the vert|ices of |
|00002580| 61 20 70 6f 6c 79 67 6f | 6e 20 77 68 69 6c 65 20 |a polygo|n while |
|00002590| 63 6f 6d 70 75 74 69 6e | 67 20 74 68 65 20 63 65 |computin|g the ce|
|000025a0| 6e 74 65 72 2e 0d 09 ff | 00 14 0c 02 f7 63 6f 75 |nter....|.....cou|
|000025b0| 6e 74 ff 00 14 0c 00 f7 | 20 3a 20 75 73 65 64 20 |nt......| : used |
|000025c0| 74 6f 20 63 6f 6d 70 75 | 74 65 20 74 68 65 20 63 |to compu|te the c|
|000025d0| 65 6e 74 65 72 2e 20 28 | 68 6f 77 20 6d 61 6e 79 |enter. (|how many|
|000025e0| 20 76 65 72 74 69 63 65 | 73 20 29 0d 09 ff 00 14 | vertice|s ).....|
|000025f0| 0c 02 f7 75 2c 76 2c 6e | ff 00 14 0c 00 f7 20 3a |...u,v,n|...... :|
|00002600| 20 74 68 65 20 76 65 63 | 74 6f 72 73 20 66 6f 72 | the vec|tors for|
|00002610| 20 74 68 65 20 76 69 65 | 77 2d 63 6f 6f 72 64 69 | the vie|w-coordi|
|00002620| 6e 61 74 65 20 73 79 73 | 74 65 6d 20 75 73 65 64 |nate sys|tem used|
|00002630| 20 66 6f 72 20 65 61 63 | 68 20 73 69 64 65 20 6f | for eac|h side o|
|00002640| 66 20 68 65 6d 69 2d 63 | 75 62 65 2e 0d 09 ff 00 |f hemi-c|ube.....|
|00002650| 14 0c 02 f7 70 65 72 6d | 75 2c 70 65 72 6d 76 2c |....perm|u,permv,|
|00002660| 70 65 72 6d 6e ff 00 14 | 0c 00 f7 20 3a 20 74 68 |permn...|... : th|
|00002670| 65 20 70 65 72 6d 61 6e | 65 6e 74 20 75 2c 76 2c |e perman|ent u,v,|
|00002680| 6e 20 28 73 6f 20 61 73 | 20 6e 6f 74 20 74 6f 20 |n (so as| not to |
|00002690| 6c 6f 73 65 20 74 68 65 | 73 65 20 76 61 6c 75 65 |lose the|se value|
|000026a0| 73 29 20 0d 09 ff 00 14 | 0c 02 f7 56 69 65 77 57 |s) .....|...ViewW|
|000026b0| 69 6e 64 6f 77 ff 00 14 | 0c 00 f7 20 3a 20 74 68 |indow...|... : th|
|000026c0| 65 20 76 69 65 77 77 69 | 6e 64 6f 77 20 63 6f 72 |e viewwi|ndow cor|
|000026d0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 74 6f 20 65 61 |respondi|ng to ea|
|000026e0| 63 68 20 73 69 64 65 20 | 6f 66 20 68 65 6d 69 2d |ch side |of hemi-|
|000026f0| 63 75 62 65 2e 0d 09 ff | 00 14 0c 02 f7 65 79 65 |cube....|.....eye|
|00002700| ff 00 14 0c 00 f7 20 3a | 20 61 6c 77 61 79 73 20 |...... :| always |
|00002710| 2d 31 20 28 74 68 65 20 | 64 69 73 74 61 6e 63 65 |-1 (the |distance|
|00002720| 20 66 72 6f 6d 20 74 68 | 65 20 63 65 6e 74 65 72 | from th|e center|
|00002730| 20 6f 66 20 74 68 65 20 | 70 6f 6c 79 20 74 6f 20 | of the |poly to |
|00002740| 74 68 65 20 73 69 64 65 | 20 6f 66 20 68 65 6d 2d |the side| of hem-|
|00002750| 63 75 62 65 29 0d 09 ff | 00 14 0c 02 f7 48 65 6d |cube)...|.....Hem|
|00002760| 69 54 72 61 6e 73 66 6f | 72 6d ff 00 14 0c 00 f7 |iTransfo|rm......|
|00002770| 20 3a 20 74 68 65 20 74 | 72 61 6e 73 66 6f 72 6d | : the t|ransform|
|00002780| 20 6d 61 74 72 69 78 20 | 63 6f 72 72 65 73 70 6f | matrix |correspo|
|00002790| 6e 64 69 6e 67 20 74 6f | 20 63 75 72 72 65 6e 74 |nding to| current|
|000027a0| 20 68 65 6d 69 20 76 69 | 65 77 2e 0d 09 2d 20 ff | hemi vi|ew...- .|
|000027b0| 00 14 0c 01 f7 64 65 70 | 65 6e 64 65 6e 63 69 65 |.....dep|endencie|
|000027c0| 73 20 3a ff 00 14 0c 00 | f7 0d 02 e8 0d ff 00 14 |s :.....|........|
|000027d0| 0c 02 f7 41 64 64 ff 00 | 14 0c 00 f7 20 3a 20 74 |...Add..|.... : t|
|000027e0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |his func|tion ret|
|000027f0| 75 72 6e 73 20 74 68 65 | 20 72 65 73 75 6c 74 20 |urns the| result |
|00002800| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 69 6e 70 |of the f|irst inp|
|00002810| 75 74 20 76 65 63 74 6f | 72 20 70 6c 75 73 20 74 |ut vecto|r plus t|
|00002820| 68 65 20 73 65 63 6f 6e | 64 0d 09 2d 20 ff 00 14 |he secon|d..- ...|
|00002830| 0c 01 f7 72 65 74 75 72 | 6e 73 ff 00 14 0c 00 f7 |...retur|ns......|
|00002840| 20 0d 09 74 68 65 20 72 | 65 73 75 6c 74 20 6f 66 | ..the r|esult of|
|00002850| 20 28 69 6e 70 75 74 20 | 76 65 63 74 6f 72 20 31 | (input |vector 1|
|00002860| 29 20 2b 20 28 69 6e 70 | 75 74 20 76 65 63 74 6f |) + (inp|ut vecto|
|00002870| 72 20 32 29 0d 09 2d 20 | ff 00 14 0c 01 f7 70 61 |r 2)..- |......pa|
|00002880| 72 61 6d 65 74 65 72 73 | ff 00 14 0c 00 f7 0d 09 |rameters|........|
|00002890| ff 00 14 0c 02 f7 76 65 | 63 31 ff 00 14 0c 00 f7 |......ve|c1......|
|000028a0| 20 3a 20 74 68 65 20 66 | 69 72 73 74 20 69 6e 70 | : the f|irst inp|
|000028b0| 75 74 20 76 65 63 74 6f | 72 0d 1b 09 ff 00 14 0c |ut vecto|r.......|
|000028c0| 02 f7 76 65 63 32 ff 00 | 14 0c 00 f7 20 3a 20 74 |..vec2..|.... : t|
|000028d0| 68 65 20 73 65 63 6f 6e | 64 20 69 6e 70 75 74 20 |he secon|d input |
|000028e0| 76 65 63 74 6f 72 0d 09 | 2d 20 ff 00 14 0c 01 f7 |vector..|- ......|
|000028f0| 6c 6f 63 61 6c 73 ff 00 | 14 0c 00 f7 20 0d 09 ff |locals..|.... ...|
|00002900| 00 14 0c 02 f7 74 65 6d | 70 ff 00 14 0c 00 f7 20 |.....tem|p...... |
|00002910| 3a 20 75 73 65 64 20 74 | 6f 20 74 65 6d 70 6f 72 |: used t|o tempor|
|00002920| 61 72 69 6c 79 20 73 74 | 6f 72 65 20 74 68 65 20 |arily st|ore the |
|00002930| 72 65 74 75 72 6e 20 76 | 61 6c 75 65 2e 0d 0d ff |return v|alue....|
|00002940| 00 14 0c 02 f7 44 6f 74 | 70 72 6f 64 ff 00 14 0c |.....Dot|prod....|
|00002950| 00 f7 20 3a 20 74 68 69 | 73 20 66 75 6e 63 74 69 |.. : thi|s functi|
|00002960| 6f 6e 20 63 6f 6d 70 75 | 74 65 73 20 74 68 65 20 |on compu|tes the |
|00002970| 64 6f 74 70 72 6f 64 75 | 63 74 20 6f 66 20 74 77 |dotprodu|ct of tw|
|00002980| 6f 20 69 6e 70 75 74 20 | 76 65 63 74 6f 72 73 0d |o input |vectors.|
|00002990| 09 2d 20 ff 00 14 0c 01 | f7 72 65 74 75 72 6e 73 |.- .....|.returns|
|000029a0| 20 ff 00 14 0c 00 f7 0d | 09 74 68 65 20 72 65 73 | .......|.the res|
|000029b0| 75 6c 74 20 6f 66 20 74 | 68 65 20 64 6f 74 70 72 |ult of t|he dotpr|
|000029c0| 6f 64 75 63 74 20 6f 66 | 20 74 68 65 20 74 77 6f |oduct of| the two|
|000029d0| 20 76 65 63 74 6f 72 73 | 2e 0d 09 2d 20 ff 00 14 | vectors|...- ...|
|000029e0| 0c 01 f7 70 61 72 61 6d | 65 74 65 72 73 ff 00 14 |...param|eters...|
|000029f0| 0c 00 f7 0d 09 ff 00 14 | 0c 02 f7 76 65 63 31 ff |........|...vec1.|
|00002a00| 00 14 0c 00 f7 20 3a 20 | 74 68 65 20 66 69 72 73 |..... : |the firs|
|00002a10| 74 20 69 6e 70 75 74 20 | 76 65 63 74 6f 72 0d 09 |t input |vector..|
|00002a20| ff 00 14 0c 02 f7 76 65 | 63 32 ff 00 14 0c 00 f7 |......ve|c2......|
|00002a30| 20 3a 20 74 68 65 20 73 | 65 63 6f 6e 64 20 69 6e | : the s|econd in|
|00002a40| 70 75 74 20 76 65 63 74 | 6f 72 0d 0d ff 00 14 0c |put vect|or......|
|00002a50| 02 f7 43 72 6f 73 73 ff | 00 14 0c 00 f7 20 3a 20 |..Cross.|..... : |
|00002a60| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 72 65 |this fun|ction re|
|00002a70| 74 75 72 6e 73 20 74 68 | 65 20 63 72 6f 73 73 20 |turns th|e cross |
|00002a80| 70 72 6f 64 75 63 74 20 | 6f 66 20 74 77 6f 20 69 |product |of two i|
|00002a90| 6e 70 75 74 20 76 65 63 | 74 6f 72 73 0d 09 2d 20 |nput vec|tors..- |
|00002aa0| ff 00 14 0c 01 f7 72 65 | 74 75 72 6e 73 ff 00 14 |......re|turns...|
|00002ab0| 0c 00 f7 0d 03 89 ff 00 | 14 0c 02 f7 43 6f 6d 70 |........|....Comp|
|00002ac0| 75 74 65 44 65 6c 74 61 | 73 ff 00 14 0c 00 f7 20 |uteDelta|s...... |
|00002ad0| 3a 20 63 6f 6d 70 75 74 | 65 73 20 74 68 65 20 64 |: comput|es the d|
|00002ae0| 65 6c 74 61 20 66 6f 72 | 6d 2d 66 61 63 74 6f 72 |elta for|m-factor|
|00002af0| 73 20 66 6f 72 20 65 76 | 65 72 79 20 70 69 78 65 |s for ev|ery pixe|
|00002b00| 6c 20 6f 6e 20 68 65 6d | 69 2d 63 75 62 65 2e 0d |l on hem|i-cube..|
|00002b10| 09 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002b20| 20 20 20 20 20 20 20 28 | 69 2e 65 2e 20 69 6e 69 | (|i.e. ini|
|00002b30| 74 69 61 6c 69 7a 65 73 | 20 74 68 65 20 64 65 6c |tializes| the del|
|00002b40| 74 61 46 46 20 66 69 65 | 6c 64 20 66 6f 72 20 74 |taFF fie|ld for t|
|00002b50| 68 65 20 68 65 6d 69 2d | 63 75 62 65 29 0d 0d 09 |he hemi-|cube)...|
|00002b60| 2d 20 ff 00 14 0c 01 f7 | 76 61 72 69 61 62 6c 65 |- ......|variable|
|00002b70| 73 ff 00 14 0c 00 f7 20 | 3a 20 0d 09 ff 00 14 0c |s...... |: ......|
|00002b80| 02 f7 69 2c 6a ff 00 14 | 0c 00 f7 20 3a 20 73 69 |..i,j...|... : si|
|00002b90| 6d 70 6c 65 20 6c 6f 6f | 70 20 63 6f 75 6e 74 65 |mple loo|p counte|
|00002ba0| 72 73 2e 0d 09 ff 00 14 | 0c 02 f7 78 2c 79 2c 7a |rs......|...x,y,z|
|00002bb0| ff 00 14 0c 00 f7 20 3a | 20 74 68 65 20 78 2c 79 |...... :| the x,y|
|00002bc0| 2c 7a 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 6f 66 |,z coord|inate of|
|00002bd0| 20 74 68 65 20 70 69 78 | 65 6c 2e 0d 20 09 ff 00 | the pix|el.. ...|
|00002be0| 14 0c 02 f7 64 65 6c 74 | 61 41 2c 73 74 61 72 74 |....delt|aA,start|
|00002bf0| ff 00 14 0c 00 f7 20 3a | 20 69 6e 69 74 69 61 6c |...... :| initial|
|00002c00| 20 76 61 6c 75 65 73 20 | 75 73 65 64 20 69 6e 20 | values |used in |
|00002c10| 63 6f 6d 70 75 74 61 74 | 69 6f 6e 0d 09 ff 00 14 |computat|ion.....|
|00002c20| 0c 02 f7 69 6e 63 ff 00 | 14 0c 00 f7 20 3a 20 68 |...inc..|.... : h|
|00002c30| 6f 77 20 6d 75 63 68 20 | 74 6f 20 61 64 64 20 74 |ow much |to add t|
|00002c40| 6f 20 67 65 74 20 74 6f | 20 6e 65 78 74 20 70 69 |o get to| next pi|
|00002c50| 78 65 6c 0d 09 ff 00 14 | 0c 02 f7 73 75 6d 63 68 |xel.....|...sumch|
|00002c60| 65 63 6b ff 00 14 0c 00 | f7 20 3a 20 75 73 65 64 |eck.....|. : used|
|00002c70| 20 66 6f 72 20 65 72 72 | 6f 72 20 63 68 65 63 6b | for err|or check|
|00002c80| 69 6e 67 20 28 64 6f 65 | 73 20 61 6c 6c 20 6f 66 |ing (doe|s all of|
|00002c90| 20 74 68 65 20 64 65 6c | 74 61 73 20 61 64 64 20 | the del|tas add |
|00002ca0| 75 70 20 74 6f 20 31 29 | 0d ff 00 14 0c 02 f7 0d |up to 1)|........|
|00002cb0| 49 6e 69 74 48 65 6d 69 | 43 75 62 65 ff 00 14 0c |InitHemi|Cube....|
|00002cc0| 00 f7 20 3a 20 69 6e 69 | 74 69 61 6c 69 7a 65 73 |.. : ini|tializes|
|00002cd0| 20 74 68 65 20 70 69 78 | 65 6c 73 20 6f 66 20 74 | the pix|els of t|
|00002ce0| 68 65 20 68 65 6d 69 63 | 75 62 65 20 62 79 20 73 |he hemic|ube by s|
|00002cf0| 65 74 74 69 6e 67 20 64 | 65 70 74 68 20 74 6f 20 |etting d|epth to |
|00002d00| 61 20 6c 61 72 67 65 20 | 0d 09 20 20 20 20 20 20 |a large |.. |
|00002d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 76 61 | | va|
|00002d20| 6c 75 65 20 61 6e 64 20 | 73 65 74 74 69 6e 67 20 |lue and |setting |
|00002d30| 74 68 65 20 70 6f 6c 79 | 67 6f 6e 20 49 44 73 20 |the poly|gon IDs |
|00002d40| 74 6f 20 7a 65 72 6f 2e | 0d 09 2d ff 00 14 0c 01 |to zero.|..-.....|
|00002d50| f7 20 76 61 72 69 61 62 | 6c 65 73 20 3a ff 00 14 |. variab|les :...|
|00002d60| 0c 00 f7 0d 09 ff 00 14 | 0c 02 f7 6c 6f 6f 70 2c |........|...loop,|
|00002d70| 6c 6f 6f 70 32 ff 00 14 | 0c 00 f7 20 3a 20 73 69 |loop2...|... : si|
|00002d80| 6d 70 6c 65 20 6c 6f 6f | 70 20 76 61 72 69 61 62 |mple loo|p variab|
|00002d90| 6c 65 73 0d 0d ff 00 14 | 0c 02 f7 50 72 6f 6a 65 |les.....|...Proje|
|00002da0| 63 74 50 61 74 63 68 ff | 00 14 0c 00 f7 20 3a 20 |ctPatch.|..... : |
|00002db0| 50 72 6f 6a 65 63 74 73 | 20 61 6c 6c 20 6f 66 20 |Projects| all of |
|00002dc0| 74 68 65 20 70 61 74 63 | 68 65 73 20 69 6e 20 74 |the patc|hes in t|
|00002dd0| 68 65 20 73 63 65 6e 65 | 20 6f 6e 74 6f 20 74 68 |he scene| onto th|
|00002de0| 65 20 68 65 6d 69 2d 63 | 75 62 65 20 73 75 72 72 |e hemi-c|ube surr|
|00002df0| 6f 75 6e 64 69 6e 67 0d | 09 20 20 20 20 20 20 20 |ounding.|. |
|00002e00| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 65 20 70 | | the p|
|00002e10| 61 73 73 65 64 20 69 6e | 20 70 6f 6c 79 67 6f 6e |assed in| polygon|
|00002e20| 2e 0d 0d 09 2d 20 ff 00 | 14 0c 01 f7 70 61 72 61 |....- ..|....para|
|00002e30| 6d 65 74 65 72 73 20 3a | ff 00 14 0c 00 f7 0d 02 |meters :|........|
|00002e40| c3 0d 53 63 61 6c 65 ff | 00 14 0c 00 f7 20 3a 20 |..Scale.|..... : |
|00002e50| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 6d 75 |this fun|ction mu|
|00002e60| 6c 74 69 70 6c 69 65 73 | 20 65 61 63 68 20 63 6f |ltiplies| each co|
|00002e70| 6d 70 6f 6e 65 6e 74 20 | 6f 66 20 74 68 65 20 69 |mponent |of the i|
|00002e80| 6e 70 75 74 20 76 65 63 | 74 6f 72 20 62 79 20 74 |nput vec|tor by t|
|00002e90| 68 65 20 0d 09 20 20 20 | 20 20 74 68 65 20 69 6e |he .. | the in|
|00002ea0| 70 75 74 20 73 63 61 6c | 65 20 76 61 6c 75 65 2e |put scal|e value.|
|00002eb0| 0d 09 2d 20 ff 00 14 0c | 01 f7 72 65 74 75 72 6e |..- ....|..return|
|00002ec0| 73 ff 00 14 0c 00 f7 0d | 09 74 68 65 20 73 63 61 |s.......|.the sca|
|00002ed0| 6c 65 64 20 76 65 63 74 | 6f 72 0d 09 2d 20 ff 00 |led vect|or..- ..|
|00002ee0| 14 0c 01 f7 70 61 72 61 | 6d 65 74 65 72 73 ff 00 |....para|meters..|
|00002ef0| 14 0c 00 f7 0d 09 ff 00 | 14 0c 02 f7 76 65 63 ff |........|....vec.|
|00002f00| 00 14 0c 00 f7 20 3a 20 | 74 68 65 20 69 6e 70 75 |..... : |the inpu|
|00002f10| 74 20 76 65 63 74 6f 72 | 0d 09 ff 00 14 0c 02 f7 |t vector|........|
|00002f20| 73 63 61 6c 65 ff 00 14 | 0c 00 f7 20 3a 20 74 68 |scale...|... : th|
|00002f30| 65 20 73 63 61 6c 65 20 | 76 61 6c 75 65 0d 09 2d |e scale |value..-|
|00002f40| 20 ff 00 14 0c 01 f7 6c | 6f 63 61 6c 73 ff 00 14 | ......l|ocals...|
|00002f50| 0c 00 f7 0d 09 ff 00 14 | 0c 02 f7 74 65 6d 70 ff |........|...temp.|
|00002f60| 00 14 0c 00 f7 20 3a 20 | 75 73 65 64 20 74 6f 20 |..... : |used to |
|00002f70| 74 65 6d 70 6f 72 61 72 | 69 6c 79 20 73 74 6f 72 |temporar|ily stor|
|00002f80| 65 20 74 68 65 20 72 65 | 74 75 72 6e 20 76 61 6c |e the re|turn val|
|00002f90| 75 65 2e 0d ff 00 14 0c | 02 f7 53 75 62 ff 00 14 |ue......|..Sub...|
|00002fa0| 0c 00 f7 20 3a 20 74 68 | 69 73 20 66 75 6e 63 74 |... : th|is funct|
|00002fb0| 69 6f 6e 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |ion retu|rns the |
|00002fc0| 72 65 73 75 6c 74 20 6f | 66 20 74 68 65 20 66 69 |result o|f the fi|
|00002fd0| 72 73 74 20 69 6e 70 75 | 74 20 76 65 63 74 6f 72 |rst inpu|t vector|
|00002fe0| 20 6d 69 6e 75 73 20 74 | 68 65 20 73 65 63 6f 6e | minus t|he secon|
|00002ff0| 64 0d 09 2d 20 ff 00 14 | 0c 01 f7 72 65 74 75 72 |d..- ...|...retur|
|00003000| 6e 73 ff 00 14 0c 00 f7 | 20 0d 09 74 68 65 20 72 |ns......| ..the r|
|00003010| 65 73 75 6c 74 20 6f 66 | 20 28 69 6e 70 75 74 20 |esult of| (input |
|00003020| 76 65 63 74 6f 72 20 31 | 29 20 2d 20 28 69 6e 70 |vector 1|) - (inp|
|00003030| 75 74 20 76 65 63 74 6f | 72 20 32 29 0d 09 2d 20 |ut vecto|r 2)..- |
|00003040| ff 00 14 0c 01 f7 70 61 | 72 61 6d 65 74 65 72 73 |......pa|rameters|
|00003050| ff 00 14 0c 00 f7 0d 09 | ff 00 14 0c 02 f7 76 65 |........|......ve|
|00003060| 63 31 ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 66 |c1......| : the f|
|00003070| 69 72 73 74 20 69 6e 70 | 75 74 20 76 65 63 74 6f |irst inp|ut vecto|
|00003080| 72 0d 09 ff 00 14 0c 02 | f7 76 65 63 32 ff 00 14 |r.......|.vec2...|
|00003090| 0c 00 f7 20 3a 20 74 68 | 65 20 73 65 63 6f 6e 64 |... : th|e second|
|000030a0| 20 69 6e 70 75 74 20 76 | 65 63 74 6f 72 0d 09 2d | input v|ector..-|
|000030b0| 20 ff 00 14 0c 01 f7 6c | 6f 63 61 6c 73 ff 00 14 | ......l|ocals...|
|000030c0| 0c 00 f7 0d 09 ff 00 14 | 0c 02 f7 74 65 6d 70 ff |........|...temp.|
|000030d0| 00 14 0c 00 f7 20 3a 20 | 75 73 65 64 20 74 6f 20 |..... : |used to |
|000030e0| 74 65 6d 70 6f 72 61 72 | 69 6c 79 20 73 74 6f 72 |temporar|ily stor|
|000030f0| 65 20 74 68 65 20 72 65 | 74 75 72 6e 20 76 61 6c |e the re|turn val|
|00003100| 75 65 2e 0d 03 6f 09 74 | 68 65 20 72 65 73 75 6c |ue...o.t|he resul|
|00003110| 74 20 6f 66 20 74 68 65 | 20 63 72 6f 73 73 20 70 |t of the| cross p|
|00003120| 72 6f 64 75 63 74 20 6f | 66 20 74 68 65 20 74 77 |roduct o|f the tw|
|00003130| 6f 20 76 65 63 74 6f 72 | 73 2e 0d 09 2d 20 ff 00 |o vector|s...- ..|
|00003140| 14 0c 01 f7 70 61 72 61 | 6d 65 74 65 72 73 ff 00 |....para|meters..|
|00003150| 14 0c 00 f7 0d 09 ff 00 | 14 0c 02 f7 76 65 63 31 |........|....vec1|
|00003160| ff 00 14 0c 00 f7 20 3a | 20 74 68 65 20 66 69 72 |...... :| the fir|
|00003170| 73 74 20 69 6e 70 75 74 | 20 76 65 63 74 6f 72 0d |st input| vector.|
|00003180| 09 ff 00 14 0c 02 f7 76 | 65 63 32 ff 00 14 0c 00 |.......v|ec2.....|
|00003190| f7 20 3a 20 74 68 65 20 | 73 65 63 6f 6e 64 20 69 |. : the |second i|
|000031a0| 6e 70 75 74 20 76 65 63 | 74 6f 72 0d 09 2d 20 ff |nput vec|tor..- .|
|000031b0| 00 14 0c 01 f7 6c 6f 63 | 61 6c 73 ff 00 14 0c 00 |.....loc|als.....|
|000031c0| f7 0d 09 ff 00 14 0c 02 | f7 74 65 6d 70 ff 00 14 |........|.temp...|
|000031d0| 0c 00 f7 20 3a 20 75 73 | 65 64 20 74 6f 20 74 65 |... : us|ed to te|
|000031e0| 6d 70 6f 72 61 72 69 6c | 79 20 73 6f 74 72 65 20 |mporaril|y sotre |
|000031f0| 74 68 65 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |the retu|rn value|
|00003200| 2e 0d 0d ff 00 14 0c 02 | f7 54 72 61 6e 73 70 6f |........|.Transpo|
|00003210| 73 65 ff 00 14 0c 00 f7 | 20 3a 20 70 75 74 73 20 |se......| : puts |
|00003220| 74 68 65 20 74 72 61 6e | 73 70 6f 73 65 20 6f 66 |the tran|spose of|
|00003230| 20 6d 61 74 72 69 78 20 | 61 20 69 6e 74 6f 20 6d | matrix |a into m|
|00003240| 61 74 72 69 78 20 62 0d | 09 2d 20 ff 00 14 0c 01 |atrix b.|.- .....|
|00003250| f7 70 61 72 61 6d 65 74 | 65 72 73 ff 00 14 0c 00 |.paramet|ers.....|
|00003260| f7 0d 09 ff 00 14 0c 02 | f7 61 ff 00 14 0c 00 f7 |........|.a......|
|00003270| 20 3a 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 | : a poi|nter to |
|00003280| 74 68 65 20 66 69 72 73 | 74 20 6d 61 74 72 69 78 |the firs|t matrix|
|00003290| 0d 09 ff 00 14 0c 02 f7 | 62 ff 00 14 0c 00 f7 20 |........|b...... |
|000032a0| 3a 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |: a poin|ter to t|
|000032b0| 68 65 20 73 65 63 6f 6e | 64 20 6d 61 74 72 69 78 |he secon|d matrix|
|000032c0| 0d 0d ff 00 14 0c 02 f7 | 70 6f 69 6e 74 4d 75 6c |........|pointMul|
|000032d0| 74 69 70 6c 79 ff 00 14 | 0c 00 f7 20 3a 20 6d 75 |tiply...|... : mu|
|000032e0| 6c 74 69 70 6c 69 65 73 | 20 61 6e 20 33 2d 65 6c |ltiplies| an 3-el|
|000032f0| 65 6d 65 6e 74 20 70 6f | 69 6e 74 20 28 61 75 74 |ement po|int (aut|
|00003300| 6f 6d 61 74 69 63 61 6c | 6c 79 20 65 78 74 65 6e |omatical|ly exten|
|00003310| 64 65 64 20 74 6f 20 0d | 09 20 20 20 20 20 20 20 |ded to .|. |
|00003320| 20 20 20 20 20 20 20 20 | 20 20 20 68 6f 6d 6f 67 | | homog|
|00003330| 65 6e 65 6f 75 73 20 63 | 6f 6f 72 64 73 29 20 61 |eneous c|oords) a|
|00003340| 6e 64 20 61 6e 20 34 78 | 34 20 6d 61 74 72 69 78 |nd an 4x|4 matrix|
|00003350| 2d 2d 0d 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |--.. | |
|00003360| 20 20 20 20 20 20 72 65 | 74 75 72 6e 73 20 74 68 | re|turns th|
|00003370| 65 20 72 65 73 75 6c 74 | 20 69 6e 20 74 68 65 20 |e result| in the |
|00003380| 74 68 69 72 64 20 70 61 | 72 61 6d 65 74 65 72 0d |third pa|rameter.|
|00003390| 09 2d 20 ff 00 14 0c 01 | f7 70 61 72 61 6d 65 74 |.- .....|.paramet|
|000033a0| 65 72 73 ff 00 14 0c 00 | f7 0d 09 ff 00 14 0c 02 |ers.....|........|
|000033b0| f7 61 ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 69 |.a......| : the i|
|000033c0| 6e 70 75 74 20 70 6f 69 | 6e 74 0d 09 ff 00 14 0c |nput poi|nt......|
|000033d0| 02 f7 62 ff 00 14 0c 00 | f7 20 3a 20 74 68 65 20 |..b.....|. : the |
|000033e0| 69 6e 70 75 74 20 34 78 | 34 20 6d 61 74 72 69 78 |input 4x|4 matrix|
|000033f0| 0d 09 ff 00 14 0c 02 f7 | 63 ff 00 14 0c 00 f7 20 |........|c...... |
|00003400| 3a 20 74 68 65 20 72 65 | 73 75 6c 74 69 6e 67 20 |: the re|sulting |
|00003410| 68 6f 6d 6f 67 65 6e 65 | 6f 75 73 20 6f 75 74 70 |homogene|ous outp|
|00003420| 75 74 20 70 6f 69 6e 74 | 0d 0d ff 00 14 0c 02 f7 |ut point|........|
|00003430| 48 6f 6d 6f 67 4d 75 6c | 74 69 70 6c 79 ff 00 14 |HomogMul|tiply...|
|00003440| 0c 00 f7 20 3a 20 6d 75 | 6c 74 69 70 6c 69 65 73 |... : mu|ltiplies|
|00003450| 20 61 20 68 6f 6d 6f 67 | 65 6e 65 6f 75 73 20 70 | a homog|eneous p|
|00003460| 6f 69 6e 74 20 62 79 20 | 61 20 34 78 34 20 6d 61 |oint by |a 4x4 ma|
|00003470| 74 72 69 78 0d 00 cf 09 | 2d 20 ff 00 14 0c 01 f7 |trix....|- ......|
|00003480| 70 61 72 61 6d 65 74 65 | 72 73 ff 00 14 0c 00 f7 |paramete|rs......|
|00003490| 0d 09 ff 00 14 0c 02 f7 | 61 ff 00 14 0c 00 f7 20 |........|a...... |
|000034a0| 3a 20 74 68 65 20 68 6f | 6d 6f 67 65 6e 65 6f 75 |: the ho|mogeneou|
|000034b0| 73 20 70 6f 69 6e 74 2e | 0d 09 ff 00 14 0c 02 f7 |s point.|........|
|000034c0| 62 ff 00 14 0c 00 f7 20 | 3a 20 74 68 65 20 34 78 |b...... |: the 4x|
|000034d0| 34 20 6d 61 74 72 69 78 | 0d 09 2d 20 ff 00 14 0c |4 matrix|..- ....|
|000034e0| 01 f7 6c 6f 63 61 6c 73 | ff 00 14 0c 00 f7 0d 09 |..locals|........|
|000034f0| ff 00 14 0c 02 f7 74 65 | 6d 70 ff 00 14 0c 00 f7 |......te|mp......|
|00003500| 20 3a 20 75 73 65 64 20 | 74 6f 20 70 72 65 76 65 | : used |to preve|
|00003510| 6e 74 20 6f 76 65 72 77 | 72 69 74 69 6e 67 20 74 |nt overw|riting t|
|00003520| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 61 20 76 61 |he origi|nal a va|
|00003530| 6c 75 65 73 20 77 68 69 | 6c 65 20 70 65 72 66 6f |lues whi|le perfo|
|00003540| 72 6d 69 6e 67 0d 03 2e | 09 20 20 20 20 20 20 20 |rming...|. |
|00003550| 20 20 20 20 74 68 65 20 | 63 6f 6d 70 75 74 61 74 | the |computat|
|00003560| 69 6f 6e 0d 0d ff 00 14 | 0c 02 f7 6d 61 74 72 69 |ion.....|...matri|
|00003570| 78 4d 75 6c 74 69 70 6c | 79 ff 00 14 0c 00 f7 20 |xMultipl|y...... |
|00003580| 3a 20 6d 75 6c 74 69 70 | 6c 69 65 73 20 74 77 6f |: multip|lies two|
|00003590| 20 6e 20 65 6c 65 6d 65 | 6e 74 20 6d 61 74 72 69 | n eleme|nt matri|
|000035a0| 63 65 73 20 74 6f 67 65 | 74 68 65 72 20 61 6e 64 |ces toge|ther and|
|000035b0| 20 70 75 74 73 20 74 68 | 65 20 0d 09 20 20 09 72 | puts th|e .. .r|
|000035c0| 65 73 75 6c 74 20 69 6e | 74 6f 20 74 68 65 20 74 |esult in|to the t|
|000035d0| 68 69 72 64 20 70 61 72 | 61 6d 65 74 65 72 2e 0d |hird par|ameter..|
|000035e0| 09 2d 20 ff 00 14 0c 01 | f7 70 61 72 61 6d 65 74 |.- .....|.paramet|
|000035f0| 65 72 73 ff 00 14 0c 00 | f7 0d 09 ff 00 14 0c 02 |ers.....|........|
|00003600| f7 6e ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 73 |.n......| : the s|
|00003610| 69 7a 65 20 6f 66 20 74 | 68 65 20 6d 61 74 72 69 |ize of t|he matri|
|00003620| 63 65 73 0d 09 ff 00 14 | 0c 02 f7 61 ff 00 14 0c |ces.....|...a....|
|00003630| 00 f7 20 3a 20 74 68 65 | 20 66 69 72 73 74 20 69 |.. : the| first i|
|00003640| 6e 70 75 74 20 6d 61 74 | 72 69 78 0d 09 ff 00 14 |nput mat|rix.....|
|00003650| 0c 02 f7 62 ff 00 14 0c | 00 f7 20 3a 20 74 68 65 |...b....|.. : the|
|00003660| 20 73 65 63 6f 6e 64 20 | 6d 61 74 72 69 78 0d 09 | second |matrix..|
|00003670| ff 00 14 0c 02 f7 63 ff | 00 14 0c 00 f7 20 3a 20 |......c.|..... : |
|00003680| 74 68 65 20 6f 75 74 70 | 75 74 20 6d 61 74 72 69 |the outp|ut matri|
|00003690| 78 0d 09 2d 20 ff 00 14 | 0c 01 f7 6c 6f 63 61 6c |x..- ...|...local|
|000036a0| 73 0d 09 ff 00 14 0c 02 | f7 69 2c 6a 2c 6b ff 00 |s.......|.i,j,k..|
|000036b0| 14 0c 00 f7 20 3a 20 6c | 6f 6f 70 20 63 6f 6e 74 |.... : l|oop cont|
|000036c0| 72 6f 6c 20 76 61 72 69 | 61 62 6c 65 73 0d 09 ff |rol vari|ables...|
|000036d0| 00 14 0c 02 f7 70 6f 73 | 61 2c 70 6f 73 62 2c 70 |.....pos|a,posb,p|
|000036e0| 6f 73 63 ff 00 14 0c 00 | f7 20 3a 20 61 64 64 72 |osc.....|. : addr|
|000036f0| 65 73 73 20 63 6f 6d 70 | 75 74 61 74 69 6f 6e 20 |ess comp|utation |
|00003700| 76 61 72 69 61 62 6c 65 | 73 2e 0d 09 ff 00 14 0c |variable|s.......|
|00003710| 02 f7 73 75 6d ff 00 14 | 0c 00 f7 20 3a 20 75 73 |..sum...|... : us|
|00003720| 65 64 20 74 6f 20 61 63 | 63 75 6d 75 6c 61 74 65 |ed to ac|cumulate|
|00003730| 20 69 6e 74 65 72 6d 65 | 64 69 61 74 65 20 73 75 | interme|diate su|
|00003740| 6d 73 0d 0d ff 00 14 0c | 02 f7 63 72 65 61 74 65 |ms......|..create|
|00003750| 49 64 65 6e 74 69 74 79 | ff 00 14 0c 00 f7 20 3a |Identity|...... :|
|00003760| 20 63 72 65 61 74 65 73 | 20 61 6e 20 6e 78 6e 20 | creates| an nxn |
|00003770| 69 64 65 6e 74 69 74 79 | 20 6d 61 74 72 69 78 0d |identity| matrix.|
|00003780| 09 2d 20 ff 00 14 0c 01 | f7 70 61 72 61 6d 65 74 |.- .....|.paramet|
|00003790| 65 72 73 ff 00 14 0c 00 | f7 0d 09 ff 00 14 0c 02 |ers.....|........|
|000037a0| f7 6e ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 73 |.n......| : the s|
|000037b0| 69 7a 65 20 6f 66 20 74 | 68 65 20 6d 61 74 72 69 |ize of t|he matri|
|000037c0| 78 0d 09 ff 00 14 0c 02 | f7 61 ff 00 14 0c 00 f7 |x.......|.a......|
|000037d0| 20 3a 20 74 68 65 20 6f | 75 74 70 75 74 20 6d 61 | : the o|utput ma|
|000037e0| 74 72 69 78 0d 09 2d 20 | ff 00 14 0c 01 f7 6c 6f |trix..- |......lo|
|000037f0| 63 61 6c 73 ff 00 14 0c | 00 f7 0d 09 ff 00 14 0c |cals....|........|
|00003800| 02 f7 69 2c 6a ff 00 14 | 0c 00 f7 20 3a 20 6c 6f |..i,j...|... : lo|
|00003810| 6f 70 20 63 6f 6e 74 72 | 6f 6c 20 76 61 72 69 61 |op contr|ol varia|
|00003820| 62 6c 65 73 2e 0d 0d ff | 00 14 0c 02 f7 6d 61 74 |bles....|.....mat|
|00003830| 72 69 78 43 6f 70 79 ff | 00 14 0c 00 f7 20 3a 20 |rixCopy.|..... : |
|00003840| 63 6f 70 69 65 73 20 74 | 68 65 20 66 69 72 73 74 |copies t|he first|
|00003850| 20 6d 61 74 72 69 78 20 | 69 6e 74 6f 20 74 68 65 | matrix |into the|
|00003860| 20 73 65 63 6f 6e 64 20 | 28 61 73 73 75 6d 65 73 | second |(assumes|
|00003870| 20 34 78 34 29 0d 02 a6 | 49 6e 69 74 56 65 72 74 | 4x4)...|InitVert|
|00003880| 65 78 4c 69 73 74 43 65 | 6c 6c 20 69 6e 69 74 69 |exListCe|ll initi|
|00003890| 61 6c 69 7a 65 73 20 61 | 20 76 61 72 69 61 62 6c |alizes a| variabl|
|000038a0| 65 20 6f 66 20 74 79 70 | 65 20 49 6e 69 74 56 65 |e of typ|e InitVe|
|000038b0| 72 74 65 78 4c 69 73 74 | 43 65 6c 6c 2e 20 20 28 |rtexList|Cell. (|
|000038c0| 49 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 0d 73 |Initiali|zation.s|
|000038d0| 65 74 73 20 70 6f 69 6e | 74 65 72 73 20 74 6f 20 |ets poin|ters to |
|000038e0| 4e 55 4c 4c 20 61 6e 64 | 20 6e 75 6d 62 65 72 73 |NULL and| numbers|
|000038f0| 20 74 6f 20 69 6e 69 74 | 69 61 6c 20 76 61 6c 75 | to init|ial valu|
|00003900| 65 73 2c 20 65 74 63 2e | 29 0d 0d ff 00 14 12 01 |es, etc.|).......|
|00003910| f7 0d 0d ff 00 14 14 01 | f7 63 6c 69 70 2e 28 63 |........|.clip.(c|
|00003920| 68 29 0d ff 00 14 0c 01 | f7 0d ff 00 14 0c 05 f7 |h)......|........|
|00003930| 47 6f 61 6c ff 00 14 0c | 00 f7 0d 0d ff 00 14 0c |Goal....|........|
|00003940| 00 f7 54 68 65 20 67 6f | 61 6c 20 6f 66 20 74 68 |..The go|al of th|
|00003950| 65 20 63 6c 69 70 70 69 | 6e 67 20 70 61 63 6b 61 |e clippi|ng packa|
|00003960| 67 65 20 69 73 20 74 6f | 20 70 72 6f 76 69 64 65 |ge is to| provide|
|00003970| 20 61 20 33 2d 64 69 6d | 65 6e 73 69 6f 6e 61 6c | a 3-dim|ensional|
|00003980| 20 76 69 65 77 20 76 6f | 6c 75 6d 65 20 63 6c 69 | view vo|lume cli|
|00003990| 70 70 65 72 2e 0d 54 68 | 65 20 63 6c 69 70 70 69 |pper..Th|e clippi|
|000039a0| 6e 67 20 72 6f 75 74 69 | 6e 65 73 20 61 72 65 20 |ng routi|nes are |
|000039b0| 62 61 73 65 64 20 6f 6e | 20 74 68 65 20 73 74 61 |based on| the sta|
|000039c0| 6e 64 61 72 64 20 53 75 | 74 68 65 72 6c 61 6e 64 |ndard Su|therland|
|000039d0| 2d 48 6f 64 67 65 6d 61 | 6e 20 70 6f 6c 79 67 6f |-Hodgema|n polygo|
|000039e0| 6e 0d 63 6c 69 70 70 69 | 6e 67 20 61 6c 67 6f 72 |n.clippi|ng algor|
|000039f0| 69 74 68 6d 2e ff 00 14 | 0c 01 f7 0d ff 00 14 0c |ithm....|........|
|00003a00| 00 f7 0d ff 00 14 0c 05 | f7 46 75 6e 63 74 69 6f |........|.Functio|
|00003a10| 6e 73 ff 00 14 0c 04 f7 | 0d 0d ff 00 14 0c 02 f7 |ns......|........|
|00003a20| 49 6e 73 69 64 65 ff 00 | 14 0c 00 f7 20 3a 20 43 |Inside..|.... : C|
|00003a30| 68 65 63 6b 73 20 74 6f | 20 73 65 65 20 69 66 20 |hecks to| see if |
|00003a40| 61 20 76 65 72 74 65 78 | 20 6c 69 65 73 20 69 6e |a vertex| lies in|
|00003a50| 20 74 68 65 20 69 6e 73 | 69 64 65 20 68 61 6c 66 | the ins|ide half|
|00003a60| 73 70 61 63 65 20 6f 66 | 20 61 20 63 6c 69 70 70 |space of| a clipp|
|00003a70| 69 6e 67 20 70 6c 61 6e | 65 2e 0d 20 20 20 20 20 |ing plan|e.. |
|00003a80| 20 2d 20 ff 00 14 0c 01 | f7 72 65 74 75 72 6e 73 | - .....|.returns|
|00003a90| ff 00 14 0c 00 f7 0d 20 | 20 20 20 20 20 61 20 62 |....... | a b|
|00003aa0| 6f 6f 6c 65 61 6e 20 74 | 65 6c 6c 69 6e 67 20 77 |oolean t|elling w|
|00003ab0| 68 65 74 68 65 72 20 74 | 68 65 20 76 65 72 74 65 |hether t|he verte|
|00003ac0| 78 20 69 73 20 69 6e 20 | 74 68 65 20 69 6e 73 69 |x is in |the insi|
|00003ad0| 64 65 20 68 61 6c 66 73 | 70 61 63 65 20 6f 66 20 |de halfs|pace of |
|00003ae0| 74 68 65 20 63 6c 69 70 | 70 69 6e 67 20 70 6c 61 |the clip|ping pla|
|00003af0| 6e 65 2e 0d fc 00 5a 02 | 0a 00 5a 00 0e 01 b0 02 |ne....Z.|..Z.....|
|00003b00| b8 06 30 f7 09 2d 20 ff | 00 14 0c 01 f7 70 61 72 |..0..- .|.....par|
|00003b10| 61 6d 65 74 65 72 73 ff | 00 14 0c 00 f7 0d 02 73 |ameters.|.......s|
|00003b20| 09 ff 00 14 0c 02 f7 6e | 65 77 76 65 72 74 65 78 |.......n|ewvertex|
|00003b30| 2c 74 72 61 76 65 72 73 | 65 ff 00 14 0c 00 f7 20 |,travers|e...... |
|00003b40| 3a 20 75 73 65 64 20 74 | 6f 20 63 72 65 61 74 65 |: used t|o create|
|00003b50| 20 74 68 65 20 6e 65 77 | 20 6c 69 73 74 20 6f 66 | the new| list of|
|00003b60| 20 76 69 73 2d 76 65 72 | 74 69 63 65 73 2e 0d 09 | vis-ver|tices...|
|00003b70| ff 00 14 0c 02 f7 74 65 | 6d 70 66 72 65 65 ff 00 |......te|mpfree..|
|00003b80| 14 0c 00 f7 20 3a 20 75 | 73 65 64 20 74 6f 20 66 |.... : u|sed to f|
|00003b90| 72 65 65 20 75 70 20 6f | 6c 64 20 6c 69 73 74 20 |ree up o|ld list |
|00003ba0| 6f 66 20 76 69 73 76 65 | 72 74 69 63 65 73 2e 0d |of visve|rtices..|
|00003bb0| ff 00 14 0c 00 f7 20 20 | 20 20 20 20 2d 20 ff 00 |...... | - ..|
|00003bc0| 14 0c 01 f7 64 65 70 65 | 6e 64 65 6e 63 69 65 73 |....depe|ndencies|
|00003bd0| ff 00 14 0c 00 f7 0d 20 | 20 20 20 20 20 ff 00 14 |....... | ...|
|00003be0| 0c 02 f7 43 6c 69 70 54 | 6f 2f 43 6c 69 70 2e 63 |...ClipT|o/Clip.c|
|00003bf0| ff 00 14 0c 00 f7 20 0d | ff 00 14 12 01 f7 0d 0d |...... .|........|
|00003c00| 0d 0d 0d 0d 0d 0d 0d 0d | 0d 0d 0d 0d 0d 68 65 6d |........|.....hem|
|00003c10| 69 63 75 62 65 2e 28 63 | 68 29 0d 0d ff 00 14 0c |icube.(c|h)......|
|00003c20| 05 f7 47 6f 61 6c ff 00 | 14 0c 00 f7 20 3a 0d 0d |..Goal..|.... :..|
|00003c30| 50 72 6f 76 69 64 65 20 | 72 6f 75 74 69 6e 65 73 |Provide |routines|
|00003c40| 20 66 6f 72 20 69 6d 70 | 6c 65 6d 65 6e 74 69 6e | for imp|lementin|
|00003c50| 67 20 74 68 65 20 68 65 | 6d 69 63 75 62 65 20 66 |g the he|micube f|
|00003c60| 6f 72 6d 2d 66 61 63 74 | 6f 72 20 63 6f 6d 70 75 |orm-fact|or compu|
|00003c70| 74 61 74 69 6f 6e 73 2e | 0d 0d ff 00 14 0c 05 f7 |tations.|........|
|00003c80| 54 79 70 65 20 44 65 63 | 6c 61 72 61 74 69 6f 6e |Type Dec|laration|
|00003c90| 73 ff 00 14 0c 00 f7 20 | 3a 0d 68 65 6d 69 70 69 |s...... |:.hemipi|
|00003ca0| 78 65 6c 20 09 3a 20 73 | 74 6f 72 65 73 20 69 6e |xel .: s|tores in|
|00003cb0| 66 6f 72 6d 61 74 69 6f | 6e 20 6e 65 65 64 65 64 |formatio|n needed|
|00003cc0| 20 66 6f 72 20 65 61 63 | 68 20 70 69 78 65 6c 20 | for eac|h pixel |
|00003cd0| 6f 66 20 68 65 6d 69 63 | 75 62 65 0d 09 09 2d 20 |of hemic|ube...- |
|00003ce0| ff 00 14 0c 01 f7 66 69 | 65 6c 64 73 0d 09 09 ff |......fi|elds....|
|00003cf0| 00 14 0c 02 f7 64 65 70 | 74 68 ff 00 14 0c 00 f7 |.....dep|th......|
|00003d00| 20 3a 20 74 68 65 20 64 | 65 70 74 68 20 6f 66 20 | : the d|epth of |
|00003d10| 74 68 65 20 72 65 63 74 | 61 6e 67 6c 65 20 63 6f |the rect|angle co|
|00003d20| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 74 |rrespond|ing to t|
|00003d30| 68 65 20 70 6f 6c 79 67 | 6f 6e 0d 20 20 20 20 20 |he polyg|on. |
|00003d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d50| 20 20 09 20 20 20 20 20 | 20 20 20 20 20 20 20 74 | . | t|
|00003d60| 68 61 74 20 68 61 73 20 | 63 6c 69 70 70 65 64 20 |hat has |clipped |
|00003d70| 74 68 65 72 65 2e 20 28 | 73 69 6d 69 6c 61 72 20 |there. (|similar |
|00003d80| 74 6f 20 7a 2d 62 75 66 | 66 65 72 20 64 65 70 74 |to z-buf|fer dept|
|00003d90| 68 29 0d 02 08 09 2d 20 | ff 00 14 0c 01 f7 70 61 |h)....- |......pa|
|00003da0| 72 61 6d 65 74 65 72 73 | ff 00 14 0c 00 f7 0d 09 |rameters|........|
|00003db0| ff 00 14 0c 02 f7 4f 62 | 6a 65 63 74 48 65 61 64 |......Ob|jectHead|
|00003dc0| ff 00 14 0c 00 f7 20 3a | 20 61 20 70 6f 69 6e 74 |...... :| a point|
|00003dd0| 65 72 20 74 6f 20 74 68 | 65 20 6d 61 73 74 65 72 |er to th|e master|
|00003de0| 20 6c 69 73 74 20 6f 66 | 20 6f 62 6a 65 63 74 73 | list of| objects|
|00003df0| 2e 0d 09 ff 00 14 0c 02 | f7 43 6f 6d 70 6f 73 69 |........|.Composi|
|00003e00| 74 6f 6e ff 00 14 0c 00 | f7 20 3a 20 74 68 65 20 |ton.....|. : the |
|00003e10| 6d 61 74 72 69 78 20 75 | 73 65 64 20 74 6f 20 63 |matrix u|sed to c|
|00003e20| 6f 6d 70 75 74 65 20 76 | 69 65 77 20 63 6f 6f 72 |ompute v|iew coor|
|00003e30| 64 69 6e 61 74 65 73 0d | 09 2d 20 ff 00 14 0c 01 |dinates.|.- .....|
|00003e40| f7 6c 6f 63 61 6c 73 ff | 00 14 0c 00 f7 0d 09 ff |.locals.|........|
|00003e50| 00 14 0c 02 f7 43 75 72 | 72 65 6e 74 56 65 72 74 |.....Cur|rentVert|
|00003e60| 20 ff 00 14 0c 00 f7 3a | 20 75 73 65 64 20 74 6f | ......:| used to|
|00003e70| 20 74 72 61 76 65 72 73 | 65 20 76 65 72 74 65 78 | travers|e vertex|
|00003e80| 20 6c 69 73 74 2e 0d 09 | ff 00 14 0c 02 f7 43 75 | list...|......Cu|
|00003e90| 72 72 65 6e 74 4f 62 6a | 65 63 74 ff 00 14 0c 00 |rrentObj|ect.....|
|00003ea0| f7 20 3a 20 75 73 65 64 | 20 74 6f 20 74 72 61 76 |. : used| to trav|
|00003eb0| 65 72 73 65 20 6f 62 6a | 65 63 74 20 6c 69 73 74 |erse obj|ect list|
|00003ec0| 2e 0d 09 2d 20 ff 00 14 | 0c 01 f7 64 65 70 65 6e |...- ...|...depen|
|00003ed0| 64 65 6e 63 69 65 73 ff | 00 14 0c 00 f7 0d 09 ff |dencies.|........|
|00003ee0| 00 14 0c 02 f7 70 6f 69 | 6e 74 4d 75 6c 74 69 70 |.....poi|ntMultip|
|00003ef0| 6c 79 2f 76 65 63 74 6f | 72 2d 6d 61 74 72 69 78 |ly/vecto|r-matrix|
|00003f00| 2e 63 0d 0d 54 72 61 6e | 73 66 6f 72 6d 4f 62 6a |.c..Tran|sformObj|
|00003f10| 65 63 74 20 3a 20 ff 00 | 14 0c 00 f7 63 6f 6d 70 |ect : ..|....comp|
|00003f20| 75 74 65 73 20 74 68 65 | 20 77 6f 72 6c 64 20 63 |utes the| world c|
|00003f30| 6f 6f 72 64 69 6e 61 74 | 65 73 20 67 69 76 65 6e |oordinat|es given|
|00003f40| 20 74 68 65 20 6f 62 6a | 65 63 74 73 70 61 63 65 | the obj|ectspace|
|00003f50| 20 74 6f 20 0d 09 09 20 | 20 20 77 6f 72 6c 64 73 | to ... | worlds|
|00003f60| 70 61 63 65 20 74 72 61 | 6e 73 66 6f 72 6d 61 74 |pace tra|nsformat|
|00003f70| 69 6f 6e 20 6d 61 74 72 | 69 78 2e 20 28 69 2e 65 |ion matr|ix. (i.e|
|00003f80| 2e 20 74 68 65 20 73 63 | 61 6c 65 73 2c 20 72 6f |. the sc|ales, ro|
|00003f90| 74 61 74 65 73 2c 20 65 | 74 63 2e 29 0d 02 69 09 |tates, e|tc.)..i.|
|00003fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003fb0| 20 20 20 74 68 65 20 74 | 6f 74 61 6c 20 6e 75 6d | the t|otal num|
|00003fc0| 62 65 72 20 6f 66 20 70 | 61 74 63 68 65 73 2e 20 |ber of p|atches. |
|00003fd0| 28 6e 6f 74 69 63 65 20 | 64 6f 65 73 20 6e 6f 74 |(notice |does not|
|00003fe0| 20 6c 61 62 65 6c 20 65 | 6c 65 6d 65 6e 74 73 21 | label e|lements!|
|00003ff0| 29 0d 09 2d 20 ff 00 14 | 0c 01 f7 72 65 74 75 72 |)..- ...|...retur|
|00004000| 6e 73 ff 00 14 0c 00 f7 | 0d 09 74 68 65 20 74 6f |ns......|..the to|
|00004010| 74 61 6c 20 6e 75 6d 62 | 65 72 20 6f 66 20 70 61 |tal numb|er of pa|
|00004020| 74 63 68 65 73 20 69 6e | 20 74 68 65 20 73 63 65 |tches in| the sce|
|00004030| 6e 65 0d 09 2d 20 ff 00 | 14 0c 01 f7 70 61 72 61 |ne..- ..|....para|
|00004040| 6d 65 74 65 72 73 ff 00 | 14 0c 00 f7 0d 09 ff 00 |meters..|........|
|00004050| 14 0c 02 f7 4f 62 6a 65 | 63 74 48 65 61 64 ff 00 |....Obje|ctHead..|
|00004060| 14 0c 00 f7 20 3a 20 61 | 20 70 6f 69 6e 74 65 72 |.... : a| pointer|
|00004070| 20 74 6f 20 74 68 65 20 | 6d 61 73 74 65 72 20 6c | to the |master l|
|00004080| 69 73 74 20 6f 66 20 6f | 62 6a 65 63 74 73 0d 09 |ist of o|bjects..|
|00004090| 2d 20 ff 00 14 0c 01 f7 | 6c 6f 63 61 6c 73 ff 00 |- ......|locals..|
|000040a0| 14 0c 00 f7 0d 09 ff 00 | 14 0c 02 f7 54 72 61 76 |........|....Trav|
|000040b0| 65 72 73 65 ff 00 14 0c | 00 f7 20 3a 20 75 73 65 |erse....|.. : use|
|000040c0| 64 20 74 6f 20 74 72 61 | 76 65 72 73 65 20 74 68 |d to tra|verse th|
|000040d0| 65 20 6f 62 6a 65 63 74 | 6c 69 73 74 0d 09 ff 00 |e object|list....|
|000040e0| 14 0c 02 f7 43 75 72 72 | 65 6e 74 50 6f 6c 79 ff |....Curr|entPoly.|
|000040f0| 00 14 0c 00 f7 20 3a 20 | 75 73 65 64 20 74 6f 20 |..... : |used to |
|00004100| 74 72 61 76 65 72 73 65 | 20 74 68 65 20 70 6f 6c |traverse| the pol|
|00004110| 79 67 6f 6e 20 6c 69 73 | 74 20 6f 66 20 65 61 63 |ygon lis|t of eac|
|00004120| 68 20 6f 62 6a 65 63 74 | 2e 0d 09 ff 00 14 0c 02 |h object|........|
|00004130| f7 54 6f 74 61 6c ff 00 | 14 0c 00 f7 20 3a 20 61 |.Total..|.... : a|
|00004140| 63 63 75 6d 75 6c 61 74 | 6f 72 20 66 6f 72 20 74 |ccumulat|or for t|
|00004150| 6f 74 61 6c 20 6e 75 6d | 62 65 72 20 6f 66 20 70 |otal num|ber of p|
|00004160| 61 74 63 68 65 73 0d 0d | ff 00 14 0c 02 f7 49 64 |atches..|......Id|
|00004170| 65 6e 74 69 66 79 56 65 | 72 74 73 ff 00 14 0c 00 |entifyVe|rts.....|
|00004180| f7 20 3a 20 6c 61 62 65 | 6c 73 20 61 6c 6c 20 6f |. : labe|ls all o|
|00004190| 66 20 74 68 65 20 76 65 | 72 74 69 63 65 73 20 77 |f the ve|rtices w|
|000041a0| 69 74 68 20 61 20 75 6e | 69 71 75 65 20 69 6e 74 |ith a un|ique int|
|000041b0| 65 67 65 72 20 61 6e 64 | 20 72 65 74 75 72 6e 73 |eger and| returns|
|000041c0| 20 74 68 65 20 74 6f 74 | 61 6c 0d 09 20 20 20 20 | the tot|al.. |
|000041d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6e 75 | | nu|
|000041e0| 6d 62 65 72 20 6f 66 20 | 76 65 72 74 69 63 65 73 |mber of |vertices|
|000041f0| 0d 09 2d 20 ff 00 14 0c | 01 f7 72 65 74 75 72 6e |..- ....|..return|
|00004200| 73 ff 00 14 0c 00 f7 0d | 02 0b 09 74 68 65 20 74 |s.......|...the t|
|00004210| 6f 74 61 6c 20 6e 75 6d | 62 65 72 20 6f 66 20 76 |otal num|ber of v|
|00004220| 65 72 74 69 63 65 73 0d | 09 2d 20 ff 00 14 0c 01 |ertices.|.- .....|
|00004230| f7 70 61 72 61 6d 65 74 | 65 72 73 ff 00 14 0c 00 |.paramet|ers.....|
|00004240| f7 0d 09 ff 00 14 0c 02 | f7 4f 62 6a 65 63 74 48 |........|.ObjectH|
|00004250| 65 61 64 ff 00 14 0c 00 | f7 20 3a 20 61 20 70 6f |ead.....|. : a po|
|00004260| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 6d 61 73 |inter to| the mas|
|00004270| 74 65 72 20 6c 69 73 74 | 20 6f 66 20 6f 62 6a 65 |ter list| of obje|
|00004280| 63 74 73 0d 09 2d 20 ff | 00 14 0c 01 f7 6c 6f 63 |cts..- .|.....loc|
|00004290| 61 6c 73 ff 00 14 0c 00 | f7 0d 09 ff 00 14 0c 02 |als.....|........|
|000042a0| f7 54 72 61 76 65 72 73 | 65 ff 00 14 0c 00 f7 20 |.Travers|e...... |
|000042b0| 3a 20 75 73 65 64 20 74 | 6f 20 74 72 61 76 65 72 |: used t|o traver|
|000042c0| 73 65 20 74 68 65 20 6f | 62 6a 65 63 74 20 6c 69 |se the o|bject li|
|000042d0| 73 74 0d 09 ff 00 14 0c | 02 f7 43 75 72 72 65 6e |st......|..Curren|
|000042e0| 74 56 65 72 74 ff 00 14 | 0c 00 f7 20 3a 20 75 73 |tVert...|... : us|
|000042f0| 65 64 20 74 6f 20 74 72 | 61 76 65 72 73 65 20 74 |ed to tr|averse t|
|00004300| 68 65 20 76 65 72 74 65 | 78 20 6c 69 73 74 73 20 |he verte|x lists |
|00004310| 6f 66 20 65 61 63 68 20 | 6f 62 6a 65 63 74 0d 09 |of each |object..|
|00004320| ff 00 14 0c 02 f7 54 6f | 74 61 6c ff 00 14 0c 00 |......To|tal.....|
|00004330| f7 20 3a 20 61 6e 20 61 | 63 63 75 6d 75 6c 61 74 |. : an a|ccumulat|
|00004340| 6f 72 20 74 68 61 74 20 | 68 6f 6c 64 73 20 74 68 |or that |holds th|
|00004350| 65 20 74 6f 74 61 6c 20 | 6e 75 6d 62 65 72 20 6f |e total |number o|
|00004360| 66 20 76 65 72 74 73 2e | 0d 0d ff 00 14 0c 02 f7 |f verts.|........|
|00004370| 43 6f 6d 70 75 74 65 4e | 6f 72 6d 61 6c 73 ff 00 |ComputeN|ormals..|
|00004380| 14 0c 00 f7 20 3a 20 74 | 68 69 73 20 72 6f 75 74 |.... : t|his rout|
|00004390| 69 6e 65 20 63 6f 6d 70 | 75 74 65 20 74 68 65 20 |ine comp|ute the |
|000043a0| 6e 6f 72 6d 61 6c 73 20 | 6f 66 20 74 68 65 20 70 |normals |of the p|
|000043b0| 6f 6c 79 67 6f 6e 73 20 | 61 6e 64 20 76 65 72 74 |olygons |and vert|
|000043c0| 69 63 65 73 20 6f 66 20 | 74 68 65 20 0d 09 09 20 |ices of |the ... |
|000043d0| 20 20 20 6f 62 6a 65 63 | 74 20 70 61 73 73 65 64 | objec|t passed|
|000043e0| 20 69 6e 2e 20 28 75 73 | 65 73 20 4e 65 77 65 6c | in. (us|es Newel|
|000043f0| 6c 27 73 20 6d 65 74 68 | 6f 64 20 66 6f 72 20 70 |l's meth|od for p|
|00004400| 6f 6c 79 67 6f 6e 73 20 | 61 6e 64 20 61 76 65 72 |olygons |and aver|
|00004410| 61 67 65 73 0d 03 df 09 | 09 20 20 20 20 73 75 72 |ages....|. sur|
|00004420| 72 6f 75 6e 64 69 6e 67 | 20 70 6f 6c 79 67 6f 6e |rounding| polygon|
|00004430| 20 6e 6f 72 6d 61 6c 73 | 20 74 6f 20 63 6f 6d 70 | normals| to comp|
|00004440| 75 74 65 20 74 68 65 20 | 76 65 72 74 65 78 20 6e |ute the |vertex n|
|00004450| 6f 72 6d 61 6c 73 29 0d | 09 2d ff 00 14 0c 01 f7 |ormals).|.-......|
|00004460| 70 61 72 61 6d 65 74 65 | 72 73 ff 00 14 0c 00 f7 |paramete|rs......|
|00004470| 0d 09 ff 00 14 0c 02 f7 | 4f 62 6a 65 63 74 ff 00 |........|Object..|
|00004480| 14 0c 00 f7 20 3a 20 74 | 68 65 20 6f 62 6a 65 63 |.... : t|he objec|
|00004490| 74 20 62 65 69 6e 67 20 | 70 72 6f 63 65 73 73 65 |t being |processe|
|000044a0| 64 0d 09 2d ff 00 14 0c | 01 f7 6c 6f 63 61 6c 73 |d..-....|..locals|
|000044b0| ff 00 14 0c 00 f7 0d 09 | ff 00 14 0c 02 f7 43 75 |........|......Cu|
|000044c0| 72 72 65 6e 74 50 6f 6c | 79 ff 00 14 0c 00 f7 20 |rrentPol|y...... |
|000044d0| 3a 20 75 73 65 64 20 74 | 6f 20 74 72 61 76 65 72 |: used t|o traver|
|000044e0| 73 65 20 74 68 65 20 70 | 6f 6c 79 67 6f 6e 20 6c |se the p|olygon l|
|000044f0| 69 73 74 20 6f 66 20 74 | 68 65 20 6f 62 6a 65 63 |ist of t|he objec|
|00004500| 74 2e 0d 09 ff 00 14 0c | 02 f7 43 75 72 72 65 6e |t.......|..Curren|
|00004510| 74 56 65 72 74 ff 00 14 | 0c 00 f7 20 3a 20 75 73 |tVert...|... : us|
|00004520| 65 64 20 74 6f 20 74 72 | 61 76 65 72 73 65 20 74 |ed to tr|averse t|
|00004530| 68 65 20 76 65 72 74 65 | 78 20 6c 69 73 74 20 6f |he verte|x list o|
|00004540| 66 20 74 68 65 20 6f 62 | 6a 65 63 74 2e 0d 09 ff |f the ob|ject....|
|00004550| 00 14 0c 02 f7 43 75 72 | 72 65 6e 74 56 65 72 74 |.....Cur|rentVert|
|00004560| 4c 69 73 74 ff 00 14 0c | 00 f7 20 3a 20 75 73 65 |List....|.. : use|
|00004570| 64 20 74 6f 20 74 72 61 | 76 65 72 73 65 20 61 20 |d to tra|verse a |
|00004580| 70 6f 6c 79 67 6f 6e 27 | 73 20 76 65 72 74 65 78 |polygon'|s vertex|
|00004590| 20 6c 69 73 74 2e 0d 09 | ff 00 14 0c 02 f7 43 75 | list...|......Cu|
|000045a0| 72 72 65 6e 74 50 6f 6c | 79 4c 69 73 74 ff 00 14 |rrentPol|yList...|
|000045b0| 0c 00 f7 20 3a 20 75 73 | 65 64 20 74 6f 20 74 72 |... : us|ed to tr|
|000045c0| 61 76 65 72 73 65 20 61 | 20 76 65 72 74 65 78 27 |averse a| vertex'|
|000045d0| 73 20 70 6f 6c 79 67 6f | 6e 20 6c 69 73 74 2e 0d |s polygo|n list..|
|000045e0| 09 ff 00 14 0c 02 f7 6c | 6f 6f 70 ff 00 14 0c 00 |.......l|oop.....|
|000045f0| f7 20 3a 20 6c 6f 6f 70 | 20 63 6f 6e 74 72 6f 6c |. : loop| control|
|00004600| 2e 0d 09 ff 00 14 0c 02 | f7 6e 75 6d 70 6f 6c 79 |........|.numpoly|
|00004610| 73 ff 00 14 0c 00 f7 20 | 3a 20 74 68 65 20 6e 75 |s...... |: the nu|
|00004620| 6d 62 65 72 20 6f 66 20 | 70 6f 6c 79 73 20 73 75 |mber of |polys su|
|00004630| 72 72 6f 75 6e 64 69 6e | 67 20 61 20 76 65 72 74 |rroundin|g a vert|
|00004640| 65 78 0d 09 ff 00 14 0c | 02 f7 70 6f 69 6e 74 69 |ex......|..pointi|
|00004650| 2c 70 6f 69 6e 74 6a ff | 00 14 0c 00 f7 20 3a 20 |,pointj.|..... : |
|00004660| 74 65 6d 70 6f 72 61 72 | 69 65 73 20 66 6f 72 20 |temporar|ies for |
|00004670| 6e 65 77 65 6c 6c 27 73 | 20 6d 65 74 68 6f 64 2e |newell's| method.|
|00004680| 0d 0d 0d ff 00 14 0c 02 | f7 43 75 6c 6c 42 61 63 |........|.CullBac|
|00004690| 6b 46 61 63 65 73 ff 00 | 14 0c 00 f7 20 3a 20 74 |kFaces..|.... : t|
|000046a0| 68 69 73 20 72 6f 75 74 | 69 6e 65 73 20 6d 61 72 |his rout|ines mar|
|000046b0| 6b 73 20 74 68 65 20 62 | 61 63 6b 66 61 63 69 6e |ks the b|ackfacin|
|000046c0| 67 20 70 6f 6c 79 67 6f | 6e 73 20 63 75 6c 6c 65 |g polygo|ns culle|
|000046d0| 64 20 0d 09 2d 20 ff 00 | 14 0c 01 f7 70 61 72 61 |d ..- ..|....para|
|000046e0| 6d 65 74 65 72 73 ff 00 | 14 0c 00 f7 0d 09 ff 00 |meters..|........|
|000046f0| 14 0c 02 f7 4f 62 6a 65 | 63 74 48 65 61 64 ff 00 |....Obje|ctHead..|
|00004700| 14 0c 00 f7 20 3a 20 61 | 20 70 6f 69 6e 74 65 72 |.... : a| pointer|
|00004710| 20 74 6f 20 74 68 65 20 | 6d 61 73 74 65 72 20 6c | to the |master l|
|00004720| 69 73 74 20 6f 66 20 6f | 62 6a 65 63 74 73 2e 0d |ist of o|bjects..|
|00004730| 09 ff 00 14 0c 02 f7 45 | 79 65 2c 56 52 50 2c 6e |.......E|ye,VRP,n|
|00004740| ff 00 14 0c 00 f7 20 3a | 20 76 69 65 77 2d 63 6f |...... :| view-co|
|00004750| 6f 72 64 69 6e 61 74 65 | 20 73 79 73 74 65 6d 20 |ordinate| system |
|00004760| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 74 6f 20 64 |informat|ion to d|
|00004770| 65 74 65 72 6d 69 6e 65 | 20 77 68 65 74 68 65 72 |etermine| whether|
|00004780| 20 70 6f 6c 79 67 6f 6e | 0d 09 20 20 20 20 20 20 | polygon|.. |
|00004790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|000047a0| 73 20 63 75 6c 6c 65 64 | 20 6f 72 20 6e 6f 74 2e |s culled| or not.|
|000047b0| 0d 09 2d 20 ff 00 14 0c | 01 f7 6c 6f 63 61 6c 73 |..- ....|..locals|
|000047c0| 0d 09 ff 00 14 0c 02 f7 | 57 6f 72 6c 64 45 79 65 |........|WorldEye|
|000047d0| ff 00 14 0c 00 f7 20 3a | 20 74 68 65 20 65 79 65 |...... :| the eye|
|000047e0| 20 69 6e 20 77 6f 72 6c | 64 20 63 6f 6f 72 64 69 | in worl|d coordi|
|000047f0| 6e 61 74 65 73 0d 03 e3 | 09 ff 00 14 0c 02 f7 71 |nates...|.......q|
|00004800| ff 00 14 0c 00 f7 20 3a | 20 61 20 70 6f 69 6e 74 |...... :| a point|
|00004810| 20 6f 6e 20 74 68 65 20 | 70 6f 6c 79 67 6f 6e 0d | on the |polygon.|
|00004820| 09 ff 00 14 0c 02 f7 43 | 75 72 72 65 6e 74 50 6f |.......C|urrentPo|
|00004830| 6c 79 ff 00 14 0c 00 f7 | 20 3a 20 75 73 65 64 20 |ly......| : used |
|00004840| 74 6f 20 74 72 61 76 65 | 72 73 65 20 74 68 65 20 |to trave|rse the |
|00004850| 70 6f 6c 79 67 6f 6e 20 | 6c 69 73 74 0d 09 ff 00 |polygon |list....|
|00004860| 14 0c 02 f7 6e 66 ff 00 | 14 0c 00 f7 20 3a 20 74 |....nf..|.... : t|
|00004870| 68 65 20 6e 6f 72 6d 61 | 6c 20 6f 66 20 74 68 65 |he norma|l of the|
|00004880| 20 70 6f 6c 79 67 6f 6e | 0d 09 ff 00 14 0c 02 f7 | polygon|........|
|00004890| 4f 62 6a 65 63 74 ff 00 | 14 0c 00 f7 20 3a 20 75 |Object..|.... : u|
|000048a0| 73 65 64 20 74 6f 20 74 | 72 61 76 65 72 73 65 20 |sed to t|raverse |
|000048b0| 74 68 65 20 6f 62 6a 65 | 63 74 20 6c 69 73 74 2e |the obje|ct list.|
|000048c0| 0d 09 ff 00 14 0c 00 f7 | 0d 09 09 0d 0d 09 0d 0d |........|........|
|000048d0| 0d 09 0d 0d 0d 0d 0d ff | 00 14 0c 00 f7 0d ff 00 |........|........|
|000048e0| 14 0c 00 f7 09 0d 09 0d | 0d 0d 0d 09 0d 0d ff 00 |........|........|
|000048f0| 14 0c 00 f7 0d 09 0d 0d | 0d 09 0d 09 0d 0d 09 0d |........|........|
|00004900| ff 00 14 12 01 f7 72 65 | 6e 64 65 72 2e 28 63 68 |......re|nder.(ch|
|00004910| 29 0d 0d ff 00 14 0c 05 | f7 47 6f 61 6c ff 00 14 |).......|.Goal...|
|00004920| 0c 04 f7 0d ff 00 14 0c | 02 f7 0d ff 00 14 0c 00 |........|........|
|00004930| f7 54 68 69 73 20 70 61 | 63 6b 61 67 65 20 70 72 |.This pa|ckage pr|
|00004940| 6f 76 69 64 65 73 20 72 | 6f 75 74 69 6e 65 73 20 |ovides r|outines |
|00004950| 74 68 61 74 20 70 65 72 | 66 6f 72 6d 20 6c 69 6e |that per|form lin|
|00004960| 65 61 72 20 69 6e 74 65 | 72 70 6f 6c 61 74 69 6f |ear inte|rpolatio|
|00004970| 6e 20 77 69 74 68 20 7a | 2d 62 75 66 66 65 72 0d |n with z|-buffer.|
|00004980| 68 69 64 64 65 6e 20 73 | 75 72 66 61 63 65 20 72 |hidden s|urface r|
|00004990| 65 6d 6f 76 61 6c 2e 0d | 0d ff 00 14 0c 05 f7 54 |emoval..|.......T|
|000049a0| 79 70 65 20 44 65 63 6c | 61 72 61 74 69 6f 6e 73 |ype Decl|arations|
|000049b0| ff 00 14 0c 00 f7 0d 0d | ff 00 14 0c 02 f7 45 64 |........|......Ed|
|000049c0| 67 65 4c 69 73 74 43 65 | 6c 6c ff 00 14 0c 00 f7 |geListCe|ll......|
|000049d0| 20 3a 20 65 61 63 68 20 | 65 64 67 65 6c 69 73 74 | : each |edgelist|
|000049e0| 63 65 6c 6c 20 69 73 20 | 72 65 73 70 6f 6e 73 69 |cell is |responsi|
|000049f0| 62 6c 65 20 66 6f 72 20 | 6f 6e 65 20 73 63 61 6e |ble for |one scan|
|00004a00| 2d 6c 69 6e 65 2e 20 20 | 57 68 65 6e 20 74 68 65 |-line. |When the|
|00004a10| 20 6c 69 6e 65 73 20 61 | 72 65 20 0d 09 20 20 20 | lines a|re .. |
|00004a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 72 | | r|
|00004a30| 61 73 74 65 72 69 7a 65 | 64 2c 20 74 68 65 73 65 |asterize|d, these|
|00004a40| 20 63 65 6c 6c 73 20 61 | 72 65 20 63 72 65 61 74 | cells a|re creat|
|00004a50| 65 64 20 74 6f 20 73 74 | 6f 72 65 20 69 6e 74 65 |ed to st|ore inte|
|00004a60| 6e 73 69 74 79 20 61 6e | 64 20 64 65 70 74 68 20 |nsity an|d depth |
|00004a70| 76 61 6c 75 65 73 2e 0d | 09 20 20 20 20 20 20 20 |values..|. |
|00004a80| 20 20 20 20 20 20 20 20 | 20 20 20 42 65 63 61 75 | | Becau|
|00004a90| 73 65 20 74 68 65 20 70 | 6f 6c 79 67 6f 6e 73 20 |se the p|olygons |
|00004aa0| 61 72 65 20 63 6f 6e 76 | 65 78 2c 20 6f 6e 6c 79 |are conv|ex, only|
|00004ab0| 20 74 77 6f 20 73 65 74 | 73 20 6f 66 20 69 6e 66 | two set|s of inf|
|00004ac0| 6f 72 6d 61 74 69 6f 6e | 20 6e 65 65 64 20 74 6f |ormation| need to|
|00004ad0| 0d 09 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004ae0| 20 20 20 20 62 65 20 73 | 74 6f 72 65 64 20 70 65 | be s|tored pe|
|00004af0| 72 20 73 63 61 6e 2d 6c | 69 6e 65 2e 0d 0d ff 00 |r scan-l|ine.....|
|00004b00| 14 0c 05 f7 46 75 6e 63 | 74 69 6f 6e 73 ff 00 14 |....Func|tions...|
|00004b10| 0c 00 f7 0d 0d ff 00 14 | 0c 02 f7 52 61 73 74 65 |........|...Raste|
|00004b20| 72 69 7a 65 45 64 67 65 | 20 3a 20 ff 00 14 0c 00 |rizeEdge| : .....|
|00004b30| f7 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 72 61 |.This ro|utine ra|
|00004b40| 73 74 65 72 69 7a 65 64 | 20 61 6e 20 65 64 67 65 |sterized| an edge|
|00004b50| 20 61 6e 20 61 64 64 73 | 20 74 68 65 20 69 6e 66 | an adds| the inf|
|00004b60| 6f 72 6d 61 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |ormation| to the |
|00004b70| 65 64 67 65 20 6c 69 73 | 74 2e 0d 09 2d 20 ff 00 |edge lis|t...- ..|
|00004b80| 14 0c 01 f7 70 61 72 61 | 6d 74 65 72 73 ff 00 14 |....para|mters...|
|00004b90| 0c 00 f7 0d 09 ff 00 14 | 0c 02 f7 45 64 67 65 4c |........|...EdgeL|
|00004ba0| 69 73 74 20 ff 00 14 0c | 00 f7 3a 20 74 68 65 20 |ist ....|..: the |
|00004bb0| 61 72 72 61 79 20 6f 66 | 20 65 64 67 65 6c 69 73 |array of| edgelis|
|00004bc0| 74 63 65 6c 6c 73 20 28 | 6f 6e 65 20 70 65 72 20 |tcells (|one per |
|00004bd0| 73 63 61 6e 2d 6c 69 6e | 65 29 0d 02 14 09 ff 00 |scan-lin|e)......|
|00004be0| 14 0c 02 f7 61 ff 00 14 | 0c 00 f7 20 3a 20 74 68 |....a...|... : th|
|00004bf0| 65 20 66 69 72 73 74 20 | 65 6e 64 70 6f 69 6e 74 |e first |endpoint|
|00004c00| 20 6f 66 20 74 68 65 20 | 6c 69 6e 65 20 74 6f 20 | of the |line to |
|00004c10| 62 65 20 72 61 73 74 65 | 72 69 7a 65 64 2e 0d 09 |be raste|rized...|
|00004c20| ff 00 14 0c 02 f7 62 ff | 00 14 0c 00 f7 20 3a 20 |......b.|..... : |
|00004c30| 74 68 65 20 73 65 63 6f | 6e 64 20 65 6e 64 70 6f |the seco|nd endpo|
|00004c40| 69 6e 74 20 6f 66 20 74 | 68 65 20 6c 69 6e 65 20 |int of t|he line |
|00004c50| 74 6f 20 62 65 20 72 61 | 73 74 65 72 69 7a 65 64 |to be ra|sterized|
|00004c60| 2e 0d 09 ff 00 14 0c 02 | f7 77 69 6e 57 69 64 74 |........|.winWidt|
|00004c70| 68 ff 00 14 0c 00 f7 20 | 3a 20 77 69 64 74 68 20 |h...... |: width |
|00004c80| 6f 66 20 74 68 65 20 76 | 69 65 77 77 69 6e 64 6f |of the v|iewwindo|
|00004c90| 77 20 69 6e 20 70 69 78 | 65 6c 73 0d 09 ff 00 14 |w in pix|els.....|
|00004ca0| 0c 02 f7 77 69 6e 48 65 | 69 67 68 74 ff 00 14 0c |...winHe|ight....|
|00004cb0| 00 f7 20 3a 20 68 65 69 | 67 68 74 20 6f 66 20 74 |.. : hei|ght of t|
|00004cc0| 68 65 20 76 69 65 77 77 | 69 6e 64 6f 77 20 69 6e |he vieww|indow in|
|00004cd0| 20 70 69 78 65 6c 73 0d | 09 ff 00 14 0c 02 f7 56 | pixels.|.......V|
|00004ce0| 69 65 77 57 69 6e 64 6f | 77 ff 00 14 0c 00 f7 20 |iewWindo|w...... |
|00004cf0| 3a 20 74 68 65 20 76 69 | 65 77 77 69 6e 64 6f 77 |: the vi|ewwindow|
|00004d00| 20 74 68 61 74 20 69 73 | 20 74 6f 20 62 65 20 72 | that is| to be r|
|00004d10| 61 73 74 65 72 69 7a 65 | 64 20 69 6e 2e 0d 09 2d |asterize|d in...-|
|00004d20| 20 ff 00 14 0c 01 f7 6c | 6f 63 61 6c 73 ff 00 14 | ......l|ocals...|
|00004d30| 0c 00 f7 0d 09 ff 00 14 | 0c 02 f7 78 73 2c 20 79 |........|...xs, y|
|00004d40| 78 2c 20 78 65 2c 20 79 | 65 ff 00 14 0c 00 f7 20 |x, xe, y|e...... |
|00004d50| 3a 20 74 68 65 20 70 69 | 78 65 6c 20 63 6f 6f 72 |: the pi|xel coor|
|00004d60| 64 69 6e 61 74 65 73 20 | 6f 66 20 74 68 65 20 65 |dinates |of the e|
|00004d70| 6e 64 70 6f 69 6e 74 73 | 20 6f 66 20 74 68 65 20 |ndpoints| of the |
|00004d80| 6c 69 6e 65 0d 09 ff 00 | 14 0c 02 f7 56 69 65 77 |line....|....View|
|00004d90| 48 65 69 67 68 74 ff 00 | 14 0c 00 f7 20 3a 20 74 |Height..|.... : t|
|00004da0| 68 65 20 68 65 69 67 68 | 74 20 6f 66 20 74 68 65 |he heigh|t of the|
|00004db0| 20 76 69 65 77 77 69 6e | 64 6f 77 0d 09 ff 00 14 | viewwin|dow.....|
|00004dc0| 0c 02 f7 56 69 65 77 57 | 69 64 74 68 ff 00 14 0c |...ViewW|idth....|
|00004dd0| 00 f7 20 3a 20 74 68 65 | 20 77 69 64 74 68 20 6f |.. : the| width o|
|00004de0| 66 20 74 68 65 20 76 69 | 65 77 77 69 6e 64 6f 77 |f the vi|ewwindow|
|00004df0| 0d 02 91 09 ff 00 14 0c | 02 f7 78 ff 00 14 0c 00 |........|..x.....|
|00004e00| f7 20 3a 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |. : the |current |
|00004e10| 78 20 76 61 6c 75 65 20 | 28 69 6e 20 76 69 65 77 |x value |(in view|
|00004e20| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 29 0d 09 ff | coordin|ates)...|
|00004e30| 00 14 0c 02 f7 52 69 2c | 47 69 2c 42 69 ff 00 14 |.....Ri,|Gi,Bi...|
|00004e40| 0c 00 f7 20 3a 20 74 68 | 65 20 63 75 72 72 65 6e |... : th|e curren|
|00004e50| 74 20 63 6f 6c 6f 72 73 | 20 28 74 68 65 20 63 75 |t colors| (the cu|
|00004e60| 72 72 65 6e 74 20 69 6e | 74 65 72 70 6f 6c 61 74 |rrent in|terpolat|
|00004e70| 65 64 20 76 61 6c 75 65 | 73 29 0d 09 ff 00 14 0c |ed value|s)......|
|00004e80| 02 f7 52 69 73 2c 47 69 | 73 2c 42 69 73 ff 00 14 |..Ris,Gi|s,Bis...|
|00004e90| 0c 00 f7 20 3a 20 74 68 | 65 20 63 6f 6c 6f 72 20 |... : th|e color |
|00004ea0| 6f 66 20 65 6e 64 70 6f | 69 6e 74 20 31 0d 09 ff |of endpo|int 1...|
|00004eb0| 00 14 0c 02 f7 52 69 65 | 2c 47 69 65 2c 42 69 65 |.....Rie|,Gie,Bie|
|00004ec0| ff 00 14 0c 00 f7 20 3a | 20 74 68 65 20 63 6f 6c |...... :| the col|
|00004ed0| 6f 72 20 6f 66 20 65 6e | 64 70 6f 69 6e 74 20 32 |or of en|dpoint 2|
|00004ee0| 0d 09 ff 00 14 0c 02 f7 | 52 69 6e 63 69 2c 47 69 |........|Rinci,Gi|
|00004ef0| 6e 63 69 2c 42 69 6e 63 | 69 ff 00 14 0c 00 f7 20 |nci,Binc|i...... |
|00004f00| 3a 20 74 68 65 20 69 6e | 63 72 65 6d 65 6e 74 73 |: the in|crements|
|00004f10| 20 66 6f 72 20 74 68 65 | 20 63 6f 6c 6f 72 20 69 | for the| color i|
|00004f20| 6e 74 65 72 70 6f 6c 61 | 74 69 6f 6e 0d 09 ff 00 |nterpola|tion....|
|00004f30| 14 0c 02 f7 7a ff 00 14 | 0c 00 f7 20 3a 20 74 68 |....z...|... : th|
|00004f40| 65 20 63 75 72 72 65 6e | 74 20 69 6e 74 65 72 70 |e curren|t interp|
|00004f50| 6f 6c 61 74 65 64 20 64 | 65 70 74 68 0d 09 ff 00 |olated d|epth....|
|00004f60| 14 0c 02 f7 7a 73 ff 00 | 14 0c 00 f7 20 3a 20 74 |....zs..|.... : t|
|00004f70| 68 65 20 64 65 70 74 68 | 20 6f 66 20 65 6e 64 70 |he depth| of endp|
|00004f80| 6f 69 6e 74 20 31 0d 09 | ff 00 14 0c 02 f7 7a 65 |oint 1..|......ze|
|00004f90| ff 00 14 0c 00 f7 20 3a | 20 74 68 65 20 64 65 70 |...... :| the dep|
|00004fa0| 74 68 20 6f 66 20 65 6e | 64 70 6f 69 6e 74 20 32 |th of en|dpoint 2|
|00004fb0| 0d 09 ff 00 14 0c 02 f7 | 69 6e 63 7a ff 00 14 0c |........|incz....|
|00004fc0| 00 f7 20 3a 20 74 68 65 | 20 69 6e 63 72 65 6d 65 |.. : the| increme|
|00004fd0| 6e 74 20 66 6f 72 20 74 | 68 65 20 64 65 70 74 68 |nt for t|he depth|
|00004fe0| 20 69 6e 74 65 72 70 6f | 6c 61 74 69 6f 6e 0d 09 | interpo|lation..|
|00004ff0| ff 00 14 0c 02 f7 75 2c | 76 2c 6e ff 00 14 0c 00 |......u,|v,n.....|
|00005000| f7 20 3a 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |. : the |current |
|00005010| 69 6e 74 65 72 70 6f 6c | 61 74 65 64 20 76 69 65 |interpol|ated vie|
|00005020| 77 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 28 75 |w coordi|nates (u|
|00005030| 73 65 64 20 66 6f 72 20 | 74 65 78 74 75 72 65 20 |sed for |texture |
|00005040| 6d 61 70 70 69 6e 67 29 | 0d 09 ff 00 14 0c 02 f7 |mapping)|........|
|00005050| 75 73 2c 76 73 2c 6e 73 | ff 00 14 0c 00 f7 20 3a |us,vs,ns|...... :|
|00005060| 20 74 68 65 20 76 69 65 | 77 20 63 6f 6f 72 64 69 | the vie|w coordi|
|00005070| 6e 61 74 65 73 20 6f 66 | 20 65 6e 64 70 6f 69 6e |nates of| endpoin|
|00005080| 74 20 31 0d 03 21 09 ff | 00 14 0c 02 f7 50 6f 6c |t 1..!..|.....Pol|
|00005090| 79 67 6f 6e 48 65 61 64 | ff 00 14 0c 00 f7 20 3a |ygonHead|...... :|
|000050a0| 20 61 20 70 6f 6e 74 65 | 72 20 74 6f 20 74 68 65 | a ponte|r to the|
|000050b0| 20 6c 69 73 74 20 6f 66 | 20 70 6f 6c 79 67 6f 6e | list of| polygon|
|000050c0| 73 20 6f 66 20 74 68 65 | 20 6f 62 6a 65 63 74 2e |s of the| object.|
|000050d0| 0d 09 ff 00 14 0c 02 f7 | 54 72 61 6e 73 66 6f 72 |........|Transfor|
|000050e0| 6d ff 00 14 0c 00 f7 20 | 3a 20 74 68 65 20 74 72 |m...... |: the tr|
|000050f0| 61 6e 73 66 6f 72 6d 20 | 6d 61 74 72 69 78 20 74 |ansform |matrix t|
|00005100| 68 61 74 20 67 6f 65 73 | 20 66 72 6f 6d 20 6f 62 |hat goes| from ob|
|00005110| 6a 65 63 74 20 73 70 61 | 63 65 0d 20 09 20 20 20 |ject spa|ce. . |
|00005120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005130| 20 74 6f 20 77 6f 72 6c | 64 20 73 70 61 63 65 2e | to worl|d space.|
|00005140| 0d 09 ff 00 14 0c 02 f7 | 49 6e 76 65 72 73 65 54 |........|InverseT|
|00005150| 72 61 6e 73 66 6f 72 6d | ff 00 14 0c 00 f7 20 3a |ransform|...... :|
|00005160| 20 74 68 65 20 69 6e 76 | 65 72 73 65 20 6f 66 20 | the inv|erse of |
|00005170| 74 68 65 20 74 72 61 6e | 73 66 6f 72 6d 20 6d 61 |the tran|sform ma|
|00005180| 74 72 69 78 2e 0d 09 ff | 00 14 0c 02 f7 4e 65 78 |trix....|.....Nex|
|00005190| 74 ff 00 14 0c 00 f7 20 | 3a 20 61 20 70 6f 69 6e |t...... |: a poin|
|000051a0| 74 65 72 20 74 6f 20 74 | 68 65 20 6e 65 78 74 20 |ter to t|he next |
|000051b0| 6f 62 6a 65 63 74 0d 09 | ff 00 14 0c 02 f7 53 75 |object..|......Su|
|000051c0| 62 46 61 63 74 6f 72 ff | 00 14 0c 00 f7 20 3a 20 |bFactor.|..... : |
|000051d0| 74 68 65 20 73 75 62 64 | 69 76 69 73 69 6f 6e 20 |the subd|ivision |
|000051e0| 66 61 63 74 6f 72 20 66 | 6f 72 20 69 6e 69 74 69 |factor f|or initi|
|000051f0| 61 6c 20 6d 65 73 68 20 | 67 65 6e 65 72 61 74 69 |al mesh |generati|
|00005200| 6f 6e 2e 0d 09 ff 00 14 | 0c 02 f7 53 68 6f 75 6c |on......|...Shoul|
|00005210| 64 41 64 61 70 74 ff 00 | 14 0c 00 f7 20 3a 20 73 |dAdapt..|.... : s|
|00005220| 68 6f 75 6c 64 20 74 68 | 69 73 20 6f 62 6a 65 63 |hould th|is objec|
|00005230| 74 20 62 65 20 61 6c 6c | 6f 77 65 64 20 74 6f 20 |t be all|owed to |
|00005240| 61 64 61 70 74 69 76 65 | 6c 79 20 73 75 62 64 69 |adaptive|ly subdi|
|00005250| 76 69 64 65 3f 0d 0d fc | 00 5a 02 0a 00 5a 00 0e |vide?...|.Z...Z..|
|00005260| 01 b4 02 b8 06 30 f7 ff | 00 14 0c 05 f7 43 6f 6e |.....0..|.....Con|
|00005270| 73 74 61 6e 74 73 ff 00 | 14 0c 00 f7 20 3a 0d ff |stants..|.... :..|
|00005280| 00 14 0c 02 f7 0d 57 74 | 6f 6c 20 3a 20 ff 00 14 |......Wt|ol : ...|
|00005290| 0c 00 f7 75 73 65 64 20 | 69 6e 20 63 6c 69 70 70 |...used |in clipp|
|000052a0| 69 6e 67 20 72 6f 75 74 | 69 6e 65 20 66 6f 72 20 |ing rout|ine for |
|000052b0| 63 6c 69 70 70 69 6e 67 | 20 74 6f 20 65 79 65 2d |clipping| to eye-|
|000052c0| 70 6c 61 6e 65 0d ff 00 | 14 0c 02 f7 0d fc 00 5a |plane...|.......Z|
|000052d0| 02 0a 00 5a 00 0e 02 b8 | 06 30 f7 ff 00 14 0c 05 |...Z....|.0......|
|000052e0| f7 56 61 72 69 61 62 6c | 65 73 ff 00 14 0c 00 f7 |.Variabl|es......|
|000052f0| 20 0d 0d ff 00 14 0c 02 | f7 4f 62 6a 65 63 74 68 | .......|.Objecth|
|00005300| 65 61 64 ff 00 14 0c 00 | f7 20 3a 20 61 20 70 6f |ead.....|. : a po|
|00005310| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 6c 69 73 |inter to| the lis|
|00005320| 74 20 6f 66 20 6f 62 6a | 65 63 74 73 20 69 6e 20 |t of obj|ects in |
|00005330| 74 68 65 20 73 63 65 6e | 65 0d 0d ff 00 14 0c 05 |the scen|e.......|
|00005340| f7 46 75 6e 63 74 69 6f | 6e 73 ff 00 14 0c 00 f7 |.Functio|ns......|
|00005350| 0d 0d 41 6c 6c 20 6f 66 | 20 74 68 65 20 66 75 6e |..All of| the fun|
|00005360| 63 74 69 6f 6e 73 20 69 | 6e 69 74 69 61 6c 69 7a |ctions i|nitializ|
|00005370| 65 20 61 6e 20 69 6e 73 | 74 61 6e 63 65 20 6f 66 |e an ins|tance of|
|00005380| 20 74 68 65 20 63 6f 72 | 72 65 73 70 6f 6e 64 69 | the cor|respondi|
|00005390| 6e 67 20 74 79 70 65 2e | 20 20 46 6f 72 20 65 78 |ng type.| For ex|
|000053a0| 61 6d 70 6c 65 2c 0d 03 | a3 09 ff 00 14 0c 02 f7 |ample,..|........|
|000053b0| 4e 6f 72 6d 61 6c 69 7a | 65 2f 76 65 63 74 6f 72 |Normaliz|e/vector|
|000053c0| 2d 6d 61 74 72 69 78 2e | 63 0d 09 43 72 6f 73 73 |-matrix.|c..Cross|
|000053d0| 2f 76 65 63 74 6f 72 2d | 6d 61 74 72 69 78 2e 63 |/vector-|matrix.c|
|000053e0| 0d 09 53 63 61 6c 65 2f | 76 65 63 74 6f 72 2d 6d |..Scale/|vector-m|
|000053f0| 61 74 72 69 78 2e 63 0d | 09 49 6e 69 74 48 65 6d |atrix.c.|.InitHem|
|00005400| 69 43 75 62 65 2f 68 65 | 6d 69 63 75 62 65 2e 63 |iCube/he|micube.c|
|00005410| 0d 09 50 72 6f 64 75 63 | 65 54 72 61 6e 73 66 6f |..Produc|eTransfo|
|00005420| 72 6d 2f 76 65 63 74 6f | 72 2d 6d 61 74 72 69 78 |rm/vecto|r-matrix|
|00005430| 2e 63 0d 09 54 72 61 6e | 73 66 6f 72 6d 56 69 65 |.c..Tran|sformVie|
|00005440| 77 2f 76 65 63 74 6f 72 | 2d 6d 61 74 72 69 78 2e |w/vector|-matrix.|
|00005450| 63 0d 09 43 75 6c 6c 42 | 61 63 6b 46 61 63 65 73 |c..CullB|ackFaces|
|00005460| 2f 6d 69 73 63 2e 63 0d | 09 48 65 6d 69 52 65 6e |/misc.c.|.HemiRen|
|00005470| 64 65 72 4f 62 6a 65 63 | 74 73 2f 68 65 6d 69 63 |derObjec|ts/hemic|
|00005480| 75 62 65 2e 63 0d 0d ff | 00 14 12 01 f7 0d 0d 0d |ube.c...|........|
|00005490| 0d 0d 0d 0d 0d 0d 0d 0d | 0d 0d 0d 0d 0d 0d 0d 0d |........|........|
|000054a0| 0d 0d 0d 0d 0d 0d 0d 0d | 76 65 63 74 6f 72 2d 6d |........|vector-m|
|000054b0| 61 74 72 69 78 2e 28 63 | 68 29 0d 0d ff 00 14 0c |atrix.(c|h)......|
|000054c0| 05 f7 47 6f 61 6c ff 00 | 14 0c 04 f7 0d 0d ff 00 |..Goal..|........|
|000054d0| 14 0c 00 f7 54 68 65 73 | 65 20 72 6f 75 74 69 6e |....Thes|e routin|
|000054e0| 65 73 20 70 72 6f 76 69 | 64 65 20 62 61 73 69 63 |es provi|de basic|
|000054f0| 20 76 65 63 74 6f 72 20 | 61 6e 64 20 6d 61 74 72 | vector |and matr|
|00005500| 69 78 20 6f 70 65 72 61 | 74 69 6f 6e 73 0d 0d ff |ix opera|tions...|
|00005510| 00 14 0c 05 f7 46 75 6e | 63 74 69 6f 6e 73 ff 00 |.....Fun|ctions..|
|00005520| 14 0c 00 f7 20 0d 0d ff | 00 14 0c 02 f7 4c 65 6e |.... ...|.....Len|
|00005530| 67 74 68 ff 00 14 0c 00 | f7 20 3a 20 74 68 69 73 |gth.....|. : this|
|00005540| 20 66 75 6e 63 74 69 6f | 6e 20 63 6f 6d 70 75 74 | functio|n comput|
|00005550| 65 73 20 74 68 65 20 6c | 65 6e 67 74 68 20 6f 66 |es the l|ength of|
|00005560| 20 61 20 76 65 63 74 6f | 72 2e 0d 09 2d 20 ff 00 | a vecto|r...- ..|
|00005570| 14 0c 01 f7 72 65 74 75 | 72 6e 73 0d 09 ff 00 14 |....retu|rns.....|
|00005580| 0c 00 f7 74 68 65 20 6c | 65 6e 67 74 68 20 6f 66 |...the l|ength of|
|00005590| 20 74 68 65 20 76 65 63 | 74 6f 72 0d 09 2d 20 ff | the vec|tor..- .|
|000055a0| 00 14 0c 01 f7 70 61 72 | 61 6d 65 74 65 72 73 ff |.....par|ameters.|
|000055b0| 00 14 0c 00 f7 0d 09 ff | 00 14 0c 02 f7 76 65 63 |........|.....vec|
|000055c0| ff 00 14 0c 00 f7 20 3a | 20 74 68 65 20 69 6e 70 |...... :| the inp|
|000055d0| 75 74 20 76 65 63 74 6f | 72 0d 0d ff 00 14 0c 02 |ut vecto|r.......|
|000055e0| f7 4e 6f 72 6d 61 6c 69 | 7a 65 ff 00 14 0c 00 f7 |.Normali|ze......|
|000055f0| 20 3a 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e | : this |function|
|00005600| 20 63 6f 6d 70 75 74 65 | 73 20 74 68 65 20 6e 6f | compute|s the no|
|00005610| 6d 61 6c 69 7a 65 64 20 | 76 65 72 73 69 6f 6e 20 |malized |version |
|00005620| 6f 66 20 74 68 65 20 76 | 65 63 74 6f 72 2e 0d 09 |of the v|ector...|
|00005630| 2d 20 ff 00 14 0c 01 f7 | 72 65 74 75 72 6e 73 ff |- ......|returns.|
|00005640| 00 14 0c 00 f7 0d 09 74 | 68 65 20 69 6e 70 75 74 |.......t|he input|
|00005650| 20 76 65 63 74 6f 72 20 | 6e 6f 72 6d 61 6c 69 7a | vector |normaliz|
|00005660| 65 64 2e 20 0d 09 2d 20 | ff 00 14 0c 01 f7 70 61 |ed. ..- |......pa|
|00005670| 72 61 6d 65 74 65 72 73 | ff 00 14 0c 00 f7 0d 09 |rameters|........|
|00005680| ff 00 14 0c 02 f7 76 65 | 63 ff 00 14 0c 00 f7 20 |......ve|c...... |
|00005690| 3a 20 74 68 65 20 69 6e | 70 75 74 20 76 65 63 74 |: the in|put vect|
|000056a0| 6f 72 0d 09 2d 20 ff 00 | 14 0c 01 f7 6c 6f 63 61 |or..- ..|....loca|
|000056b0| 6c 73 ff 00 14 0c 00 f7 | 0d 09 ff 00 14 0c 02 f7 |ls......|........|
|000056c0| 74 65 6d 70 ff 00 14 0c | 00 f7 20 3a 20 68 6f 6c |temp....|.. : hol|
|000056d0| 64 73 20 74 68 65 20 72 | 65 74 75 72 6e 20 76 61 |ds the r|eturn va|
|000056e0| 6c 75 65 2e 0d 09 ff 00 | 14 0c 02 f7 6c 65 6e ff |lue.....|....len.|
|000056f0| 00 14 0c 00 f7 20 3a 20 | 74 68 65 20 6c 65 6e 67 |..... : |the leng|
|00005700| 74 68 20 6f 66 20 74 68 | 65 20 76 65 63 74 6f 72 |th of th|e vector|
|00005710| 2e 0d 09 2d 20 ff 00 14 | 0c 01 f7 64 65 70 65 6e |...- ...|...depen|
|00005720| 64 65 6e 63 69 65 73 ff | 00 14 0c 00 f7 0d 09 ff |dencies.|........|
|00005730| 00 14 0c 02 f7 4c 65 6e | 67 74 68 2f 76 65 63 74 |.....Len|gth/vect|
|00005740| 6f 72 2d 6d 61 74 72 69 | 78 2e 63 0d 02 e5 09 ff |or-matri|x.c.....|
|00005750| 00 14 0c 02 f7 77 69 6e | 57 69 64 74 68 ff 00 14 |.....win|Width...|
|00005760| 0c 00 f7 20 3a 20 74 68 | 65 20 77 69 6e 64 6f 77 |... : th|e window|
|00005770| 20 77 69 64 74 68 20 69 | 6e 20 70 69 78 65 6c 73 | width i|n pixels|
|00005780| 0d 09 ff 00 14 0c 02 f7 | 77 69 6e 48 65 69 67 68 |........|winHeigh|
|00005790| 74 ff 00 14 0c 00 f7 20 | 3a 20 74 68 65 20 77 69 |t...... |: the wi|
|000057a0| 6e 64 6f 77 20 68 65 69 | 67 68 74 20 69 6e 20 70 |ndow hei|ght in p|
|000057b0| 69 78 65 6c 73 0d 09 ff | 00 14 0c 02 f7 75 76 65 |ixels...|.....uve|
|000057c0| 63 74 6f 72 2c 76 76 65 | 63 74 6f 72 2c 6e 76 65 |ctor,vve|ctor,nve|
|000057d0| 63 74 6f 72 2c 72 70 6f | 69 6e 74 ff 00 14 0c 00 |ctor,rpo|int.....|
|000057e0| f7 20 3a 20 74 68 65 20 | 76 69 65 77 20 69 6e 66 |. : the |view inf|
|000057f0| 6f 72 6d 61 74 69 6f 6e | 20 6e 65 65 64 65 64 20 |ormation| needed |
|00005800| 66 6f 72 20 69 6e 76 65 | 72 73 65 20 6d 61 70 70 |for inve|rse mapp|
|00005810| 69 6e 67 20 0d 09 09 20 | 20 20 20 20 20 20 20 20 |ing ... | |
|00005820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005830| 20 20 20 20 20 28 66 6f | 72 20 74 65 78 74 75 72 | (fo|r textur|
|00005840| 65 64 20 73 75 72 66 61 | 63 65 73 29 0d 09 2d 20 |ed surfa|ces)..- |
|00005850| ff 00 14 0c 01 f7 6c 6f | 63 61 6c 73 ff 00 14 0c |......lo|cals....|
|00005860| 00 f7 0d 09 ff 00 14 0c | 02 f7 45 64 67 65 4c 69 |........|..EdgeLi|
|00005870| 73 74 ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 61 |st......| : the a|
|00005880| 72 72 61 79 20 6f 66 20 | 65 64 67 65 6c 69 73 74 |rray of |edgelist|
|00005890| 63 65 6c 6c 73 20 74 68 | 61 74 20 69 73 20 67 65 |cells th|at is ge|
|000058a0| 6e 65 72 61 74 65 64 20 | 62 79 20 72 61 73 74 65 |nerated |by raste|
|000058b0| 72 69 7a 65 65 64 67 65 | 0d 09 ff 00 14 0c 02 f7 |rizeedge|........|
|000058c0| 6c 6f 6f 70 2c 6c 6f 6f | 70 32 ff 00 14 0c 00 f7 |loop,loo|p2......|
|000058d0| 20 3a 20 6c 6f 6f 70 20 | 63 6f 6e 74 72 6f 6c 20 | : loop |control |
|000058e0| 76 61 72 69 61 62 6c 65 | 73 0d 09 ff 00 14 0c 02 |variable|s.......|
|000058f0| f7 46 69 72 73 74 56 65 | 72 74 65 78 ff 00 14 0c |.FirstVe|rtex....|
|00005900| 00 f7 20 3a 20 74 68 65 | 20 66 69 72 73 74 20 76 |.. : the| first v|
|00005910| 69 73 76 65 72 74 65 78 | 20 6f 66 20 43 75 72 72 |isvertex| of Curr|
|00005920| 65 6e 74 50 6f 6c 79 0d | 09 ff 00 14 0c 02 f7 54 |entPoly.|.......T|
|00005930| 72 61 76 65 72 73 65 ff | 00 14 0c 00 f7 20 3a 20 |raverse.|..... : |
|00005940| 75 73 65 64 20 74 6f 20 | 74 72 61 76 65 72 73 65 |used to |traverse|
|00005950| 20 74 68 65 20 76 69 73 | 76 65 72 74 65 78 20 6c | the vis|vertex l|
|00005960| 69 73 74 20 6f 66 20 43 | 75 72 72 65 6e 74 50 6f |ist of C|urrentPo|
|00005970| 6c 79 0d 09 ff 00 14 0c | 02 f7 63 6f 6c 6f 72 ff |ly......|..color.|
|00005980| 00 14 0c 00 f7 20 3a 20 | 74 68 65 20 66 6c 6f 61 |..... : |the floa|
|00005990| 74 69 6e 67 20 70 6f 69 | 6e 74 20 63 6f 6c 6f 72 |ting poi|nt color|
|000059a0| 20 28 6f 6e 65 20 66 6f | 72 20 65 61 63 68 20 63 | (one fo|r each c|
|000059b0| 6f 6d 70 6f 6e 61 6e 74 | 29 20 6f 66 20 74 68 65 |omponant|) of the|
|000059c0| 20 63 75 72 72 65 6e 74 | 20 70 69 78 65 6c 0d 09 | current| pixel..|
|000059d0| ff 00 14 0c 02 f7 74 65 | 78 74 75 72 65 43 6f 6c |......te|xtureCol|
|000059e0| 6f 72 ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 66 |or......| : the f|
|000059f0| 6c 6f 61 74 69 6e 67 20 | 70 6f 69 6e 74 20 63 6f |loating |point co|
|00005a00| 6c 6f 72 20 28 6f 6e 65 | 20 66 6f 72 20 65 61 63 |lor (one| for eac|
|00005a10| 68 20 63 6f 6d 70 6f 6e | 61 6e 74 29 20 6f 66 20 |h compon|ant) of |
|00005a20| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 69 78 65 |the curr|ent pixe|
|00005a30| 6c 2e 0d 03 81 09 ff 00 | 14 0c 02 f7 75 65 2c 76 |l.......|....ue,v|
|00005a40| 65 2c 6e 65 ff 00 14 0c | 00 f7 20 3a 20 74 68 65 |e,ne....|.. : the|
|00005a50| 20 76 69 65 77 20 63 6f | 6f 72 64 69 6e 61 74 65 | view co|ordinate|
|00005a60| 73 20 6f 66 20 65 6e 64 | 70 6f 69 6e 74 20 32 0d |s of end|point 2.|
|00005a70| 09 ff 00 14 0c 02 f7 69 | 6e 63 75 2c 69 6e 63 76 |.......i|ncu,incv|
|00005a80| 2c 69 6e 63 6e ff 00 14 | 0c 00 f7 20 3a 20 74 68 |,incn...|... : th|
|00005a90| 65 20 69 6e 63 72 65 6d | 65 6e 74 20 66 6f 72 20 |e increm|ent for |
|00005aa0| 76 69 65 77 20 63 6f 6f | 72 64 69 6e 61 74 65 20 |view coo|rdinate |
|00005ab0| 69 6e 74 65 72 70 6f 6c | 61 74 69 6f 6e 0d 09 ff |interpol|ation...|
|00005ac0| 00 14 0c 02 f7 74 65 6d | 70 32 ff 00 14 0c 00 f7 |.....tem|p2......|
|00005ad0| 20 3a 20 75 73 65 64 20 | 69 66 20 61 20 61 6e 64 | : used |if a and|
|00005ae0| 20 62 20 68 61 76 65 20 | 74 6f 20 62 65 20 73 77 | b have |to be sw|
|00005af0| 61 70 70 65 64 0d 09 0d | 09 0d 0d 0d 0d ff 00 14 |apped...|........|
|00005b00| 0c 02 f7 72 65 6e 64 65 | 72 70 6f 6c 79 ff 00 14 |...rende|rpoly...|
|00005b10| 0c 00 f7 20 3a 20 74 68 | 69 73 20 72 6f 75 74 69 |... : th|is routi|
|00005b20| 6e 65 20 72 65 6e 64 65 | 72 73 20 61 20 70 61 74 |ne rende|rs a pat|
|00005b30| 63 68 20 72 65 63 75 73 | 69 76 65 6c 79 20 62 79 |ch recus|ively by|
|00005b40| 20 72 65 6e 64 65 72 69 | 6e 67 20 69 74 73 20 65 | renderi|ng its e|
|00005b50| 6c 65 6d 65 6e 74 73 20 | 69 66 20 74 68 65 79 20 |lements |if they |
|00005b60| 65 78 69 73 74 2e 0d 09 | 20 20 20 20 20 20 20 20 |exist...| |
|00005b70| 20 20 20 20 20 20 69 74 | 73 20 75 73 65 73 20 61 | it|s uses a|
|00005b80| 20 5a 62 75 66 66 65 72 | 20 68 69 64 64 65 6e 20 | Zbuffer| hidden |
|00005b90| 73 75 72 66 61 63 65 20 | 72 65 6d 6f 76 61 6c 20 |surface |removal |
|00005ba0| 61 6c 67 6f 72 69 74 68 | 6d 20 61 6e 64 20 6c 69 |algorith|m and li|
|00005bb0| 6e 65 61 72 20 69 6e 74 | 65 72 70 6f 6c 61 74 69 |near int|erpolati|
|00005bc0| 6f 6e 2e 0d 09 20 20 20 | 20 20 20 20 20 20 20 20 |on... | |
|00005bd0| 20 20 20 49 74 20 61 6c | 73 6f 20 70 65 72 66 6f | It al|so perfo|
|00005be0| 72 6d 73 20 74 65 78 74 | 75 72 65 20 6d 61 70 70 |rms text|ure mapp|
|00005bf0| 69 6e 67 20 69 66 20 74 | 68 65 20 70 6f 6c 79 67 |ing if t|he polyg|
|00005c00| 6f 6e 20 69 73 20 74 65 | 78 74 75 72 65 64 2e 0d |on is te|xtured..|
|00005c10| 09 2d 20 ff 00 14 0c 01 | f7 70 61 72 61 6d 65 74 |.- .....|.paramet|
|00005c20| 65 72 73 ff 00 14 0c 00 | f7 0d 09 ff 00 14 0c 02 |ers.....|........|
|00005c30| f7 43 75 72 72 65 6e 74 | 50 6f 6c 79 ff 00 14 0c |.Current|Poly....|
|00005c40| 00 f7 20 3a 20 74 68 65 | 20 70 6f 6c 79 67 6f 6e |.. : the| polygon|
|00005c50| 20 62 65 69 6e 67 20 72 | 65 6e 64 65 72 65 64 0d | being r|endered.|
|00005c60| 09 ff 00 14 0c 02 f7 4f | 62 6a 65 63 74 ff 00 14 |.......O|bject...|
|00005c70| 0c 00 f7 20 3a 20 74 68 | 65 20 6f 62 6a 65 63 74 |... : th|e object|
|00005c80| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 73 20 74 | that co|ntains t|
|00005c90| 68 65 20 70 6f 6c 79 67 | 6f 6e 20 28 75 73 65 64 |he polyg|on (used|
|00005ca0| 20 74 6f 20 67 65 74 20 | 74 65 78 74 75 72 65 20 | to get |texture |
|00005cb0| 6d 61 70 20 69 6e 66 6f | 29 0d 09 ff 00 14 0c 02 |map info|).......|
|00005cc0| f7 5a 62 75 66 66 65 72 | ff 00 14 0c 00 f7 20 3a |.Zbuffer|...... :|
|00005cd0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 5a 2d 62 | the cur|rent Z-b|
|00005ce0| 75 66 66 65 72 0d 09 ff | 00 14 0c 02 f7 53 63 72 |uffer...|.....Scr|
|00005cf0| 65 65 6e 4d 61 70 ff 00 | 14 0c 00 f7 20 3a 20 74 |eenMap..|.... : t|
|00005d00| 68 65 20 76 69 64 65 6f | 20 6d 61 70 20 74 68 61 |he video| map tha|
|00005d10| 74 20 69 73 20 62 65 69 | 6e 67 20 27 64 72 61 77 |t is bei|ng 'draw|
|00005d20| 6e 27 20 69 6e 0d 09 ff | 00 14 0c 02 f7 56 69 65 |n' in...|.....Vie|
|00005d30| 77 57 69 6e 64 6f 77 ff | 00 14 0c 00 f7 20 3a 20 |wWindow.|..... : |
|00005d40| 74 68 65 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 |the coor|dinates |
|00005d50| 6f 66 20 74 68 65 20 76 | 69 65 77 70 6c 61 6e 65 |of the v|iewplane|
|00005d60| 0d 09 ff 00 14 0c 02 f7 | 4d 61 78 49 6e 74 65 6e |........|MaxInten|
|00005d70| 73 69 74 79 ff 00 14 0c | 00 f7 20 3a 20 74 68 65 |sity....|.. : the|
|00005d80| 20 6d 61 78 69 6d 75 6d | 20 69 6e 74 65 6e 73 69 | maximum| intensi|
|00005d90| 74 79 20 65 6e 63 6f 75 | 6e 74 65 72 65 64 20 28 |ty encou|ntered (|
|00005da0| 75 73 65 64 20 74 6f 20 | 73 63 61 6c 65 20 76 61 |used to |scale va|
|00005db0| 6c 75 65 73 29 0d 03 b5 | 09 ff 00 14 0c 02 f7 75 |lues)...|.......u|
|00005dc0| 74 2c 76 74 ff 00 14 0c | 00 f7 20 3a 20 74 68 65 |t,vt....|.. : the|
|00005dd0| 20 74 65 78 74 75 72 65 | 2d 6d 61 70 20 63 6f 6f | texture|-map coo|
|00005de0| 72 64 69 6e 61 74 65 73 | 20 63 6f 72 72 65 73 70 |rdinates| corresp|
|00005df0| 6f 6e 64 69 6e 67 20 74 | 6f 20 74 68 65 20 63 75 |onding t|o the cu|
|00005e00| 72 72 65 6e 74 20 70 69 | 78 65 6c 2e 0d 09 ff 00 |rrent pi|xel.....|
|00005e10| 14 0c 02 f7 4d 61 70 4d | 65 ff 00 14 0c 00 f7 20 |....MapM|e...... |
|00005e20| 3a 20 55 73 65 64 20 74 | 6f 20 70 65 72 66 6f 72 |: Used t|o perfor|
|00005e30| 6d 20 69 6e 76 65 72 73 | 65 20 6d 61 70 70 69 6e |m invers|e mappin|
|00005e40| 67 20 66 6f 72 20 74 65 | 78 74 75 72 65 20 6d 61 |g for te|xture ma|
|00005e50| 70 73 2e 0d 09 ff 00 14 | 0c 02 f7 52 69 2c 47 69 |ps......|...Ri,Gi|
|00005e60| 2c 42 69 ff 00 14 0c 00 | f7 20 3a 20 54 68 65 20 |,Bi.....|. : The |
|00005e70| 63 75 72 72 65 6e 74 20 | 70 69 78 65 6c 20 63 6f |current |pixel co|
|00005e80| 6c 6f 72 2e 0d 09 ff 00 | 14 0c 02 f7 52 69 6e 63 |lor.....|....Rinc|
|00005e90| 2c 47 69 6e 63 2c 42 69 | 6e 63 ff 00 14 0c 00 f7 |,Ginc,Bi|nc......|
|00005ea0| 20 3a 20 74 68 65 20 69 | 6e 63 72 65 6d 65 6e 74 | : the i|ncrement|
|00005eb0| 20 74 68 61 74 20 6e 65 | 65 64 73 20 74 6f 20 62 | that ne|eds to b|
|00005ec0| 65 20 61 64 64 65 64 20 | 74 6f 20 67 65 74 20 74 |e added |to get t|
|00005ed0| 68 65 20 6e 65 78 74 20 | 70 69 78 65 6c 27 73 20 |he next |pixel's |
|00005ee0| 63 6f 6c 6f 72 2e 0d 09 | ff 00 14 0c 02 f7 7a ff |color...|......z.|
|00005ef0| 00 14 0c 00 f7 20 3a 20 | 74 68 65 20 63 75 72 72 |..... : |the curr|
|00005f00| 65 6e 74 20 64 65 70 74 | 68 20 28 75 73 65 64 20 |ent dept|h (used |
|00005f10| 62 79 20 7a 2d 62 75 66 | 66 65 72 20 61 6c 67 6f |by z-buf|fer algo|
|00005f20| 72 69 74 68 6d 29 0d 09 | ff 00 14 0c 02 f7 7a 69 |rithm)..|......zi|
|00005f30| 6e 63 ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 69 |nc......| : the i|
|00005f40| 6e 63 72 65 6d 65 6e 74 | 20 74 68 61 74 20 6e 65 |ncrement| that ne|
|00005f50| 65 64 73 20 74 6f 20 62 | 65 20 61 64 64 65 64 20 |eds to b|e added |
|00005f60| 74 6f 20 67 65 74 20 74 | 68 65 20 6e 65 78 74 20 |to get t|he next |
|00005f70| 70 69 78 65 6c 27 73 20 | 64 65 70 74 68 2e 0d 09 |pixel's |depth...|
|00005f80| ff 00 14 0c 02 f7 75 2c | 76 2c 6e ff 00 14 0c 00 |......u,|v,n.....|
|00005f90| f7 20 3a 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |. : the |current |
|00005fa0| 69 6e 74 65 72 70 6f 6c | 61 74 65 64 20 76 69 65 |interpol|ated vie|
|00005fb0| 77 20 63 6f 6f 72 64 69 | 6e 61 74 65 20 28 75 73 |w coordi|nate (us|
|00005fc0| 65 64 20 66 6f 72 20 74 | 65 78 74 75 72 65 2d 6d |ed for t|exture-m|
|00005fd0| 61 70 70 69 6e 67 29 0d | 09 ff 00 14 0c 02 f7 75 |apping).|.......u|
|00005fe0| 69 6e 63 2c 76 69 6e 63 | 2c 6e 69 6e 63 ff 00 14 |inc,vinc|,ninc...|
|00005ff0| 0c 00 f7 20 3a 20 74 68 | 65 20 69 6e 63 72 65 6d |... : th|e increm|
|00006000| 65 6e 74 20 61 64 64 65 | 64 20 74 6f 20 67 65 74 |ent adde|d to get|
|00006010| 20 74 68 65 20 6e 65 78 | 74 20 70 69 78 65 6c 27 | the nex|t pixel'|
|00006020| 73 20 76 69 65 77 20 63 | 6f 6f 72 64 69 6e 61 74 |s view c|oordinat|
|00006030| 65 73 2e fa 0d f7 ff 00 | 14 0c 02 f7 47 6f 6e 65 |es......|....Gone|
|00006040| ff 00 14 0c 00 f7 20 3a | 20 68 61 73 20 74 68 65 |...... :| has the|
|00006050| 20 70 6f 6c 79 67 6f 6e | 20 62 65 65 6e 20 63 6f | polygon| been co|
|00006060| 6d 70 6c 65 74 65 6c 79 | 20 63 6c 69 70 70 65 64 |mpletely| clipped|
|00006070| 20 61 77 61 79 3f 0d 09 | ff 00 14 0c 01 f7 2d 20 | away?..|......- |
|00006080| 64 65 70 65 6e 64 65 6e | 63 69 65 73 0d 09 ff 00 |dependen|cies....|
|00006090| 14 0c 02 f7 43 6c 69 70 | 50 6f 6c 79 67 6f 6e 2f |....Clip|Polygon/|
|000060a0| 63 6c 69 70 2e 63 0d 09 | 52 61 73 74 65 72 69 7a |clip.c..|Rasteriz|
|000060b0| 65 45 64 67 65 2f 72 65 | 6e 64 65 72 2e 63 0d 09 |eEdge/re|nder.c..|
|000060c0| 48 6f 6d 6f 67 4d 75 6c | 74 69 70 6c 79 2f 76 65 |HomogMul|tiply/ve|
|000060d0| 63 74 6f 72 2d 6d 61 74 | 72 69 78 2e 63 0d 09 72 |ctor-mat|rix.c..r|
|000060e0| 65 6e 64 65 72 70 6f 6c | 79 2f 72 65 6e 64 65 72 |enderpol|y/render|
|000060f0| 2e 63 20 28 72 65 63 75 | 72 73 69 76 65 20 63 61 |.c (recu|rsive ca|
|00006100| 6c 6c 73 29 0d 0d 0d 0d | 0d 0d 0d 0d 0d 0d 0d 52 |lls)....|.......R|
|00006110| 65 6e 64 65 72 6f 62 6a | 65 63 74 ff 00 14 0c 00 |enderobj|ect.....|
|00006120| f7 20 3a 20 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |. : This| routine|
|00006130| 20 72 65 6e 64 65 72 73 | 20 61 6e 20 65 6e 74 69 | renders| an enti|
|00006140| 72 65 20 6f 62 6a 65 63 | 74 20 75 73 69 6e 67 20 |re objec|t using |
|00006150| 72 65 6e 64 65 72 70 6f | 6c 79 20 66 6f 72 20 65 |renderpo|ly for e|
|00006160| 61 63 68 20 70 6f 6c 79 | 67 6f 6e 2e 0d 03 d3 09 |ach poly|gon.....|
|00006170| 2d 20 ff 00 14 0c 01 f7 | 70 61 72 61 6d 74 65 72 |- ......|paramter|
|00006180| 73 ff 00 14 0c 00 f7 0d | 09 ff 00 14 0c 02 f7 61 |s.......|.......a|
|00006190| ff 00 14 0c 00 f7 20 3a | 20 74 68 65 20 69 6e 70 |...... :| the inp|
|000061a0| 75 74 20 6d 61 74 72 69 | 78 0d 09 ff 00 14 0c 02 |ut matri|x.......|
|000061b0| f7 62 ff 00 14 0c 00 f7 | 20 3a 20 74 68 65 20 6f |.b......| : the o|
|000061c0| 75 74 70 75 74 20 6d 61 | 74 72 69 78 0d 09 2d 20 |utput ma|trix..- |
|000061d0| ff 00 14 0c 01 f7 6c 6f | 63 61 6c 73 ff 00 14 0c |......lo|cals....|
|000061e0| 00 f7 0d 09 ff 00 14 0c | 02 f7 6c 6f 6f 70 ff 00 |........|..loop..|
|000061f0| 14 0c 00 f7 20 3a 20 6c | 6f 6f 70 20 63 6f 6e 74 |.... : l|oop cont|
|00006200| 72 6f 6c 20 76 61 72 69 | 61 62 6c 65 0d 0d ff 00 |rol vari|able....|
|00006210| 14 0c 02 f7 50 72 6f 64 | 75 63 65 54 72 61 6e 73 |....Prod|uceTrans|
|00006220| 66 6f 72 6d ff 00 14 0c | 00 f7 20 3a 20 62 75 69 |form....|.. : bui|
|00006230| 6c 64 73 20 74 68 65 20 | 74 72 61 6e 73 66 6f 72 |lds the |transfor|
|00006240| 6d 20 6d 61 74 72 69 78 | 20 74 68 61 74 20 74 72 |m matrix| that tr|
|00006250| 61 6e 73 66 6f 72 6d 73 | 20 63 6f 6f 72 64 69 6e |ansforms| coordin|
|00006260| 61 74 65 20 73 79 73 74 | 65 6d 73 0d 09 09 20 20 |ate syst|ems... |
|00006270| 20 20 20 61 6e 64 20 64 | 6f 65 73 20 70 65 72 73 | and d|oes pers|
|00006280| 70 65 63 69 74 76 65 20 | 70 72 6f 6a 65 63 74 69 |pecitve |projecti|
|00006290| 6f 6e 73 0d 09 2d 20 ff | 00 14 0c 01 f7 70 61 72 |ons..- .|.....par|
|000062a0| 61 6d 65 74 65 72 73 ff | 00 14 0c 00 f7 0d 09 ff |ameters.|........|
|000062b0| 00 14 0c 02 f7 56 52 50 | ff 00 14 0c 00 f7 20 3a |.....VRP|...... :|
|000062c0| 20 74 68 65 20 76 69 65 | 77 20 72 65 66 65 72 65 | the vie|w refere|
|000062d0| 6e 63 65 20 70 6f 69 6e | 74 20 0d 09 ff 00 14 0c |nce poin|t ......|
|000062e0| 02 f7 75 2c 76 2c 6e ff | 00 14 0c 00 f7 20 3a 20 |..u,v,n.|..... : |
|000062f0| 74 68 65 20 76 65 63 74 | 6f 72 73 20 74 68 61 74 |the vect|ors that|
|00006300| 20 73 70 65 63 69 66 79 | 20 74 68 65 20 63 6f 6f | specify| the coo|
|00006310| 72 64 2e 20 73 79 73 74 | 65 6d 0d 09 ff 00 14 0c |rd. syst|em......|
|00006320| 02 f7 45 79 65 ff 00 14 | 0c 00 f7 20 20 20 3a 20 |..Eye...|... : |
|00006330| 74 68 65 20 65 79 65 20 | 76 61 6c 75 65 20 28 61 |the eye |value (a|
|00006340| 73 73 75 6d 65 20 65 79 | 65 20 73 69 74 73 20 6f |ssume ey|e sits o|
|00006350| 6e 20 6e 20 61 78 69 73 | 29 0d 09 ff 00 14 0c 02 |n n axis|).......|
|00006360| f7 43 6f 6d 70 6f 73 69 | 74 69 6f 6e ff 00 14 0c |.Composi|tion....|
|00006370| 00 f7 20 3a 20 74 68 65 | 20 6f 75 74 70 75 74 20 |.. : the| output |
|00006380| 6d 61 74 72 69 78 0d 09 | 2d 20 ff 00 14 0c 01 f7 |matrix..|- ......|
|00006390| 6c 6f 63 61 6c 73 ff 00 | 14 0c 00 f7 0d 09 ff 00 |locals..|........|
|000063a0| 14 0c 02 f7 56 69 65 77 | 54 72 61 6e 73 66 6f 72 |....View|Transfor|
|000063b0| 6d ff 00 14 0c 00 f7 20 | 3a 20 74 72 61 6e 73 66 |m...... |: transf|
|000063c0| 6f 72 6d 73 20 63 6f 6f | 72 64 69 6e 61 74 65 20 |orms coo|rdinate |
|000063d0| 73 79 73 74 65 6d 73 0d | 09 ff 00 14 0c 02 f7 50 |systems.|.......P|
|000063e0| 65 72 73 70 65 63 74 69 | 76 65 ff 00 14 0c 00 f7 |erspecti|ve......|
|000063f0| 20 3a 20 64 6f 65 73 20 | 74 68 65 20 70 65 72 73 | : does |the pers|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.