Function tessellate_route_into

Source
pub fn tessellate_route_into(
    curve: CubicBezier3,
    route: &mut Route3,
    scratch: &mut [Vec3],
    options: TessellationOptions,
) -> Result<Tessellation, RailError>
Expand description

Transactionally replace an open route only after a complete curve tessellation.

Scratch is disposable work space and may change on failure. The previous route is always retained on error, including its topology and capacity. Work above 8191 or scratch above 4096 points is rejected before tessellation. A plain RailPath3::Route trusts the supplied route’s authored provenance; use this adapter instead of installing an unchecked tessellation prefix. See the executable module recipe.