Sweep:

Path: Common/Graphics

% Sweep a 2D outline around the z-axis to obtain vertices and faces.
 Creates a hollow shell with endcaps. Type Sweep for a demo.
--------------------------------------------------------------------------
   Form:
   [v,f] = Sweep(r,arc,n,vXZ)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r        (1,1) Offset
   arc      (1,2) Beginning and end arc angles
   n        (1,1) Number of points along the arc
   vXZ      (3,:) The vertices of the figure to be swept

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

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

Children:

Common: Graphics/DrawVertices

Back to the Common Module page