open3d.geometry.create_mesh_torus

open3d.geometry.create_mesh_torus(torus_radius=1.0, tube_radius=0.5, radial_resolution=30, tubular_resolution=20)

Factory function to create a torus mesh.

Parameters
  • torus_radius (float, optional, default=1.0) – The radius from the center of the torus to the center of the tube.

  • tube_radius (float, optional, default=0.5) – The radius of the torus tube.

  • radial_resolution (int, optional, default=30) – The number of segments along the radial direction.

  • tubular_resolution (int, optional, default=20) – The number of segments along the tubular direction.

Returns

open3d.geometry.TriangleMesh