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.

Return

Returns a 2-tensor representing the tangent plane.

Parameters
  • [in] mesh: SurfaceMesh of interest.

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