pub struct BendStation {
pub station: usize,
pub point: Vec3,
pub curvature: f64,
pub radius: f64,
pub reach: f64,
pub ratio: f64,
}Expand description
One station’s tight-bend reading: what the path does there and how far the section reaches into it.
The quantity that decides the sweep is BendStation::ratio — reach·κ,
the same ρκ the fillet’s canal surface folds at. A section point offset d
towards the centre of the osculating circle advances (1 − d·κ) per unit of
path, so at d·κ = 1 it stops and past it it goes BACKWARDS: the swept
envelope has turned back through itself and the solid is the envelope trimmed
at that self-intersection, not the loft through the crossing sections.
Fields§
§station: usizeThe station’s index in the sweep’s own station list.
point: Vec3Where it is on the path.
curvature: f64The path’s curvature κ there (zero on a straight piece).
radius: f64The path’s radius of curvature ρ = 1/κ, f64::INFINITY where straight.
reach: f64How far the placed section reaches towards the centre of the bend — its support in the curvature-normal direction. Negative when the whole section sits on the OUTSIDE of the bend, zero where the path is straight.
ratio: f64reach·κ. < 1 builds; ≥ 1 folds.