A BPY plus module for working with bounding objects.
sphere(objects: list, context=bpy.context, mode: str = ‘BBOX’)
Calculates the bounding sphere around objects.
objects: list of objects or object to calculate a bounding sphere around
mode: ‘BBOX’ – quick calculating around the objects bounding boxes, ‘GEOMETRY’ – more precise calculating by all the objects vertices.
a tuple with the bounding sphere location and radius