9 #include "../BPy_Convert.h"
10 #include "../Interface1D/BPy_ViewEdge.h"
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__(restrict_to_selection=True, begin=None, orientation=True)\n"
39 " __init__(brother)\n"
41 " Builds a ChainSilhouetteIterator from the first ViewEdge used for\n"
42 " iteration and its orientation or the copy constructor.\n"
44 " :arg restrict_to_selection: Indicates whether to force the chaining\n"
45 " to stay within the set of selected ViewEdges or not.\n"
46 " :type restrict_to_selection: bool\n"
47 " :arg begin: The ViewEdge from where to start the iteration.\n"
48 " :type begin: :class:`freestyle.types.ViewEdge` or None\n"
49 " :arg orientation: If true, we'll look for the next ViewEdge among\n"
50 " the ViewEdges that surround the ending ViewVertex of begin. If\n"
51 " false, we'll search over the ViewEdges surrounding the ending\n"
52 " ViewVertex of begin.\n"
53 " :type orientation: bool\n"
54 " :arg brother: A ChainSilhouetteIterator object.\n"
55 " :type brother: :class:`ChainSilhouetteIterator`");
62 *((PyObject **)
v) = obj;
70 static const char *kwlist_1[] = {
"brother",
nullptr};
71 static const char *kwlist_2[] = {
"restrict_to_selection",
"begin",
"orientation",
nullptr};
72 PyObject *obj1 =
nullptr, *obj2 =
nullptr, *obj3 =
nullptr;
74 if (PyArg_ParseTupleAndKeywords(
78 else if ((
void)PyErr_Clear(),
79 (
void)(obj1 = obj2 = obj3 =
nullptr),
80 PyArg_ParseTupleAndKeywords(args,
96 PyErr_SetString(PyExc_TypeError,
"invalid argument(s)");
99 self->py_c_it.c_it =
self->cs_it;
100 self->py_c_it.py_ve_it.ve_it =
self->cs_it;
101 self->py_c_it.py_ve_it.py_it.it =
self->cs_it;
108 PyVarObject_HEAD_INIT(
nullptr, 0)
"ChainSilhouetteIterator",
126 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
127 ChainSilhouetteIterator_doc,
static int check_begin(PyObject *obj, void *v)
PyTypeObject ChainSilhouetteIterator_Type
PyDoc_STRVAR(ChainSilhouetteIterator_doc, "Class hierarchy: :class:`freestyle.types.Iterator` >\n" ":class:`freestyle.types.ViewEdgeIterator` >\n" ":class:`freestyle.types.ChainingIterator` >\n" ":class:`ChainSilhouetteIterator`\n" "\n" "A ViewEdge Iterator used to follow ViewEdges the most naturally. For\n" "example, it will follow visible ViewEdges of same nature. As soon, as\n" "the nature or the visibility changes, the iteration stops (by setting\n" "the pointed ViewEdge to 0). In the case of an iteration over a set of\n" "ViewEdge that are both Silhouette and Crease, there will be a\n" "precedence of the silhouette over the crease criterion.\n" "\n" ".. method:: __init__(restrict_to_selection=True, begin=None, orientation=True)\n" " __init__(brother)\n" "\n" " Builds a ChainSilhouetteIterator from the first ViewEdge used for\n" " iteration and its orientation or the copy constructor.\n" "\n" " :arg restrict_to_selection: Indicates whether to force the chaining\n" " to stay within the set of selected ViewEdges or not.\n" " :type restrict_to_selection: bool\n" " :arg begin: The ViewEdge from where to start the iteration.\n" " :type begin: :class:`freestyle.types.ViewEdge` or None\n" " :arg orientation: If true, we'll look for the next ViewEdge among\n" " the ViewEdges that surround the ending ViewVertex of begin. If\n" " false, we'll search over the ViewEdges surrounding the ending\n" " ViewVertex of begin.\n" " :type orientation: bool\n" " :arg brother: A ChainSilhouetteIterator object.\n" " :type brother: :class:`ChainSilhouetteIterator`")
static int ChainSilhouetteIterator_init(BPy_ChainSilhouetteIterator *self, PyObject *args, PyObject *kwds)
PyTypeObject ChainingIterator_Type
bool bool_from_PyBool(PyObject *b)
#define BPy_ViewEdge_Check(v)
ATTR_WARN_UNUSED_RESULT const BMVert * v