home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Programming Black Book (Special Edition)
/
BlackBook.bin
/
disk1
/
source
/
chapter53
/
xsharp15.exe
/
BALVERT0.INC
< prev
next >
Wrap
Text File
|
1991-12-26
|
5KB
|
293 lines
/* Ball made from 4-vertex polygons */
/* Created with radius = 25, bands = 6 */
#define NUM_FACES 72
#define NUM_VERTS 62
Point3 Verts[] = {
{0, 1638400, 0},
{-819199, 1418896, 0},
{-709447, 1418896, 409600},
{-409599, 1418896, 709448},
{0, 1418896, 819200},
{409600, 1418896, 709448},
{709448, 1418896, 409600},
{819200, 1418896, 0},
{709448, 1418896, -409599},
{409600, 1418896, -709447},
{0, 1418896, -819199},
{-409599, 1418896, -709447},
{-709447, 1418896, -409599},
{-1418895, 819200, 0},
{-1228799, 819200, 709448},
{-709447, 819200, 1228800},
{0, 819200, 1418896},
{709448, 819200, 1228800},
{1228800, 819200, 709448},
{1418896, 819200, 0},
{1228800, 819200, -709447},
{709448, 819200, -1228799},
{0, 819200, -1418895},
{-709447, 819200, -1228799},
{-1228799, 819200, -709447},
{-1638399, 0, 0},
{-1418895, 0, 819200},
{-819199, 0, 1418896},
{0, 0, 1638400},
{819200, 0, 1418896},
{1418896, 0, 819200},
{1638400, 0, 0},
{1418896, 0, -819199},
{819200, 0, -1418895},
{0, 0, -1638399},
{-819199, 0, -1418895},
{-1418895, 0, -819199},
{-1418895, -819199, 0},
{-1228799, -819199, 709448},
{-709447, -819199, 1228800},
{0, -819199, 1418896},
{709448, -819199, 1228800},
{1228800, -819199, 709448},
{1418896, -819199, 0},
{1228800, -819199, -709447},
{709448, -819199, -1228799},
{0, -819199, -1418895},
{-709447, -819199, -1228799},
{-1228799, -819199, -709447},
{-819199, -1418895, 0},
{-709447, -1418895, 409600},
{-409599, -1418895, 709448},
{0, -1418895, 819200},
{409600, -1418895, 709448},
{709448, -1418895, 409600},
{819200, -1418895, 0},
{709448, -1418895, -409599},
{409600, -1418895, -709447},
{0, -1418895, -819199},
{-409599, -1418895, -709447},
{-709447, -1418895, -409599},
{0, -1638399, 0},
};
static int Face0[] = {0,2,1};
static int Face1[] = {0,3,2};
static int Face2[] = {0,4,3};
static int Face3[] = {0,5,4};
static int Face4[] = {0,6,5};
static int Face5[] = {0,7,6};
static int Face6[] = {0,8,7};
static int Face7[] = {0,9,8};
static int Face8[] = {0,10,9};
static int Face9[] = {0,11,10};
static int Face10[] = {0,12,11};
static int Face11[] = {0,1,12};
static int Face12[] = {1,2,14,13};
static int Face13[] = {2,3,15,14};
static int Face14[] = {3,4,16,15};
static int Face15[] = {4,5,17,16};
static int Face16[] = {5,6,18,17};
static int Face17[] = {6,7,19,18};
static int Face18[] = {7,8,20,19};
static int Face19[] = {8,9,21,20};
static int Face20[] = {9,10,22,21};
static int Face21[] = {10,11,23,22};
static int Face22[] = {11,12,24,23};
static int Face23[] = {12,1,13,24};
static int Face24[] = {13,14,26,25};
static int Face25[] = {14,15,27,26};
static int Face26[] = {15,16,28,27};
static int Face27[] = {16,17,29,28};
static int Face28[] = {17,18,30,29};
static int Face29[] = {18,19,31,30};
static int Face30[] = {19,20,32,31};
static int Face31[] = {20,21,33,32};
static int Face32[] = {21,22,34,33};
static int Face33[] = {22,23,35,34};
static int Face34[] = {23,24,36,35};
static int Face35[] = {24,13,25,36};
static int Face36[] = {25,26,38,37};
static int Face37[] = {26,27,39,38};
static int Face38[] = {27,28,40,39};
static int Face39[] = {28,29,41,40};
static int Face40[] = {29,30,42,41};
static int Face41[] = {30,31,43,42};
static int Face42[] = {31,32,44,43};
static int Face43[] = {32,33,45,44};
static int Face44[] = {33,34,46,45};
static int Face45[] = {34,35,47,46};
static int Face46[] = {35,36,48,47};
static int Face47[] = {36,25,37,48};
static int Face48[] = {37,38,50,49};
static int Face49[] = {38,39,51,50};
static int Face50[] = {39,40,52,51};
static int Face51[] = {40,41,53,52};
static int Face52[] = {41,42,54,53};
static int Face53[] = {42,43,55,54};
static int Face54[] = {43,44,56,55};
static int Face55[] = {44,45,57,56};
static int Face56[] = {45,46,58,57};
static int Face57[] = {46,47,59,58};
static int Face58[] = {47,48,60,59};
static int Face59[] = {48,37,49,60};
static int Face60[] = {49,50,61};
static int Face61[] = {50,51,61};
static int Face62[] = {51,52,61};
static int Face63[] = {52,53,61};
static int Face64[] = {53,54,61};
static int Face65[] = {54,55,61};
static int Face66[] = {55,56,61};
static int Face67[] = {56,57,61};
static int Face68[] = {57,58,61};
static int Face69[] = {58,59,61};
static int Face70[] = {59,60,61};
static int Face71[] = {60,49,61};
static int *VertNumList[] = {
Face0,
Face1,
Face2,
Face3,
Face4,
Face5,
Face6,
Face7,
Face8,
Face9,
Face10,
Face11,
Face12,
Face13,
Face14,
Face15,
Face16,
Face17,
Face18,
Face19,
Face20,
Face21,
Face22,
Face23,
Face24,
Face25,
Face26,
Face27,
Face28,
Face29,
Face30,
Face31,
Face32,
Face33,
Face34,
Face35,
Face36,
Face37,
Face38,
Face39,
Face40,
Face41,
Face42,
Face43,
Face44,
Face45,
Face46,
Face47,
Face48,
Face49,
Face50,
Face51,
Face52,
Face53,
Face54,
Face55,
Face56,
Face57,
Face58,
Face59,
Face60,
Face61,
Face62,
Face63,
Face64,
Face65,
Face66,
Face67,
Face68,
Face69,
Face70,
Face71,
};
static int VertsInFace[] = {
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
};