Blender  V3.3
BPy_VertexOrientation3DF0D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
8 
9 #include "../../../view_map/Functions0D.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 using namespace Freestyle;
16 
18 
19 //------------------------INSTANCE METHODS ----------------------------------
20 
22  "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
23  ":class:`freestyle.types.UnaryFunction0DVec3f` > :class:`VertexOrientation3DF0D`\n"
24  "\n"
25  ".. method:: __init__()\n"
26  "\n"
27  " Builds a VertexOrientation3DF0D object.\n"
28  "\n"
29  ".. method:: __call__(it)\n"
30  "\n"
31  " Returns a three-dimensional vector giving the 3D oriented tangent to\n"
32  " the 1D element to which the :class:`freestyle.types.Interface0D`\n"
33  " pointed by the Interface0DIterator belongs. The 3D oriented tangent\n"
34  " is evaluated at the pointed Interface0D.\n"
35  "\n"
36  " :arg it: An Interface0DIterator object.\n"
37  " :type it: :class:`freestyle.types.Interface0DIterator`\n"
38  " :return: The 3D oriented tangent to the 1D element evaluated at the\n"
39  " pointed Interface0D.\n"
40  " :rtype: :class:`mathutils.Vector`\n";
41 
43  PyObject *args,
44  PyObject *kwds)
45 {
46  static const char *kwlist[] = {nullptr};
47 
48  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
49  return -1;
50  }
51  self->py_uf0D_vec3f.uf0D_vec3f = new Functions0D::VertexOrientation3DF0D();
52  self->py_uf0D_vec3f.uf0D_vec3f->py_uf0D = (PyObject *)self;
53  return 0;
54 }
55 
56 /*-----------------------BPy_VertexOrientation3DF0D type definition -----------------------------*/
57 
59  PyVarObject_HEAD_INIT(nullptr, 0) "VertexOrientation3DF0D", /* tp_name */
60  sizeof(BPy_VertexOrientation3DF0D), /* tp_basicsize */
61  0, /* tp_itemsize */
62  nullptr, /* tp_dealloc */
63  0, /* tp_vectorcall_offset */
64  nullptr, /* tp_getattr */
65  nullptr, /* tp_setattr */
66  nullptr, /* tp_reserved */
67  nullptr, /* tp_repr */
68  nullptr, /* tp_as_number */
69  nullptr, /* tp_as_sequence */
70  nullptr, /* tp_as_mapping */
71  nullptr, /* tp_hash */
72  nullptr, /* tp_call */
73  nullptr, /* tp_str */
74  nullptr, /* tp_getattro */
75  nullptr, /* tp_setattro */
76  nullptr, /* tp_as_buffer */
77  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
78  VertexOrientation3DF0D___doc__, /* tp_doc */
79  nullptr, /* tp_traverse */
80  nullptr, /* tp_clear */
81  nullptr, /* tp_richcompare */
82  0, /* tp_weaklistoffset */
83  nullptr, /* tp_iter */
84  nullptr, /* tp_iternext */
85  nullptr, /* tp_methods */
86  nullptr, /* tp_members */
87  nullptr, /* tp_getset */
88  &UnaryFunction0DVec3f_Type, /* tp_base */
89  nullptr, /* tp_dict */
90  nullptr, /* tp_descr_get */
91  nullptr, /* tp_descr_set */
92  0, /* tp_dictoffset */
93  (initproc)VertexOrientation3DF0D___init__, /* tp_init */
94  nullptr, /* tp_alloc */
95  nullptr, /* tp_new */
96 };
97 
99 
100 #ifdef __cplusplus
101 }
102 #endif
PyTypeObject UnaryFunction0DVec3f_Type
static int VertexOrientation3DF0D___init__(BPy_VertexOrientation3DF0D *self, PyObject *args, PyObject *kwds)
static char VertexOrientation3DF0D___doc__[]
PyTypeObject VertexOrientation3DF0D_Type
inherits from class Rep
Definition: AppCanvas.cpp:18