Frustrum:

Path: Common/ComponentModels

% Generate a frustrum of a cone.
 Type Frustrum for a demo.
--------------------------------------------------------------------------
   Form:
   [v, f] = Frustrum( rL, r0, l, n, topOpen, bottomOpen )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   rL           (1,1) Top radius    (z = l)
   r0           (1,1) Bottom radius (z = 0)
   l            (1,1) Length
   n            (1,1) Number of divisions
   topOpen      (1,1) 1 if top is open
   bottomOpen   (1,1) 1 if bottom is open
   

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

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

Children:

Common: Graphics/DrawVertices

Back to the Common Module page