Function cwipc_pointcloud_copy_uncompressed
Defined in File api.h
Function Documentation
-
int cwipc_pointcloud_copy_uncompressed(cwipc_pointcloud *pc, struct cwipc_point *pointbuf, size_t size)
Get points from pointcloud in external representation format (C interface).
The caller is responsible for first calling get_uncompressed_size() and then allocating the data. This is to ensure that the memory is allocated in a way that is compatible with the caller (for example if the caller is implemented in another language like C# or Python and needs a special allocator).
- Parameters:
pc – The cwipc_pointcloud object.
pointbuf – A databuffer pointer.
size – The size of the databuffer (in bytes).
- Returns:
The number of points.