Free articulated cube

[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]In this construction you can manipulate the articulated cube with no more restriction than that imposed by the relative distances of its 8 vertices, that is, by the 1 unit length of its 12 bars. The colors of the vertices and the triangles simply serve to favor the visualization of the state of the cube at each moment, since all the vertices behave in the same way.[br][br]At any time you can change the position of any vertex (for example, B) by its isomer (B'), using the corresponding box in the left panel.[br][br]The construction uses two levels of scripts. The first script is executed when moving a vertex. Suppose, for example, that we move point A. When we do so, the script [i][b]guionA [/b][/i]will be executed, which assigns the positions of the vertices to the points V1, ..., V8, following an order:[br][list][*]Point V1 takes the position of A.[/*][*]Points V2, V3 and V4 take the position of the vertices next to A: O, B and D.[/*][*]Points V5, V6 and V7 take the position of the vertices contiguous to the previous ones: U, E, J.[/*][*]Finally, point V8 takes the position of F.[br][/*][/list]Then the script [i]guionA [/i](or [i]guionB[/i], [i]guionD[/i]... depending on the vertex being moved) calls the script [i][b]guion [/b][/i]to execute. This script uses the values of V1, ..., V8 to recalculate the new positions. Once recalculated, [i]guionA [/i]reassigns such positions to the corresponding vertices: A takes the recalculated value of V1, O takes that of V2, etc. In this way, the script [i]guion [/i]is common to any vertex that moves.[br][br]To calculate the new positions of the vertices V1, ..., V8, the motion transmission method [url=https://www.geogebra.org/m/h3gbmymu#material/kfbevjy5]already described[/url] in previous activities is used: the new position of V1 is transmitted to V2, V3 and V4, which in turn transmit their new values to V5, V6 and V7. This second transmission is done by [b]guaranteeing that the circumradius of the triangle that has these points as vertices is not greater than unity[/b], so that a position for V8 is possible. Finally, this position V8 is determined.[br][br]Special cases in which the coordinates of two or more vertices coincide are also taken into account in the transmission process. After the construction you can see the [i]guionA [/i](other vertices have an analogous script) and the details of the script [i]guion[/i].
guionA
guion
[color=#999999]Author of the construction of GeoGebra: [color=#999999][url=https://www.geogebra.org/u/rafael]Rafael Losada[/url][/color][/color]

Information: Free articulated cube