Box (hwx.common.math.Box)#

class Box(position, x, y, z)#

Bases: object

Position and x, y, z dimension lengths.

APIs will always return non axis-aligned bounding boxes so:

box.x >= box.y >= box.z

Attribute Table#

Name

Type

extents

property

minMax

property

xyz

property

Method Table#

Name

Description

fromMinMax (minPoint, maxPoint)

Create an axis-aligned box from corner points.

sortAxes (self)

Update axes so box.x >= box.y >= box.z.

property extents#

Distance along each axis from center to corner

sortAxes()#

Update axes so box.x >= box.y >= box.z.