Blender V4.3
bmesh_py_ops.cc File Reference
#include <Python.h>
#include "BLI_dynstr.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "bmesh.hh"
#include "bmesh_py_ops.hh"
#include "bmesh_py_ops_call.hh"

Go to the source code of this file.

Functions

static PyObject * bpy_bmesh_op_repr (BPy_BMeshOpFunc *self)
 
static char * bmp_slots_as_args (const BMOSlotType slot_types[BMO_OP_MAX_SLOTS], const bool is_out)
 
static PyObject * bpy_bmesh_op_doc_get (BPy_BMeshOpFunc *self, void *)
 
static PyObject * bpy_bmesh_op_CreatePyObject (const char *opname)
 
static PyObject * bpy_bmesh_ops_module_getattro (PyObject *, PyObject *pyname)
 
static PyObject * bpy_bmesh_ops_module_dir (PyObject *)
 
 PyDoc_STRVAR (BPy_BM_ops_doc, "Access to BMesh operators")
 
PyObject * BPyInit_bmesh_ops ()
 

Variables

static PyGetSetDef bpy_bmesh_op_getseters []
 
static PyTypeObject bmesh_op_Type
 
static PyMethodDef BPy_BM_ops_methods []
 
static PyModuleDef BPy_BM_ops_module_def
 

Detailed Description

This file defines the 'bmesh.ops' module. Operators from 'opdefines' are wrapped.

Definition in file bmesh_py_ops.cc.

Function Documentation

◆ bmp_slots_as_args()

◆ bpy_bmesh_op_CreatePyObject()

static PyObject * bpy_bmesh_op_CreatePyObject ( const char * opname)
static

Definition at line 194 of file bmesh_py_ops.cc.

References bmesh_op_Type, and self.

Referenced by bpy_bmesh_ops_module_getattro().

◆ bpy_bmesh_op_doc_get()

static PyObject * bpy_bmesh_op_doc_get ( BPy_BMeshOpFunc * self,
void *  )
static

◆ bpy_bmesh_op_repr()

static PyObject * bpy_bmesh_op_repr ( BPy_BMeshOpFunc * self)
static

Definition at line 27 of file bmesh_py_ops.cc.

References self.

◆ bpy_bmesh_ops_module_dir()

static PyObject * bpy_bmesh_ops_module_dir ( PyObject * )
static

Definition at line 215 of file bmesh_py_ops.cc.

References bmo_opdefines, bmo_opdefines_total, and ret.

◆ bpy_bmesh_ops_module_getattro()

static PyObject * bpy_bmesh_ops_module_getattro ( PyObject * ,
PyObject * pyname )
static

Definition at line 203 of file bmesh_py_ops.cc.

References BMO_opcode_from_opname(), and bpy_bmesh_op_CreatePyObject().

◆ BPyInit_bmesh_ops()

PyObject * BPyInit_bmesh_ops ( )

Definition at line 261 of file bmesh_py_ops.cc.

References bmesh_op_Type, and BPy_BM_ops_module_def.

Referenced by BPyInit_bmesh().

◆ PyDoc_STRVAR()

PyDoc_STRVAR ( BPy_BM_ops_doc ,
"Access to BMesh operators"  )

Variable Documentation

◆ bmesh_op_Type

PyTypeObject bmesh_op_Type
static

Definition at line 139 of file bmesh_py_ops.cc.

Referenced by bpy_bmesh_op_CreatePyObject(), and BPyInit_bmesh_ops().

◆ BPy_BM_ops_methods

PyMethodDef BPy_BM_ops_methods[]
static
Initial value:
= {
{"__getattr__", (PyCFunction)bpy_bmesh_ops_module_getattro, METH_O, nullptr},
{"__dir__", (PyCFunction)bpy_bmesh_ops_module_dir, METH_NOARGS, nullptr},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * bpy_bmesh_ops_module_getattro(PyObject *, PyObject *pyname)
static PyObject * bpy_bmesh_ops_module_dir(PyObject *)

Definition at line 235 of file bmesh_py_ops.cc.

◆ BPy_BM_ops_module_def

PyModuleDef BPy_BM_ops_module_def
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"bmesh.ops",
BPy_BM_ops_doc,
0,
nullptr,
nullptr,
nullptr,
nullptr,
}
static PyMethodDef BPy_BM_ops_methods[]

Definition at line 249 of file bmesh_py_ops.cc.

Referenced by BPyInit_bmesh_ops().

◆ bpy_bmesh_op_getseters

PyGetSetDef bpy_bmesh_op_getseters[]
static
Initial value:
= {
{"__doc__", (getter)bpy_bmesh_op_doc_get, (setter) nullptr, nullptr, nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static PyObject * bpy_bmesh_op_doc_get(BPy_BMeshOpFunc *self, void *)

Definition at line 131 of file bmesh_py_ops.cc.