Blender V5.3
BPy_Orientation3DF1D.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
8
10
12#include "../../BPy_Convert.h"
14
15using namespace Freestyle;
16
18
19//------------------------INSTANCE METHODS ----------------------------------
20
22 /* Wrap. */
23 Orientation3DF1D___doc__,
24 "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > "
25 ":class:`freestyle.types.UnaryFunction1DVec3f` > :class:`Orientation3DF1D`\n"
26 "\n"
27 ".. method:: __init__(integration_type=IntegrationType.MEAN)\n"
28 "\n"
29 " Builds an Orientation3DF1D object.\n"
30 "\n"
31 " :param integration_type: The integration method used to compute a single value\n"
32 " from a set of values.\n"
33 " :type integration_type: :class:`freestyle.types.IntegrationType`\n"
34 "\n"
35 ".. method:: __call__(inter)\n"
36 "\n"
37 " Returns the 3D orientation of the Interface1D.\n"
38 "\n"
39 " :param inter: An Interface1D object.\n"
40 " :type inter: :class:`freestyle.types.Interface1D`\n"
41 " :return: The 3D orientation of the Interface1D.\n"
42 " :rtype: :class:`mathutils.Vector`\n");
43static int Orientation3DF1D___init__(BPy_Orientation3DF1D *self, PyObject *args, PyObject *kwds)
44{
45 static const char *kwlist[] = {"integration_type", nullptr};
46 PyObject *obj = nullptr;
47
48 if (!PyArg_ParseTupleAndKeywords(args,
49 kwds,
50 "|" /* Optional arguments. */
51 "O!" /* `integration_type` */
52 ":__init__",
53 (char **)kwlist,
55 &obj))
56 {
57 return -1;
58 }
61 return 0;
62}
63
64/*-----------------------BPy_Orientation3DF1D type definition ------------------------------*/
65
66PyTypeObject Orientation3DF1D_Type = {
67 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
68 /*tp_name*/ "Orientation3DF1D",
69 /*tp_basicsize*/ sizeof(BPy_Orientation3DF1D),
70 /*tp_itemsize*/ 0,
71 /*tp_dealloc*/ nullptr,
72 /*tp_vectorcall_offset*/ 0,
73 /*tp_getattr*/ nullptr,
74 /*tp_setattr*/ nullptr,
75 /*tp_as_async*/ nullptr,
76 /*tp_repr*/ nullptr,
77 /*tp_as_number*/ nullptr,
78 /*tp_as_sequence*/ nullptr,
79 /*tp_as_mapping*/ nullptr,
80 /*tp_hash*/ nullptr,
81 /*tp_call*/ nullptr,
82 /*tp_str*/ nullptr,
83 /*tp_getattro*/ nullptr,
84 /*tp_setattro*/ nullptr,
85 /*tp_as_buffer*/ nullptr,
86 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
87 /*tp_doc*/ Orientation3DF1D___doc__,
88 /*tp_traverse*/ nullptr,
89 /*tp_clear*/ nullptr,
90 /*tp_richcompare*/ nullptr,
91 /*tp_weaklistoffset*/ 0,
92 /*tp_iter*/ nullptr,
93 /*tp_iternext*/ nullptr,
94 /*tp_methods*/ nullptr,
95 /*tp_members*/ nullptr,
96 /*tp_getset*/ nullptr,
97 /*tp_base*/ &UnaryFunction1DVec3f_Type,
98 /*tp_dict*/ nullptr,
99 /*tp_descr_get*/ nullptr,
100 /*tp_descr_set*/ nullptr,
101 /*tp_dictoffset*/ 0,
102 /*tp_init*/ (initproc)Orientation3DF1D___init__,
103 /*tp_alloc*/ nullptr,
104 /*tp_new*/ nullptr,
105};
106
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyTypeObject IntegrationType_Type
PyTypeObject Orientation3DF1D_Type
static int Orientation3DF1D___init__(BPy_Orientation3DF1D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction1DVec3f_Type
Functions taking 1D input.
inherits from class Rep
Definition AppCanvas.cpp:20
BPy_UnaryFunction1DVec3f py_uf1D_vec3f
Freestyle::UnaryFunction1D< Freestyle::Geometry::Vec3f > * uf1D_vec3f