71 "Class hierarchy: int > :class:`Nature`\n"
73 "Different possible natures of 0D and 1D elements of the ViewMap.\n"
77 "* Nature.POINT: True for any 0D element.\n"
78 "* Nature.S_VERTEX: True for SVertex.\n"
79 "* Nature.VIEW_VERTEX: True for ViewVertex.\n"
80 "* Nature.NON_T_VERTEX: True for NonTVertex.\n"
81 "* Nature.T_VERTEX: True for TVertex.\n"
82 "* Nature.CUSP: True for CUSP.\n"
86 "* Nature.NO_FEATURE: True for non feature edges (always false for 1D\n"
87 " elements of the ViewMap).\n"
88 "* Nature.SILHOUETTE: True for silhouettes.\n"
89 "* Nature.BORDER: True for borders.\n"
90 "* Nature.CREASE: True for creases.\n"
91 "* Nature.RIDGE: True for ridges.\n"
92 "* Nature.VALLEY: True for valleys.\n"
93 "* Nature.SUGGESTIVE_CONTOUR: True for suggestive contours.\n"
94 "* Nature.MATERIAL_BOUNDARY: True for edges at material boundaries.\n"
95 "* Nature.EDGE_MARK: True for edges having user-defined edge marks.");
100 PyVarObject_HEAD_INIT(
nullptr, 0)
102 sizeof(PyLongObject),
154#define ADD_TYPE_CONST(id) \
155 PyLong_subtype_add_to_dict(Nature_Type.tp_dict, &Nature_Type, STRINGIFY(id), Nature::id)
187 PyErr_SetString(PyExc_TypeError,
"operands must be a Nature object");
191 if ((op1 = PyLong_AsLong(a)) == -1 && PyErr_Occurred()) {
192 PyErr_SetString(PyExc_ValueError,
"operand 1: unexpected Nature value");
195 if ((op2 = PyLong_AsLong(
b)) == -1 && PyErr_Occurred()) {
196 PyErr_SetString(PyExc_ValueError,
"operand 2: unexpected Nature value");
219 return (PyObject *)
result;
PyObject * PyLong_subtype_new(PyTypeObject *ty, long value)
static PyObject * BPy_Nature_xor(PyObject *a, PyObject *b)
#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)
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.")
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
local_group_size(16, 16) .push_constant(Type b
static struct PyModuleDef module