summaryrefslogtreecommitdiff
path: root/app/ico/objcube.h
blob: 441145eda647dd6a15f886455d5ed86ebec86eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* objcube.h - structure values for cube */

{	"cube", "cube",	/* long and short names */
	"octahedron",	/* long name of dual */
	8, 12, 6,	/* number of vertices, edges, and faces */
	{		/* vertices (x,y,z) */
			/* all points must be within radius 1 of the origin */
#define T 0.577
		{  T,  T,  T },
		{  T,  T, -T },
		{  T, -T, -T },
		{  T, -T,  T },
		{ -T,  T,  T },
		{ -T,  T, -T },
		{ -T, -T, -T },
		{ -T, -T,  T },
#undef T
	},
	{	/* faces (numfaces + indexes into vertices) */
		/*  faces must be specified clockwise from the outside */
		4,	0, 1, 2, 3,
		4, 	7, 6, 5, 4,
		4, 	1, 0, 4, 5,
		4,	3, 2, 6, 7,
		4,	2, 1, 5, 6,
		4,	0, 3, 7, 4,
	}
},		/* leave a comma to separate from the next include file */
/* end */