Template Function lvr2::calcVertexNormals(const BaseMesh<BaseVecT>&, const FaceMap<Normal<typename BaseVecT::CoordType>>&)
Defined in File NormalAlgorithms.hpp
Function Documentation
-
template<typename BaseVecT>
DenseVertexMap<Normal<typename BaseVecT::CoordType>> lvr2::calcVertexNormals(const BaseMesh<BaseVecT> &mesh, const FaceMap<Normal<typename BaseVecT::CoordType>> &normals) Calculates a normal for each vertex in the mesh.
The normal is calculated by first attempting to interpolate from the adjacent faces. If a vertex doesn’t have adjacent faces, the default normal (0, 0, 1) is used.
- Parameters:
surface – A point cloud with normal information