Function lvr2::writePointsAndNormals

Function Documentation

void lvr2::writePointsAndNormals(std::vector<float> &p, std::vector<float> &n, std::string outfile)

Writes the points and normals (float triples) stored in p and n to the given output file. Attention: The data is converted to a PointBuffer structure to be able to use the IO library, which results in a considerable memory overhead.

Parameters:
  • p – A vector containing point definitions.

  • n – A vector containing normal information.

  • outfile – The target file.