mesh_sample
ABSTRACT
The mesh_sample function gets the point at some amount along the mesh.
PARAMETERS
mesh | Represents the mesh to be sampled. NOTE: this is not a mesh-tree but a mesh. Also, 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. |
t | A 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
Samples the provided mesh at the specified interpolation factor 't', returning the point (3-vector) at that sampled position within the mesh.
DECLARATION
func mesh_sample(mesh, t)