Function plywrite3(filename,p,f)
plywrite3(filename,p,f,c)
writes a .ply-file in ascii format, given:
matrix p (the 3 columns represent x, y, z coordinates),
matrix f (each row represents a face defined by the points
given in p; values refer to the rows in p),
(optional) matrix c (each row corresponds to each
row in f; the 3 columns represent red, green, blue
values 0...255).
Values in matrix f may be zero or NaN to fit different
polygonals in one matrix. E.g. a triangle and a rectangle:
f = [1 2 3 0;
4 5 6 7];
Polygonals are closed automatically and the reference to the
end point (= begin point) is not repeated.
The front of a face is defined by listing the points of the
polygonal in counterclockwise ordre, seen from above the face.
Information from http://paulbourke.net/dataformats/ply/
(c) 2026 fabien van mook
2026.08.20 release of this file within package "fvm-geometry-ply" under GNU GPLv3+