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: CommonData/SwooshWatermark
Common: ComponentModels/Box
Common: ComponentModels/Frustrum
Common: General/DeBlankLT
Common: General/Watermark
Common: Graphics/DrawVertices
Common: Graphics/NewFig
Common: Graphics/PltStyle
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Quaternion/Q2Mat
Common: Quaternion/QTForm
Common: Quaternion/U2Q
Math: Geometry/Perpendicular
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/Unit

Back to the Common Module page