8#include <boost/python/class.hpp>
9#include <boost/python/copy_const_reference.hpp>
16 class_<BoundingBox>(
"BoundingBox",
"Constructs a zero-sized box")
17 .def(init<double, double, double, double, double, double>(
18 (arg(
"self"), arg(
"xmax"), arg(
"ymax"), arg(
"zmax"), arg(
"xmin"), arg(
"ymin"), arg(
"zmin")),
19 "Constructs a box from the six given points"))
22 "Returns a V3D containing the values of the minimum of the box. See "
26 "Returns a V3D containing the values of the minimum of the box. See "
30 "Returns a V3D containing the coordinates of the centre point. See "
34 "Returns a V3D containing the widths "
35 "for each dimension. See "
38 .def(
"isNull", &
BoundingBox::isNull, arg(
"self"),
"Returns true if the box has no dimensions that have been set")
41 "Returns true if the given point is inside the object. See "
44 .def(
"doesLineIntersect",
46 (arg(
"self"), arg(
"startPoint"), arg(
"lineDir")),
47 "Returns true if the line given by the starting point & direction "
48 "vector passes through the box");
void export_BoundingBox()
A simple structure that defines an axis-aligned cuboid shaped bounding box for a geometrical object.
bool isPointInside(const Kernel::V3D &point) const
Is the given point within the bounding box?
const Kernel::V3D & minPoint() const
Returns the min point of the box.
bool isNull() const
Is this a default constructed box?
Kernel::V3D width() const
Returns the width of the box.
bool doesLineIntersect(const Track &track) const
Does a specified track intersect the bounding box.
Kernel::V3D centrePoint() const
Returns the centre of the bounding box.
const Kernel::V3D & maxPoint() const
Returns the min point of the box.