Skip to main content

write_text

Function write_text 

Source
pub fn write_text(cloud: &PointCloud, path: &Path) -> Result<(), IoError>
Expand description

Writes a cloud as one point a line.

The delimiter follows the extension — a space for .txt, a comma for .csv — because that is the only thing either extension actually promises anyone.

Coordinates are absolute and f64, formatted at the shortest decimal that reads back as the identical value. Writing the stored f32 offsets would be smaller and would lose a quarter of a metre at four million metres north, which is the mistake PCD made here once already and the whole reason the core stores an f64 origin.