Ikosaeder.
Figuren viser et regulært ikosaeder. Det kan 20 flader, 30 kanter og 12 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 gr36 = pi/5;
Variable side = 1.8;
Variable r1 = side/sin(gr36)/2;
Variable h2 = side*sqrt(1-1/4/cos(gr36/2)^2)/2;
Variable h1 = side*sqrt(3)/2*sin(acos((1+sin(gr36/2))/sqrt(3)/cos(gr36/2))) + h2;
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 ikosa =
Points
[0,0,h1],
r1*dir0+[0,0,h2], r1*dir1+[0,0,h2], r1*dir2+[0,0,h2], r1*dir3+[0,0,h2], r1*dir4+[0,0,h2],
-r1*dir0+[0,0,-h2], -r1*dir1+[0,0,-h2], -r1*dir2+[0,0,-h2], -r1*dir3+[0,0,-h2], -r1*dir4+[0,0,-h2],
[0,0,-h1]
Lines
[0,1], [0,2], [0,3], [0,4], [0,5],
[1,2], [2,3], [3,4], [4,5], [5,1],
[1,9], [9,2], [2,10], [10,3], [3,6], [6,4], [4,7], [7,5], [5,8], [8,1],
[6,7], [7,8], [8,9], [9,10], [10,6],
[6,11], [7,11], [8,11], [9,11], [10,11]
Faces
[0,1,2], [0,2,3], [0,3,4], [0,4,5], [0,5,1],
[1,9,2], [2,10,3], [3,6,4], [4,7,5], [5,8,1],
[6,7,4], [7,5,8], [8,1,9], [9,2,10], [10,3,6],
[11,6,7], [11,7,8], [11,8,9], [11,9,10], [11,10,6];
Scene scene = ikosa Color "black" "#c0c0c0";