Skip to main content

chart_grid_parameters

Function chart_grid_parameters 

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

The interior grid of a chart square, in the chart coordinate s (or t).

A chart spans 90° each way and its coordinate is the TANGENT of the angle, so equal angle steps — the thing a chord tolerance actually constrains — are tan of a uniform division, not a uniform division. Interior points are free (no other chart reads them), so this list is independent of cube_edge_parameters; sizing both from the same angular step is what keeps the triangles the same size on either side of a chart boundary.