TubeArc:

Path: Common/ComponentModels

% Generate a portion of a tube with an inner and outer wall.
 The top and bottom radii may be different. The origin is at the bottom. This
 function will not work correctly for a full tube. Use Tube for that purpose.

 Type TubeArc for a demo.
--------------------------------------------------------------------------
   Form:
   [v, f] = TubeArc( rO, rI, l, n )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   rO	(1,2) Outer radius [top, bottom]
   rI	(1,2) Inner radius [top, bottom]
   l   (1,1) Length
   arc (1,2) Arc [beginning end] (rad)
   n   (1,1) Number of divisions
   

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

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

Children:

Common: Graphics/DrawVertices

Back to the Common Module page