BPY plus – bounding module

A BPY plus module for working with bounding objects.

Bounding class

sphere(objects: list, context=bpy.context, mode: str = ‘BBOX’)

Calculates the bounding sphere around objects.

Parameters:

objects: list of objects or object to calculate a bounding sphere around

context: context

mode: ‘BBOX’ – quick calculating around the objects bounding boxes, ‘GEOMETRY’ – more precise calculating by all the objects vertices.

Returns:

a tuple with the bounding sphere location and radius

Nikita

Author: Nikita

Blender add-ons developer and articles writer.

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comment
Inline Feedbacks
View all comments