InertiaFromOBJFile:

Path: Common/MassProperties

% Computes an inertia matrix from an obj file or data structure.

 The data structure is g.component(k).v.

 Assigns a mass proportional to the patch area and the centroid.

 Type InertiaFromOBJFile for a demo of an X-15.

--------------------------------------------------------------------------
   Form:
   inr = InertiaFromOBJFile( fileName, mass, scale, c )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   fileName	(1,:) File name or data structure
   mass    	(1,1) Dry mass (kg)
   scale    	(1,1) Optional scale factor
   c       	(3,1) Optional center of mass  (m)

   -------
   Outputs
   -------
   inr     	(3,3) Inertia matrix (kg-m^2)
   c        	(3,1) Center of mass (m)
   area     	(1,1) Surface area (m^2)

--------------------------------------------------------------------------

Children:

AerospaceUtils: CAD/LoadCAD
Common: General/DispWithTitle
Common: Graphics/PolygonProps
Math: Linear/SkewSq

Back to the Common Module page