Ring:

Path: Common/ComponentModels

%  Generate a ring with specified inner and outer wall, and length.
 The origin is at the bottom. Type Ring for a demo.
--------------------------------------------------------------------------
   Form:
   [v, f] = Ring( rO, rI, l, w, n )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   rO	(1,1) Outer radius
   rI	(1,1) Inner radius
   l   (1,1) Length of middle section
   w   (1,1) Front and back wedge length
   n   (1,1) Number of divisions
   

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

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

Children:

Common: Graphics/DrawVertices

Back to the Common Module page