Blender
V3.3
|
#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 |
This file defines the 'bmesh' module.
Definition in file bmesh_py_api.c.
|
static |
Definition at line 71 of file bmesh_py_api.c.
References BMEditMesh::bm, bm, BPy_BMesh_CreatePyObject(), BPY_BMFLAG_IS_WRAPPED, Mesh::edit_mesh, NULL, and PyC_RNA_AsPointer().
|
static |
Definition at line 42 of file bmesh_py_api.c.
References bm, bm_mesh_allocsize_default, BM_mesh_create(), BPy_BMesh_CreatePyObject(), BPY_BMFLAG_NOP, NULL, and PyC_ParseBool().
|
static |
Definition at line 102 of file bmesh_py_api.c.
PyObject* BPyInit_bmesh | ( | void | ) |
Definition at line 169 of file bmesh_py_api.c.
References BPy_BM_init_types(), BPy_BM_init_types_customdata(), BPy_BM_init_types_meshdata(), BPy_BM_init_types_select(), BPy_BM_module_def, BPyInit_bmesh_geometry(), BPyInit_bmesh_ops(), BPyInit_bmesh_types(), BPyInit_bmesh_utils(), and mod().
PyDoc_STRVAR | ( | BPy_BM_doc | , |
"This module provides access to blenders bmesh data structures.\n" "\n" ".. include:: include__bmesh.rst\n" | |||
) |
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 | ( | 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 | ( | 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 |
Definition at line 102 of file bmesh_py_api.c.
|
static |
Definition at line 153 of file bmesh_py_api.c.
Referenced by BPyInit_bmesh().