waterfall-cad-0.2.2.0: Declarative CAD/Solid Modeling Library
Safe HaskellNone
LanguageHaskell2010

Waterfall.BoundingBox.Oriented

Synopsis

Documentation

data OrientedBoundingBox Source #

An OrientedBoundingBox may be a tighter fit for a Shape than an axis aligned bounding box would be

obbSideX :: OrientedBoundingBox -> V3 Double Source #

The X side of the oriented bounding box.

This is measured from the center to one Face. So the length of this vector is _half_ of the side length of the bounding box.

obbSideY :: OrientedBoundingBox -> V3 Double Source #

The Y side of the oriented bounding box.

This is measured from the center to one face. So the length of this vector is _half_ of the side length of the bounding box.

obbSideZ :: OrientedBoundingBox -> V3 Double Source #

the Z side of the oriented bounding box

This is measured from the center to one face. So the length of this vector is _half_ of the side length of the bounding box.

orientedBoundingBox :: Solid -> Maybe OrientedBoundingBox Source #

Compute an OrientedBoundingBox for a solid