Template Function lvr2::calcNormalClearance

Function Documentation

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

Compute the distances to the next intersections along the vertex normals of the mesh.

Parameters:
  • mesh – The mesh containing the geometry of interest

  • normals – The vertex normals used by the algorithm

Returns:

A dense vertex map containing the free space along the normal of each vertex