25 ChainSilhouetteIterator_doc,
26 "Class hierarchy: :class:`freestyle.types.Iterator` >\n"
27 ":class:`freestyle.types.ViewEdgeIterator` >\n"
28 ":class:`freestyle.types.ChainingIterator` >\n"
29 ":class:`ChainSilhouetteIterator`\n"
31 "A ViewEdge Iterator used to follow ViewEdges the most naturally. For\n"
32 "example, it will follow visible ViewEdges of same nature. As soon, as\n"
33 "the nature or the visibility changes, the iteration stops (by setting\n"
34 "the pointed ViewEdge to 0). In the case of an iteration over a set of\n"
35 "ViewEdge that are both Silhouette and Crease, there will be a\n"
36 "precedence of the silhouette over the crease criterion.\n"
38 ".. method:: __init__(*args)\n"
40 " Accepted call signatures:\n"
42 " - ``__init__(restrict_to_selection=True, begin=None, orientation=True)``\n"
43 " - ``__init__(brother)``\n"
45 " Builds a ChainSilhouetteIterator from the first ViewEdge used for\n"
46 " iteration and its orientation or the copy constructor.\n"
48 " :param restrict_to_selection: Indicates whether to force the chaining\n"
49 " to stay within the set of selected ViewEdges or not.\n"
50 " :type restrict_to_selection: bool\n"
51 " :param begin: The ViewEdge from where to start the iteration.\n"
52 " :type begin: :class:`freestyle.types.ViewEdge` | None\n"
53 " :param orientation: If true, we'll look for the next ViewEdge among\n"
54 " the ViewEdges that surround the ending ViewVertex of begin. If\n"
55 " false, we'll search over the ViewEdges surrounding the ending\n"
56 " ViewVertex of begin.\n"
57 " :type orientation: bool\n"
58 " :param brother: A ChainSilhouetteIterator object.\n"
59 " :type brother: :class:`ChainSilhouetteIterator`\n");
65 *((PyObject **)v) = obj;
73 static const char *kwlist_1[] = {
"brother",
nullptr};
74 static const char *kwlist_2[] = {
"restrict_to_selection",
"begin",
"orientation",
nullptr};
75 PyObject *obj1 =
nullptr, *obj2 =
nullptr, *obj3 =
nullptr;
77 if (PyArg_ParseTupleAndKeywords(args,
87 else if ((
void)PyErr_Clear(),
88 (
void)(obj1 = obj2 = obj3 =
nullptr),
89 PyArg_ParseTupleAndKeywords(args,
110 PyErr_SetString(PyExc_TypeError,
"invalid argument(s)");
122 PyVarObject_HEAD_INIT(
nullptr, 0)
123 "ChainSilhouetteIterator",
141 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
142 ChainSilhouetteIterator_doc,
static int check_begin(PyObject *obj, void *v)
PyTypeObject ChainSilhouetteIterator_Type
static int ChainSilhouetteIterator_init(BPy_ChainSilhouetteIterator *self, PyObject *args, PyObject *kwds)
PyTypeObject ChainingIterator_Type
bool bool_from_PyBool(PyObject *b)
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")
#define BPy_ViewEdge_Check(v)
ChainSilhouetteIterator(bool iRestrictToSelection=true, ViewEdge *begin=nullptr, bool orientation=true)
Freestyle::ChainSilhouetteIterator * cs_it
BPy_ChainingIterator py_c_it
Freestyle::ChainingIterator * c_it
BPy_ViewEdgeIterator py_ve_it
PyObject_HEAD Freestyle::Iterator * it
Freestyle::ViewEdgeInternal::ViewEdgeIterator * ve_it