| 1 |
% fis3prey.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2006 |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
verbatimtex |
| 8 |
\documentclass{article} |
| 9 |
\usepackage{palatino,mathpazo} |
| 10 |
\begin{document} |
| 11 |
etex |
| 12 |
|
| 13 |
beginfig(1); |
| 14 |
Spread := 50; |
| 15 |
f := (4,6,3.5); |
| 16 |
path malhacub, rama, ramb, ramc, malhatet; |
| 17 |
pen grossa, nuclear, negat; |
| 18 |
color p[]; |
| 19 |
numeric lengax, lscal, arrowmarg, arrowshift; |
| 20 |
pair tx, ty, tz; |
| 21 |
lengax = 0.7; |
| 22 |
lscal = 2; |
| 23 |
arrowshift = 0.85; |
| 24 |
arrowmarg = 0.13; |
| 25 |
grossa = pencircle scaled 2.7pt; |
| 26 |
nuclear = pencircle scaled 2.1pt; |
| 27 |
negat = pencircle scaled 1.8pt; |
| 28 |
p1 = (1,1,-1); |
| 29 |
p2 = (-1,1,-1); |
| 30 |
p3 = (-1,-1,-1); |
| 31 |
p4 = (1,-1,-1); |
| 32 |
p5 = (1,1,1); |
| 33 |
p6 = (-1,1,1); |
| 34 |
p7 = (-1,-1,1); |
| 35 |
p8 = (1,-1,1); |
| 36 |
|
| 37 |
p0 = p2 + arrowshift*N((1,0,1)) + arrowmarg*N((-1,0,1)); |
| 38 |
p9 = p5 - arrowshift*N((1,0,1)) + arrowmarg*N((-1,0,1)); |
| 39 |
|
| 40 |
z1 = rp(p1); |
| 41 |
z2 = rp(p2); |
| 42 |
z3 = rp(p3); |
| 43 |
z4 = rp(p4); |
| 44 |
z5 = rp(p5); |
| 45 |
z6 = rp(p6); |
| 46 |
z7 = rp(p7); |
| 47 |
z8 = rp(p8); |
| 48 |
|
| 49 |
z0 = rp(p0); |
| 50 |
z9 = rp(p9); |
| 51 |
|
| 52 |
tx = rp( p1 - (lengax,0,0) ); |
| 53 |
ty = rp( p1 - (0,lengax,0) ); |
| 54 |
tz = rp( p1 + (0,0,lengax) ); |
| 55 |
|
| 56 |
malhacub = z1--z2--z3--z4--z1--z5--z6--z7--z8--z5; |
| 57 |
malhatet = z2--z7--z4--z5--cycle; |
| 58 |
rama = z2--z6; |
| 59 |
ramb = z3--z7; |
| 60 |
ramc = z4--z8; |
| 61 |
drawoptions( dashed evenly ); |
| 62 |
draw malhacub; |
| 63 |
draw rama; |
| 64 |
draw ramb; |
| 65 |
draw ramc; |
| 66 |
drawoptions( withpen grossa ); |
| 67 |
draw malhatet; |
| 68 |
|
| 69 |
drawarrow z1--tx withpen negat; |
| 70 |
drawarrow z1--ty withpen negat; |
| 71 |
drawarrow z1--tz withpen negat; |
| 72 |
%show "alert for fis3prey.mp"; |
| 73 |
label.lrt(btex $x$ etex scaled lscal, tx); |
| 74 |
label.llft(btex $y$ etex scaled lscal, ty); |
| 75 |
label.lft(btex $z$ etex scaled lscal, tz); |
| 76 |
drawarrow z0--z9 withpen negat; |
| 77 |
endfig; |
| 78 |
|
| 79 |
beginfig(2); |
| 80 |
Spread := 50; |
| 81 |
f := 2.3*(6,2,3.5); |
| 82 |
numeric lang, cray, lpos, llen, smar; |
| 83 |
path circ, rigcirc, lone, ltwo, carrpath; |
| 84 |
pen pena, penb, penc; |
| 85 |
pena = pencircle scaled 1.3mm; |
| 86 |
penb = pencircle scaled 0.95mm; |
| 87 |
penc = pencircle scaled 0.4mm; |
| 88 |
color outcol, incol; |
| 89 |
outcol = black; |
| 90 |
incol = 0.876white; |
| 91 |
lang = 30; |
| 92 |
cray = 1; |
| 93 |
lpos = 0.57; |
| 94 |
llen = 2.2; |
| 95 |
smar = 0.15; |
| 96 |
circ = goodcirclepath( black, green, cray ); |
| 97 |
rigcirc = rigorouscircle( black, green, cray+smar ); |
| 98 |
carrpath = subpath (3.2,4.5) of rigcirc; |
| 99 |
lone = rp((-lpos,llen*cosd(lang),llen*sind(lang))) |
| 100 |
--rp(-(lpos,llen*cosd(lang),llen*sind(lang))); |
| 101 |
ltwo = rp((lpos,-llen*cosd(lang),llen*sind(lang))) |
| 102 |
--rp((lpos,llen*cosd(lang),-llen*sind(lang))); |
| 103 |
drawarrow carrpath withpen penc withcolor outcol; |
| 104 |
draw circ withpen pena withcolor outcol; |
| 105 |
draw circ withpen penb withcolor incol; |
| 106 |
draw rp((-cray,0,0))--rp((-lpos,0,0)) dashed evenly; |
| 107 |
draw lone withpen pena withcolor outcol; |
| 108 |
draw lone withpen penb withcolor incol; |
| 109 |
draw rp((lpos,0,0))--rp((-lpos,0,0)) dashed evenly; |
| 110 |
draw rp((0,0,-cray))--rp((0,0,cray)) dashed evenly; |
| 111 |
draw ltwo withpen pena withcolor outcol; |
| 112 |
draw ltwo withpen penb withcolor incol; |
| 113 |
draw rp((cray,0,0))--rp((lpos,0,0)) dashed evenly; |
| 114 |
draw subpath (1,15) of circ withpen pena withcolor outcol; |
| 115 |
draw subpath (0,16) of circ withpen penb withcolor incol; |
| 116 |
% label.top( btex $+$ etex, point 3 of rigcirc ); |
| 117 |
endfig; |
| 118 |
|
| 119 |
beginfig(3); |
| 120 |
TDAtiplen := 0.26; % tdarrow |
| 121 |
TDAhalftipbase := 0.12; % Three-Dimensional |
| 122 |
TDAhalfthick := 0.05; % Arrow |
| 123 |
Spread := 23; |
| 124 |
numeric len, rad, tle, tcr, tof; |
| 125 |
len = 10; |
| 126 |
rad = 0.15; |
| 127 |
tle = 1.5; |
| 128 |
tcr = 4; |
| 129 |
tof = 0.35; |
| 130 |
f := 10*(1.7,0.8,1.05); |
| 131 |
tdarrow( (tcr,-1-tof,-1), (tcr-tle,-1-tof,-1) ); |
| 132 |
rigorousdisc( 0, true, (-2*len,-1,-1), rad, 3*len*red ); |
| 133 |
tdarrow( (tcr,1-tof,-1), (tcr-tle,1-tof,-1) ); |
| 134 |
draw rp((-1,-1+rad,-1))--rp((-1,1-rad,-1)) dashed evenly; |
| 135 |
draw rp((1,-1+rad,-1))--rp((1,1-rad,-1)) dashed evenly; |
| 136 |
rigorousdisc( 0, true, (-2*len,1,-1), rad, 3*len*red ); |
| 137 |
tdarrow( (-1,-tcr,1+tof), (-1,-tcr+tle,1+tof) ); |
| 138 |
draw rp((-1,-1,-1+rad))--rp((-1,-1,1-rad)) dashed evenly; |
| 139 |
draw rp((-1,1,-1+rad))--rp((-1,1,1-rad)) dashed evenly; |
| 140 |
draw rp((1,-1,-1+rad))--rp((1,-1,1-rad)) dashed evenly; |
| 141 |
draw rp((1,1,-1+rad))--rp((1,1,1-rad)) dashed evenly; |
| 142 |
rigorousdisc( 0, true, (-1,-len,1), rad, 2*len*green ); |
| 143 |
draw rp((-1+rad,-1,1))--rp((1-rad,-1,1)) dashed evenly; |
| 144 |
draw rp((-1+rad,1,1))--rp((1-rad,1,1)) dashed evenly; |
| 145 |
rigorousdisc( 0, true, (1,-len,1), rad, 2*len*green ); |
| 146 |
tdarrow( (1,-tcr,1-tof), (1,-tcr+tle,1-tof) ); |
| 147 |
label( btex $I_A$ etex, rp((tcr-0.5*tle,-1-2*tof,-1)) ); |
| 148 |
label( btex $I_B$ etex, rp((tcr-0.5*tle,1-2*tof,-1)) ); |
| 149 |
label( btex $I_C$ etex, rp((-1,-tcr+0.5*tle,1+2*tof)) ); |
| 150 |
label( btex $I_D$ etex, rp((1,-tcr+0.5*tle,1-2*tof)) ); |
| 151 |
produce_vga_border; |
| 152 |
endfig; |
| 153 |
|
| 154 |
verbatimtex |
| 155 |
\end{document} |
| 156 |
etex |
| 157 |
|
| 158 |
end; |