pub fn write_xyz(cloud: &PointCloud) -> OgeomResult<String>Expand description
Write a cloud as XYZ text.
A header line naming the columns, then a row per point: x y z, the
normal, the colour as 0-to-255 integers, then each scalar, every number
in the shortest form that reads back as the same f64. Alpha is not
written; the format has no column for it. read_xyz reads the
header, so the file comes back as the cloud it was, colours rounded to
the nearest 255th.
ยงErrors
OgeomError::Dimension if an
attribute does not have one entry per point (see PointCloud::check),
and OgeomError::Domain for a scalar
name that is empty, holds a separator or a #, or is one the header
gives to a coordinate, normal or colour.