Differential D9170 Diff 29818 source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | PyDoc_STRVAR(ChainSilhouetteIterator_doc, | ||||
| "A ViewEdge Iterator used to follow ViewEdges the most naturally. For\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" | "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 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" | "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" | "ViewEdge that are both Silhouette and Crease, there will be a\n" | ||||
| "precedence of the silhouette over the crease criterion.\n" | "precedence of the silhouette over the crease criterion.\n" | ||||
| "\n" | "\n" | ||||
| ".. method:: __init__(restrict_to_selection=True, begin=None, orientation=True)\n" | ".. method:: __init__(restrict_to_selection=True, begin=None, orientation=True)\n" | ||||
| " __init__(brother)\n" | |||||
| "\n" | "\n" | ||||
| " Builds a ChainSilhouetteIterator from the first ViewEdge used for\n" | " Builds a ChainSilhouetteIterator from the first ViewEdge used for\n" | ||||
| " iteration and its orientation.\n" | " iteration and its orientation or the copy constructor.\n" | ||||
| "\n" | "\n" | ||||
| " :arg restrict_to_selection: Indicates whether to force the chaining\n" | " :arg restrict_to_selection: Indicates whether to force the chaining\n" | ||||
| " to stay within the set of selected ViewEdges or not.\n" | " to stay within the set of selected ViewEdges or not.\n" | ||||
| " :type restrict_to_selection: bool\n" | " :type restrict_to_selection: bool\n" | ||||
| " :arg begin: The ViewEdge from where to start the iteration.\n" | " :arg begin: The ViewEdge from where to start the iteration.\n" | ||||
| " :type begin: :class:`freestyle.types.ViewEdge` or None\n" | " :type begin: :class:`freestyle.types.ViewEdge` or None\n" | ||||
| " :arg orientation: If true, we'll look for the next ViewEdge among\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" | " the ViewEdges that surround the ending ViewVertex of begin. If\n" | ||||
| " false, we'll search over the ViewEdges surrounding the ending\n" | " false, we'll search over the ViewEdges surrounding the ending\n" | ||||
| " ViewVertex of begin.\n" | " ViewVertex of begin.\n" | ||||
| " :type orientation: bool\n" | " :type orientation: bool\n" | ||||
| "\n" | |||||
| ".. method:: __init__(brother)\n" | |||||
| "\n" | |||||
| " Copy constructor.\n" | |||||
| "\n" | |||||
| " :arg brother: A ChainSilhouetteIterator object.\n" | " :arg brother: A ChainSilhouetteIterator object.\n" | ||||
| " :type brother: :class:`ChainSilhouetteIterator`"); | " :type brother: :class:`ChainSilhouetteIterator`"); | ||||
| static int check_begin(PyObject *obj, void *v) | static int check_begin(PyObject *obj, void *v) | ||||
| { | { | ||||
| if (obj != NULL && obj != Py_None && !BPy_ViewEdge_Check(obj)) { | if (obj != NULL && obj != Py_None && !BPy_ViewEdge_Check(obj)) { | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines | |||||