summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/featpost/example/standard/cubicfigures.mp
blob: 93aebeb28a037f279df1b4caef64bc0fc3c6d2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% cubicfigures.mp
% L. Nobre G. 
% 2003

%input featpost3Dplus2D;

f := ( 1.2 , 2.0 , 1.6 );
Spread := 75;

V1 := (1,1,1);
V2 := (-1,1,1);
V3 := (-1,-1,1);
V4 := (1,-1,1);
V5 := (1,1,-1);
V6 := (-1,1,-1);
V7 := (-1,-1,-1);
V8 := (1,-1,-1);
makeface1(1,2,3,4);makeface2(5,6,7,8);
makeface3(1,2,6,5);makeface4(2,3,7,6);
makeface5(3,4,8,7);makeface6(4,1,5,8);
makeline1(1,7);makeline2(2,8);
makeline3(3,5);makeline4(4,6);

beginfig(1);
    ParallelProj := true;
    SphericalDistortion := false;
    pickup pencircle scaled 1pt;
    draw_all_test(true);
endfig;

beginfig(2);
    ParallelProj := false;
    SphericalDistortion := false;
    draw_all_test(true);
endfig;

beginfig(3);
    ParallelProj := false;
    SphericalDistortion := true;
    PrintStep := 5;
    draw_all_test(true);
endfig;

end;