NACA Wing Sections
This generates joined wing sections. Each wing section is described at the root and tip.with the X,Y,Z,Chord and rotation in space. A NACA airfoil profile is then swept from root to tip with the NACA asym profile. I did it as a planform generator to build ribs and internal components. It may be a bit much for Openscad.
See Wikipedia NACA Airfoil 4 digi profile for the math. The binding of the sections is in the XY plane.
Someone else associated with Openscad generated the sweep.scad file. I would like to give credit but don't know who it was.