daavoo / pyntcloud

pyntcloud is a Python library for working with 3D point clouds.
http://pyntcloud.readthedocs.io
MIT License
1.42k stars 224 forks source link

PTS Header Incorrect #305

Open ryangoss opened 3 years ago

ryangoss commented 3 years ago

https://github.com/daavoo/pyntcloud/blob/eade21fb4840788337cafe375768b44f454f22bc/pyntcloud/io/ascii.py#L42

write_ascii is used for asc, csv, pts, txt, xyz and I think it is correct for all of them except pts. See http://paulbourke.net/dataformats/pts/. When I attempt to open the <file>.pts in another viewer I get Read PTS failed: unable to read header. and I believe that is because it is expecting the number of points (e.g. INT) and not x, y, z so it fails to load.

daavoo commented 3 years ago

Hola @ryangoss . Thanks for the explanation. It looks like some minor changes would need to be added to write_ascii in order to properly support the .pts format