Blender  V3.3
BPy_ExternalContourUP1D.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 using namespace Freestyle;
14 
16 
17 //------------------------INSTANCE METHODS ----------------------------------
18 
20  "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`ExternalContourUP1D`\n"
21  "\n"
22  ".. method:: __call__(inter)\n"
23  "\n"
24  " Returns true if the Interface1D is an external contour. An\n"
25  " Interface1D is an external contour if it is bordered by no shape on\n"
26  " one of its sides.\n"
27  "\n"
28  " :arg inter: An Interface1D object.\n"
29  " :type inter: :class:`freestyle.types.Interface1D`\n"
30  " :return: True if the Interface1D is an external contour, false\n"
31  " otherwise.\n"
32  " :rtype: bool\n";
33 
35  PyObject *args,
36  PyObject *kwds)
37 {
38  static const char *kwlist[] = {nullptr};
39 
40  if (!PyArg_ParseTupleAndKeywords(args, kwds, "", (char **)kwlist)) {
41  return -1;
42  }
43  self->py_up1D.up1D = new Predicates1D::ExternalContourUP1D();
44  return 0;
45 }
46 
47 /*-----------------------BPy_ExternalContourUP1D type definition ------------------------------*/
48 
49 PyTypeObject ExternalContourUP1D_Type = {
50  PyVarObject_HEAD_INIT(nullptr, 0) "ExternalContourUP1D", /* tp_name */
51  sizeof(BPy_ExternalContourUP1D), /* tp_basicsize */
52  0, /* tp_itemsize */
53  nullptr, /* tp_dealloc */
54  0, /* tp_vectorcall_offset */
55  nullptr, /* tp_getattr */
56  nullptr, /* tp_setattr */
57  nullptr, /* tp_reserved */
58  nullptr, /* tp_repr */
59  nullptr, /* tp_as_number */
60  nullptr, /* tp_as_sequence */
61  nullptr, /* tp_as_mapping */
62  nullptr, /* tp_hash */
63  nullptr, /* tp_call */
64  nullptr, /* tp_str */
65  nullptr, /* tp_getattro */
66  nullptr, /* tp_setattro */
67  nullptr, /* tp_as_buffer */
68  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
69  ExternalContourUP1D___doc__, /* tp_doc */
70  nullptr, /* tp_traverse */
71  nullptr, /* tp_clear */
72  nullptr, /* tp_richcompare */
73  0, /* tp_weaklistoffset */
74  nullptr, /* tp_iter */
75  nullptr, /* tp_iternext */
76  nullptr, /* tp_methods */
77  nullptr, /* tp_members */
78  nullptr, /* tp_getset */
79  &UnaryPredicate1D_Type, /* tp_base */
80  nullptr, /* tp_dict */
81  nullptr, /* tp_descr_get */
82  nullptr, /* tp_descr_set */
83  0, /* tp_dictoffset */
84  (initproc)ExternalContourUP1D___init__, /* tp_init */
85  nullptr, /* tp_alloc */
86  nullptr, /* tp_new */
87 };
88 
90 
91 #ifdef __cplusplus
92 }
93 #endif
static int ExternalContourUP1D___init__(BPy_ExternalContourUP1D *self, PyObject *args, PyObject *kwds)
static char ExternalContourUP1D___doc__[]
PyTypeObject ExternalContourUP1D_Type
PyTypeObject UnaryPredicate1D_Type
inherits from class Rep
Definition: AppCanvas.cpp:18