#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.
openstudio::BoundingBox::BoundingBox |
( |
| ) |
|
|
default |
default constructor creates empty BoundingBox, will not intersect with anything
void openstudio::BoundingBox::add |
( |
const BoundingBox & |
other | ) |
|
void openstudio::BoundingBox::addPoint |
( |
const Point3d & |
point | ) |
|
void openstudio::BoundingBox::addPoints |
( |
const std::vector< Point3d > & |
points | ) |
|
std::vector<Point3d> openstudio::BoundingBox::corners |
( |
| ) |
const |
bool openstudio::BoundingBox::intersects |
( |
const BoundingBox & |
other, |
|
|
double |
tol = 0.01 |
|
) |
| const |
test for intersection. Default tolerance is 1cm
bool openstudio::BoundingBox::isEmpty |
( |
| ) |
const |
boost::optional<double> openstudio::BoundingBox::maxX |
( |
| ) |
const |
boost::optional<double> openstudio::BoundingBox::maxY |
( |
| ) |
const |
boost::optional<double> openstudio::BoundingBox::maxZ |
( |
| ) |
const |
boost::optional<double> openstudio::BoundingBox::minX |
( |
| ) |
const |
boost::optional<double> openstudio::BoundingBox::minY |
( |
| ) |
const |
boost::optional<double> openstudio::BoundingBox::minZ |
( |
| ) |
const |