Blender V4.3
BPy_SameShapeIdBP1D.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
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15using namespace Freestyle;
16
18
19//------------------------INSTANCE METHODS ----------------------------------
20
22 /* Wrap. */
23 SameShapeIdBP1D___doc__,
24 "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`SameShapeIdBP1D`\n"
25 "\n"
26 ".. method:: __call__(inter1, inter2)\n"
27 "\n"
28 " Returns true if inter1 and inter2 belong to the same shape.\n"
29 "\n"
30 " :arg inter1: The first Interface1D object.\n"
31 " :type inter1: :class:`freestyle.types.Interface1D`\n"
32 " :arg inter2: The second Interface1D object.\n"
33 " :type inter2: :class:`freestyle.types.Interface1D`\n"
34 " :return: True or false.\n"
35 " :rtype: bool\n");
36
37static int SameShapeIdBP1D___init__(BPy_SameShapeIdBP1D *self, PyObject *args, PyObject *kwds)
38{
39 static const char *kwlist[] = {nullptr};
40
41 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
42 return -1;
43 }
44 self->py_bp1D.bp1D = new Predicates1D::SameShapeIdBP1D();
45 return 0;
46}
47
48/*-----------------------BPy_SameShapeIdBP1D type definition ------------------------------*/
49
50PyTypeObject SameShapeIdBP1D_Type = {
51 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
52 /*tp_name*/ "SameShapeIdBP1D",
53 /*tp_basicsize*/ sizeof(BPy_SameShapeIdBP1D),
54 /*tp_itemsize*/ 0,
55 /*tp_dealloc*/ nullptr,
56 /*tp_vectorcall_offset*/ 0,
57 /*tp_getattr*/ nullptr,
58 /*tp_setattr*/ nullptr,
59 /*tp_as_async*/ nullptr,
60 /*tp_repr*/ nullptr,
61 /*tp_as_number*/ nullptr,
62 /*tp_as_sequence*/ nullptr,
63 /*tp_as_mapping*/ nullptr,
64 /*tp_hash*/ nullptr,
65 /*tp_call*/ nullptr,
66 /*tp_str*/ nullptr,
67 /*tp_getattro*/ nullptr,
68 /*tp_setattro*/ nullptr,
69 /*tp_as_buffer*/ nullptr,
70 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
71 /*tp_doc*/ SameShapeIdBP1D___doc__,
72 /*tp_traverse*/ nullptr,
73 /*tp_clear*/ nullptr,
74 /*tp_richcompare*/ nullptr,
75 /*tp_weaklistoffset*/ 0,
76 /*tp_iter*/ nullptr,
77 /*tp_iternext*/ nullptr,
78 /*tp_methods*/ nullptr,
79 /*tp_members*/ nullptr,
80 /*tp_getset*/ nullptr,
81 /*tp_base*/ &BinaryPredicate1D_Type,
82 /*tp_dict*/ nullptr,
83 /*tp_descr_get*/ nullptr,
84 /*tp_descr_set*/ nullptr,
85 /*tp_dictoffset*/ 0,
86 /*tp_init*/ (initproc)SameShapeIdBP1D___init__,
87 /*tp_alloc*/ nullptr,
88 /*tp_new*/ nullptr,
89};
90
92
93#ifdef __cplusplus
94}
95#endif
PyTypeObject BinaryPredicate1D_Type
PyTypeObject SameShapeIdBP1D_Type
static int SameShapeIdBP1D___init__(BPy_SameShapeIdBP1D *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(SameShapeIdBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`SameShapeIdBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Returns true if inter1 and inter2 belong to the same shape.\n" "\n" " :arg inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :arg inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: True or false.\n" " :rtype: bool\n")
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20