newton.geometry.sdf_mesh#

newton.geometry.sdf_mesh(mesh, point, max_dist)[source]#

Compute signed distance to a triangle mesh.

Parameters:
  • mesh (uint64) – Warp mesh ID (mesh.id).

  • [m] (max_dist) – Query point in mesh local frame, shape [3], float.

  • [m] – Maximum query distance.

Returns:

Signed distance [m], negative inside, zero on surface, positive outside.