Function gamer::getNormal(const SurfaceMesh&, SurfaceMesh::SimplexID<3>)

Function Documentation

Vector gamer::getNormal(const SurfaceMesh &mesh, SurfaceMesh::SimplexID<3> faceID)

Compute the normal of a face.

This function computes the normal as the cross product with respect to the orientation. See also getTangent() and getNormalFromTangent().


Returns a Vector normal to the face.

  • [in] mesh: SurfaceMesh of interest.

  • [in] faceID: SimplexID of the face to get the tangent of.