Function cwipc_sink_feed

Function Documentation

bool cwipc_sink_feed(cwipc_sink *sink, cwipc_pointcloud *pc, bool clear)

Feed a pointcloud to the sink (C interface).

A display sink will likely show the pointcloud in a window and give the user some interaction commands to inspect it.

Note that if the sink needs to keep the pointcloud data it will make a copy, so after feed() returns the caller can safely call pc.free().

Parameters:
  • sink – The cwipc_sink object.

  • pc – The pointcloud

  • clear – If true a display window will clear any previous pointclouds

Returns:

True if the operation was successful.