Skip to main content

cube_edge_parameters

Function cube_edge_parameters 

Source
pub fn cube_edge_parameters(divisions: usize) -> Vec<f64>
Expand description

The shared subdivision of EVERY cube edge, in the edge parameter q ∈ [-1, 1].

Uniform in ARC ANGLE rather than in q: a cube edge’s direction at q makes an angle atan(q/√2) with the edge’s midpoint, so equal angle steps give equal chord sag, which is what a chord tolerance actually asks for. The list is symmetric, strictly increasing, and pinned to ±1 at the ends (the two corners), and it is a pure function of divisions — which is why both charts meeting along the edge can compute it independently and still agree bit-for-bit.