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