TubeWithBends:

Path: Common/ComponentModels

% Generate a tube with bends

 If nB is zero it will not smooth the bends.

 Type TubeWithBends for a demo.
--------------------------------------------------------------------------
   Form:
   [v, f] = TubeWithBends( r, p, nB, nC )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r     (1,1) Radius of the tube
   p   	(3,:) Location of center points
   nB   	(1,1) Number of divisions at bends (should be odd)
   nC    (1,1) Number of circumferential divisions
   
   -------
   Outputs
   -------
   v     (:,3) Vertices
   f     (:,3) Faces

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

Children:

SC: BasicOrbit/RVFromKepler
Common: CommonData/SwooshWatermark
Common: ComponentModels/Box
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/DrawVertices
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/Plot3D
Common: Graphics/PltStyle
Common: Graphics/TimeLabl
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
Math: MathUtils/Odd

Back to the Common Module page