scene_synthesizer.utils.create_torus

scene_synthesizer.utils.create_torus(major_radius, minor_radius, num_major_segments=30, num_minor_segments=20)

Create torus mesh.

Parameters:
  • major_radius (float, optional) – Radius from the center of the torus to the center of the tube. Defaults to 1.0.

  • minor_radius (float, optional) – Radius of the tube.

  • num_major_segments (int, optional) – Number of segments around the major radius. Defaults to 30.

  • num_minor_segments (int, optional) – Number of segments around the minor radius. Defaults to 20.

Returns:

Torus mesh.

Return type:

trimesh.Trimesh