| 1 |
% bughunt.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2003 |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
%SphericalDistortion := true; |
| 8 |
%f := 0.3*(5,4,2); |
| 9 |
%Spread := 40; |
| 10 |
%ShiftV := (200,200); |
| 11 |
|
| 12 |
SphericalDistortion := false; |
| 13 |
f := 3.3*(5,4,2); |
| 14 |
Spread := 70; |
| 15 |
ShiftV := (250,250); |
| 16 |
|
| 17 |
beginfig(1); |
| 18 |
color nalfa, gammacnt, vertex; |
| 19 |
numeric altura, grids, radius, aux, i, numc, slope; |
| 20 |
|
| 21 |
altura = 1; |
| 22 |
radius = 0.3; |
| 23 |
grids = 1; |
| 24 |
numc = 8; |
| 25 |
slope = 15; |
| 26 |
|
| 27 |
for i=1 upto numc: |
| 28 |
aux := (i-1-0.5*(numc-1))*grids; |
| 29 |
gammacnt := (0,aux,0); |
| 30 |
vertex := gammacnt+0.1*(f-gammacnt)+(0,0,aux/slope); |
| 31 |
nalfa := vertex - gammacnt; |
| 32 |
rigorousdisc( 0, true, gammacnt, radius, nalfa ); |
| 33 |
endfor; |
| 34 |
endfig; |
| 35 |
|
| 36 |
beginfig(2); |
| 37 |
path cpath; |
| 38 |
color vert; |
| 39 |
numeric i; |
| 40 |
f := (4,0,0.5); |
| 41 |
vert = 0.5*(0,1,1); |
| 42 |
cpath = rigorouscone(true, black, blue, 1, vert); |
| 43 |
% draw rp(vert); |
| 44 |
draw cpath; show length cpath; |
| 45 |
for i=0 upto length cpath: |
| 46 |
dotlabel.top( decimal(i),point i of cpath); |
| 47 |
endfor; |
| 48 |
% cpath := rigorouscircle( black, blue, 1); |
| 49 |
% draw cpath; |
| 50 |
% for i=0 upto length cpath: |
| 51 |
% dotlabel.bot( decimal(i),point i of cpath); |
| 52 |
% endfor; |
| 53 |
endfig; |
| 54 |
|
| 55 |
end; |
| 56 |
|
| 57 |
|