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, thetaStart, thetaEnd )
--------------------------------------------------------------------------

   ------
   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
   angleStart   (1,1) Start angle (default 0)
   angleEnd     (1,1) End angle (default 2*pi)

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

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

Children:

Common: Graphics/DrawVertices

Back to the Common Module page