MeshSOR:

Path: Common/Graphics

% Create a polygonal mesh from a surface of revolution. 
 The origin is always [0;0;0] and the surface is symmetric about z.
--------------------------------------------------------------------------
   Form:
   [s, n, a] = MeshSOR( fZOfR, nTheta, nR, rMax )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   fZOfR      (1,:)       String giving the function. For example 'r.^2' or 'cos(r)'
   nTheta     (1,1)       Number of divisions in theta
   nR         (1,1)       Number of divisions in r
   rMax                   Maximum radius

   -------
   Outputs
   -------
   s          (3,:)       Position vectors to the geometric center of each polygon
   n          (3,:)       Surface normals of each polygon
   a          (1,:)       Area of each polygon

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

Children:

Common: General/DeBlankLT
Common: Graphics/Axis3D
Common: Graphics/NewFig
Common: Graphics/PltStyle
Common: Graphics/Polygon
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Math: Linear/Cross
Math: Linear/DupVect
Math: Linear/Mag

Back to the Common Module page