Writes a PLY file to a stream
var writePLY =
Writes a JSON representation of a PLY file to disk.
datais a JSON encoded PLY file. It must have two fields:
vertexan object containing the properties of the vertices
facean object containing the properties of the faces
commentsan optional array of comments to add to the header
optionsis an optional object containg separate flags. In addition to the usual options you can set on a Readable stream, you can also set the flag
binarywhich tells whether to use a binary format or ascii.
Returns A readable stream that you can pipe to wherever you want encoding the contents of the PLY file
(c) 2013 Mikola Lysenko. MIT License