autopdex.geometry.psdf_nd_sphere_cutout

autopdex.geometry.psdf_nd_sphere_cutout(x, xc, r)[source]

Exterior positive normalized smooth distance function of an n-dimensional sphere.

Parameters:
  • x (jnp.ndarray) – The point where the distance is evaluated.

  • xc (jnp.ndarray) – Center of the sphere.

  • r (float) – Radius of the sphere.

Returns:

The positive distance from the point x to the filled n-dimensional sphere.

Return type:

float