| 1 |
% pathernon.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2004 |
| 4 |
|
| 5 |
input featpost3Dplus2D; |
| 6 |
|
| 7 |
beginfig(0); |
| 8 |
f := (4.8,3,3.65); |
| 9 |
viewcentr := black; |
| 10 |
Spread := 50; |
| 11 |
horiZon := 0; |
| 12 |
ShadowOn := false; |
| 13 |
LightSource := (1,-1,7); |
| 14 |
SphericalDistortion := true; |
| 15 |
OverRidePolyhedricColor := true; |
| 16 |
numeric side, coluheight, blocheight, roofheight, coluray, fact; |
| 17 |
numeric acroside, acronum, auxa, raya, rayb , poshemi, lena, lenb; |
| 18 |
color roofcenter, ba, bb, bc, bd, coluvec, colucen, auxb, auxc, auxd; |
| 19 |
side = 1; |
| 20 |
roofheight = 0.1; |
| 21 |
coluheight = 0.7; |
| 22 |
acroside = 4; |
| 23 |
acronum = 20; |
| 24 |
coluray = 0.06; |
| 25 |
blocheight = 0.1; |
| 26 |
poshemi = 0.25*side; |
| 27 |
raya = 0.08; |
| 28 |
rayb = 0.12; |
| 29 |
lena = 0.13; |
| 30 |
lenb = 0.26; |
| 31 |
fact = 1.3; |
| 32 |
auxa = 0.5*side-coluray; |
| 33 |
coluvec = blue*coluheight; |
| 34 |
colucen = 0.5*coluvec; |
| 35 |
auxc = (0,-poshemi,0); |
| 36 |
auxd = (0,-poshemi,raya+rayb); |
| 37 |
setthestage( acronum, acroside ); |
| 38 |
V1 := (0.5*side,-0.5*side,coluheight+blocheight); |
| 39 |
V2 := (0.5*side,0.5*side,coluheight+blocheight); |
| 40 |
V3 := (-0.5*side,0.5*side,coluheight+blocheight); |
| 41 |
V4 := (-0.5*side,-0.5*side,coluheight+blocheight); |
| 42 |
V5 := (0,-0.5*side,coluheight+roofheight+blocheight); |
| 43 |
V6 := (0,0.5*side,coluheight+roofheight+blocheight); |
| 44 |
makeface1(1,4,5); |
| 45 |
makeface2(1,2,6,5); |
| 46 |
makeface3(2,3,6); |
| 47 |
makeface4(3,4,5,6); |
| 48 |
ba = (auxa,-auxa,0); |
| 49 |
bb = (auxa,auxa,0); |
| 50 |
bc = (-auxa,auxa,0); |
| 51 |
bd = (-auxa,-auxa,0); |
| 52 |
roofcenter = (V1+V2+V3+V4+V5+V6)/6; |
| 53 |
auxb = roofcenter-blue*blocheight; |
| 54 |
V7 := (-0.5*side,-0.5*side,coluheight); |
| 55 |
getready( "draw_invisible( false, false, white, black )", roofcenter ); |
| 56 |
getready( "rigorousdisc( 0, true, ba, coluray, coluvec )", ba+colucen); |
| 57 |
getready( "rigorousdisc( 0, true, bb, coluray, coluvec )", bb+colucen); |
| 58 |
getready( "rigorousdisc( 0, true, bc, coluray, coluvec )", bc+colucen); |
| 59 |
getready( "rigorousdisc( 0, true, bd, coluray, coluvec )", bd+colucen); |
| 60 |
getready("kindofcube(false,true,V7,0,0,0,side,side,blocheight)",auxb); |
| 61 |
getready( "whatisthis(auxc,lenb*red,lena*green,raya,fact)", auxc ); |
| 62 |
getready( "spatialhalfsfear( auxd, blue, rayb )", auxd ); |
| 63 |
doitnow; |
| 64 |
produce_vga_border; |
| 65 |
endfig; |
| 66 |
|
| 67 |
end; |