| 1 |
% experimental.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2003 |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
%verbatimtex |
| 8 |
%\documentclass{article} |
| 9 |
%\usepackage{beton} |
| 10 |
%\usepackage{concmath} |
| 11 |
%\usepackage{ccfonts} |
| 12 |
%\begin{document} |
| 13 |
%etex |
| 14 |
|
| 15 |
verbatimtex |
| 16 |
\documentclass{article} |
| 17 |
\usepackage{palatino} |
| 18 |
\begin{document} |
| 19 |
etex |
| 20 |
|
| 21 |
f := (4.5,-6,5); |
| 22 |
|
| 23 |
beginfig(1); |
| 24 |
numeric len[], ray[]; |
| 25 |
color axe[], pos[], fix[], lab[]; |
| 26 |
color reflabpos, reflabpoi, lincolor; |
| 27 |
picture txt[], dashpatt; |
| 28 |
numeric inclang, aberang, sampang, stepang; |
| 29 |
numeric squside, sqlevel, ul, outermagpos; |
| 30 |
numeric innerray, polesep, fracone, fracsam; |
| 31 |
numeric labelscale; |
| 32 |
path tmpath, aupath, copath; |
| 33 |
|
| 34 |
pickup pencircle scaled 1.2pt; |
| 35 |
dashpatt = evenly scaled 3; |
| 36 |
inclang = 150; |
| 37 |
aberang = 17; |
| 38 |
sampang = 30; |
| 39 |
stepang = 20; |
| 40 |
ul = 0.1; |
| 41 |
labelscale = 5; |
| 42 |
outermagpos = 30ul; |
| 43 |
squside = outermagpos; |
| 44 |
sqlevel = -20ul; |
| 45 |
polesep = 15ul; |
| 46 |
fracone = 0.33; |
| 47 |
fracsam = 0.86; |
| 48 |
ray1 = 10ul; |
| 49 |
ray2 = 6ul; |
| 50 |
ray3 = 8ul; |
| 51 |
ray4 = 1.5ul; |
| 52 |
ray5 = 4ul; |
| 53 |
ray6 = 3ul; |
| 54 |
ray7 = 3.5ul; |
| 55 |
ray8 = 2ul; |
| 56 |
len3 = 7ul; |
| 57 |
len4 = 20ul; |
| 58 |
len5 = 3ul; |
| 59 |
len7 = 3.5ul; |
| 60 |
len8 = 7ul; |
| 61 |
lincolor = 0.5background; |
| 62 |
|
| 63 |
reflabpos = ( -squside, 0, -sqlevel ); |
| 64 |
reflabpoi = ( -squside, squside, -sqlevel ); |
| 65 |
V1 := (squside,squside,sqlevel); |
| 66 |
V2 := (-squside,squside,sqlevel); |
| 67 |
V3 := (-squside,-squside,sqlevel); |
| 68 |
V4 := (squside,-squside,sqlevel); |
| 69 |
% makeface1(1,2,3,4); |
| 70 |
|
| 71 |
len1 = (1-fracone)*(outermagpos-ray5-polesep); |
| 72 |
pos1 = (-outermagpos,0,0); |
| 73 |
rigorousdisc( 0, true, pos1, ray1, len1*(1,0,0) ); |
| 74 |
|
| 75 |
len2 = fracone*(outermagpos-ray5-polesep); |
| 76 |
pos2 = (len1-outermagpos,0,0); |
| 77 |
tmpath := goodcirclepath( pos2, (1,0,0), ray1 ); |
| 78 |
aupath := goodcirclepath( (-ray5-polesep,0,0), (1,0,0), ray2 ); |
| 79 |
copath := twocyclestogether( tmpath, aupath ); |
| 80 |
unfill copath; |
| 81 |
draw copath; |
| 82 |
draw aupath; |
| 83 |
lab2 = reflabpos; |
| 84 |
txt2 = thelabel.top( btex magneto etex scaled labelscale, rp( lab2 ) ); |
| 85 |
draw txt2; |
| 86 |
fix2 = (-outermagpos+0.5len1,0,ray1); |
| 87 |
draw llcorner txt2--lrcorner txt2--rp(fix2) withcolor lincolor; |
| 88 |
|
| 89 |
axe3 = ( 0, cosd( inclang ), sind( inclang ) ); |
| 90 |
pos3 = -( len3 + len4 + len5 )*axe3; |
| 91 |
rigorousdisc( 0, true, pos3, ray3, len3*axe3 ); |
| 92 |
lab3 = (1-fracone)*reflabpoi+fracone*V1; |
| 93 |
txt3 = thelabel.rt( btex rotor etex scaled labelscale, rp( lab3 ) ); |
| 94 |
draw txt3; |
| 95 |
|
| 96 |
axe4 = axe3; |
| 97 |
pos4 = -( len4 + len5 )*axe4; |
| 98 |
rigorousdisc( 0, true, pos4, ray4, len4*axe4 ); |
| 99 |
|
| 100 |
fix3 = pos4+fracsam*ray3*(0,cosd( inclang -90 ),sind( inclang -90 )); |
| 101 |
draw lrcorner txt3--llcorner txt3--rp(fix3) withcolor lincolor; |
| 102 |
|
| 103 |
axe5 = axe3; |
| 104 |
pos5 = -( len5 )*axe5; |
| 105 |
rigorousdisc( 0, true, pos5, ray5, len5*axe5 ); |
| 106 |
lab5 = (1-fracone)*reflabpoi+fracone*V2; |
| 107 |
txt5 = thelabel.rt( btex porta-amostras etex scaled labelscale, rp( lab5 ) ); |
| 108 |
draw txt5; |
| 109 |
fix5 = fracsam*ray5*(0,cosd( inclang -90 ),sind( inclang -90 )); |
| 110 |
draw lrcorner txt5--llcorner txt5--rp(fix5) withcolor lincolor; |
| 111 |
|
| 112 |
V5 := fracsam*ray5*( sind( sampang ), |
| 113 |
cosd( sampang )*cosd( inclang -90 ), |
| 114 |
cosd( sampang )*sind( inclang -90 ) ); |
| 115 |
V6 := fracsam*ray5*( -sind( sampang ), |
| 116 |
cosd( sampang )*cosd( inclang -90 ), |
| 117 |
cosd( sampang )*sind( inclang -90 ) ); |
| 118 |
V8 := fracsam*ray5*( sind( sampang ), |
| 119 |
-cosd( sampang )*cosd( inclang -90 ), |
| 120 |
-cosd( sampang )*sind( inclang -90 ) ); |
| 121 |
V7 := fracsam*ray5*( -sind( sampang ), |
| 122 |
-cosd( sampang )*cosd( inclang -90 ), |
| 123 |
-cosd( sampang )*sind( inclang -90 ) ); |
| 124 |
draw rp(V5)--rp(V6)--rp(V7)--rp(V8)--cycle; |
| 125 |
|
| 126 |
axe6 = ( 0, cosd( inclang+aberang ), sind( inclang+aberang ) ); |
| 127 |
pos6 = ray1*axe6; |
| 128 |
len6 = len4; |
| 129 |
axe7 = ( 0, cosd( inclang-aberang ), sind( inclang-aberang ) ); |
| 130 |
pos7 = ( ray1 + 0.5len6 )*axe7; |
| 131 |
draw rp(pos6)--rp((0,0,0))--rp(pos7) dashed dashpatt; |
| 132 |
rigorousdisc( 0, true, pos6, ray6, len6*axe6 ); |
| 133 |
lab6 = fracone*reflabpos+(1-fracone)*V3; |
| 134 |
txt6 = thelabel.lft( btex telemicrosc\'{o}pio etex scaled labelscale, rp( lab6 ) ); |
| 135 |
draw txt6; |
| 136 |
fix6 = pos6+len6*axe6; |
| 137 |
draw llcorner txt6--lrcorner txt6--rp(fix6) withcolor lincolor; |
| 138 |
|
| 139 |
pos8 = pos7+len7*axe7; |
| 140 |
tmpath := goodcirclepath( pos7, axe7, ray7 ); |
| 141 |
aupath := goodcirclepath( pos8, axe7, ray8 ); |
| 142 |
copath := twocyclestogether( tmpath, aupath ); |
| 143 |
unfill copath; |
| 144 |
draw copath; |
| 145 |
draw aupath; |
| 146 |
|
| 147 |
axe8 = axe7; |
| 148 |
rigorousdisc( 0, true, pos8, ray8, len8*axe8 ); |
| 149 |
lab8 = (1-fracone)*reflabpos+fracone*V3; |
| 150 |
txt8 = thelabel.lft( btex l\^{a}mpada etex scaled labelscale, rp( lab8 ) ); |
| 151 |
draw txt8; |
| 152 |
fix8 = pos8+len8*axe8; |
| 153 |
draw llcorner txt8--lrcorner txt8--rp(fix8) withcolor lincolor; |
| 154 |
|
| 155 |
len9 = len2; |
| 156 |
pos9 = (ray5+polesep,0,0); |
| 157 |
ray9 = ray2; |
| 158 |
ray10 = ray1; |
| 159 |
tmpath := goodcirclepath( pos9, (1,0,0), ray9 ); |
| 160 |
pos10 = pos9+len9*(1,0,0); |
| 161 |
aupath := goodcirclepath( pos10, (1,0,0), ray10 ); |
| 162 |
copath := twocyclestogether( tmpath, aupath ); |
| 163 |
unfill copath; |
| 164 |
draw copath; |
| 165 |
draw aupath; |
| 166 |
|
| 167 |
len10 = len1; |
| 168 |
rigorousdisc( 0, true, pos10, ray10, len10*(1,0,0) ); |
| 169 |
|
| 170 |
produce_auto_scale; |
| 171 |
endfig; |
| 172 |
|
| 173 |
verbatimtex |
| 174 |
\end{document} |
| 175 |
etex |
| 176 |
|
| 177 |
end. |