verbatimtex \def\ds{\displaystyle}\def\Over{\ds\over\ds} etex
prologues:=1;
input makra
input mkmakra
u=.6mm;
beginfig(1)
w:=40u;
h:=40u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/4;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
z1=(1s,0v);
z2=z1+s*right;
z3=z2 ZMove(zpart,uhel,1/2);
z4=z3+s*left;
z7=z2+2v*up;
z10=z3+2v*up;
z11=z1+2v*up;
z8=z7+s*right;
z9=z10+s*right;
z6=z7 ZMove(zpart,uhel,-1/2);
z5=z6+s*left;
for i:=5 upto 9:
z[i+7]=z[i]+v*up;
endfor;
z17=z4+3v*up;
x18=x1; y18=y5;
x19=x3; y19=y7;
pero(.5u);
draw z18--z1--z2--z3--z19;
draw z2--z7;
for i:=5 upto 9:
draw z[i+7]--z[i];
endfor;
for i:=5 upto 8:
draw z[i+1]--z[i];
draw z[i+8]--z[i+7];
endfor;
draw z12--z17--z16;
pero(.15u);
dashlineV(z1,z4,hust);
dashlineV(z3,z4,hust);
dashlineV(z17,z4,hust);
dashlineV(z11,z5,hust);
dashlineV(z11,z18,hust);
dashlineV(z11,z7,hust);
dashlineV(z10,z7,hust);
dashlineV(z10,z9,hust);
dashlineV(z10,z19,hust);
endfig;
beginfig(2)
w:=40u;
h:=40u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/4;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
z1=(1s,0v);
z2=z1+s*right;
z3=z2 ZMove(zpart,uhel,1/2);
z4=z3+s*left;
z7=z2+v*up;
z8=z7+s*left;
z6=z7 ZMove(zpart,uhel,-1/2);
z5=z6+s*left;
z10=z6+v*up;
z9=z10+s*left;
z11=z7+v*up;
z15=z8+v*up;
z14=z3+2v*up;
z12=z11+s*right;
z13=z14+s*right;
z16=z15+v*up;
z17=z12+v*up;
z18=z13+v*up;
z19=z4+3v*up;
x20=x3; y20=y11;
x21=x1; y21=y5;
pero(.5u);
draw z21--z1--z2--z3--z20;
draw z2--z11;
draw z7--z6--z5--z9--z10--z6;
draw z10--z11;
draw z9--z15--z12--z17--z16--z15;
draw z12--z13--z18--z19--z16;
draw z17--z18;
pero(.15u);
dashlineV(z1,z4,hust);
dashlineV(z3,z4,hust);
dashlineV(z19,z4,hust);
dashlineV(z8,z5,hust);
dashlineV(z21,z8,hust);
dashlineV(z8,z7,hust);
dashlineV(z14,z13,hust);
dashlineV(z14,z20,hust);
dashlineV(z11,z14,hust);
endfig;
beginfig(3)
w:=40u;
h:=50u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/5;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
z1=(0s,0v);
z2=z1+s*right;
z3=z2 ZMove(2zpart,uhel,1/2);
z4=z3+s*left;
z5=z1+v*up;
z6=z2+v*up;
z7=z6 ZMove(zpart,uhel,1/2);;
z8=z7+s*left;
z9=z7+v*up;
z12=z9 ZMove(zpart,uhel,1/2);
z10=z9+s*right;
z11=z12+s*right;
z14=z10+v*up;
z15=z11+v*up;
z13=z8+2v*up;
z16=z4+3v*up;
x17=x3; y17=y9;
pero(.5u);
draw z2--z6--z5--z1--z2--z3--z17;
draw z6--z7--z8--z5;
draw z8--z13--z14--z10--z9--z7;
draw z10--z11--z15--z16--z13;
draw z13--z16;
draw z14--z15;
pero(.15u);
dashlineV(z1,z4,hust);
dashlineV(z3,z4,hust);
dashlineV(z16,z4,hust);
dashlineV(z12,z9,hust);
dashlineV(z12,z17,hust);
dashlineV(z12,z11,hust);
endfig;
beginfig(4)
w:=40u;
h:=50u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/5;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
z1=(0s,0v);
z2-z1=z8-z5=z9-z12=z3-z4=3s*right;
z6-z5=z11-z12=z7-z6=z10-z11=z14-z13=z15-z16=z18-z19=z11-z12=s*right;
z5-z1=z13-z6=z16-z19=z12-z4=v*up;
z12=z5 ZMove(zpart,uhel,1/2);
z16=z13 ZMove(2zpart,uhel,1/2);
x17=x6; y17=y12;
pero(.5u);
draw z1--z2--z8--z7--z14--z13--z6--z5--cycle;
draw z17--z12--z5;
draw z2--z3--z9--z8;
draw z9--z10;
draw z7--z18--z15--z14;
draw z15--z16--z13;
pero(.15u);
dashlineV(z1,z4,hust);
dashlineV(z3,z4,hust);
dashlineV(z12,z4,hust);
dashlineV(z6,z11,hust);
dashlineV(z11,z17,hust);
dashlineV(z19,z11,hust);
dashlineV(z19,z16,hust);
dashlineV(z19,z18,hust);
endfig;
beginfig(5)
w:=40u;
h:=30u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/3;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
for i:=0 upto 3:
for j:=0 upto 2:
for k:=0 upto 2:
z[i+10j+100k]=(i*s,j*v) ZMove(k*zpart,uhel,1/2);
endfor;
endfor;
endfor;
x1000=x11; y1000=y110;
x1001=x102; y1001=y12;
x1002=x222; y1002=y122;
pero(.5u);
draw z1000--z110--z10--z0--z2--z12--z13--z23--z21--z11--z10;
draw z23--z123--z122--z222--z221--z21;
draw z222--z1002;
draw z2--z102--z1001;
draw z13--z113--z123;
pero(.15u);
dashlineV(z0,z100,hust);
dashlineV(z110,z100,hust);
dashlineV(z102,z100,hust);
dashlineV(z1000,z111,hust);
dashlineV(z11,z111,hust);
dashlineV(z211,z111,hust);
dashlineV(z111,z112,hust);
dashlineV(z12,z112,hust);
dashlineV(z212,z112,hust);
dashlineV(z113,z112,hust);
dashlineV(z122,z112,hust);
dashlineV(z1001,z112,hust);
dashlineV(z1002,z212,hust);
dashlineV(z211,z212,hust);
dashlineV(z211,z221,hust);
endfig;
beginfig(6)
w:=40u;
h:=30u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/3;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
for i:=0 upto 2:
for j:=0 upto 2:
for k:=0 upto 2:
z[i+10j+100k]=(i*s,j*v) ZMove(k*zpart,uhel,1/2);
endfor;
endfor;
endfor;
pero(.5u);
draw z111--z11--z10--z0--z1--z11;
draw z1--z101--z111--z110--z10;
draw z101--z102--z122--z120--z110;
draw z102--z202--z222--z122;
draw z222--z220--z120;
pero(.15u);
dashlineV(z0,z200,hust);
dashlineV(z220,z200,hust);
dashlineV(z202,z200,hust);
endfig;
beginfig(7)
w:=40u;
h:=30u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/3;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
for i:=0 upto 3:
for j:=0 upto 2:
for k:=0 upto 2:
z[i+10j+100k]=(i*s,j*v) ZMove(k*zpart,uhel,1/2);
endfor;
endfor;
endfor;
x1000=x111; y1000=y211;
x1001=x1; y1001=y100;
pero(.5u);
draw z112--z12--z11--z1--z2--z12;
draw z2--z102--z112--z111--z11;
draw z213--z113--z112--z102--z103--z113;
draw z103--z203--z213--z212--z112;
draw z222--z122--z121--z111--z112--z122;
draw z112--z212--z222--z221--z121;
draw z1000--z210--z110--z111;
draw z1001--z100--z110;
pero(.15u);
dashlineV(z1001,z101,hust);
dashlineV(z1,z101,hust);
dashlineV(z111,z101,hust);
dashlineV(z1000,z211,hust);
dashlineV(z111,z211,hust);
dashlineV(z221,z211,hust);
dashlineV(z100,z200,hust);
dashlineV(z210,z200,hust);
dashlineV(z203,z200,hust);
endfig;
beginfig(8)
w:=40u;
h:=30u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/3;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
for i:=0 upto 3:
for j:=0 upto 2:
for k:=0 upto 2:
z[i+10j+100k]=(i*s,j*v) ZMove(k*zpart,uhel,1/2);
endfor;
endfor;
endfor;
pero(.5u);
draw z10--z0--z3--z13--z10--z110--z113--z13;
draw z3--z203--z223--z123--z113;
draw z223--z222--z122--z123;
draw z112--z122;
pero(.15u);
dashlineV(z0,z100,hust);
dashlineV(z110,z100,hust);
dashlineV(z102,z100,hust);
dashlineV(z102,z112,hust);
dashlineV(z102,z202,hust);
dashlineV(z203,z202,hust);
dashlineV(z222,z202,hust);
endfig;
beginfig(10)
w:=40u;
h:=30u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/3;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
z1=(0s,0v); z2=(1s,0v); z3=(1s,1v); z4=(2s,1v); z5=(2s,2v); z6=(0s,2v);
z7=z1 ZMove(zpart,uhel,1/2);
z8=z2 ZMove(zpart,uhel,1/2);
z9=z3 ZMove(zpart,uhel,1/2);
z10=z4 ZMove(zpart,uhel,1/2);
z11=z5 ZMove(zpart,uhel,1/2);
z12=(1s,2v) ZMove(zpart,uhel,1/2);
z13=z12 ZMove(zpart,uhel,1/2);
z14=z6 ZMove(zpart,uhel,1);
z15=z9 ZMove(zpart,uhel,1/2);
z17=(0s,1v) ZMove(zpart,uhel,1/2);
z16=z17 ZMove(zpart,uhel,1/2);
pero(.5u);
draw z1--z2--z3--z4--z5--z6--cycle;
draw z4--z10--z11--z12--z13--z14--z6;
draw z5--z11;
draw z2--z8;
draw z8--(x9,y3);
draw z13--(x13,y12);
pero(.15u);
dashlineV(z1,z7,hust);
dashlineV(z7,z8,hust);
dashlineV(z7,z17,hust);
dashlineV(z17,z10,hust);
dashlineV(z17,z16,hust);
dashlineV(z16,z15,hust);
dashlineV(z3,z15,hust);
dashlineV(z14,z16,hust);
dashlineV(z12,z8,hust);
dashlineV(z13,z15,hust);
endfig;
beginfig(11)
w:=40u;
h:=30u;
numeric s,v,uhel,zpart,hust;
s:=w/4;
v:=h/3;
uhel:=45;
zpart:=s*cosd(uhel)++v*sind(uhel);
hust:=0.1;
z1=(0s,0v); z2=(2s,0v); z3=(0s,1v); z4=(2s,1v);
z5=z1 ZMove(zpart,uhel,1/2);
z7=z3 ZMove(zpart,uhel,1/2);
z8=z4 ZMove(zpart,uhel,1/2);
z6=(1s,0v) ZMove(zpart,uhel,1/2);
z10=z8+(0s,1v); z9=z10+(-1s,0v);
z11=z9 ZMove(zpart,uhel,1/2);
z12=z10 ZMove(zpart,uhel,1/2);
z14=z6 ZMove(zpart,uhel,1/2);
z13=(x12,y14);
pero(.5u);
draw z1--z2--z4--z3--cycle;
draw z3--z7--z8--z4;
draw (x6,y7)--z9--z10--z8;
draw z9--z11--z12--z10;
draw z2--z13--z12;
pero(.15u);
dashlineV(z1,z5,hust);
dashlineV(z7,z5,hust);
dashlineV(z5,z6,hust);
dashlineV(z6,z9,hust);
dashlineV(z14,z6,hust);
dashlineV(z14,z11,hust);
dashlineV(z13,z14,hust);
endfig;
end;
|
|