mesh_tangent

ABSTRACT

The mesh_tangent function retrieves the tangent vector at a specified point along the mesh.

PARAMETERS
meshRepresents the mesh to be sampled. NOTE: This function operates on a single mesh, not a mesh-tree. The mesh should have a single line contour. If the provided mesh is a loop, it's unspecified what corresponds to t = 0. If it's bounded by dots, t = 0 corresponds to the start and t = 1 corresponds to the end.
tA scalar value between 0 and 1, indicating the sampling factor. A value of 0 corresponds to the start of the mesh, while 1 corresponds to the end. Intermediate values sample points within the mesh according to the specified factor.
RETURN

Retrieves the tangent vector (3-vector) at the specified interpolation factor 't' along the provided mesh, returning the tangent vector at that sampled position within the mesh.

DECLARATION
func mesh_tangent(mesh, t)