warp.fem.element_closest_point#
- warp.fem.element_closest_point = <warp._src.fem.operator.Operator object>#
Computes the coordinates of the closest point to a world position within a given element. Returns a tuple (closest point coordinates; squared distance to the closest point)
- Parameters:
element_index – Index of the element to consider
x – world position of the point to compute the closest point to