22 "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`ShapeUP1D`\n"
24 ".. method:: __init__(first, second=0)\n"
26 " Builds a ShapeUP1D object.\n"
28 " :arg first: The first Id component.\n"
30 " :arg second: The second Id component.\n"
31 " :type second: int\n"
33 ".. method:: __call__(inter)\n"
35 " Returns true if the shape to which the Interface1D belongs to has the\n"
36 " same :class:`freestyle.types.Id` as the one specified by the user.\n"
38 " :arg inter: An Interface1D object.\n"
39 " :type inter: :class:`freestyle.types.Interface1D`\n"
40 " :return: True if Interface1D belongs to the shape of the\n"
41 " user-specified Id.\n"
46 static const char *kwlist[] = {
"first",
"second",
nullptr};
49 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"I|I", (
char **)kwlist, &u1, &u2)) {
59 PyVarObject_HEAD_INIT(
nullptr, 0)
78 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
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" " :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: False.\n" " :rtype: bool\n")
static int ShapeUP1D___init__(BPy_ShapeUP1D *self, PyObject *args, PyObject *kwds)
PyTypeObject ShapeUP1D_Type
PyTypeObject UnaryPredicate1D_Type
BPy_UnaryPredicate1D py_up1D
PyObject_HEAD Freestyle::UnaryPredicate1D * up1D