8 #include <pybind11/pybind11.h>
12 #include "../casters.h"
15 using namespace pybind11::literals;
19 py::class_<ccBox, ccGenericPrimitive>(m,
"ccBox", R
"doc(
24 insideRadius : cccorelib.CCVector3
27 optional 3D transformation (can be set afterwards with ccDrawableObject::setGLTransformation)
28 name : str, default: Sphere
29 name of the sphere object
36 >>> box = pycc.ccBox(cccorelib.CCVector3(5.0, 10.0, 4.0))
38 .def(py::init<const CCVector3 &, const ccGLMatrix *, QString>(),
40 "transMat"_a =
nullptr,
41 "name"_a = QString(
"Box"))
void define_ccBox(py::module &m)
const CCVector3 & getDimensions() const
Returns box dimensions.
void setDimensions(CCVector3 &dims)
Sets box dimensions.
static double module(T *vector)