Blender V4.3
BPy_ExternalContourUP1D.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 ExternalContourUP1D___doc__,
24 "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`ExternalContourUP1D`\n"
25 "\n"
26 ".. method:: __call__(inter)\n"
27 "\n"
28 " Returns true if the Interface1D is an external contour.\n"
29 " An Interface1D is an external contour if it is bordered by no shape on\n"
30 " one of its sides.\n"
31 "\n"
32 " :arg inter: An Interface1D object.\n"
33 " :type inter: :class:`freestyle.types.Interface1D`\n"
34 " :return: True if the Interface1D is an external contour, false\n"
35 " otherwise.\n"
36 " :rtype: bool\n");
37
39 PyObject *args,
40 PyObject *kwds)
41{
42 static const char *kwlist[] = {nullptr};
43
44 if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
45 return -1;
46 }
47 self->py_up1D.up1D = new Predicates1D::ExternalContourUP1D();
48 return 0;
49}
50
51/*-----------------------BPy_ExternalContourUP1D type definition ------------------------------*/
52
54 /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
55 /*tp_name*/ "ExternalContourUP1D",
56 /*tp_basicsize*/ sizeof(BPy_ExternalContourUP1D),
57 /*tp_itemsize*/ 0,
58 /*tp_dealloc*/ nullptr,
59 /*tp_vectorcall_offset*/ 0,
60 /*tp_getattr*/ nullptr,
61 /*tp_setattr*/ nullptr,
62 /*tp_as_async*/ nullptr,
63 /*tp_repr*/ nullptr,
64 /*tp_as_number*/ nullptr,
65 /*tp_as_sequence*/ nullptr,
66 /*tp_as_mapping*/ nullptr,
67 /*tp_hash*/ nullptr,
68 /*tp_call*/ nullptr,
69 /*tp_str*/ nullptr,
70 /*tp_getattro*/ nullptr,
71 /*tp_setattro*/ nullptr,
72 /*tp_as_buffer*/ nullptr,
73 /*tp_flags*/ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
74 /*tp_doc*/ ExternalContourUP1D___doc__,
75 /*tp_traverse*/ nullptr,
76 /*tp_clear*/ nullptr,
77 /*tp_richcompare*/ nullptr,
78 /*tp_weaklistoffset*/ 0,
79 /*tp_iter*/ nullptr,
80 /*tp_iternext*/ nullptr,
81 /*tp_methods*/ nullptr,
82 /*tp_members*/ nullptr,
83 /*tp_getset*/ nullptr,
84 /*tp_base*/ &UnaryPredicate1D_Type,
85 /*tp_dict*/ nullptr,
86 /*tp_descr_get*/ nullptr,
87 /*tp_descr_set*/ nullptr,
88 /*tp_dictoffset*/ 0,
89 /*tp_init*/ (initproc)ExternalContourUP1D___init__,
90 /*tp_alloc*/ nullptr,
91 /*tp_new*/ nullptr,
92};
93
95
96#ifdef __cplusplus
97}
98#endif
static int ExternalContourUP1D___init__(BPy_ExternalContourUP1D *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(ExternalContourUP1D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`ExternalContourUP1D`\n" "\n" ".. method:: __call__(inter)\n" "\n" " Returns true if the Interface1D is an external contour.\n" " An Interface1D is an external contour if it is bordered by no shape on\n" " one of its sides.\n" "\n" " :arg inter: An Interface1D object.\n" " :type inter: :class:`freestyle.types.Interface1D`\n" " :return: True if the Interface1D is an external contour, false\n" " otherwise.\n" " :rtype: bool\n")
PyTypeObject ExternalContourUP1D_Type
PyTypeObject UnaryPredicate1D_Type
PyObject * self
inherits from class Rep
Definition AppCanvas.cpp:20