8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
15 #include "../casters.h"
18 using namespace pybind11::literals;
22 py::class_<ccCylinder, ccCone>(m,
"ccCylinder", R
"doc(
27 radius : PointCoordinateType
28 height : PointCoordinateType
30 optional 3D transformation (can be set afterwards with ccDrawableObject::setGLTransformation)
31 name : str, default: Sphere
32 name of the sphere object
33 precision : int, default: 24
34 drawing precision (angular step = 360/precision)
35 uniqueID : int, optional
36 unique ID (handle with care)
43 cylinder = pycc.ccCylinder(3.0, 10.0)
44 cylinder2 = pycc.ccCylinder(radius=5.0, height=50, name="Cylinder2")
54 "transMat"_a =
nullptr,
55 "name"_a = QString(
"Cylinder"),
float PointCoordinateType
Type of the coordinates of a (N-D) point.
void define_ccCylinder(py::module &m)
PointCoordinateType getBottomRadius() const
Returns bottom radius.
static const unsigned DEFAULT_DRAWING_PRECISION
Default drawing precision.
virtual void setBottomRadius(PointCoordinateType radius) override
Sets bottom radius.
Float version of ccGLMatrixTpl.