Debian Codegraph @

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

raw
1 % rigorcubo.mp
2 % L. Nobre G.
3 % 2003
4
5 input featpost3Dplus2D;
6
7 beginfig(0);
8 defaultscale := 3;
9 defaultfont := "ccr10";
10 Spread := 50;
11 V1 := (1,1,1);
12 V2 := (-1,1,1);
13 V3 := (-1,-1,1);
14 V4 := (1,-1,1);
15 V5 := (1,1,-1);
16 V6 := (-1,1,-1);
17 V7 := (-1,-1,-1);
18 V8 := (1,-1,-1);
19 makeface1(1,2,3,4);
20 makeface2(5,6,7,8);
21 makeface3(1,2,6,5);
22 makeface4(2,3,7,6);
23 makeface5(3,4,8,7);
24 makeface6(4,1,5,8);
25 f := (3,5,3);
26 pickup pencircle scaled 1pt;
27 sharpraytrace;
28 label.lft("A", rp(V8) );
29 label.top("B", rp(V1) );
30 label.top("C", rp(V3) );
31 label.lft("D", rp(V4) );
32 label.rt("E", rp(V2) );
33 label.rt("F", rp(V6) );
34 endfig;
35
36 end;