Triangle:

Path: Common/ComponentModels

% Generate a solid triangle. 
 This function will compute the mass properties data structure if a mass is
 entered. Type Triangle for a demo.
--------------------------------------------------------------------------
   Form:
   [v, f, m] = Triangle( x, y, z, mass )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x           (1,1) x length
   y           (1,1) y length
   z           (1,1) z length
   mass        (1,1) mass
   

   -------
   Outputs
   -------
   v           (:,3) Vertices
   f           (:,3) Faces
   m           (.)   Mass data structure

--------------------------------------------------------------------------
  See also Volumes, Inertias, DrawVertices
--------------------------------------------------------------------------

Children:

Common: Graphics/DrawVertices
Common: MassProperties/Inertias
Common: MassProperties/Volumes

Back to the Common Module page