RCAIDE.Library.Plots.Geometry.generate_3d_torus_points

generate_3d_torus_points#

Functions

generate_3d_torus_points(origin, D, d, w[, ...])

Generates 3D points for a torus (tire) geometry.

generate_3d_torus_points(origin, D, d, w, tessellation=24)[source]#

Generates 3D points for a torus (tire) geometry.

The wheel axle is along Y; the wheel rolls in the XZ plane. Returns an array shaped (n_major+1, n_minor, 3) suitable for generate_vtk_object — the extra row closes the torus in the major-circle direction.

Parameters:
  • origin (array-like (3,)) – Centre of the torus [x, y, z].

  • D (float) – Tire outer diameter; major radius = D/2.

  • d (float) – Rim diameter; minor (tube cross-section) radius = d/2.

  • w (float) – Tire width (informational; lateral extent is governed by d).

  • n_major (int) – Azimuthal divisions around the wheel.

  • n_minor (int) – Divisions around the tube cross-section.