daavoo / pyntcloud

pyntcloud is a Python library for working with 3D point clouds.

Home Page:http://pyntcloud.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PTS Header Incorrect

ryangoss opened this issue · comments

points[["x", "y", "z"]].to_csv(filename, **kwargs)

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.

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