8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
16 #include "../casters.h"
19 using namespace pybind11::literals;
23 py::class_<ccCircle, ccPolyline>(m,
"ccCircle", R
"doc(
26 A 3D circle represented as a polyline.
30 radius : double, default: 0.0
32 resolution : int, default: 48
33 circle displayed resolution (number of segments)
34 uniqueID : int, optional
35 unique ID (handle with care)
42 circle = pycc.ccCircle(5.0, resolution=64)
43 circle2 = pycc.ccCircle(radius=10.0, resolution=32)
46 py::init<double, unsigned, unsigned>(),
51 Returns the radius of the circle.
56 The radius of the circle.
59 Sets the radius of the circle.
67 Returns the resolution of the displayed circle.
72 The resolution (number of segments) of the circle.
75 Sets the resolution of the displayed circle.
80 The displayed resolution (>= 4).
90 A new circle object that is a copy of this circle.
92 py::return_value_policy::take_ownership);
void define_ccCircle(py::module &m)
ccCircle * clone() const
Clones this circle.
double getRadius() const
Returns the radius of the circle.
unsigned getResolution() const
Returns the resolution of the displayed circle.
void setRadius(double radius)
Sets the radius of the circle.
void setResolution(unsigned resolution)
Sets the resolution of the displayed circle.
static constexpr unsigned InvalidUniqueID