30 return PyUnicode_FromFormat(
"<%.200s bmesh.ops.%.200s()>", Py_TYPE(self)->tp_name, self->
opname);
48 while (*slot_types[i].name) {
52 const int name_len = is_out ? (strchr(slot_types[i].name,
'.') - slot_types[i].name) :
53 sizeof(slot_types[i].name);
54 const char *value =
"<Unknown>";
55 switch (slot_types[i].type) {
61 value = slot_types[i].enum_flags[0].identifier;
92 i ?
", %.*s=%s%s%s%s%s" :
"%.*s=%s%s%s%s%s",
120 ret = PyUnicode_FromFormat(
"%.200s bmesh.ops.%.200s(bmesh, %s)\n -> dict(%s)",
121 Py_TYPE(self)->tp_name,
127 MEM_delete(slot_out);
135 static_cast<setter
>(
nullptr),
138 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
145 PyVarObject_HEAD_INIT(
nullptr, 0)
205 return reinterpret_cast<PyObject *
>(self);
210 const char *opname = PyUnicode_AsUTF8(pyname);
218 PyErr_Format(PyExc_AttributeError,
"BMeshOpsModule: operator \"%.200s\" doesn't exist", opname);
230 for (i = 0; i < tot; i++) {
239# pragma clang diagnostic push
240# pragma clang diagnostic ignored "-Wcast-function-type"
242# pragma GCC diagnostic push
243# pragma GCC diagnostic ignored "-Wcast-function-type"
250 {
nullptr,
nullptr, 0,
nullptr},
255# pragma clang diagnostic pop
257# pragma GCC diagnostic pop
264 "Access to BMesh operators.");
A dynamically sized string ADT.
Read Blender memory allocation and freeing.
void BLI_dynstr_appendf(DynStr *__restrict ds, const char *__restrict format,...) ATTR_PRINTF_FORMAT(2
static PyObject * bpy_bmesh_op_doc_get(BPy_BMeshOpFunc *self, void *)
PyObject * BPyInit_bmesh_ops()
@ BMO_OP_SLOT_SUBTYPE_INT_ENUM
@ BMO_OP_SLOT_SUBTYPE_INT_FLAG
PyDoc_STRVAR(bpy_bm_new_doc, ".. function:: new(*, use_operators=True)\n" "\n" " :param use_operators: Support calling operators in :mod:`bmesh.ops` (uses some " "extra memory per vert/edge/face).\n" " :type use_operators: bool\n" " :return: Return a new, empty BMesh.\n" " :rtype: :class:`bmesh.types.BMesh`\n")
static char * bmp_slots_as_args(const BMOSlotType slot_types[BMO_OP_MAX_SLOTS], const bool is_out)
void BLI_dynstr_free(DynStr *ds) ATTR_NONNULL()
static PyGetSetDef bpy_bmesh_op_getseters[]
const int bmo_opdefines_total
static PyMethodDef BPy_BM_ops_methods[]
static PyObject * bpy_bmesh_op_repr(BPy_BMeshOpFunc *self)
static PyTypeObject bmesh_op_Type
char * BLI_dynstr_get_cstring(const DynStr *ds) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
@ BMO_OP_SLOT_SUBTYPE_ELEM_IS_SINGLE
@ BMO_OP_SLOT_ELEMENT_BUF
static PyObject * bpy_bmesh_op_CreatePyObject(const char *opname)
const BMOpDefine * bmo_opdefines[]
static PyObject * bpy_bmesh_ops_module_getattro(PyObject *, PyObject *pyname)
int BMO_opcode_from_opname(const char *opname)
PyObject * BPy_BMO_call(BPy_BMeshOpFunc *self, PyObject *args, PyObject *kw)
static PyObject * bpy_bmesh_ops_module_dir(PyObject *)
DynStr * BLI_dynstr_new() ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
static PyModuleDef BPy_BM_ops_module_def
PyObject_HEAD const char * opname