mymesh.utils.BaryTri#

mymesh.utils.BaryTri(Nodes, Pt)[source]#

Returns the bary centric coordinates of a point (Pt) relative to a triangle (Nodes)

Parameters:
  • Nodes (np.ndarray) – List of coordinates of the triangle vertices.

  • Pt (np.ndarray) – Coordinates of the point.

Returns:

  • alpha (float) – First barycentric coordinate.

  • beta (float) – Second barycentric coordinate.

  • gamma (float) – Third barycentric coordinate.