| 1 |
% pathofstraightline.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2003 |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
SphericalDistortion := true; |
| 8 |
Spread := 100; |
| 9 |
f := 0.4*(1.5,0.5,1); |
| 10 |
|
| 11 |
beginfig(1); |
| 12 |
numeric gridstep, sidenumber, i, coord; |
| 13 |
color pa, pb, pc, pd; |
| 14 |
gridstep = 0.1; |
| 15 |
sidenumber = 10; |
| 16 |
coord = 0.5*sidenumber*gridstep; |
| 17 |
for i=0 upto sidenumber: |
| 18 |
pa := (-coord,-coord+i*gridstep,0); |
| 19 |
pb := (coord,-coord+i*gridstep,0); |
| 20 |
pc := (-coord+i*gridstep,-coord,0); |
| 21 |
pd := (-coord+i*gridstep,coord,0); |
| 22 |
draw pathofstraightline( pa, pb ); |
| 23 |
draw pathofstraightline( pc, pd ); |
| 24 |
endfor; |
| 25 |
endfig; |
| 26 |
|
| 27 |
end. |
| 28 |
|
| 29 |
|