SailMesh:

--------------------------------------------------------------------------
   Create a mesh with the height determined by a specified function.
   This can be used to model a sail shape such as billow. The x and y vectors
   should decribe the circumference of the sail. The origin is added so the
   mesh resembles a refined pinwheel.

   The height function is of the form:   HMesh( x, y, d )
   where x and y can be arrays. d is a data structure containing any
   user-defined fields. A function 'DefaultH' is provided for testing.

   The built-in demo creates a circular sail and a quadrant.

   Since version 7.
--------------------------------------------------------------------------
   Form:
   [v, f] = SailMesh( x, y, hFunc, d, nRefine )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x        (1,m)    x locations of mesh
   y        (1,m)    y locations of mesh
   hFunc     (:)     Function for h positions (string or handle)
   d         (:)     Data structure to pass to z function
   nRefine  (1,1)    Number of times to refine mesh. Default is once.

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

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

Children:

Common: Graphics/NewFig