67 "Class hierarchy: int > :class:`Nature`\n"
69 "Different possible natures of 0D and 1D elements of the ViewMap.\n"
73 ".. attribute:: POINT\n"
75 " True for any 0D element.\n"
77 ".. attribute:: S_VERTEX\n"
79 " True for SVertex.\n"
81 ".. attribute:: VIEW_VERTEX\n"
83 " True for ViewVertex.\n"
85 ".. attribute:: NON_T_VERTEX\n"
87 " True for NonTVertex.\n"
89 ".. attribute:: T_VERTEX\n"
91 " True for TVertex.\n"
93 ".. attribute:: CUSP\n"
99 ".. attribute:: NO_FEATURE\n"
101 " True for non feature edges (always false for 1D elements of the ViewMap).\n"
103 ".. attribute:: SILHOUETTE\n"
105 " True for silhouettes.\n"
107 ".. attribute:: BORDER\n"
109 " True for borders.\n"
111 ".. attribute:: CREASE\n"
113 " True for creases.\n"
115 ".. attribute:: RIDGE\n"
117 " True for ridges.\n"
119 ".. attribute:: VALLEY\n"
121 " True for valleys.\n"
123 ".. attribute:: SUGGESTIVE_CONTOUR\n"
125 " True for suggestive contours.\n"
127 ".. attribute:: MATERIAL_BOUNDARY\n"
129 " True for edges at material boundaries.\n"
131 ".. attribute:: EDGE_MARK\n"
133 " True for edges having user-defined edge marks.\n");
135 PyVarObject_HEAD_INIT(
nullptr, 0)
137 sizeof(PyLongObject),
180 if (module ==
nullptr) {
187 PyModule_AddObjectRef(module,
"Nature", (PyObject *)&
Nature_Type);
189#define ADD_TYPE_CONST(id) \
190 PyLong_subtype_add_to_dict(Nature_Type.tp_dict, &Nature_Type, STRINGIFY(id), Nature::id)
221 PyErr_SetString(PyExc_TypeError,
"operands must be a Nature object");
225 if ((op1 = PyLong_AsLong(a)) == -1 && PyErr_Occurred()) {
226 PyErr_SetString(PyExc_ValueError,
"operand 1: unexpected Nature value");
229 if ((op2 = PyLong_AsLong(
b)) == -1 && PyErr_Occurred()) {
230 PyErr_SetString(PyExc_ValueError,
"operand 2: unexpected Nature value");
PyObject * PyLong_subtype_new(PyTypeObject *ty, long value)
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" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
#define ADD_TYPE_CONST(id)
static PyObject * BPy_Nature_xor(PyObject *a, PyObject *b)
static PyObject * BPy_Nature_or(PyObject *a, PyObject *b)
int Nature_Init(PyObject *module)
static PyObject * BPy_Nature_bitwise(PyObject *a, int op, PyObject *b)
static PyNumberMethods nature_as_number
static PyObject * BPy_Nature_and(PyObject *a, PyObject *b)
#define BPy_Nature_Check(v)