36 PyModule_AddObjectRef(
46 UnaryFunction0DVec3f___doc__,
47 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DVec3f`\n"
49 "Base class for unary functions (functors) that work on\n"
50 ":class:`Interface0DIterator` and return a 3D vector.\n"
52 ".. method:: __init__()\n"
54 " Default constructor.\n");
59 static const char *kwlist[] = {
nullptr};
61 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
65 self->uf0D_vec3f->py_uf0D = (PyObject *)
self;
71 delete self->uf0D_vec3f;
77 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_vec3f);
84 static const char *kwlist[] = {
"it",
nullptr};
87 if (!PyArg_ParseTupleAndKeywords(
94 PyErr_SetString(PyExc_TypeError,
"__call__ method not properly overridden");
98 if (!PyErr_Occurred()) {
99 string class_name(Py_TYPE(
self)->tp_name);
100 PyErr_SetString(PyExc_RuntimeError, (class_name +
" __call__ method failed").c_str());
110 PyVarObject_HEAD_INIT(
nullptr, 0)
111 "UnaryFunction0DVec3f",
129 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
130 UnaryFunction0DVec3f___doc__,
PyObject * Vector_from_Vec3f(Vec3f &vec)
PyTypeObject Interface0DIterator_Type
static void UnaryFunction0DVec3f___dealloc__(BPy_UnaryFunction0DVec3f *self)
PyDoc_STRVAR(UnaryFunction0DVec3f___doc__, "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DVec3f`\n" "\n" "Base class for unary functions (functors) that work on\n" ":class:`Interface0DIterator` and return a 3D vector.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.\n")
int UnaryFunction0DVec3f_Init(PyObject *module)
static PyObject * UnaryFunction0DVec3f___repr__(BPy_UnaryFunction0DVec3f *self)
PyTypeObject UnaryFunction0DVec3f_Type
static PyObject * UnaryFunction0DVec3f___call__(BPy_UnaryFunction0DVec3f *self, PyObject *args, PyObject *kwds)
static int UnaryFunction0DVec3f___init__(BPy_UnaryFunction0DVec3f *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0D_Type
PyTypeObject VertexOrientation3DF0D_Type
static struct PyModuleDef module