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