Torus:

Path: Common/ComponentModels

% Draws a torus

 Draws a torus
--------------------------------------------------------------------------
   Form:
   [v, f] = Torus( c, r, n, c2, nuX )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   c   (1,1) Major radius
   r   (1,1) Minor radius
   n   (1,1) Number of divisions
   c2  (1,1) Radius for the cut
   nuX (1,1) Angular range of the minor angle 

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

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

Children:

Common: Graphics/DrawVertices

Back to the Common Module page