WRITEMESH_PLY Write a mesh into a file in PLY format.

   writeMesh_ply(FNAME, VERTICES, FACES)

   writeMesh_ply(FNAME, MESH)

   writeMesh_ply(..., FORMAT) also specifies a file format for the written
   file. FORMAT can be either 'binary' (default) or 'ascii'.

   Example
   mesh = createSoccerBall;
   fileName = 'SoccerBall.ply';
   writeMesh_ply(fileName, mesh, 'Bin');
   mesh2 = readMesh(fileName);
   drawMesh(mesh2); axis equal

   See also
   meshes3d, writeMesh, readMesh_ply, writeMesh_off, writeMesh_stl

Package: matgeom