Debian Codegraph @

texmf-dist/doc/metapost/featpost/example/mypatentpieces.mp

raw
1 % mypatentpieces.mp
2 % L. Nobre G.
3 % IYP (2005)
4
5 input featpost3Dplus2D;
6
7 prologues := 1;
8
9 vardef P@# = rp(V@#) enddef;
10
11 %f := 2*(17,7,9);
12 f := 2*(21,5,8);
13 Spread := 36;
14 background := white;
15
16 numeric u, i;
17 u = 0.1;
18 V1 := (0,0,0);
19 V2 := (0,0,4u);
20 V3 := (0,16u,4u);
21 V4 := (4u,16u,4u);
22 V5 := (4u,16u,8u);
23 V6 := (0,16u,8u);
24 V7 := (0,24u,16u);
25 V8 := (4u,24u,16u);
26 V9 := (4u,35u,4u);
27 V10:= (4u,35u,0);
28 V11:= (16u,23u,0);
29 V12:= (16u,23u,4u);
30 V13:= (16u,0,4u);
31 V14:= (16u,0,0);
32 V15:= (0,43u,8u);
33 V16:= (4u,43u,8u);
34 V17:= (8u,8u,0);
35 V18:= (4u,43u,16u);
36 V19:= (0,43u,16u);
37
38 V22:= (-62.5u+16u,0,0);
39 V23:= (62.5u-16u,0,0);
40 V24:= (-62.5u,0,0);
41 V25:= (62.5u,0,0);
42 V26:= (-62.5u,0,4u);
43 V27:= (62.5u,0,4u);
44 V28:= (-62.5u+16u,0,4u);
45 V29:= (62.5u-16u,0,4u);
46
47 V40:= (95.5u,-43u,-8u); % zero
48 V42:= (-62.5u+21u,-43u,8u); % 200
49 V43:= (-62.5u+17u,-8u,-43u); %300
50 V44:= (95.5u,8u,-43u); % 400
51 V55:= (-32u,-4u,-35u); % 500
52 V56:= (82u,-35.25u,-4u); % 600 %%%
53 V57:= (50u,0,-35u); % 700
54 V58:= (0,-35.13u,0); % 800 %%%
55
56 def indicp( expr Ind ) =
57 ( rp(V[Ind])--rp( (X(V[Ind]),Y(V[Ind]),40u) ) )
58 enddef;
59
60 def indicl( expr Ind ) =
61 ( rp((X(V[Ind]),Y(V[Ind]),40u)) )
62 enddef;
63
64 % 100
65 for i=1 upto 19:
66 V[i+100] := (X(V[i]),-Y(V[i]),Z(V[i]));
67 endfor;
68
69 % 200
70 for i=101 upto 119:
71 V[i+100] := (X(V[i]),-Y(V[i]),-Z(V[i]));
72 endfor;
73
74 % 300
75 for i=101 upto 119:
76 V[i+200] := (X(V[i]),Z(V[i]),-Y(V[i]));
77 endfor;
78
79 % 400
80 for i=301 upto 319:
81 V[i+100] := (-X(V[i]),-Y(V[i]),Z(V[i]));
82 endfor;
83
84 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
85
86 % zero
87 for i=1 upto 19:
88 V[i] := V[i]+V40;
89 endfor;
90
91 % 200
92 for i=201 upto 219:
93 V[i] := V[i]+V42;
94 endfor;
95
96 % 300
97 for i=301 upto 319:
98 V[i] := V[i]+V43;
99 endfor;
100
101 % 400
102 for i=401 upto 419:
103 V[i] := V[i]+V44;
104 endfor;
105
106 % 500
107 for i=22 upto 29:
108 V[i+500] := (X(V[i]),Z(V[i]),-Y(V[i]))+V55;
109 endfor;
110
111 % 600
112 for i=22 upto 29:
113 V[i+600] := V[i]+V56;
114 endfor;
115
116 % 700
117 for i=22 upto 29:
118 V[i+700] := (X(V[i]),Z(V[i]),-Y(V[i]))+V57;
119 endfor;
120
121 % 800
122 for i=22 upto 29:
123 V[i+800] := V[i]+V58;
124 endfor;
125
126 numeric dhip, dcat, dhei, dang;
127 dhip = X(V627)-X(V824);
128 dcat = X(V25)-X(V24);
129 dhei = dcat +-+ (0.5*dhip);
130 dang = angle(0.5*dhip,dhei);
131
132 % 1000
133 for i=822 upto 829:
134 V[i+100] := (X(V[i])*cosd(dang)-Y(V[i])*sind(dang),
135 X(V[i])*sind(dang)+Y(V[i])*cosd(dang),Z(V[i]));
136 endfor;
137 for i=922 upto 929:
138 V[i+100] := V[i]+V627-V925;
139 endfor;
140
141 % 900
142 for i=622 upto 629:
143 V[i-500] := (X(V[i])*cosd(dang)+Y(V[i])*sind(dang),
144 -X(V[i])*sind(dang)+Y(V[i])*cosd(dang),Z(V[i]));
145 endfor;
146 for i=122 upto 129:
147 V[i+800] := V[i]+V824-V126;
148 endfor;
149
150 beginfig(1);
151 pen penedge;
152 penedge= pencircle scaled 1.5pt;
153 pickup penedge;
154 path refillpat[], retouchpat[];
155
156 path pat[];
157 pat1 = P309--P312--P313--P314--P311--P310--P309--P304--P305
158 --P308--P307;
159 pat2 = P311--P312;
160 pat11 = P313--P302--P303;
161 pat3 = pat11 cutafter pat1;
162 pat10 = P301-- for i=-90 step 5 until 85:
163 rp(V315+(0,8u*sind(i),8u*cosd(i)))..
164 endfor P319--P307;
165 pat4 = P310-- for i=-90 step 5 until 85:
166 rp(V316+(0,8u*sind(i),8u*cosd(i)))..
167 endfor P318--P308;
168 pair auxp,auxP;
169 auxp = point 0 of spatialhalfcircle(V315,red,8.05u,false);
170 auxP = point 0 of spatialhalfcircle(V316,red,8.05u,false);
171 pat9 = P315--auxp;
172 pat5 = pat10 cutbefore pat9;
173 pat6 = auxp--auxP;
174 for i=1 upto 6:
175 draw pat[i];
176 endfor;
177 fakehole(V315,red*4u, 2u );
178 fakehole(V317,green*4u, 2u );
179 V388 := 0.7[V308,V318];
180 V379 := 0.7[V307,V319];
181 refillpat2 = P309--P304--P305--P308--P307--P379--P388--cycle;
182 retouchpat3 = P309--P304--P305--P308--P307--P379;
183 retouchpat4 = P388--P308;
184
185
186 path pat[];
187 pat1 = for i=-90 step 2 until 90:
188 rp(V522+(-2u*cosd(i),0,2u*sind(i)))...
189 endfor
190 for i=-90 step 2 until 90:
191 rp(V523+(2u*cosd(i),0,2u*sind(-i)))...
192 endfor
193 cycle;
194 pat2 = for i=-90 step 2 until 90:
195 rp(V528+(-2u*cosd(i),0,2u*sind(i)))...
196 endfor
197 for i=-90 step 2 until 90:
198 rp(V529+(2u*cosd(i),0,2u*sind(-i)))...
199 endfor
200 cycle;
201 pat3 = for i=-90 step 2 until 90:
202 rp(V524+(-8u*cosd(i),0,8u*sind(i)))...
203 endfor
204 for i=-90 step 2 until 90:
205 rp(V525+(8u*cosd(i),0,8u*sind(-i)))...
206 endfor
207 cycle;
208 pat4 = for i=-90 step 2 until 90:
209 rp(V526+(-8u*cosd(i),0,8u*sind(i)))...
210 endfor
211 for i=-90 step 2 until 90:
212 rp(V527+(8u*cosd(i),0,8u*sind(-i)))...
213 endfor
214 cycle;
215 pair auxp, auxP, auxm, auxM;
216 auxp = point 0 of spatialhalfcircle(V524,green,8.05u,true);
217 auxP = point 0 of spatialhalfcircle(V526,green,8.05u,true);
218 auxm = point 0 of spatialhalfcircle(V525,green,8.05u,false);
219 auxM = point 0 of spatialhalfcircle(V527,green,8.05u,false);
220 pat5 = P524--auxp;
221 pat6 = P525--auxm;
222 pat7 = pat3 cutbefore pat5 cutafter pat6;
223 pat8 = auxp--auxP;
224 pat9 = auxm--auxM;
225
226 unfill pat3;
227 % draw pat1;
228 draw pat2;
229 draw pat7;
230 draw pat4;
231 draw pat8;
232 draw pat9;
233 fakehole(V524,green*4u, 2u );
234 fakehole(V525,green*4u, 2u );
235
236
237 path pat[];
238 pat1 = for i=-90 step 2 until 90:
239 rp(V722+(-2u*cosd(i),0,2u*sind(i)))...
240 endfor
241 for i=-90 step 2 until 90:
242 rp(V723+(2u*cosd(i),0,2u*sind(-i)))...
243 endfor
244 cycle;
245 pat2 = for i=-90 step 2 until 90:
246 rp(V728+(-2u*cosd(i),0,2u*sind(i)))...
247 endfor
248 for i=-90 step 2 until 90:
249 rp(V729+(2u*cosd(i),0,2u*sind(-i)))...
250 endfor
251 cycle;
252 pat3 = for i=-90 step 2 until 90:
253 rp(V724+(-8u*cosd(i),0,8u*sind(i)))...
254 endfor
255 for i=-90 step 2 until 90:
256 rp(V725+(8u*cosd(i),0,8u*sind(-i)))...
257 endfor
258 cycle;
259 pat4 = for i=-90 step 2 until 90:
260 rp(V726+(-8u*cosd(i),0,8u*sind(i)))...
261 endfor
262 for i=-90 step 2 until 90:
263 rp(V727+(8u*cosd(i),0,8u*sind(-i)))...
264 endfor
265 cycle;
266 pair auxp, auxP, auxm, auxM;
267 auxp = point 0 of spatialhalfcircle(V724,green,8.05u,true);
268 auxP = point 0 of spatialhalfcircle(V726,green,8.05u,true);
269 auxm = point 0 of spatialhalfcircle(V725,green,8.05u,false);
270 auxM = point 0 of spatialhalfcircle(V727,green,8.05u,false);
271 pat5 = P724--auxp;
272 pat6 = P725--auxm;
273 pat7 = pat3 cutbefore pat5 cutafter pat6;
274 pat8 = auxp--auxP;
275 pat9 = auxm--auxM;
276 pat10= pat4 cutbefore P727--auxM cutafter P726--auxP;
277 unfill pat7--pat9--pat10--(reverse pat8)--cycle;
278 % draw pat1;
279 draw pat2;
280 draw pat7;
281 draw pat4;
282 draw pat8;
283 draw pat9;
284 fakehole(V724,green*4u, 2u );
285 fakehole(V725,green*4u, 2u );
286
287 path pat[];
288 pat1 = P401-- for i=90 step -5 until -85:
289 rp(V415+(0,8u*sind(i),8u*cosd(i)))..
290 endfor P419--P407--P406--P403--P402--cycle;
291 pat10 = P401--P414--P411--P410-- for i=90 step -5 until -85:
292 rp(V416+(0,8u*sind(i),8u*cosd(i)))..
293 endfor P418;
294 pair auxp,auxP;
295 auxp = point 0 of spatialhalfcircle(V415,red,8.05u,false);
296 auxP = point 0 of spatialhalfcircle(V416,red,8.05u,false);
297 pat9 = P416--auxP;
298 pat2 = pat10 cutafter pat9;
299 pat3 = auxp--auxP;
300 unfill pat1;
301 unfill pat10--P403--cycle;
302 for i=1 upto 3:
303 draw pat[i];
304 endfor;
305 fakehole(V415,-red*4u, 2u );
306 fakehole(V417,-green*4u, 2u );
307
308
309 path pat[];
310 pat1 = P3--P2--P13--P14--P11--P10--P9--P12--P13;
311 pat2 = P11--P12;
312 pat3 = P9--P4--P5--P6--P7--P8--P5;
313 numeric i;
314 pat8 = P1-- for i=-90 step 5 until 85:
315 rp(V15+(0,8u*cosd(i),8u*sind(i)))..
316 endfor P19--P7;
317 pat5 = P10-- for i=-90 step 5 until 85:
318 rp(V16+(0,8u*cosd(i),8u*sind(i)))..
319 endfor P18--P8;
320 pat6 = pat1 cutbefore pat3;
321 pair auxp,auxP;
322 auxp = point 0 of spatialhalfcircle(V15,red,8.05u,true);
323 auxP = point 0 of spatialhalfcircle(V16,red,8.05u,true);
324 pat9 = rp(V15)--auxp;
325 pat4 = pat8 cutbefore pat9;
326 pat7 = auxp--auxP;
327 unfill buildcycle( pat1, pat5, pat8, reverse pat3 );
328 for i=2 upto 7:
329 draw pat[i];
330 endfor;
331 fakehole(V15,red*4u, 2u );
332 fakehole(V17,blue*4u, 2u );
333 refillpat1 = P9--P4--P5--P6--P7--P19--P18--cycle;
334 retouchpat1 = P9--P4--P5--P6--P7--P19;
335 retouchpat2 = P18--P8--P5;
336 retouchpat5 = P8--P7;
337
338 path pat[];
339 pat2 = for i=-90+dang step 2 until 90+dang:
340 rp(V928+(-2u*cosd(i),2u*sind(i),0))...
341 endfor
342 for i=-90+dang step 2 until 90+dang:
343 rp(V929+(2u*cosd(i),2u*sind(-i),0))...
344 endfor
345 cycle;
346 pat3 = for i=-90+dang step 2 until 90+dang:
347 rp(V924+(-8u*cosd(i),8u*sind(i),0))...
348 endfor
349 for i=-90+dang step 2 until 90+dang:
350 rp(V925+(8u*cosd(i),8u*sind(-i),0))...
351 endfor
352 cycle;
353 pat4 = for i=-90+dang step 2 until 90+dang:
354 rp(V926+(-8u*cosd(i),8u*sind(i),0))...
355 endfor
356 for i=-90+dang step 2 until 90+dang:
357 rp(V927+(8u*cosd(i),8u*sind(-i),0))...
358 endfor
359 cycle;
360 pair auxp, auxP, auxm, auxM;
361 auxp = point 0 of spatialhalfcircle(V924,blue,8.05u,false);
362 auxP = point 0 of spatialhalfcircle(V926,blue,8.05u,false);
363 auxm = point 0 of spatialhalfcircle(V925,blue,8.05u,true);
364 auxM = point 0 of spatialhalfcircle(V927,blue,8.05u,true);
365 pat5 = P924--auxp;
366 pat6 = P925--auxm;
367 pat7 = pat3 cutbefore pat5 cutafter pat6;
368 pat8 = auxp--auxP;
369 pat9 = auxm--auxM;
370 pat10= pat4 cutbefore P927--auxM cutafter P926--auxP;
371 unfill pat7--pat8--pat10--(reverse pat9)--cycle;
372
373 draw pat2;
374 draw pat7;
375 draw pat4;
376 draw pat8;
377 draw pat9;
378 fakehole(V924,blue*4u, 2u );
379 fakehole(V925,blue*4u, 2u );
380
381 path pat[];
382 pat1 = for i=-90 step 2 until 90:
383 rp(V622+(-2u*cosd(i),2u*sind(i),0))...
384 endfor
385 for i=-90 step 2 until 90:
386 rp(V623+(2u*cosd(i),2u*sind(-i),0))...
387 endfor
388 cycle;
389 pat2 = for i=-90 step 2 until 90:
390 rp(V628+(-2u*cosd(i),2u*sind(i),0))...
391 endfor
392 for i=-90 step 2 until 90:
393 rp(V629+(2u*cosd(i),2u*sind(-i),0))...
394 endfor
395 cycle;
396 pat3 = for i=-90 step 2 until 90:
397 rp(V624+(-8u*cosd(i),8u*sind(i),0))...
398 endfor
399 for i=-90 step 2 until 90:
400 rp(V625+(8u*cosd(i),8u*sind(-i),0))...
401 endfor
402 cycle;
403 pat4 = for i=-90 step 2 until 90:
404 rp(V626+(-8u*cosd(i),8u*sind(i),0))...
405 endfor
406 for i=-90 step 2 until 90:
407 rp(V627+(8u*cosd(i),8u*sind(-i),0))...
408 endfor
409 cycle;
410 pair auxp, auxP, auxm, auxM;
411 auxp = point 0 of spatialhalfcircle(V624,blue,8.05u,false);
412 auxP = point 0 of spatialhalfcircle(V626,blue,8.05u,false);
413 auxm = point 0 of spatialhalfcircle(V625,blue,8.05u,true);
414 auxM = point 0 of spatialhalfcircle(V627,blue,8.05u,true);
415 pat5 = P624--auxp;
416 pat6 = P625--auxm;
417 pat7 = pat3 cutbefore pat5 cutafter pat6;
418 pat8 = auxp--auxP;
419 pat9 = auxm--auxM;
420 unfill pat3;
421
422 %% pat10 = buildcycle( pat1, pat2 );
423 %% draw pat10;
424 %% draw pat1 cutbefore pat2;
425 %% THIS IS BAD, VERY BAD!!!! BUILDCYCLE DOES NOT WORK!!!!
426 % show length pat1;
427 % show pat1 intersectiontimes pat2;
428 % show reverse pat1 intersectiontimes pat2;
429 numeric auxta, auxtb;
430 auxta = xpart (reverse pat1 intersectiontimes pat2);
431 auxtb = xpart (pat1 intersectiontimes pat2);
432 draw subpath (-auxta,auxtb) of pat1;
433
434 draw pat2;
435 draw pat7;
436 draw pat4;
437 draw pat8;
438 draw pat9;
439 fakehole(V624,blue*4u, 2u );
440 fakehole(V625,blue*4u, 2u );
441
442
443 path pat[];
444 pat1 = for i=-90 step 2 until 90:
445 rp(V822+(-2u*cosd(i),2u*sind(i),0))...
446 endfor
447 for i=-90 step 2 until 90:
448 rp(V823+(2u*cosd(i),2u*sind(-i),0))...
449 endfor
450 cycle;
451 pat2 = for i=-90 step 2 until 90:
452 rp(V828+(-2u*cosd(i),2u*sind(i),0))...
453 endfor
454 for i=-90 step 2 until 90:
455 rp(V829+(2u*cosd(i),2u*sind(-i),0))...
456 endfor
457 cycle;
458 pat3 = for i=-90 step 2 until 90:
459 rp(V824+(-8u*cosd(i),8u*sind(i),0))...
460 endfor
461 for i=-90 step 2 until 90:
462 rp(V825+(8u*cosd(i),8u*sind(-i),0))...
463 endfor
464 cycle;
465 pat4 = for i=-90 step 2 until 90:
466 rp(V826+(-8u*cosd(i),8u*sind(i),0))...
467 endfor
468 for i=-90 step 2 until 90:
469 rp(V827+(8u*cosd(i),8u*sind(-i),0))...
470 endfor
471 cycle;
472 pair auxp, auxP, auxm, auxM;
473 auxp = point 0 of spatialhalfcircle(V824,blue,8.05u,false);
474 auxP = point 0 of spatialhalfcircle(V826,blue,8.05u,false);
475 auxm = point 0 of spatialhalfcircle(V825,blue,8.05u,true);
476 auxM = point 0 of spatialhalfcircle(V827,blue,8.05u,true);
477 pat5 = P824--auxp;
478 pat6 = P825--auxm;
479 pat7 = pat3 cutbefore pat5 cutafter pat6;
480 pat8 = auxp--auxP;
481 pat9 = auxm--auxM;
482 pat10= pat4 cutbefore P827--auxM cutafter P826--auxP;
483 unfill pat7--pat9--pat10--(reverse pat8)--cycle;
484
485 %% pat10 = buildcycle( pat1, pat2 );
486 %% draw pat10;
487 %% draw pat1 cutbefore pat2;
488 %% THIS IS BAD, VERY BAD!!!! BUILDCYCLE DOES NOT WORK!!!!
489 % show length pat1;
490 % show pat1 intersectiontimes pat2;
491 % show reverse pat1 intersectiontimes pat2;
492 numeric auxta, auxtb;
493 auxta = xpart (reverse pat1 intersectiontimes pat2);
494 auxtb = xpart (pat1 intersectiontimes pat2);
495 draw subpath (-auxta,auxtb) of pat1;
496
497 draw pat2;
498 draw pat7;
499 draw pat4;
500 draw pat8;
501 draw pat9;
502 fakehole(V824,blue*4u, 2u );
503 fakehole(V825,blue*4u, 2u );
504
505
506 path pat[];
507 pat1 = P209--P212--P213--P214--P211;
508 pat10 = P211--P210-- for i=90 step -5 until -85:
509 rp(V216+(0,8u*cosd(i),8u*sind(i)))..
510 endfor P218--P208--P205;
511 pat2 = pat10 cutafter pat1;
512 pat11 = P214--P201-- for i=90 step -5 until -85:
513 rp(V215+(0,8u*cosd(i),8u*sind(i)))..
514 endfor P219--P207;
515 pair auxp,auxP;
516 auxp = point 0 of spatialhalfcircle(V215,red,8.05u,true);
517 auxP = point 0 of spatialhalfcircle(V216,red,8.05u,true);
518 pat9 = P215--auxp;
519 pat3 = pat11 cutafter pat9;
520 pat4 = auxp--auxP;
521 pat6 = P211--P212;
522 pat5 = P210--P209;
523 unfill buildcycle(pat1,pat11,pat10);
524 for i=1 upto 6:
525 draw pat[i];
526 endfor;
527 fakehole(V215,red*4u, 2u );
528 fakehole(V217,-blue*4u, 2u );
529
530 unfill refillpat1;
531 draw retouchpat1;
532 draw retouchpat2;
533 unfill refillpat2;
534 draw retouchpat3;
535 draw retouchpat4;
536 draw retouchpat5;
537
538 unfill buildcycle(pat1,pat11,pat10);
539 for i=1 upto 6:
540 draw pat[i];
541 endfor;
542 fakehole(V215,red*4u, 2u );
543 fakehole(V217,-blue*4u, 2u );
544
545 % label.top( "40", indicl(40) );
546 % label.top( "42", indicl(42) );
547 % label.top( "43", indicl(43) );
548 % label.top( "44", indicl(44) );
549 % label.top( "55", indicl(55) );
550 % label.top( "56", indicl(56) );
551 % label.top( "57", indicl(57) );
552 % label.top( "58", indicl(58) );
553
554 % draw indicp(40);
555 % draw indicp(42);
556 % draw indicp(43);
557 % draw indicp(44);
558 % draw indicp(55);
559 % draw indicp(56);
560 % draw indicp(57);
561 % draw indicp(58);
562
563 path pat[];
564 pat1 = for i=-90-dang step 2 until 90-dang-2:
565 rp(V1022+(-2u*cosd(i),2u*sind(i),0))...
566 endfor rp(V1022+(-2u*cosd(90-dang),2u*sind(90-dang),0));
567 pat11 = for i=-90-dang step 2 until 90-dang-2:
568 rp(V1023+(2u*cosd(i),2u*sind(-i),0))...
569 endfor rp(V1023+(2u*cosd(90-dang),2u*sind(-90+dang),0));
570 pat2 = for i=-90-dang step 2 until 90-dang:
571 rp(V1028+(-2u*cosd(i),2u*sind(i),0))...
572 endfor
573 for i=-90-dang step 2 until 90-dang:
574 rp(V1029+(2u*cosd(i),2u*sind(-i),0))...
575 endfor
576 cycle;
577 pat3 = for i=-90-dang step 2 until 90-dang:
578 rp(V1024+(-8u*cosd(i),8u*sind(i),0))...
579 endfor
580 for i=-90-dang step 2 until 90-dang:
581 rp(V1025+(8u*cosd(i),8u*sind(-i),0))...
582 endfor
583 cycle;
584 pat4 = for i=-90-dang step 2 until 90-dang:
585 rp(V1026+(-8u*cosd(i),8u*sind(i),0))...
586 endfor
587 for i=-90-dang step 2 until 90-dang:
588 rp(V1027+(8u*cosd(i),8u*sind(-i),0))...
589 endfor
590 cycle;
591 pair auxp, auxP, auxm, auxM;
592 auxp = point 0 of spatialhalfcircle(V1024,blue,8.05u,true);
593 auxP = point 0 of spatialhalfcircle(V1026,blue,8.05u,true);
594 auxm = point 0 of spatialhalfcircle(V1025,blue,8.05u,false);
595 auxM = point 0 of spatialhalfcircle(V1027,blue,8.05u,false);
596 pat5 = P1024--auxp;
597 pat6 = P1025--auxm;
598 pat7 = pat3 cutbefore pat6 cutafter pat5;
599 pat8 = auxp--auxP;
600 pat9 = auxm--auxM;
601 pat10= pat4 cutbefore P1027--auxM cutafter P1026--auxP;
602 unfill pat7--pat8--pat10--(reverse pat9)--cycle;
603
604 draw (point (length pat1) of pat1 -- point 0 of pat11) cutafter pat2;
605 draw pat1 cutbefore pat2;
606 draw pat2;
607 draw pat7;
608 draw pat4;
609 draw pat8;
610 draw pat9;
611 fakehole(V1024,blue*4u, 2u );
612 fakehole(V1025,blue*4u, 2u );
613
614
615
616
617 endfig;
618
619 end.
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634