Knude-torus.
Dette er den simpleste knude, trekløver-knuden.
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 [45,-60,-30] 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.2;
Variable b = 0.5;
Variable h = 0.5;
Net torus = Parameter [(R+b*cos(3/2*s)+r*cos(t))*cos(s),(R+b*cos(3/2*s)+r*cos(t))*sin(s),r*sin(t)+h*sin(3/2*s)]
[0,4*pi,pi/48] [0,2*pi,pi/6] 4 1 Constant;
Net outline = Outline torus;
Net knot = Union torus outline;
Scene scene = knot Color "black" "rgba(1,1,1,0)";