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