8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
16 using namespace pybind11::literals;
20 py::class_<ccBBox, ccHObject, cloudViewer::BoundingBox>(m,
"ccBBox")
22 .def(py::init<const CCVector3 &, const CCVector3 &, const std::string &>(),
27 "__mul__", [](
ccBBox &
self,
ccGLMatrix &mat) {
return self * mat; }, py::is_operator())
29 "__mul__", [](
ccBBox &
self,
ccGLMatrixd &mat) {
return self * mat; }, py::is_operator())
33 "Draw bounding box using default color from context",
37 "Draw bounding box with custom color",
void define_ccBBox(py::module &m)
void draw(CC_DRAW_CONTEXT &context) override
Draws entity and its children.
Float version of ccGLMatrixTpl.
Double version of ccGLMatrixTpl.