Function flatten3

Source
pub fn flatten3(
    curve: &Curve3,
    domain: Interval,
    chord_tolerance: Scalar,
    max_depth: u32,
) -> GeomResult<Vec<Point3>>
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.