warp.fem.lookup#

warp.fem.lookup = <warp._src.fem.operator.Operator object>#

Looks-up the sample point corresponding to a world position x, projecting to the closest point on the geometry.

Parameters:
  • x (vec3) – world position of the point to look-up in the geometry

  • max_dist (float) – maximum distance to look for a closest point

  • guess (Sample) – initial guess, may help perform the query

  • filter_array (wp.array) – Used in conjunction with filter_target. Only cells such that filter_array[element_index]==filter_target will be considered.

  • filter_target (Any) – See filter_array