PartialDisk:

Path: Common/ComponentModels

% Generate vertices and faces for a full or partial disk
 The axis of rotation is z.
 Type PartialDisk for a demo showing a full disk and a quarter disk.
--------------------------------------------------------------------------
   Form:
   [v, f] = PartialDisk( r, t, n, angle )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r     (1,1) Radius
   t     (1,1) Thickness
   n     (1,1) Number of divisions, optional, default 20
   angle	(1,2) [start stop], default is 0 to 2*pi

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

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

Children:

Common: Graphics/DrawVertices

Back to the Common Module page