newton.geometry.sdf_sphere#

newton.geometry.sdf_sphere(point, radius)[source]#

Compute signed distance to a sphere for Mesh.create_sphere geometry.

Parameters:
  • [m] (radius) – Query point in the mesh local frame, shape [3], float.

  • [m] – Sphere radius.

Returns:

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