| 1 |
% tshirtfig.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2004 |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
beginfig(1); |
| 8 |
f := (5,4,3); |
| 9 |
Spread := 70; |
| 10 |
pickup pencircle scaled 2.4pt; |
| 11 |
numeric gridstep, cylength, cyradius, numcylis; |
| 12 |
numeric i, j, curcoord, curangle, curnorma, tmp; |
| 13 |
numeric othcoord, othangle, zcoord, coef, othnorma; |
| 14 |
color base, lenvec; |
| 15 |
cylength := 0.2; |
| 16 |
cyradius := 0.3; |
| 17 |
gridstep := cyradius*2.2; |
| 18 |
numcylis := 7; |
| 19 |
coef := 0.22; |
| 20 |
for i=1 upto numcylis: % saddle |
| 21 |
curnorma := i-0.5*(numcylis+1); |
| 22 |
curcoord := curnorma*gridstep; |
| 23 |
curangle := -curcoord*2*coef; |
| 24 |
for j=1 upto numcylis: |
| 25 |
othnorma := j-0.5*(numcylis+1); |
| 26 |
othcoord := othnorma*gridstep; |
| 27 |
othangle := othcoord*2*coef; |
| 28 |
zcoord:=coef*(othcoord**2-curcoord**2); |
| 29 |
base := (curcoord,othcoord,zcoord); |
| 30 |
lenvec := cylength*N((-curangle,-othangle,1)); |
| 31 |
tmp := zcoord/2.4+0.8; |
| 32 |
if tmp > 1: show tmp; fi; |
| 33 |
background := tmp*TableC2; |
| 34 |
rigorousdisc( 0, true,base,cyradius,lenvec); |
| 35 |
endfor; |
| 36 |
endfor; |
| 37 |
endfig; |
| 38 |
|
| 39 |
end. |