8 #include <pybind11/operators.h>
9 #include <pybind11/pybind11.h>
14 using namespace pybind11::literals;
18 py::class_<cloudViewer::BoundingBox>(cccorelib,
"BoundingBox")
26 bbox->setValidity(valid);
48 .def(py::self + py::self)
49 .def(py::self += py::self)
52 .def(py::self *=
double());
void define_BoundingBox(py::module &cccorelib)
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Vector3Tpl< PointCoordinateType > getDiagVec() const
Returns diagonal vector.
double getDiagNormd() const
Returns diagonal length (double precision)
Vector3Tpl< PointCoordinateType > getCenter() const
Returns center.
bool contains(const Vector3Tpl< PointCoordinateType > &P) const
Returns whether a points is inside the box or not.
PointCoordinateType minDistTo(const BoundingBoxTpl< PointCoordinateType > &bbox) const
PointCoordinateType getDiagNorm() const
Returns diagonal length.
PointCoordinateType getMinBoxDim() const
Returns minimal box dimension.
void setValidity(bool state)
Sets bonding box validity.
double computeVolume() const
Returns the bounding-box volume.
PointCoordinateType getMaxBoxDim() const
Returns maximal box dimension.
void clear()
Resets the bounding box.
bool isValid() const
Returns whether bounding box is valid or not.
void add(const Vector3Tpl< PointCoordinateType > &P)
'Enlarges' the bounding box with a point
BoundingBoxTpl< PointCoordinateType > BoundingBox
Default bounding-box type.