Template Function lvr2::calcVertexAngleEdges

Function Documentation

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

Calculates the angle between two vertex normals for each edge.

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 <edge, float> with the angle of each edge.