pyntcloud icon indicating copy to clipboard operation
pyntcloud copied to clipboard

PTS Header Incorrect

Open ryangoss opened this issue 4 years ago • 1 comments

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.

ryangoss avatar May 20 '21 15:05 ryangoss

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

daavoo avatar May 21 '21 10:05 daavoo