Function lvr2::writePointsToStream

Function Documentation

size_t lvr2::writePointsToStream(ModelPtr model, std::ofstream &out, bool nocolor = false)

Writes the points stored in the given model to the fiven output stream. This function is used to apend point cloud data to an already existing ASCII file..

Parameters:
  • model – A model containing point cloud data

  • out – A output stream

  • nocolor – If set to true, the color information in the model is ignored.

Returns:

The number of points written to the output stream.