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_<ccCone, ccGenericPrimitive>(m,
"ccCone", R
"doc(
26 bottomRadius : PointCoordinateType
27 topRadius : PointCoordinateType
28 height : PointCoordinateType
29 cone height (transformation should point to the axis center)
30 xOff : PointCoordinateType, default = 0
31 displacement of axes along X-axis (Snout mode)
32 yOff : PointCoordinateType, default = 0
33 displacement of axes along Y-axis (Snout mode)
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 cone = pycc.ccCone(10.0, 5.0, 20.0)
64 "transMat"_a =
nullptr,
65 "name"_a = QString(
"Cone"),
float PointCoordinateType
Type of the coordinates of a (N-D) point.
void define_ccCone(py::module &m)
PointCoordinateType getTopRadius() const
Returns top radius.
virtual CCVector3 getLargeCenter() const
Returns cone axis end point associated with whichever radii is larger.
static const unsigned DEFAULT_DRAWING_PRECISION
Default drawing precision.
virtual PointCoordinateType getLargeRadius() const
Returns whichever cone radii is larger.
virtual CCVector3 getTopCenter() const
Returns cone axis top end point after applying transformation.
PointCoordinateType getHeight() const
Returns height.
virtual PointCoordinateType getSmallRadius() const
Returns whichever cone radii is smaller.
virtual bool isSnoutMode() const
Returns true if the Cone was created in snout mode.
virtual void setTopRadius(PointCoordinateType radius)
Sets top radius.
virtual CCVector3 getSmallCenter() const
Returns cone axis end point associated with whichever radii is smaller.
PointCoordinateType getBottomRadius() const
Returns bottom radius.
void setHeight(PointCoordinateType height)
Sets height.
virtual CCVector3 getBottomCenter() const
Returns cone axis bottom end point after applying transformation.
virtual void setBottomRadius(PointCoordinateType radius)
Sets bottom radius.
Float version of ccGLMatrixTpl.