Template Function lvr2::calcVertexNormals(const BaseMesh<BaseVecT>&, const FaceMap<Normal<typename BaseVecT::CoordType>>&, const PointsetSurface<BaseVecT>&)
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, const PointsetSurface<BaseVecT> &surface) 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 normal from the nearest point in the point cloud is used.
- Parameters:
surface – A point cloud with normal information