001: /* ct_puzzle_gdata.c

002:  by Arnold W., Fürth, anno Domini 2003

003:  Grafik-Datenfelder für ct_puzzle_select.c

004: */
005: 
006: #define BS_ISO_MAX_POINTS 12
007: int BS1_ISO[] = { 1001,  0,12,  21, 0,  21, 8,   0,20,
008:                   1002, 21, 0,  35, 8,  35,16,  21, 8,
009:                   1000,  0,20,  21, 8,  35,16,  28,20,  21,16,  14,20,  21,24,  14,28,
010:                   1002, 14,20,  21,16,  21,24,
011:                   9999 };
012: int BS2_ISO[] = { 1001,  0, 8,  14, 0,  14, 8,   0,16,
013:                   1002, 14, 0,  28, 8,  28,16,  14, 8,
014:                   1001, 28, 8,  35, 4,  35,12,  28,16,
015:                   1002, 35, 4,  42, 8,  42,16,  35,12,
016:                   1000,  0,16,  14, 8,  28,16,  35,12,  42,16,  28,24,  14,16,   7,20,
017:                   9999 };
018: int BS3_ISO[] = { 1001,  0, 8,  14, 0,  14, 8,   0,16,
019:                   1002, 14, 0,  42,16,  42,24,  14, 8,
020:                   1000,  0,16,  14, 8,  42,24,  35,28,  14,16,   7,20,
021:                   9999 };
022: int BS4_ISO[] = { 1001,  0, 4,   7, 0,   7, 8,   0,12,
023:                   1002,  7, 0,  21, 8,  21,16,   7, 8,
024:                   1001, 21, 8,  28, 4,  28,12,  21,16,
025:                   1002, 28, 4,  35, 8,  35,16,  28,12,
026:                   1000,  0,12,   7, 8,  21,16,  28,12,  35,16,  28,20,  35,24,  28,28,
027:                   1002, 28,20,  35,16,  35,24,
028:                   9999 };
029: int BS5_ISO[] = { 1001,  0, 4,   7, 0,   7, 8,   0,12,
030:                   1002,  7, 0,  14, 4,  14,12,   7, 8,
031:                   1000,  0,12,   7, 8,  14,12,   7,16,
032:                   1001, 14, 4,  21, 0,  21,16,   7,24,   7,16,  14,12,
033:                   1002, 21, 0,  28, 4,  28,20,  21,16,
034:                   1000,  7,24,  21,16,  28,20,  14,28,
035:                   9999 };
036: int BS6_ISO[] = { 1001,  0, 8,   7, 4,   7,12,   0,16,
037:                   1002,  7, 4,  14, 8,  14,16,   7,12,
038:                   1001, 14, 8,  28, 0,  28, 8,  14,16,
039:                   1002, 28, 0,  35, 4,  35,12,  28, 8,
040:                   1000,  0,16,   7,12,  14,16,  28, 8,  35,12,  21,20,  28,24,  21,28,
041:                   1002, 21,20,  28,16,  28,24,
042:                   9999 };
043: int BS7_ISO[] = { 1001,  0, 4,   7, 0,   7, 8,   0,12,
044:                   1002,  7, 0,  14, 4,  14,12,   7, 8,
045:                   1001, 14, 4,  21, 0,  21, 8,  14,12,
046:                   1002, 21, 0,  35, 8,  35,16,  21, 8,
047:                   1000,  0,12,   7, 8,  14,12,  21, 8,  35,16,  21,24,
048:                   9999 };
049: int BS8_ISO[] = { 1001,  0, 4,   7, 0,   7, 8,   0,12,
050:                   1002,  7, 0,  14, 4,  14,12,   7, 8,
051:                   1001, 14, 4,  21, 0,  21, 8,  14,12,
052:                   1002, 21, 0,  28, 4,  28,12,  21, 8,
053:                   1001, 28, 4,  35, 0,  35, 8,  28,12,
054:                   1002, 35, 0,  42, 4,  42,12,  35, 8,
055:                   1000,  0,12,   7, 8,  14,12,  21, 8,  28,12,  35, 8,  42,12,  28,20,  21,16,  14,20,
056:                   9999 };
057: int BS9_ISO[] = { 1001,  0, 8,  14, 0,  14, 8,   0,16,
058:                   1002, 14, 0,  21, 4,  21,12,  14, 8,
059:                   1000,  0,16,  14, 8,  21,12,   7,20,
060:                   1001,  7,20,  14,16,  14,24,   7,28,
061:                   1002, 14,16,  21,12,  21,28,  14,24,
062:                   1000,  7,28,  14,24,  21,28,  14,32,
063:                   9999 };
064: int BS10_ISO[] = {1001,  0, 8,  14, 0,  14, 8,   0,16,
065:                   1002, 14, 0,  21, 4,  21,12,  14, 8,
066:                   1001, 21, 4,  28, 0,  28, 8,  21,12,
067:                   1002, 28, 0,  35, 4,  35,12,  28, 8,
068:                   1000,  0,16,  14, 8,  21,12,  28, 8,  35,12,  28,16,  35,20,  28,24,  14,16,  7,20,
069:                   1002, 35,12,  35,20,  28,16,
070:                   9999 };
071: int BS11_ISO[] = {1001,  0, 4,   7, 0,   7, 8,   0,12,
072:                   1002,  7, 0,  14, 4,  14,12,   7, 8,
073:                   1001, 14, 4,  21, 0,  21, 8,  14,12,
074:                   1002, 21, 0,  28, 4,  28,12,  21, 8,
075:                   1000,  0,12,   7, 8,  14,12,  21, 8,  28,12,  21,16,  28,20,  21,24,  14,20,   7,24,   0,20,   7,16,
076:                   1001,  0,12,   7,16,   0,20,
077:                   1002, 21,16,  28,12,  28,20,
078:                   9999 };
079: int BS12_ISO[] = {1001,  0,16,  28, 0,  28, 8,   0,24,
080:                   1002, 28, 0,  42, 8,  42,16,  28, 8,
081:                   1000,  0,24,  28, 8,  42,16,  35,20,  28,16,  21,20,  28,24,  21,28,  14,24,   7,28,
082:                   1002, 21,20,  28,16,  28,24,
083:                   9999 };
084: int *BS_ISO[] = { BS1_ISO, BS2_ISO, BS3_ISO, BS4_ISO, BS5_ISO, BS6_ISO, BS7_ISO,
085:                   BS8_ISO, BS9_ISO, BS10_ISO, BS11_ISO, BS12_ISO };
086: 
087: int SURFACELINES1[]  = {
088:         -5, -5,  5,  15, -5,  5,  15, 5,  5,   5, 5,  5,  5, 15,  5,  15, 15,  5, 15, 25,  5,  -5, 25,  5,  -5, -5,  5,
089:  2000,  -5, -5, -5,  15, -5, -5,  15, 5, -5,   5, 5, -5,  5, 15, -5,  15, 15, -5, 15, 25, -5,  -5, 25, -5,  -5, -5, -5,
090:  2000,  -5, -5,  5,  -5, -5, -5,
091:  2000,  15, -5,  5,  15, -5, -5,
092:  2000,  15,  5,  5,  15,  5, -5,
093:  2000,  15, 15,  5,  15, 15, -5,
094:  2000,  15, 25,  5,  15, 25, -5,
095:  2000,  -5, 25,  5,  -5, 25, -5,
096:  2000,  10,20,5,  5,20,5, 0,15,5,  0,5,5, 5,0,5, 10,0,5, /* Beschriftung */
097:  9999 };
098: int SURFACELINES2[]  = {
099:         -5, -5,  5,  -5, 15,  5,  -5, 15, -5,  -5,  5, -5,  -5,  5,-25,  -5,-15,-25,  -5,-15,-15,  -5, -5,-15,  -5, -5,  5,
100:  2000,   5, -5,  5,   5, 15,  5,   5, 15, -5,   5,  5, -5,   5,  5,-25,   5,-15,-25,   5,-15,-15,   5, -5,-15,   5, -5,  5,
101:  2000,  -5, -5,  5,   5, -5,  5,
102:  2000,  -5, 15,  5,   5, 15,  5,
103:  2000,  -5, 15, -5,   5, 15, -5,
104:  2000,  -5,  5,-25,   5,  5,-25,
105:  2000,  -5,-15,-25,   5,-15,-25,
106:  2000,  -5,-15,-15,   5,-15,-15,
107:  2000,  2,10,5,  2,5,5,  -2,0,5,  /* Beschriftung */
108:  9999 };
109: int SURFACELINES3[]  = {
110:         -5, -5, 5,  15, -5, 5,  15,  5, 5,   5,  5, 5,   5, 35, 5,  -5, 35, 5,  -5, -5, 5,
111:  2000,  -5, -5,-5,  -5, 35,-5,   5, 35,-5,   5,  5,-5,  15,  5,-5,  15, -5,-5,  -5, -5,-5,
112:  2000,  -5, -5, 5,  -5, -5,-5,
113:  2000,  -5, 35, 5,  -5, 35,-5, 
114:  2000,   5, 35, 5,   5, 35,-5,
115:  2000,  15,  5, 5,  15,  5,-5,
116:  2000,  15, -5, 5,  15, -5,-5, 
117:  9999 };
118: int SURFACELINES4[]  = {
119:         -5, -5, 5,   5, -5, 5,   5, 15, 5,  15, 15, 5,  15, 25, 5,   5, 25, 5,  5, 35, 5,  -5, 35, 5,  -5, -5, 5,
120:  2000,  -5, -5,-5,   5, -5,-5,   5, 15,-5,  15, 15,-5,  15, 25,-5,   5, 25,-5,  5, 35,-5,  -5, 35,-5,  -5, -5,-5,
121:  2000,  -5, -5,-5,  -5, -5, 5,
122:  2000,   5, -5,-5,   5, -5, 5, 
123:  2000,  15, 15,-5,  15, 15, 5,
124:  2000,  15, 25,-5,  15, 25, 5,
125:  2000,   5, 35,-5,   5, 35, 5,
126:  2000,  -5, 35,-5,  -5, 35, 5,
127:  9999 };
128: int SURFACELINES5[]  = {
129:         -5, -5,  5,  -5, 15,  5,  -5, 15,-15,  -5, -5,-15,  -5, -5,  5,
130:  2000,  15, -5, -5,  15,  5, -5,  15,  5,-15,  15, -5,-15,  15, -5, -5,
131:  2000,  -5, -5,-15,  15, -5,-15,
132:  2000,  -5, 15,-15,   5, 15,-15,   5,  5,-15,  15,  5,-15,
133:  2000,  -5, 15,  5,   5, 15,  5,   5, 15,-15,
134:  2000,  -5, -5,  5,   5, -5,  5,   5, 15,  5,
135:  2000,   5, -5,  5,   5, -5, -5,  15, -5, -5,
136:  2000,  2,10,5,  2,5,5,  -2,0,5,  /* Beschriftung */
137:  9999 };
138: int SURFACELINES6[]  = {
139:         -5, -5, 5,   5, -5, 5,   5, 15, 5,  15, 15, 5,  15, 25, 5, -15, 25, 5, -15, 15, 5,  -5, 15, 5,  -5, -5, 5,
140:  2000,  -5, -5,-5,   5, -5,-5,   5, 15,-5,  15, 15,-5,  15, 25,-5, -15, 25,-5, -15, 15,-5,  -5, 15,-5,  -5, -5,-5,
141:  2000,  -5, -5,-5,  -5, -5, 5,
142:  2000,   5, -5,-5,   5, -5, 5,
143:  2000,  15, 15,-5,  15, 15, 5,
144:  2000,  15, 25,-5,  15, 25, 5,
145:  2000, -15, 25,-5, -15, 25, 5,
146:  2000, -15, 15,-5, -15, 15, 5,
147:  9999 };
148: int SURFACELINES7[]  = {
149:         -5, -5, 5,  15, -5, 5,  15, 15, 5,   5, 15, 5,   5, 25, 5,  -5, 25, 5,  -5, -5, 5,
150:  2000,  -5, -5,-5,  15, -5,-5,  15, 15,-5,   5, 15,-5,   5, 25,-5,  -5, 25,-5,  -5, -5,-5,
151:  2000,  -5, -5,-5,  -5, -5, 5, 
152:  2000,  15, -5,-5,  15, -5, 5,
153:  2000,  15, 15,-5,  15, 15, 5,
154:  2000,   5, 25,-5,   5, 25, 5,
155:  2000,  -5, 25,-5,  -5, 25, 5,
156:  9999 };
157: int SURFACELINES8[]  = {
158:         -5,-5, 5,  15,-5, 5,  15, 5, 5,   5, 5, 5,   5,15, 5,  -5,15, 5,  -5,25, 5, -15,25, 5, -15, 5, 5,  -5, 5, 5,  -5,-5, 5,
159:  2000,  -5,-5,-5,  15,-5,-5,  15, 5,-5,   5, 5,-5,   5,15,-5,  -5,15,-5,  -5,25,-5, -15,25,-5, -15, 5,-5,  -5, 5,-5,  -5,-5,-5,
160:  2000,  -5,-5,-5,  -5,-5, 5,
161:  2000,  15,-5,-5,  15,-5, 5,
162:  2000,  15, 5,-5,  15, 5, 5,
163:  2000,  -5,25,-5,  -5,25, 5,
164:  2000, -15,25,-5, -15,25, 5,
165:  2000, -15, 5,-5, -15, 5, 5,
166:  2000,  -5, 5,-5,  -5, 5, 5,
167:  9999 };
168: int SURFACELINES9[]  = {
169:         -5, 15,  5,  -5, -5,  5,  -5, -5, -5,  -5,  5, -5,  -5,  5,-15,  -5, 15,-15,
170:         15, 15,-15,  15, 15, -5,   5, 15, -5,   5, 15,  5,  -5, 15,  5,  -5, 15,-15,
171:  2000,  -5, -5,  5,   5, -5,  5,   5, 15,  5,
172:  2000,  -5,  5,-15,  15,  5,-15,  15, 15,-15,
173:  2000,  -5, -5, -5,   5, -5, -5,   5, -5,  5,
174:  2000,  15, 15, -5,  15,  5, -5,  15,  5,-15,
175:  2000,  2,10,5,  2,5,5,  -2,0,5, /* Beschriftung */
176:  9999 };
177: int SURFACELINES10[]  = {
178:         -5,-5, 5,   5,-5, 5,   5,15, 5,  15,15, 5,  15,25, 5,  -5,25, 5,  -5,15, 5, -15,15, 5, -15, 5, 5,  -5, 5, 5,  -5,-5, 5,
179:  2000,  -5,-5,-5,   5,-5,-5,   5,15,-5,  15,15,-5,  15,25,-5,  -5,25,-5,  -5,15,-5, -15,15,-5, -15, 5,-5,  -5, 5,-5,  -5,-5,-5,
180:  2000,  -5,-5,-5,  -5,-5, 5,
181:  2000,   5,-5,-5,   5,-5, 5,
182:  2000,  15,15,-5,  15,15, 5,
183:  2000,  15,25,-5,  15,25, 5,
184:  2000,  -5,25,-5,  -5,25, 5,
185:  2000, -15,15,-5, -15,15, 5,
186:  2000, -15, 5,-5, -15, 5, 5,
187:  9999 };
188: int SURFACELINES11[]  = {
189:          5, -5, 5,  15, -5, 5,  15,  5, 5,   5,  5, 5,   5, 15, 5,  -5, 15, 5,
190:         -5,  5, 5, -15,  5, 5, -15, -5, 5,  -5, -5, 5,  -5,-15, 5,   5,-15, 5,   5, -5, 5,
191:  2000,   5, -5,-5,  15, -5,-5,  15,  5,-5,   5,  5,-5,   5, 15,-5,  -5, 15,-5,
192:         -5,  5,-5, -15,  5,-5, -15, -5,-5,  -5, -5,-5,  -5,-15,-5,   5,-15,-5,   5, -5,-5,
193:  2000,  15, -5,-5,  15, -5, 5,
194:  2000,  15,  5,-5,  15,  5, 5, 
195:  2000,   5, 15,-5,   5, 15, 5,
196:  2000,  -5, 15,-5,  -5, 15, 5,
197:  2000, -15,  5,-5, -15,  5, 5,
198:  2000, -15, -5,-5, -15, -5, 5, 
199:  2000,  -5,-15,-5,  -5,-15, 5,
200:  2000,   5,-15,-5,   5,-15, 5, 
201:  9999 };
202: int SURFACELINES12[]  = {
203:         -5,-5, 5,  15,-5, 5,  15, 5, 5,   5, 5, 5,   5,15, 5,  15,15, 5,  15,25, 5,   5,25, 5,   5,35, 5,  -5,35, 5,  -5,-5, 5,
204:  2000,  -5,-5,-5,  15,-5,-5,  15, 5,-5,   5, 5,-5,   5,15,-5,  15,15,-5,  15,25,-5,   5,25,-5,   5,35,-5,  -5,35,-5,  -5,-5,-5,
205:  2000,  -5,-5,-5,  -5,-5, 5, 
206:  2000,  15,-5,-5,  15,-5, 5, 
207:  2000,  15, 5,-5,  15, 5, 5,
208:  2000,  15,15,-5,  15,15, 5, 
209:  2000,  15,25,-5,  15,25, 5,
210:  2000,   5,35,-5,   5,35, 5,
211:  2000,  -5,35,-5,  -5,35, 5,
212:  2000,  0,30,5, 0,5,5, 5,0,5, 10,0,5, /* Beschriftung */
213:  2000,  0,20,5, 10,20,5,
214:  9999 };
215:  
216: int *SURFACELINES[] = { SURFACELINES1, SURFACELINES2 , SURFACELINES3 , SURFACELINES4,
217:                         SURFACELINES5, SURFACELINES6 , SURFACELINES7 , SURFACELINES8,
218:                         SURFACELINES9, SURFACELINES10, SURFACELINES11, SURFACELINES12 }; 
219: 
220: MATRIX Hinlegen[4] = {
221:   { 1, 0, 0,  0, 1, 0,  0, 0, 1,  0, 0, 0 },
222:   {-1, 0, 0,  0,-1, 0,  0, 0, 1,  4, 3, 0 },
223:   {-1, 0, 0,  0, 1, 0,  0, 0,-1,  4, 0, 2 },
224:   { 1, 0, 0,  0,-1, 0,  0, 0,-1,  0, 3, 2 } };
225: 
226: MATRIX INV1 = { 1, 0, 0,  0,-1, 0,  0, 0,-1,  0, 2, 0 };
227: MATRIX INV2 = { 1, 0, 0,  0,-1, 0,  0, 0,-1,  0, 0,-2 };
228: MATRIX INV9 = { 0,-1, 0, -1, 0, 0,  0, 0,-1,  1, 1,-1 };
229: