---
Product: Aspose.3D
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/python/boundingbox
---

# BoundingBox

## Overview

`BoundingBox` is a class in Aspose.3D FOSS for Python.

BoundingBox offers static constructors `get_null()` and `get_infinite()`, as well as instance methods `merge()`, `contains(arg)`, and `overlaps_with(box)` for spatial queries.

This class declares 9 methods for BoundingBox objects in Python programs.
Available methods include: `__init__`, `__repr__`, `contains`, `from_geometry`, `get_infinite`, `get_null`, `merge`, `overlaps_with`, `scale`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: `center`, `extent`, `maximum`, `minimum`, `size`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `minimum` | - | Read | Gets the minimum. |
| `maximum` | - | Read | Gets the maximum. |
| `center` | - | Read | Gets the center. |
| `size` | - | Read | Gets the size. |
| `extent` | - | Read | Gets the extent. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Calls __init__ on this BoundingBox instance. |
| `get_null()` → `'BoundingBox'` | Returns the null. |
| `get_infinite()` → `'BoundingBox'` | Returns the infinite. |
| `merge()` | Expands the current box to include another bounding box or point, allowing accumulation of scene extents |
| `contains(arg)` | Checks whether a point or another bounding box lies inside the current bounds |
| `overlaps_with(box: 'BoundingBox')` → `bool` | Returns True when two boxes intersect, enabling quick spatial culling |
| `scale()` → `float` | Computes a uniform scaling factor based on the box size, assisting in normalizing geometry |
| `from_geometry(geometry)` | **Not implemented in the FOSS edition — throws at runtime.** Constructs a bounding box that tightly fits the supplied geometry object |
| `__repr__()` → `str` | Calls __repr__ on this BoundingBox instance. |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)