23 #include "../BPy_Convert.h"
24 #include "../Iterator/BPy_Interface0DIterator.h"
62 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DVec3f`\n"
64 "Base class for unary functions (functors) that work on\n"
65 ":class:`Interface0DIterator` and return a 3D vector.\n"
67 ".. method:: __init__()\n"
69 " Default constructor.\n";
75 static const char *kwlist[] = {
nullptr};
77 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
81 self->uf0D_vec3f->py_uf0D = (PyObject *)
self;
87 delete self->uf0D_vec3f;
93 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_vec3f);
100 static const char *kwlist[] = {
"it",
nullptr};
103 if (!PyArg_ParseTupleAndKeywords(
109 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
113 if (!PyErr_Occurred()) {
114 string class_name(Py_TYPE(
self)->tp_name);
115 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
125 PyVarObject_HEAD_INIT(
nullptr, 0)
"UnaryFunction0DVec3f",
143 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyObject * Vector_from_Vec3f(Vec3f &vec)
PyTypeObject Interface0DIterator_Type
static void UnaryFunction0DVec3f___dealloc__(BPy_UnaryFunction0DVec3f *self)
static char UnaryFunction0DVec3f___doc__[]
static PyObject * UnaryFunction0DVec3f___call__(BPy_UnaryFunction0DVec3f *self, PyObject *args, PyObject *kwds)
int UnaryFunction0DVec3f_Init(PyObject *module)
static PyObject * UnaryFunction0DVec3f___repr__(BPy_UnaryFunction0DVec3f *self)
PyTypeObject UnaryFunction0DVec3f_Type
static int UnaryFunction0DVec3f___init__(BPy_UnaryFunction0DVec3f *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0D_Type
PyTypeObject VertexOrientation3DF0D_Type
static struct PyModuleDef module