kzampog / cilantro

A lean C++ library for working with point cloud data
MIT License
1.02k stars 207 forks source link

Avoid unnecessary data copy in ply reader #3

Closed aecins closed 6 years ago

aecins commented 7 years ago

Current implementation of readPointCloudFromPLYFile first reads pointcloud data to local variables, and then copies this data to to a PointCloud data structure. A better implementation would avoid this unnecessary data copy and would write directly to the PointCloud.

kzampog commented 6 years ago

It seems there is no (straightforward) way of doing this without modifying tinyply itself :(