diff --git a/bioexplorer/pythonsdk/bioexplorer/bio_explorer.py b/bioexplorer/pythonsdk/bioexplorer/bio_explorer.py index 4af81fc1d..658cdfef0 100644 --- a/bioexplorer/pythonsdk/bioexplorer/bio_explorer.py +++ b/bioexplorer/pythonsdk/bioexplorer/bio_explorer.py @@ -1713,11 +1713,7 @@ def get_model_bounds(self, model_id): min_aabb = Vector3(value[0], value[1], value[2]) value = model_bounds["maxAABB"] max_aabb = Vector3(value[0], value[1], value[2]) - value = model_bounds["center"] - center = Vector3(value[0], value[1], value[2]) - value = model_bounds["size"] - size = Vector3(value[0], value[1], value[2]) - return Bounds(min_aabb, max_aabb, center, size) + return Bounds(min_aabb, max_aabb) def get_model_ids(self): """ diff --git a/bioexplorer/pythonsdk/bioexplorer/math_utils.py b/bioexplorer/pythonsdk/bioexplorer/math_utils.py index 243799f16..5f421b4b3 100644 --- a/bioexplorer/pythonsdk/bioexplorer/math_utils.py +++ b/bioexplorer/pythonsdk/bioexplorer/math_utils.py @@ -175,6 +175,8 @@ def __init__(self, min_aabb, max_aabb): assert isinstance(max_aabb, Vector3), "max_aabb must be an instance of Vector3" self.min_aabb = min_aabb self.max_aabb = max_aabb + self.center = Vector3() + self.size = Vector3() self.update() def update(self):