| 1 |
% spltwiben.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2002 |
| 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 |
def zsurface( expr xc, yc ) = |
| 16 |
((3*xc-5)*(3*xc+5)/(3*sqrt(3)*yc-5)) |
| 17 |
enddef; |
| 18 |
|
| 19 |
f := (4,-5,3); |
| 20 |
Spread := 120; |
| 21 |
|
| 22 |
beginfig(1); |
| 23 |
numeric i, j, nx, ny, lowx, higx, lowy, higy; |
| 24 |
numeric posx, posy, posz, facz; |
| 25 |
color gridx[], pos, reforig, endbeta, endpsip; |
| 26 |
color endfiel, kdiv, krot, kben, akdiv, akrot, akben; |
| 27 |
path facex; |
| 28 |
facz = 7; |
| 29 |
nx = 15; |
| 30 |
ny = 50; |
| 31 |
lowx = 0; |
| 32 |
higx = 0.5*sqrt(3); |
| 33 |
reforig = (0,-0.5,0); |
| 34 |
endpsip = (0.3,-0.5,0); |
| 35 |
endbeta = (0,-0.2,0); |
| 36 |
endfiel = (0,-0.5,9/facz); |
| 37 |
kdiv = (0,-0.5,8/facz); |
| 38 |
krot = (0,-0.5,2/facz); |
| 39 |
kben = (0,-0.5,5/facz); |
| 40 |
akdiv = (higx,0.5,8/facz); |
| 41 |
akrot = (higx,-0.5,2/facz); |
| 42 |
akben = (0,0,5/facz); |
| 43 |
draw rp((0,0,0))--rp((0,0,5/facz)); |
| 44 |
for i=1 upto nx: |
| 45 |
posx := lowx + i*( higx - lowx )/nx; |
| 46 |
lowy := -sqrt(3)*posx/3; |
| 47 |
higy := -lowy; |
| 48 |
for j=0 upto ny: |
| 49 |
posy := lowy + j*( higy - lowy )/ny; |
| 50 |
posz := zsurface( posx, posy )/facz; |
| 51 |
gridx[j] := ( posx, posy, posz ); |
| 52 |
% show gridx[j]; |
| 53 |
endfor; |
| 54 |
pos := ( posx, lowy, 0 ); |
| 55 |
facex := rp( pos )--rp( gridx0 ); |
| 56 |
for j=1 upto ny: |
| 57 |
facex := facex--rp( gridx[j] ); |
| 58 |
endfor; |
| 59 |
facex:=facex--rp((posx,higy,0))--cycle; |
| 60 |
unfill facex; |
| 61 |
draw facex; |
| 62 |
endfor; |
| 63 |
drawarrow rp(reforig)--rp(endpsip); |
| 64 |
drawarrow rp(reforig)--rp(endbeta); |
| 65 |
drawarrow rp(reforig)--rp(endfiel); |
| 66 |
label.ulft(btex $\mathcal{X}$ etex, rp(endbeta) ); |
| 67 |
label.llft(btex $\mathcal{Z}$ etex, rp(endpsip) ); |
| 68 |
label.llft(btex $\mathcal{H}$ etex, rp(endfiel) ); |
| 69 |
dotlabel("",rp(reforig+(0,0,Z(gridx[ny])))); |
| 70 |
dotlabel("",rp(reforig+(0,0,Z(gridx0)))); |
| 71 |
dotlabel("",rp(kben)); |
| 72 |
dotlabel.rt(btex $\mathcal{K}_1$ etex,rp(gridx[ny])); |
| 73 |
dotlabel.lrt(btex $\mathcal{K}_2$ etex,rp(gridx0)); |
| 74 |
dotlabel.lft(btex $\mathcal{K}_3$ etex,rp(akben)); |
| 75 |
endfig; |
| 76 |
|
| 77 |
verbatimtex |
| 78 |
\end{document} |
| 79 |
etex |
| 80 |
|
| 81 |
end; |