Path: AerospaceUtils/ComponentModels
% Generate vertices and faces for a wing. The wing span is in the z direction. You enter the leading and trailing edge locations as a function of z, which is the span direction. x is along the fuselage direcion. Type Wing for a demo. -------------------------------------------------------------------------- Form: [v, f] = Wing( xLE, xTE, z, lERatio, taper, tOC, angle ) -------------------------------------------------------------------------- ------ Inputs ------ xLE (1,:) Leading edge position xTE (1,:) Trailing edge position z (1,:) Spanwise position lERatio (1,1) Leading edge x to y ratio bigger gives more pointed edge taper (1,1) Ratio of root to tip tOC (1,1) Thickness to chord ratio angle (1,1) Rotates model about x by this angle ------- Outputs ------- v (:,3) Vertices f (:,3) Faces --------------------------------------------------------------------------
Common: ComponentModels/Extrude Common: Graphics/DrawVertices Math: Trigonometry/CosD
Back to the AerospaceUtils Module page