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

Function Documentation

tensor<double, 3, 2> gamer::getTangent(const SurfaceMesh &mesh, SurfaceMesh::SimplexID<3> faceID)

Compute the tangent of a face.

This function gets the tangent by computing the sum of oriented wedge products.

  • mesh[in] SurfaceMesh of interest.

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


Returns a 2-tensor representing the tangent plane.