newton.geometry.sdf_cylinder#

newton.geometry.sdf_cylinder(point, radius, half_height, up_axis=int(Axis.Y), top_radius=-1.0, barrel_radius=0.0)[source]#

Compute signed distance to Mesh.create_cylinder geometry.

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

  • [m] – Bottom radius.

  • [m] – Half-height along the cylinder axis.

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

  • [m] – Top radius. Negative values use radius.

  • [m] – Radius of the circular side profile. Zero creates straight sides. Nonzero values must be at least half_height and take precedence over top_radius.

Returns:

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