Blender  V3.3
Functions | Variables
bmesh_py_api.c File Reference
#include <Python.h>
#include "BLI_utildefines.h"
#include "bmesh.h"
#include "bmesh_py_types.h"
#include "bmesh_py_types_customdata.h"
#include "bmesh_py_types_meshdata.h"
#include "bmesh_py_types_select.h"
#include "bmesh_py_geometry.h"
#include "bmesh_py_ops.h"
#include "bmesh_py_utils.h"
#include "BKE_editmesh.h"
#include "DNA_mesh_types.h"
#include "../generic/py_capi_utils.h"
#include "bmesh_py_api.h"

Go to the source code of this file.

Functions

 PyDoc_STRVAR (bpy_bm_new_doc, ".. method:: new(use_operators=True)\n" "\n" " :arg 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 PyObject * bpy_bm_new (PyObject *UNUSED(self), PyObject *args, PyObject *kw)
 
 PyDoc_STRVAR (bpy_bm_from_edit_mesh_doc, ".. method:: from_edit_mesh(mesh)\n" "\n" " Return a BMesh from this mesh, currently the mesh must already be in editmode.\n" "\n" " :arg mesh: The editmode mesh.\n" " :type mesh: :class:`bpy.types.Mesh`\n" " :return: the BMesh associated with this mesh.\n" " :rtype: :class:`bmesh.types.BMesh`\n")
 
static PyObject * bpy_bm_from_edit_mesh (PyObject *UNUSED(self), PyObject *value)
 
 PyDoc_STRVAR (bpy_bm_update_edit_mesh_doc, ".. method:: update_edit_mesh(mesh, loop_triangles=True, destructive=True)\n" "\n" " Update the mesh after changes to the BMesh in editmode,\n" " optionally recalculating n-gon tessellation.\n" "\n" " :arg mesh: The editmode mesh.\n" " :type mesh: :class:`bpy.types.Mesh`\n" " :arg loop_triangles: Option to recalculate n-gon tessellation.\n" " :type loop_triangles: boolean\n" " :arg destructive: Use when geometry has been added or removed.\n" " :type destructive: boolean\n")
 
static PyObject * bpy_bm_update_edit_mesh (PyObject *UNUSED(self), PyObject *args, PyObject *kw)
 
 PyDoc_STRVAR (BPy_BM_doc, "This module provides access to blenders bmesh data structures.\n" "\n" ".. include:: include__bmesh.rst\n")
 
PyObject * BPyInit_bmesh (void)
 

Variables

static struct PyMethodDef BPy_BM_methods []
 
static struct PyModuleDef BPy_BM_module_def
 

Detailed Description

This file defines the 'bmesh' module.

Definition in file bmesh_py_api.c.

Function Documentation

◆ bpy_bm_from_edit_mesh()

static PyObject* bpy_bm_from_edit_mesh ( PyObject *  UNUSEDself,
PyObject *  value 
)
static

◆ bpy_bm_new()

static PyObject* bpy_bm_new ( PyObject *  UNUSEDself,
PyObject *  args,
PyObject *  kw 
)
static

◆ bpy_bm_update_edit_mesh()

static PyObject* bpy_bm_update_edit_mesh ( PyObject *  UNUSEDself,
PyObject *  args,
PyObject *  kw 
)
static

Definition at line 102 of file bmesh_py_api.c.

◆ BPyInit_bmesh()

PyObject* BPyInit_bmesh ( void  )

◆ PyDoc_STRVAR() [1/4]

PyDoc_STRVAR ( BPy_BM_doc  ,
"This module provides access to blenders bmesh data structures.\n" "\n" ".. include:: include__bmesh.rst\n"   
)

◆ PyDoc_STRVAR() [2/4]

PyDoc_STRVAR ( bpy_bm_from_edit_mesh_doc  ,
".. method:: from_edit_mesh(mesh)\n" "\n" " Return a BMesh from this  mesh,
currently the mesh must already be in editmode.\n" "\n" " :arg mesh:The editmode mesh.\n" " :type mesh::class:`bpy.types.Mesh`\n" " :return:the BMesh associated with this mesh.\n" " :rtype::class:`bmesh.types.BMesh`\n"   
)

◆ PyDoc_STRVAR() [3/4]

PyDoc_STRVAR ( bpy_bm_new_doc  ,
".. method:: new(use_operators=True)\n" "\n" " :arg 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"   
)

◆ PyDoc_STRVAR() [4/4]

PyDoc_STRVAR ( bpy_bm_update_edit_mesh_doc  ,
".. method:: update_edit_mesh(mesh, loop_triangles=True, destructive=True)\n" "\n" " Update the mesh after changes to the BMesh in  editmode,
\n" " optionally recalculating n-gon tessellation.\n" "\n" " :arg mesh:The editmode mesh.\n" " :type mesh::class:`bpy.types.Mesh`\n" " :arg loop_triangles:Option to recalculate n-gon tessellation.\n" " :type loop_triangles:boolean\n" " :arg destructive:Use when geometry has been added or removed.\n" " :type destructive:boolean\n"   
)

Variable Documentation

◆ BPy_BM_methods

struct PyMethodDef BPy_BM_methods[]
static
Initial value:
= {
{"new", (PyCFunction)bpy_bm_new, METH_VARARGS | METH_KEYWORDS, bpy_bm_new_doc},
{"from_edit_mesh", (PyCFunction)bpy_bm_from_edit_mesh, METH_O, bpy_bm_from_edit_mesh_doc},
{"update_edit_mesh",
METH_VARARGS | METH_KEYWORDS,
bpy_bm_update_edit_mesh_doc},
{NULL, NULL, 0, NULL},
}
static PyObject * bpy_bm_from_edit_mesh(PyObject *UNUSED(self), PyObject *value)
Definition: bmesh_py_api.c:71
static PyObject * bpy_bm_update_edit_mesh(PyObject *UNUSED(self), PyObject *args, PyObject *kw)
Definition: bmesh_py_api.c:102
static PyObject * bpy_bm_new(PyObject *UNUSED(self), PyObject *args, PyObject *kw)
Definition: bmesh_py_api.c:42

Definition at line 102 of file bmesh_py_api.c.

◆ BPy_BM_module_def

struct PyModuleDef BPy_BM_module_def
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"bmesh",
BPy_BM_doc,
0,
NULL,
NULL,
NULL,
NULL,
}
static struct PyMethodDef BPy_BM_methods[]
Definition: bmesh_py_api.c:143

Definition at line 153 of file bmesh_py_api.c.

Referenced by BPyInit_bmesh().