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

ply-compatible float64 types #323

Open Tofull opened 2 years ago

Tofull commented 2 years ago

Description

.ply files were not written with "double" coordinates even though the xyz coordinates columns were in float64 format. I was dealing with ply files in geospatial context and required to save a .ply file. I hit this issue, so here is the PR.

This seems to have been a pain for the community:

Proposed changes

References :

Tofull commented 2 years ago

Was wondering if the downcast propagation should be done on a copy of the points dataframe instead of the points dataframe itself. If true, we should add points = points.copy() at the beginning of pyntcloud.io.ply.write_ply function.