buffalo_wings.airfoil.cst_airfoil_to_spline_spec

buffalo_wings.airfoil.cst_airfoil_to_spline_spec(airfoil, *, include_source_spec=False)[source]

Export one canonical CST airfoil as an exact spline schema definition.

Parameters:
  • airfoil (Airfoil) – Airfoil to convert. This exact conversion path requires a canonical CstAirfoil.

  • include_source_spec (bool, default False) – Whether to embed a serializable snapshot of the source CST schema in the spline provenance metadata.

Returns:

Bezier-backed spline schema definition built from the exact canonical CST side curves.

Return type:

SplineAirfoilSpec

Raises:

TypeError – If airfoil is not a canonical CstAirfoil.