plopp.graphics.BoundingBox#

class plopp.graphics.BoundingBox(xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None)[source]#

A bounding box in 2D space.

__init__(xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None)#

Methods

__init__([xmin, xmax, ymin, ymax, zmin, zmax])

asdict()

Return the bounding box as a dictionary.

intersection(other)

Return the intersection of this bounding box with another one.

override(other)

Return a new bounding box with values from another one if they are not None.

union(other)

Return the union of this bounding box with another one.

Attributes

xmax

xmin

ymax

ymin

zmax

zmin