| 1 |
% cubicfacecentered.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2003 |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
% verbatimtex |
| 8 |
% \documentclass{article} |
| 9 |
% \usepackage{beton} |
| 10 |
% \usepackage{concmath} |
| 11 |
% \usepackage{ccfonts} |
| 12 |
% \begin{document} |
| 13 |
% etex |
| 14 |
|
| 15 |
beginfig(1); |
| 16 |
numeric tro; |
| 17 |
pen fina, media, grossa; |
| 18 |
color mygray; |
| 19 |
tro = 2; |
| 20 |
V1 := (tro,0,0); |
| 21 |
V2 := (0,tro,0); |
| 22 |
V3 := (-tro,0,0); |
| 23 |
V4 := (0,-tro,0); |
| 24 |
V5 := (1,1,1); |
| 25 |
V6 := (-1,1,1); |
| 26 |
V7 := (-1,-1,1); |
| 27 |
V8 := (1,-1,1); |
| 28 |
V9 := (1,1,-1); |
| 29 |
V10 := (-1,1,-1); |
| 30 |
V11 := (-1,-1,-1); |
| 31 |
V12 := (1,-1,-1); |
| 32 |
V13 := (0,0,tro); |
| 33 |
V14 := (0,0,-tro); |
| 34 |
V15 := (tro,0,tro); |
| 35 |
V16 := (0,tro,tro); |
| 36 |
V17 := (tro,tro,0); |
| 37 |
V18 := (tro,0,-tro); |
| 38 |
V19 := (tro,-tro,0); |
| 39 |
V20 := (0,-tro,tro); |
| 40 |
V21 := (-tro,0,tro); |
| 41 |
V22 := (-tro,tro,0); |
| 42 |
V23 := (0,tro,-tro); |
| 43 |
V24 := (-tro,0,-tro); |
| 44 |
V25 := (0,-tro,-tro); |
| 45 |
V26 := (-tro,-tro,0); |
| 46 |
V27 := (-2*tro,-tro,-tro); |
| 47 |
V28 := (-2*tro,-tro,tro); |
| 48 |
V29 := (-2*tro,tro,tro); |
| 49 |
V30 := (-2*tro,tro,-tro); |
| 50 |
makeface1(1,5,13,8); |
| 51 |
makeface2(2,6,13,5); |
| 52 |
makeface3(3,7,13,6); |
| 53 |
makeface4(4,8,13,7); |
| 54 |
makeface5(1,5,2,9); |
| 55 |
makeface6(2,6,3,10); |
| 56 |
makeface7(3,7,4,11); |
| 57 |
makeface8(4,8,1,12); |
| 58 |
makeface9(1,9,14,12); |
| 59 |
makeface10(2,10,14,9); |
| 60 |
makeface11(3,11,14,10); |
| 61 |
makeface12(4,12,14,11); |
| 62 |
|
| 63 |
makeface13(27,28,29,30); |
| 64 |
makeface14(20,21,16,29,28); |
| 65 |
makeface15(23,24,25,27,30); |
| 66 |
makeface16(16,22,23,30,29); |
| 67 |
makeface17(25,27,28,20,26); |
| 68 |
makeface18(21,22,24,26); |
| 69 |
makeface19(20,21,26); |
| 70 |
makeface20(16,21,22); |
| 71 |
makeface21(22,23,24); |
| 72 |
makeface22(24,25,26); |
| 73 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 74 |
% f := 2*(5,3,1.5); |
| 75 |
% f := 2*(5,3,4); |
| 76 |
f := 2.34*(15,2.4,5.05); |
| 77 |
Spread := 50; |
| 78 |
fina = pencircle scaled 1pt; |
| 79 |
media = pencircle scaled 1.2pt; |
| 80 |
grossa= pencircle scaled 3pt; |
| 81 |
mygray = 0.3background; |
| 82 |
% pickup fina; |
| 83 |
% draw rp(V25)--rp(V27)--rp(V28)--rp(V20)-- |
| 84 |
% rp(V25)--rp(V23)--rp(V30)--rp(V27); |
| 85 |
pickup media; |
| 86 |
draw rp(V24)--rp(V25)--rp(V19)--rp(V20)-- |
| 87 |
rp(V26)--rp(V25)--rp(V18)--rp(V23)-- |
| 88 |
rp(V24)--rp(V26)--rp(V21)--rp(V22)--cycle withcolor mygray; |
| 89 |
drawoptions( withpen grossa ); |
| 90 |
draw_invisible( false, false, TableC3, black ); |
| 91 |
fillfacewithlight( 14 ); |
| 92 |
fillfacewithlight( 16 ); |
| 93 |
drawoptions(); |
| 94 |
pickup media; |
| 95 |
draw rp(V15)--rp(V16)--rp(V22)--rp(V23)-- |
| 96 |
rp(V17)--rp(V16)--rp(V21)--rp(V20)-- |
| 97 |
rp(V15)--rp(V17)--rp(V18)--rp(V19)--cycle withcolor mygray; |
| 98 |
% pickup fina; |
| 99 |
% draw rp(V28)--rp(V29)--rp(V30); |
| 100 |
% draw rp(V20)--rp(V16)--rp(V23); |
| 101 |
% draw rp(V16)--rp(V29); |
| 102 |
|
| 103 |
endfig; |
| 104 |
|
| 105 |
% verbatimtex \end{document} etex |
| 106 |
|
| 107 |
end; |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|