MassPropertiesSolidObjFile:

Path: Common/MassProperties

--------------------------------------------------------------------------
   Computes a mass properties data structure from an obj file.

   This assumes that the solid is simple without holes.

   Type MassPropertiesSolidObjFile for sphere and box examples.

   Since version 2014.1
--------------------------------------------------------------------------
   Form:
   [m, vol] = MassPropertiesSolidObjFile( fileName, mass, scale )
--------------------------------------------------------------------------

   ------
   Inputs
   ------

   fileName	(1,:)   File name or data structure
   mass        (1,1)   Mass (default is 1)
   scale       (1,1)   Scale factor

   -------
   Outputs
   -------
   m           (1,1)	Mass data structure
                      .mass    (1,1) Mass
                      .cM      (3,1) Center-of-mass
                      .inertia (3,3) Inertia matrix
   vol         (1,1)   Volume

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

Children:

AeroUtils: CAD/LoadCAD
Common: General/DispWithTitle
Common: MassProperties/Inertias
Common: MassProperties/MassPropertiesTetrahedron
Common: Graphics/Box

Back to the Common Module page