mesh_normal

ABSTRACT

The mesh_normal function retrieves the normal at a specific point along the mesh.

PARAMETERS
meshRepresents the mesh from which the normal will be obtained. NOTE: This function expects a single line contour within the mesh. If the provided mesh is a loop, it's unspecified where t = 0 corresponds to. 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 along the mesh. A value of 0 corresponds to the start of the mesh, while 1 corresponds to the end. Intermediate values retrieve normals within the mesh based on the specified factor.
RETURN

Retrieves the normal vector (3-vector) at the specified interpolation factor 't' along the provided mesh.

DECLARATION
func mesh_normal(mesh, t)