| 1 |
|
| 2 |
beginfig(1); |
| 3 |
pair po, pa, pb, pc, pd, pe, pf, pg; |
| 4 |
numeric u, ang, bigray, smaray, i; |
| 5 |
path smacirc, heigray; |
| 6 |
u = 0.2mm; |
| 7 |
ang = 40; |
| 8 |
bigray = 250u; |
| 9 |
smaray = 205u; |
| 10 |
po = (105mm,145mm); |
| 11 |
pa = po - bigray*dir( ang ); |
| 12 |
pb = po + (2*smaray-bigray)*dir( ang ); |
| 13 |
pc = po + bigray*dir( ang ); |
| 14 |
pe = po + bigray*dir( ang + 90 ); |
| 15 |
pf = po + (smaray-bigray)*dir( ang ); |
| 16 |
pg = po - bigray*dir( ang + 90 ); |
| 17 |
heigray = po--pe; |
| 18 |
smacirc = (fullcircle scaled (2*smaray)) shifted pf; |
| 19 |
pd = heigray intersectionpoint smacirc; |
| 20 |
draw pg--pe; |
| 21 |
draw smacirc; |
| 22 |
draw (fullcircle scaled (2*bigray)) shifted po; |
| 23 |
draw pc--pa--pd--pb; |
| 24 |
draw pd--pe withcolor red; |
| 25 |
draw pb--pc withcolor red; |
| 26 |
dotlabel.bot( "O", po ); |
| 27 |
dotlabel.llft( "A", pa ); |
| 28 |
dotlabel.bot( "B", pb ); |
| 29 |
dotlabel.urt( "C", pc ); |
| 30 |
dotlabel.top( "D", pd ); |
| 31 |
dotlabel.ulft( "E", pe ); |
| 32 |
dotlabel.top( "F", pf ); |
| 33 |
endfig; |
| 34 |
|
| 35 |
end. |
| 36 |
|