GitHub source

evo.blockmodels.typed.types.BoundingBox

An axis-aligned bounding box defined by minimum and maximum coordinates.

from_origin_and_size

from_origin_and_size(origin: Point3, size: Size3i, cell_size: Size3d) -> BoundingBox

Create a bounding box from an origin point and grid dimensions.

Parameters:

Name Type Description Default
origin Point3

The origin point of the grid.

required
size Size3i

The number of cells in each dimension.

required
cell_size Size3d

The size of each cell in each dimension.

required

Returns:

Type Description
BoundingBox

A BoundingBox enclosing the grid.