TubeBetweenPoints:

Path: AerospaceUtils/ComponentModels

% Generate 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

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

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

Children:

Common: ComponentModels/Frustrum
Common: Graphics/DrawVertices
Common: Quaternion/QForm
Common: Quaternion/U2Q
Math: Linear/DupVect
Math: Linear/Mag

Back to the AerospaceUtils Module page