22 CurvePointIterator_doc,
23 "Class hierarchy: :class:`Iterator` > :class:`CurvePointIterator`\n"
25 "Class representing an iterator on a curve. Allows an iterating\n"
26 "outside initial vertices. A CurvePoint is instantiated and returned\n"
27 "through the .object attribute.\n"
29 ".. method:: __init__(*args, **kwargs)\n"
31 " Accepted call signatures:\n"
34 " - ``__init__(brother)``\n"
35 " - ``__init__(step=0.0)``\n"
37 " Builds a CurvePointIterator object using either the default constructor,\n"
38 " copy constructor, or the overloaded constructor.\n"
40 " :param brother: A CurvePointIterator object.\n"
41 " :type brother: :class:`CurvePointIterator`\n"
42 " :param step: A resampling resolution with which the curve is resampled.\n"
43 " If zero, no resampling is done (i.e., the iterator iterates over\n"
44 " initial vertices).\n"
45 " :type step: float\n");
48 static const char *kwlist_1[] = {
"brother",
nullptr};
49 static const char *kwlist_2[] = {
"step",
nullptr};
50 PyObject *brother =
nullptr;
53 if (PyArg_ParseTupleAndKeywords(args,
70 else if ((
void)PyErr_Clear(),
71 PyArg_ParseTupleAndKeywords(args,
81 PyErr_SetString(PyExc_TypeError,
"invalid argument(s)");
92 CurvePointIterator_object_doc,
93 "The CurvePoint object currently pointed by this iterator.\n"
95 ":type: :class:`CurvePoint`\n");
98 if (self->
cp_it->isEnd()) {
99 PyErr_SetString(PyExc_RuntimeError,
"iteration has stopped");
107 CurvePointIterator_t_doc,
108 "The curvilinear abscissa of the current point.\n"
113 return PyFloat_FromDouble(self->
cp_it->t());
118 CurvePointIterator_u_doc,
119 "The point parameter at the current point in the stroke (0 <= u <= 1).\n"
124 return PyFloat_FromDouble(self->
cp_it->u());
131 CurvePointIterator_object_doc,
135 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
141 PyVarObject_HEAD_INIT(
nullptr, 0)
142 "CurvePointIterator",
160 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
161 CurvePointIterator_doc,
PyObject * BPy_CurvePoint_from_CurvePoint(CurvePoint &cp)
static PyObject * CurvePointIterator_object_get(BPy_CurvePointIterator *self, void *)
static int CurvePointIterator_init(BPy_CurvePointIterator *self, PyObject *args, PyObject *kwds)
static PyGetSetDef BPy_CurvePointIterator_getseters[]
static PyObject * CurvePointIterator_t_get(BPy_CurvePointIterator *self, void *)
PyTypeObject CurvePointIterator_Type
static PyObject * CurvePointIterator_u_get(BPy_CurvePointIterator *self, void *)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyTypeObject Iterator_Type
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
Freestyle::CurveInternal::CurvePointIterator * cp_it
PyObject_HEAD Freestyle::Iterator * it