TubeBetweenPoints:

Path: AerospaceUtils/ComponentModels

% Generate CAD vertices and faces for a tube going from x1 to x2
 Type TubeBetweenPoints for a demo.
--------------------------------------------------------------------------
   Form:
   [v, f] = TubeBetweenPoints( x1, x2, r, n )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x1      (3,1) Point 1
   x2      (3,1) Point 2
   r       (1,1) Radius (m)
   n       (1,1) Number of divisions, optional, default 20

   -------
   Outputs
   -------
   v       (:,3) Vertices
   f       (:,3) Faces

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

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/QForm
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 AerospaceUtils Module page