newton.geometry.sdf_cone#

newton.geometry.sdf_cone(point, radius, half_height, up_axis=int(Axis.Y))[source]#

Compute signed distance to a cone for Mesh.create_cone geometry.

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

  • [m] – Cone base radius.

  • [m] – Half-height from center to apex/base.

  • up_axis (int) – Cone long axis as int(newton.Axis.*).

Returns:

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