67 "Class hierarchy: int > :class:`Nature`\n"
69 "Different possible natures of 0D and 1D elements of the ViewMap.\n"
73 "* Nature.POINT: True for any 0D element.\n"
74 "* Nature.S_VERTEX: True for SVertex.\n"
75 "* Nature.VIEW_VERTEX: True for ViewVertex.\n"
76 "* Nature.NON_T_VERTEX: True for NonTVertex.\n"
77 "* Nature.T_VERTEX: True for TVertex.\n"
78 "* Nature.CUSP: True for CUSP.\n"
82 "* Nature.NO_FEATURE: True for non feature edges (always false for 1D\n"
83 " elements of the ViewMap).\n"
84 "* Nature.SILHOUETTE: True for silhouettes.\n"
85 "* Nature.BORDER: True for borders.\n"
86 "* Nature.CREASE: True for creases.\n"
87 "* Nature.RIDGE: True for ridges.\n"
88 "* Nature.VALLEY: True for valleys.\n"
89 "* Nature.SUGGESTIVE_CONTOUR: True for suggestive contours.\n"
90 "* Nature.MATERIAL_BOUNDARY: True for edges at material boundaries.\n"
91 "* Nature.EDGE_MARK: True for edges having user-defined edge marks.\n");
93 PyVarObject_HEAD_INIT(
nullptr, 0)
147#define ADD_TYPE_CONST(id) \
148 PyLong_subtype_add_to_dict(Nature_Type.tp_dict, &Nature_Type, STRINGIFY(id), Nature::id)
180 PyErr_SetString(PyExc_TypeError,
"operands must be a Nature object");
184 if ((op1 = PyLong_AsLong(
a)) == -1 && PyErr_Occurred()) {
185 PyErr_SetString(PyExc_ValueError,
"operand 1: unexpected Nature value");
188 if ((op2 = PyLong_AsLong(
b)) == -1 && PyErr_Occurred()) {
189 PyErr_SetString(PyExc_ValueError,
"operand 2: unexpected Nature value");
212 return (PyObject *)
result;
PyObject * PyLong_subtype_new(PyTypeObject *ty, long value)
static PyObject * BPy_Nature_xor(PyObject *a, PyObject *b)
PyDoc_STRVAR(Nature_doc, "Class hierarchy: int > :class:`Nature`\n" "\n" "Different possible natures of 0D and 1D elements of the ViewMap.\n" "\n" "Vertex natures:\n" "\n" "* Nature.POINT: True for any 0D element.\n" "* Nature.S_VERTEX: True for SVertex.\n" "* Nature.VIEW_VERTEX: True for ViewVertex.\n" "* Nature.NON_T_VERTEX: True for NonTVertex.\n" "* Nature.T_VERTEX: True for TVertex.\n" "* Nature.CUSP: True for CUSP.\n" "\n" "Edge natures:\n" "\n" "* Nature.NO_FEATURE: True for non feature edges (always false for 1D\n" " elements of the ViewMap).\n" "* Nature.SILHOUETTE: True for silhouettes.\n" "* Nature.BORDER: True for borders.\n" "* Nature.CREASE: True for creases.\n" "* Nature.RIDGE: True for ridges.\n" "* Nature.VALLEY: True for valleys.\n" "* Nature.SUGGESTIVE_CONTOUR: True for suggestive contours.\n" "* Nature.MATERIAL_BOUNDARY: True for edges at material boundaries.\n" "* Nature.EDGE_MARK: True for edges having user-defined edge marks.\n")
#define ADD_TYPE_CONST(id)
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)
ATTR_WARN_UNUSED_RESULT const BMVert * v
static struct PyModuleDef module