Strut:

Path: Common/ComponentModels

% Generate a variable radius strut going from x1 to x2. 
 If r2 is omitted, r2 = r1. If n is omitted n = 10.

 Type Strut for a demo.
--------------------------------------------------------------------------
   Form:
   [v, f, vol] = Strut( x1, x2, r1, r2, n )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x1         (3,1) Location of top
   x2         (3,1) Location of bottom
   r1         (1,1) Radius at top
   r2         (1,1) Radius at bottom, optional
   n          (1,1) Number of circumferential divisions (default is 10)

   -------
   Outputs
   -------
   v         (:,3)  Vertices
   f         (:,3)  Faces
   vol       (1,1)  Volume

--------------------------------------------------------------------------
  See also: Frustrum
--------------------------------------------------------------------------

Children:

Common: ComponentModels/Frustrum
Common: Graphics/DrawVertices
Common: Quaternion/Q2Mat
Common: Quaternion/U2Q
Math: Linear/Mag
Math: Linear/Unit

Back to the Common Module page