Path: AerospaceUtils/ComponentModels
% Get vertices and faces for a fuselage CAD model.
The fuselage centerline is along x. Fuselages may be ellipsoidal in
crossection or be an inverted U. The latter is similar to the Space Shuttle or
Hermes.
Type Fuselage or Fuselage('shuttle') for a demo.
--------------------------------------------------------------------------
Form:
[v, f] = Fuselage( middle, front, back, type, n )
--------------------------------------------------------------------------
------
Inputs
------
middle (.) Data structure
.length (1,1) Length of middle
.radius (1,1) Radius (type o)
.width (1,1) Width (type u)
.height (1,1) Height (type u)
.roof (1,1) Roof height (type u)
front (.) Data structure
.a (1,1) x coefficient
.b (1,1) y coefficient
back (.) Data structure
.a (1,1) x coefficient
.b (1,1) y coefficient
type (1,1) 'u' or 'o'
n (1,1) Number of z divisions
-------
Outputs
-------
v (:,3) Vertices
f (:,3) Faces
--------------------------------------------------------------------------
Common: ComponentModels/Extrude Common: Graphics/DrawVertices
Back to the AerospaceUtils Module page