| 1 |
% twoupcones.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2004 |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
verbatimtex |
| 8 |
\documentclass{article} |
| 9 |
\usepackage{beton,concmath,ccfonts} |
| 10 |
\begin{document} |
| 11 |
etex |
| 12 |
|
| 13 |
f := 3*(2,1,0.5); |
| 14 |
|
| 15 |
beginfig(1); |
| 16 |
numeric raya, rayb, heia, heib, rang, marg, u; |
| 17 |
color cena, cenb, vera, verb, auxa, auxb, pora, porb, poha, pohb; |
| 18 |
u = 0.38; |
| 19 |
raya = 1u; |
| 20 |
rayb = 2u; |
| 21 |
heia = 0.65u; |
| 22 |
marg = 0.2u; |
| 23 |
rang = 60; |
| 24 |
heib = heia*rayb/raya; |
| 25 |
cena = (raya*(1+marg),0,0); |
| 26 |
cenb = (-rayb*(1+marg),0,0); |
| 27 |
auxa = cena + raya*(cosd(rang),sind(rang),0); |
| 28 |
auxb = cenb + rayb*(cosd(rang),sind(rang),0); |
| 29 |
pora = 0.5[auxa,cena]; |
| 30 |
porb = 0.5[auxb,cenb]; |
| 31 |
vera = cena+heia*blue; |
| 32 |
verb = cenb+heib*blue; |
| 33 |
poha = 0.5[cena,vera]; |
| 34 |
pohb = 0.5[cenb,verb]; |
| 35 |
verygoodcone(true,cenb,blue,rayb,verb); |
| 36 |
draw rp(verb)--rp(cenb)--rp(auxb) dashed evenly; |
| 37 |
label.urt(btex $h_1$ etex, rp(pohb)); |
| 38 |
label.urt(btex $R_1$ etex, rp(porb)); |
| 39 |
verygoodcone(true,cena,blue,raya,vera); |
| 40 |
draw rp(vera)--rp(cena)--rp(auxa) dashed evenly; |
| 41 |
label.urt(btex $h_2$ etex, rp(poha)); |
| 42 |
label.urt(btex $R_2$ etex, rp(pora)); |
| 43 |
endfig; |
| 44 |
|
| 45 |
verbatimtex |
| 46 |
\end{document} |
| 47 |
etex |
| 48 |
|
| 49 |
end; |
| 50 |
|
| 51 |
|