MeshToPatch:

---------------------------------------------------------------------------
   Convert a mesh to a patch. If the arguments v and f are input
   it will add the new mesh to the existing patch. The mesh will
   be converted into triangles.
---------------------------------------------------------------------------
   Form:
   [v, f] = MeshToPatch( x, y, z )
---------------------------------------------------------------------------

   ------
   Inputs
   ------
   x            (:,:) X positions of mesh
   y            (:,:) Y positions of mesh
   z            (:,:) Z positions of mesh
   vIn          (n,3) Vertices
   fIn          (m,3) Faces

   -------
   Outputs
   -------
   v            (n,3) Vertices
   f            (m,3) Faces

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

Children:

Common: Graphics/NewFig