Template Function lvr2::getFaceNormal
Defined in File NormalAlgorithms.hpp
Function Documentation
-
template<typename BaseVecT>
boost::optional<Normal<typename BaseVecT::CoordType>> lvr2::getFaceNormal(std::array<BaseVecT, 3> vertices) Returns the normal of a face with the given three vertices.
- Parameters:
vertices – The face’s vertex-positions in counter-clockwise order.
- Returns:
Either the normal or
noneif the face has a zero area.