Skip to main content

BoundingBox

GitHub source

BoundingBox

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:

NameTypeDescriptionDefault
originPoint3The origin point of the grid.required
sizeSize3iThe number of cells in each dimension.required
cell_sizeSize3dThe size of each cell in each dimension.required

Returns:

TypeDescription
BoundingBoxA BoundingBox enclosing the grid.

What is the reason for your feedback?