Torusoverflade.
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,-20] Color "white" Dynamic;
/*
Line xaxis = Start [-3,0,0] Dir [6,0,0] Vector Size 1 Color "gray";
Line yaxis = Start [0,-3,0] Dir [0,6,0] Vector Size 1 Color "gray";
Line zaxis = Start [0,0,-2] Dir [0,0,4] Vector Size 1 Color "gray";
Label xlabel = "x" At [3,0,0] Offset [10,0] Color "black";
Label ylabel = "y" At [0,3,0] Offset [10,0] Color "black";
Label zlabel = "z" At [0,0,2] Offset [10,0] Color "black";
*/
Variable R = 1.5;
Variable r = 0.7;
Net flade = Parameter [(R+r*cos(t))*cos(s),(R+r*cos(t))*sin(s),r*sin(t)] [0,2*pi,pi/36] [0,2*pi,pi/18] 3 3 Constant;
Net outline = Outline flade;
Scene scene = flade Color "black" "#d0d0d0", outline Color "black" "#c0c0c0";