pub fn flatten3(
curve: &Curve3,
domain: Interval,
chord_tolerance: f64,
max_depth: u32,
) -> Result<Vec<DVec3>, GeomError>Expand description
Flatten a 3D curve to a polyline within chord_tolerance.
The 3D twin of flatten2, sharing its subdivision, its resource
bounds and its polyline contract. Sampling is adaptive: a curve is
bisected only where the chord actually departs from it, so a gentle
arc costs few points and a tight one costs many, and neither is
decided by a fixed count chosen in advance.