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_<ccTorus, ccGenericPrimitive>(m,
"ccTorus", R
"doc(
26 insideRadius : PointCoordinateType
27 outsideRadius : PointCoordinateType
29 subtended angle (in radians)
30 rectangularSection : bool
31 whether section is rectangular or round
32 rectSectionHeight : PointCoordinateType
33 section height (if rectangular torus)
35 optional 3D transformation (can be set afterwards with ccDrawableObject::setGLTransformation)
36 name : str, default: Sphere
37 name of the sphere object
38 precision : int, default: 24
39 drawing precision (angular step = 360/precision)
40 uniqueID : int, optional
41 unique ID (handle with care)
48 torus = pycc.ccTorus(5.0, 10.0)
61 "angleRad"_a = 2.0 *
M_PI,
62 "rectangularSection"_a =
false,
63 "rectSectionHeight"_a = 0,
64 "transMat"_a =
nullptr,
65 "name"_a = QString(
"Torus"),
float PointCoordinateType
Type of the coordinates of a (N-D) point.
void define_ccTorus(py::module &m)
Float version of ccGLMatrixTpl.
static const unsigned DEFAULT_DRAWING_PRECISION
Default drawing precision.