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

Waterfall.BoundingBox.AxisAligned

Synopsis

Documentation

axisAlignedBoundingBox :: Solid -> Maybe (V3 Double, V3 Double) Source #

Return the smallest Axis Aligned Bounding Box (AABB) that contains the Solid.

If computable, the AABB is returned in the form '(lo, hi)', where lo is the vertex of the box with the lowest individual values, and hi is the vertex with the highest values.

aabbToSolid Source #

Arguments

:: (V3 Double, V3 Double)

if this argument input is `(lo, hi)`, one vertex of the cuboid is placed at lo, the oposite vertex is at hi

-> Solid 

A cuboid, specified by two diagonal vertices.

This can be used to make a solid from the output of axisAlignedBoundingBox