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

Parameters
  • mesh[in] SurfaceMesh of interest.

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

Returns

Returns a Vector normal to the face.