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");
63 static const char *kwlist[] = {
nullptr};
65 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
69 self->uf0D_vectorviewshape->py_uf0D = (PyObject *)
self;
75 delete self->uf0D_vectorviewshape;
81 return PyUnicode_FromFormat(
82 "type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_vectorviewshape);
89 static const char *kwlist[] = {
"it",
nullptr};
92 if (!PyArg_ParseTupleAndKeywords(
98 if (
typeid(*(
self->uf0D_vectorviewshape)) ==
typeid(
UnaryFunction0D<std::vector<ViewShape *>>)) {
99 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
103 if (!PyErr_Occurred()) {
104 string class_name(Py_TYPE(
self)->tp_name);
105 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
110 const uint list_len =
self->uf0D_vectorviewshape->result.size();
111 PyObject *list = PyList_New(list_len);
112 for (
uint i = 0;
i < list_len;
i++) {
123 PyVarObject_HEAD_INIT(
nullptr, 0)
124 "UnaryFunction0DVectorViewShape",
142 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
143 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