pub fn write_ply_binary(
vertices: &PointCloud,
triangles: &[[u32; 3]],
) -> OgeomResult<Vec<u8>>Expand description
Write a cloud, or a mesh over it, as binary little-endian PLY.
Positions as double, so they come back as the same f64; normals as
float; colours as uchar channels, alpha only where some point is
not opaque; each scalar as a double property of its name. With
triangles, a face element of uchar-counted int index lists follows;
without, the file is a point cloud. read_ply_bytes reads it back.
ยงErrors
OgeomError::Dimension if an
attribute does not have one entry per point (see PointCloud::check);
OgeomError::Range for a triangle
naming a vertex that is not there, or past the int range;
OgeomError::Domain for a scalar name
that is empty, holds white space, or is one the writer gives the
position, normal or colour.