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().

Return

Returns a Vector normal to the face.

Parameters
  • [in] mesh: SurfaceMesh of interest.

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