File: mailbox.h

package info (click to toggle)
coolmail 1.3-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 316 kB
  • sloc: ansic: 1,527; makefile: 70
file content (133 lines) | stat: -rw-r--r-- 4,299 bytes parent folder | download | duplicates (10)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/* mailbox.h
 *
 * Here are a couple of shapes for displaying a mailbox
 *
 * flag has two polygons, and z-rotates about (35, 85, 225).
 * cube2 has sides of length 60, with front-bottom-left corner at (30,30,230).
 */

#include "render1.h"

/* stem part */
real_point_t flag_1[] = {
                            { 30.0,  85.0, 220.0},
                            { 70.0,  85.0, 220.0},
                            { 70.0,  75.0, 220.0},
                            { 30.0,  75.0, 220.0}
                         };

/* wide part */
real_point_t flag_2[] = {
                            { 70.0,  85.0, 220.0},
                            { 90.0,  85.0, 220.0},
                            { 90.0,  60.0, 220.0},
                            { 70.0,  60.0, 220.0}
                         };

real_point_t envelope[] = {
                             {40.0, 30.0, 280.0},
                             {40.0, 70.0, 230.0},
                             {90.0, 70.0, 230.0},
                             {90.0, 30.0, 280.0}
                          }; /* Average z = 230 */






/* Front face */
real_point_t mailbox_front[] = {
                            {20.0, 30.0, 230.0},
                            {20.0, 90.0, 230.0},
                            {100.0, 90.0, 230.0},
                            {100.0, 30.0, 230.0}
                         }; /* Average z = 230 */
/* Back face */
real_point_t mailbox_back[] = {
                            {20.0, 30.0, 290.0},
                            {20.0, 90.0, 290.0},
                            {100.0, 90.0, 290.0},
                            {100.0, 30.0, 290.0}
                         }; /* Average z = 290 */


/* Top face */
real_point_t mailbox_top[] = {
                            {20.0, 90.0, 230.0},
                            {20.0, 90.0, 290.0},
                            {100.0, 90.0, 290.0},
                            {100.0, 90.0, 230.0}
                         };

/* Bottom face */
real_point_t mailbox_bottom[] = {
                            {20.0, 30.0, 230.0},
                            {20.0, 30.0, 290.0},
                            {100.0, 30.0, 290.0},
                            {100.0, 30.0, 230.0}
                         };

/* Left face */
real_point_t mailbox_left[] = {
                            {20.0, 30.0, 230.0},
                            {20.0, 30.0, 290.0},
                            {20.0, 90.0, 290.0},
                            {20.0, 90.0, 230.0}
                         };

real_point_t post_top[] = {
                            {50.0, 29.9, 250.0},
                            {50.0, 29.9, 270.0},
                            {70.0, 29.9, 270.0},
                            {70.0, 29.9, 250.0}
                         };

real_point_t post_bottom[] = {
                            {50.0, -30.0, 250.0},
                            {50.0, -30.0, 270.0},
                            {70.0, -30.0, 270.0},
                            {70.0, -30.0, 250.0}
                         };
  
real_point_t post_front[] = {
                            {50.0, 29.9, 250.0},
                            {70.0, 29.9, 250.0},
                            {70.0, -30.0, 250.0},
                            {50.0, -30.0, 250.0}
                         };
  
real_point_t post_back[] = {
                            {50.0, 29.9, 270.0},
                            {70.0, 29.9, 270.0},
                            {70.0, -30.0, 270.0},
                            {50.0, -30.0, 270.0}
                         };

real_point_t post_right[] = {
                            {70.0, 29.9, 250.0},
                            {70.0, 29.9, 270.0},
                            {70.0, -30.0, 270.0},
                            {70.0, -29.9, 250.0}
                         };

real_point_t post_left[] = {
                            {50.0, 29.9, 250.0},
                            {50.0, 29.9, 270.0},
                            {50.0, -30.0, 270.0},
                            {50.0, -30.0, 250.0}
                         };

real_point_t ground_plane[] = {
                            {-50.0, -30.0, 150.0},
                            {-50.0, -30.0, 500.0},
                            {150.0, -30.0, 500.0},
                            {150.0, -30.0, 150.0}
                         };