40 PyModule_AddObjectRef(
50 UnaryFunction0DVec3f___doc__,
51 "Class hierarchy: :class:`UnaryFunction0D` > :class:`UnaryFunction0DVec3f`\n"
53 "Base class for unary functions (functors) that work on\n"
54 ":class:`Interface0DIterator` and return a 3D vector.\n"
56 ".. method:: __init__()\n"
58 " Default constructor.\n");
64 static const char *kwlist[] = {
nullptr};
66 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
70 self->uf0D_vec3f->py_uf0D = (PyObject *)
self;
76 delete self->uf0D_vec3f;
82 return PyUnicode_FromFormat(
"type: %s - address: %p", Py_TYPE(
self)->tp_name,
self->uf0D_vec3f);
89 static const char *kwlist[] = {
"it",
nullptr};
92 if (!PyArg_ParseTupleAndKeywords(
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());
115 PyVarObject_HEAD_INIT(
nullptr, 0)
116 "UnaryFunction0DVec3f",
134 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
135 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