Dodekaeder.
Figuren viser et regulært dodekaeder. Det har 12 flader, 30 kanter og 20 hjørner.
Du kan dreje figuren ved at trække med musen. Hvis du holder musen nede, skifter markøren, og du kan trække figuren. Du kan zoome med musehjulet (eller ved at pinche).
Figure3D figure = Position [0,0] Size [x,y] Origin [x/2,y/2] Unit x/6 Angles [30,-40,0] Color "white" Dynamic;
Variable sintop = 2/sqrt(5);
Variable gr36 = pi/5;
Variable r1 = 1;
Variable r2 = r1*(sqrt(5)+1)/2;
Variable edge = r1*2*sin(gr36);
Variable h2 = edge*sin(gr36)/2*sintop;
Variable h1 = h2 + edge*cos(gr36/2)*sintop;
Variable dir0 = [cos(0*gr36),sin(0*gr36),0];
Variable dir1 = [cos(2*gr36),sin(2*gr36),0];
Variable dir2 = [cos(4*gr36),sin(4*gr36),0];
Variable dir3 = [cos(6*gr36),sin(6*gr36),0];
Variable dir4 = [cos(8*gr36),sin(8*gr36),0];
Net dodeka =
Points
r1*dir0+[0,0,h1], r1*dir1+[0,0,h1], r1*dir2+[0,0,h1], r1*dir3+[0,0,h1], r1*dir4+[0,0,h1],
r2*dir0+[0,0,h2], r2*dir1+[0,0,h2], r2*dir2+[0,0,h2], r2*dir3+[0,0,h2], r2*dir4+[0,0,h2],
-r2*dir0+[0,0,-h2], -r2*dir1+[0,0,-h2], -r2*dir2+[0,0,-h2], -r2*dir3+[0,0,-h2], -r2*dir4+[0,0,-h2],
-r1*dir0+[0,0,-h1], -r1*dir1+[0,0,-h1], -r1*dir2+[0,0,-h1], -r1*dir3+[0,0,-h1], -r1*dir4+[0,0,-h1]
Lines
[0,1], [1,2], [2,3], [3,4], [4,0],
[0,5], [1,6], [2,7], [3,8], [4,9],
[5,13], [13,6], [6,14], [14,7], [7,10],
[10,8], [8,11], [11,9], [9,12], [12,5],
[10,15], [11,16], [12,17], [13,18], [14,19],
[15,16], [16,17], [17,18], [18,19], [19,15]
Faces
[0,1,2,3,4], [0,5,13,6,1], [1,6,14,7,2], [2,7,10,8,3], [3,8,11,9,4], [4,9,12,5,0],
[15,10,8,11,16], [16,11,9,12,17], [17,12,5,13,18], [18,13,6,14,19], [19,14,7,10,15], [15,16,17,18,19]
Constant;
Scene scene = dodeka Color "black" "#c0c0c0";