[color=#999999][color=#999999][color=#999999]This activity belongs to the [i]GeoGebra book[/i] [url=https://www.geogebra.org/m/h3gbmymu]Linkages[/url].[/color][/color][/color][br][br]The move from planar to 3D linkages is simple. Here we see the 3D version of the chain of 5 points and 4 bars that we had already seen in its planar version. We can observe that it has been enough to replace in the scripts the circles in charge of adjusting the distances by spheres of radius unit.
The scripts used are detailed below.[br][br]When moving A:[br] SetValue(B, Intersect(Ray(A,B), Sphere(A,1)))[br] SetValue(C, Intersect(Ray(B,C), Sphere(B,1)))[br] SetValue(D, Intersect(Ray(C,D), Sphere(C,1)))[br] SetValue(E, Intersect(Ray(D,E), Sphere(D,1)))[br][br]When moving B:[br] SetValue(A, Intersect(Ray(B,A), Sphere(B,1)))[br] SetValue(C, Intersect(Ray(B,C), Sphere(B,1)))[br] SetValue(D, Intersect(Ray(C,D), Sphere(C,1)))[br] SetValue(E, Intersect(Ray(D,E), Sphere(D,1)))[br][br]When moving C:[br] SetValue(B, Intersect(Ray(C,B), Sphere(C,1)))[br] SetValue(D, Intersect(Ray(C,D), Sphere(C,1)))[br] SetValue(A, Intersect(Ray(B,A), Sphere(B,1)))[br] SetValue(E, Intersect(Ray(D,E), Sphere(D,1)))[br][br]When moving D:[br] SetValue(E, Intersect(Ray(D,E), Esfera(D,1)))[br] SetValue(C, Intersect(Ray(D,C), Esfera(D,1)))[br] SetValue(B, Intersect(Ray(C,B), Esfera(C,1)))[br] SetValue(A, Intersect(Ray(B,A), Esfera(B,1)))[br][br]When moving E:[br] SetValue(D, Intersect(Ray(E,D), Sphere(E,1)))[br] SetValue(C, Intersect(Ray(D,C), Sphere(D,1)))[br] SetValue(B, Intersect(Ray(C,B), Sphere(C,1)))[br] SetValue(A, Intersect(Ray(B,A), Sphere(B,1)))
[color=#999999]Author of the construction of GeoGebra: [color=#999999][url=https://www.geogebra.org/u/rafael]Rafael Losada[/url][/color][/color]