8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
14 #include "../casters.h"
17 using namespace pybind11::literals;
21 py::class_<ccSphere, ccGenericPrimitive>(m,
"ccSphere", R
"doc(
26 radius : PointCoordinateType
29 optional 3D transformation (can be set afterwards with ccDrawableObject::setGLTransformation)
30 name : str, default: Sphere
31 name of the sphere object
32 precision : int, default: 24
33 drawing precision (angular step = 360/precision)
34 uniqueID : int, optional
35 unique ID (handle with care)
42 sphere = pycc.ccSphere(3.0)
43 sphere2 = pycc.ccSphere(5.0, name="Sphere2")
45 .def(py::init<PointCoordinateType, const ccGLMatrix *, QString, unsigned>(),
47 "transMat"_a =
nullptr,
48 "name"_a = QString(
"Sphere"),
void define_ccSphere(py::module &m)
void setRadius(PointCoordinateType radius)
Sets radius.
PointCoordinateType getRadius() const
Returns radius.
static double module(T *vector)