Template Function lvr2::calcAverageVertexAngles

Function Documentation

template<typename BaseVecT>
DenseVertexMap<float> lvr2::calcAverageVertexAngles(const BaseMesh<BaseVecT> &mesh, const VertexMap<Normal<typename BaseVecT::CoordType>> &normals)

Calculates the average angle for each vertex.

Parameters:
  • mesh – The given mesh for the calculation.

  • normals – The vertex normals of the given mesh. The normals are necessary in this function for delegating them to the submethods.

Returns:

A map <vertex, float> with the average angle for each vertex.