37 PyModule_AddObjectRef(
52 UnaryFunction0DVectorViewShape___doc__,
53 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DVectorViewShape`\n"
55 "Base class for unary functions (functors) that work on\n"
56 ":class:`Interface0DIterator` and return a list of :class:`ViewShape`\n"
59 ".. method:: __init__()\n"
61 " Default constructor.\n");
67 static const char *kwlist[] = {
nullptr};
69 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
79 delete self->uf0D_vectorviewshape;
85 return PyUnicode_FromFormat(
86 "type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_vectorviewshape);
93 static const char *kwlist[] = {
"it",
nullptr};
96 if (!PyArg_ParseTupleAndKeywords(
102 if (
typeid(*(
self->uf0D_vectorviewshape)) ==
typeid(
UnaryFunction0D<std::vector<ViewShape *>>)) {
103 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
107 if (!PyErr_Occurred()) {
108 string class_name(Py_TYPE(
self)->tp_name);
109 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
114 const uint list_len =
self->uf0D_vectorviewshape->result.size();
115 PyObject *list = PyList_New(list_len);
116 for (
uint i = 0; i < list_len; i++) {
127 PyVarObject_HEAD_INIT(
nullptr, 0)
128 "UnaryFunction0DVectorViewShape",
146 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
147 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