#include <BoundingBox.hpp>
BoundingBox is an axis aligned cuboid that can check for intersections with another BoundingBox.
BoundingBox intersections require that both boxes are specified in the same coordinate system.
◆ BoundingBox()
| openstudio::BoundingBox::BoundingBox |
( |
| ) |
|
|
default |
default constructor creates empty BoundingBox, will not intersect with anything
◆ add()
| void openstudio::BoundingBox::add |
( |
const BoundingBox & | other | ) |
|
◆ addPoint()
| void openstudio::BoundingBox::addPoint |
( |
const Point3d & | point | ) |
|
◆ addPoints()
| void openstudio::BoundingBox::addPoints |
( |
const std::vector< Point3d > & | points | ) |
|
◆ corners()
| std::vector< Point3d > openstudio::BoundingBox::corners |
( |
| ) |
const |
◆ intersects()
| bool openstudio::BoundingBox::intersects |
( |
const BoundingBox & | other, |
|
|
double | tol = 0.01 ) const |
test for intersection. Default tolerance is 1cm
◆ isEmpty()
| bool openstudio::BoundingBox::isEmpty |
( |
| ) |
const |
◆ maxX()
| boost::optional< double > openstudio::BoundingBox::maxX |
( |
| ) |
const |
◆ maxY()
| boost::optional< double > openstudio::BoundingBox::maxY |
( |
| ) |
const |
◆ maxZ()
| boost::optional< double > openstudio::BoundingBox::maxZ |
( |
| ) |
const |
◆ minX()
| boost::optional< double > openstudio::BoundingBox::minX |
( |
| ) |
const |
◆ minY()
| boost::optional< double > openstudio::BoundingBox::minY |
( |
| ) |
const |
◆ minZ()
| boost::optional< double > openstudio::BoundingBox::minZ |
( |
| ) |
const |