Debian Codegraph @

texmf-dist/doc/metapost/featpost/example/unperfectionremoved.mp

raw
1 % unperfectionremoved.mp
2 % L. Nobre G.
3 % 2003
4
5 input featpost3Dplus2D;
6
7 Spread := 70;
8 f := (13,4,3);
9
10 beginfig(1);
11 numeric i, len;
12 numeric fws, NumLines, linex, inray, outay, axray;
13 numeric wang;
14 path oneline;
15 color axe, aroc;
16 len := 0.6;
17 wang := 60;
18 axe := (0,cosd(90-wang),sind(90-wang));
19 fws := 4;
20 outay := 0.45*fws;
21 inray := 0.7*outay;
22 NumLines := 30;
23 for i=0 upto NumLines:
24 linex := fws*(i/NumLines-0.5);
25 oneline := rp((linex,0.5*fws,-0.5*fws))
26 --rp((linex,-0.5*fws,-0.5*fws))
27 --rp((linex,-0.5*fws,0.5*fws));
28 draw oneline withcolor (0.7*background);
29 endfor;
30 aroc := outay*(0,cosd(wang),sind(wang))-0.5*(0,fws,fws);
31 rigorousdisc( inray, true, aroc, outay, axe*len );
32 endfig;
33
34 end.