33 PyModule_AddObjectRef(
48 UnaryFunction0DVectorViewShape___doc__,
49 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DVectorViewShape`\n"
51 "Base class for unary functions (functors) that work on\n"
52 ":class:`Interface0DIterator` and return a list of :class:`ViewShape`\n"
55 ".. method:: __init__()\n"
57 " Default constructor.\n");
62 static const char *kwlist[] = {
nullptr};
64 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
68 self->uf0D_vectorviewshape->py_uf0D = (PyObject *)
self;
74 delete self->uf0D_vectorviewshape;
80 return PyUnicode_FromFormat(
81 "type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_vectorviewshape);
88 static const char *kwlist[] = {
"it",
nullptr};
91 if (!PyArg_ParseTupleAndKeywords(
97 if (
typeid(*(
self->uf0D_vectorviewshape)) ==
typeid(
UnaryFunction0D<std::vector<ViewShape *>>)) {
98 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
102 if (!PyErr_Occurred()) {
103 string class_name(Py_TYPE(
self)->tp_name);
104 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
109 const uint list_len =
self->uf0D_vectorviewshape->result.size();
110 PyObject *list = PyList_New(list_len);
111 for (
uint i = 0;
i < list_len;
i++) {
122 PyVarObject_HEAD_INIT(
nullptr, 0)
123 "UnaryFunction0DVectorViewShape",
141 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
142 UnaryFunction0DVectorViewShape___doc__,
PyObject * BPy_ViewShape_from_ViewShape(ViewShape &vs)
PyTypeObject GetOccludersF0D_Type
PyTypeObject Interface0DIterator_Type
PyDoc_STRVAR(UnaryFunction0DVectorViewShape___doc__, "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DVectorViewShape`\n" "\n" "Base class for unary functions (functors) that work on\n" ":class:`Interface0DIterator` and return a list of :class:`ViewShape`\n" "objects.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.\n")
PyTypeObject UnaryFunction0DVectorViewShape_Type
static PyObject * UnaryFunction0DVectorViewShape___call__(BPy_UnaryFunction0DVectorViewShape *self, PyObject *args, PyObject *kwds)
static PyObject * UnaryFunction0DVectorViewShape___repr__(BPy_UnaryFunction0DVectorViewShape *self)
int UnaryFunction0DVectorViewShape_Init(PyObject *module)
static void UnaryFunction0DVectorViewShape___dealloc__(BPy_UnaryFunction0DVectorViewShape *self)
static int UnaryFunction0DVectorViewShape___init__(BPy_UnaryFunction0DVectorViewShape *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0D_Type
ATTR_WARN_UNUSED_RESULT const BMVert * v
static struct PyModuleDef module