programextensions/scene/demos/cube.xtl
A wireframe cube turning in a native 3D window: its corners and edges are X_eTaL arrays; Rust draws them. Run: just demo scene cube (drag to turn it; q or close: quit)
c : Int
the 8 corners: every sign combination of -1 1 in x, y and z
c ← 8 3 r̲eshape -1 -1 -1 1 -1 -1 -1 1 -1 1 1 -1 -1 -1 1 1 -1 1 -1 1 1 1 1 1
e : Int
the 12 edges join corners that differ in one coordinate: pairs (from 1)
e ← 12 2 r̲eshape 1 2 3 4 5 6 7 8 1 3 2 4 5 7 6 8 1 5 2 6 3 7 4 8
Used in: x
k : Int
k ← w ˢᶜc̲amera! 0.6 0.45 5.0 0.8