Template Function lvr2::calcColorForFaceCentroid

Function Documentation

template<typename BaseVecT>
RGB8Color lvr2::calcColorForFaceCentroid(const BaseMesh<BaseVecT> &mesh, const PointsetSurface<BaseVecT> &surface, FaceHandle faceH)

Calculate the color for the centroid of a given face.

      For a given mesh and it's surface the color of the faces centroid
      is calculated. The face is identified by the given face handle.

Parameters:
  • mesh – The mesh

  • surface – The surface of the mesh

  • faceH – Face handle of the face

Returns:

The RGB8Color of the centroid