Template Function lvr2::getFaceNormal

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 none if the face has a zero area.