Template Function lvr2::calcVertexHeightDifferences
Defined in File GeometryAlgorithms.hpp
Function Documentation
-
template<typename BaseVecT>
DenseVertexMap<float> lvr2::calcVertexHeightDifferences(const BaseMesh<BaseVecT> &mesh, const VertexMap<Normal<typename BaseVecT::CoordType>> &vertex_normals, double radius) Calculate the height difference value for each vertex of the given BaseMesh.
- Parameters:
mesh – The given BaseMesh for calculating vertex height differences.
vertex_normals – The vertex normals of the mesh. If a normal for a vertex is missing the algorithm assumes (0, 0, 1)
radius – The radius which defines the border of the local neighborhood.
- Returns:
A map filled with <Vertex, float>-entries, storing the height difference value of each vertex.