Blender  V2.93
Classes | Macros | Typedefs | Functions | Variables
bmesh_py_types_meshdata.c File Reference
#include <Python.h>
#include "../mathutils/mathutils.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math_base.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "BKE_deform.h"
#include "bmesh_py_types_meshdata.h"
#include "../generic/py_capi_utils.h"
#include "../generic/python_utildefines.h"

Go to the source code of this file.

Classes

struct  BPy_BMLoopUV
 
struct  BPy_BMVertSkin
 
struct  BPy_BMDeformVert
 

Macros

#define BPy_BMLoopUV_Check(v)   (Py_TYPE(v) == &BPy_BMLoopUV_Type)
 
#define BPy_BMVertSkin_Check(v)   (Py_TYPE(v) == &BPy_BMVertSkin_Type)
 
#define MLOOPCOL_FROM_CAPSULE(color_capsule)    ((MLoopCol *)PyCapsule_GetPointer(color_capsule, NULL))
 
#define BPy_BMDeformVert_Check(v)   (Py_TYPE(v) == &BPy_BMDeformVert_Type)
 

Typedefs

typedef struct BPy_BMLoopUV BPy_BMLoopUV
 
typedef struct BPy_BMVertSkin BPy_BMVertSkin
 
typedef struct BPy_BMDeformVert BPy_BMDeformVert
 

Functions

 PyDoc_STRVAR (bpy_bmloopuv_uv_doc, "Loops UV (as a 2D Vector).\n\n:type: :class:`mathutils.Vector`")
 
static PyObject * bpy_bmloopuv_uv_get (BPy_BMLoopUV *self, void *UNUSED(closure))
 
static int bpy_bmloopuv_uv_set (BPy_BMLoopUV *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (bpy_bmloopuv_flag__pin_uv_doc, "UV pin state.\n\n:type: boolean")
 
 PyDoc_STRVAR (bpy_bmloopuv_flag__select_doc, "UV select state.\n\n:type: boolean")
 
static PyObject * bpy_bmloopuv_flag_get (BPy_BMLoopUV *self, void *flag_p)
 
static int bpy_bmloopuv_flag_set (BPy_BMLoopUV *self, PyObject *value, void *flag_p)
 
static void bm_init_types_bmloopuv (void)
 
int BPy_BMLoopUV_AssignPyObject (struct MLoopUV *mloopuv, PyObject *value)
 
PyObject * BPy_BMLoopUV_CreatePyObject (struct MLoopUV *mloopuv)
 
 PyDoc_STRVAR (bpy_bmvertskin_radius_doc, "Vert skin radii (as a 2D Vector).\n\n:type: :class:`mathutils.Vector`")
 
static PyObject * bpy_bmvertskin_radius_get (BPy_BMVertSkin *self, void *UNUSED(closure))
 
static int bpy_bmvertskin_radius_set (BPy_BMVertSkin *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (bpy_bmvertskin_flag__use_root_doc, "Use as root vertex. Setting this flag does not clear other roots in the same mesh " "island.\n\n:type: boolean")
 
 PyDoc_STRVAR (bpy_bmvertskin_flag__use_loose_doc, "Use loose vertex.\n\n:type: boolean")
 
static PyObject * bpy_bmvertskin_flag_get (BPy_BMVertSkin *self, void *flag_p)
 
static int bpy_bmvertskin_flag_set (BPy_BMVertSkin *self, PyObject *value, void *flag_p)
 
static void bm_init_types_bmvertskin (void)
 
int BPy_BMVertSkin_AssignPyObject (struct MVertSkin *mvertskin, PyObject *value)
 
PyObject * BPy_BMVertSkin_CreatePyObject (struct MVertSkin *mvertskin)
 
static void mloopcol_to_float (const MLoopCol *mloopcol, float r_col[4])
 
static void mloopcol_from_float (MLoopCol *mloopcol, const float col[4])
 
static int mathutils_bmloopcol_check (BaseMathObject *UNUSED(bmo))
 
static int mathutils_bmloopcol_get (BaseMathObject *bmo, int UNUSED(subtype))
 
static int mathutils_bmloopcol_set (BaseMathObject *bmo, int UNUSED(subtype))
 
static int mathutils_bmloopcol_get_index (BaseMathObject *bmo, int subtype, int UNUSED(index))
 
static int mathutils_bmloopcol_set_index (BaseMathObject *bmo, int subtype, int index)
 
static void bm_init_types_bmloopcol (void)
 
int BPy_BMLoopColor_AssignPyObject (struct MLoopCol *mloopcol, PyObject *value)
 
PyObject * BPy_BMLoopColor_CreatePyObject (struct MLoopCol *mloopcol)
 
static int bpy_bmdeformvert_len (BPy_BMDeformVert *self)
 
static PyObject * bpy_bmdeformvert_subscript (BPy_BMDeformVert *self, PyObject *key)
 
static int bpy_bmdeformvert_ass_subscript (BPy_BMDeformVert *self, PyObject *key, PyObject *value)
 
static int bpy_bmdeformvert_contains (BPy_BMDeformVert *self, PyObject *value)
 
 PyDoc_STRVAR (bpy_bmdeformvert_keys_doc, ".. method:: keys()\n" "\n" " Return the group indices used by this vertex\n" " (matching pythons dict.keys() functionality).\n" "\n" " :return: the deform group this vertex uses\n" " :rtype: list of ints\n")
 
static PyObject * bpy_bmdeformvert_keys (BPy_BMDeformVert *self)
 
 PyDoc_STRVAR (bpy_bmdeformvert_values_doc, ".. method:: values()\n" "\n" " Return the weights of the deform vertex\n" " (matching pythons dict.values() functionality).\n" "\n" " :return: The weights that influence this vertex\n" " :rtype: list of floats\n")
 
static PyObject * bpy_bmdeformvert_values (BPy_BMDeformVert *self)
 
 PyDoc_STRVAR (bpy_bmdeformvert_items_doc, ".. method:: items()\n" "\n" " Return (group, weight) pairs for this vertex\n" " (matching pythons dict.items() functionality).\n" "\n" " :return: (key, value) pairs for each deform weight of this vertex.\n" " :rtype: list of tuples\n")
 
static PyObject * bpy_bmdeformvert_items (BPy_BMDeformVert *self)
 
 PyDoc_STRVAR (bpy_bmdeformvert_get_doc, ".. method:: get(key, default=None)\n" "\n" " Returns the deform weight matching the key or default\n" " when not found (matches pythons dictionary function of the same name).\n" "\n" " :arg key: The key associated with deform weight.\n" " :type key: int\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Undefined\n")
 
static PyObject * bpy_bmdeformvert_get (BPy_BMDeformVert *self, PyObject *args)
 
 PyDoc_STRVAR (bpy_bmdeformvert_clear_doc, ".. method:: clear()\n" "\n" " Clears all weights.\n")
 
static PyObject * bpy_bmdeformvert_clear (BPy_BMDeformVert *self)
 
static void bm_init_types_bmdvert (void)
 
int BPy_BMDeformVert_AssignPyObject (struct MDeformVert *dvert, PyObject *value)
 
PyObject * BPy_BMDeformVert_CreatePyObject (struct MDeformVert *dvert)
 
void BPy_BM_init_types_meshdata (void)
 

Variables

static PyGetSetDef bpy_bmloopuv_getseters []
 
PyTypeObject BPy_BMLoopUV_Type
 
static PyGetSetDef bpy_bmvertskin_getseters []
 
static PyTypeObject BPy_BMVertSkin_Type
 
static uchar mathutils_bmloopcol_cb_index = -1
 
static Mathutils_Callback mathutils_bmloopcol_cb
 
static PySequenceMethods bpy_bmdeformvert_as_sequence
 
static PyMappingMethods bpy_bmdeformvert_as_mapping
 
static struct PyMethodDef bpy_bmdeformvert_methods []
 
PyTypeObject BPy_BMDeformVert_Type
 

Detailed Description

This file defines custom-data types which can't be accessed as primitive python types such as MDeformVert, MLoopUV.

Definition in file bmesh_py_types_meshdata.c.

Macro Definition Documentation

◆ BPy_BMDeformVert_Check

#define BPy_BMDeformVert_Check (   v)    (Py_TYPE(v) == &BPy_BMDeformVert_Type)

This is python type wraps a deform vert as a python dictionary, hiding the MDeformWeight on access, since the mapping is very close, eg:

weight = BKE_defvert_find_weight(dv, group_nr);
float BKE_defvert_find_weight(const struct MDeformVert *dvert, const int defgroup)
Definition: deform.c:632
void BKE_defvert_remove_group(struct MDeformVert *dvert, struct MDeformWeight *dw)
Definition: deform.c:754
weight = dv[group_nr]
del dv[group_nr]
Note
There is nothing BMesh specific here, its only that BMesh is the only part of blender that uses a hand written api like this. This type could eventually be used to access lattice weights.
Many of blender-api's dict-like-wrappers act like ordered dicts, This is intentionally not ordered, the weights can be in any order and it won't matter, the order should not be used in the api in any meaningful way (as with a python dict) only expose as mapping, not a sequence.

Definition at line 394 of file bmesh_py_types_meshdata.c.

◆ BPy_BMLoopUV_Check

#define BPy_BMLoopUV_Check (   v)    (Py_TYPE(v) == &BPy_BMLoopUV_Type)

Definition at line 48 of file bmesh_py_types_meshdata.c.

◆ BPy_BMVertSkin_Check

#define BPy_BMVertSkin_Check (   v)    (Py_TYPE(v) == &BPy_BMVertSkin_Type)

Definition at line 156 of file bmesh_py_types_meshdata.c.

◆ MLOOPCOL_FROM_CAPSULE

#define MLOOPCOL_FROM_CAPSULE (   color_capsule)     ((MLoopCol *)PyCapsule_GetPointer(color_capsule, NULL))

Definition at line 274 of file bmesh_py_types_meshdata.c.

Typedef Documentation

◆ BPy_BMDeformVert

◆ BPy_BMLoopUV

typedef struct BPy_BMLoopUV BPy_BMLoopUV

◆ BPy_BMVertSkin

Function Documentation

◆ bm_init_types_bmdvert()

static void bm_init_types_bmdvert ( void  )
static

◆ bm_init_types_bmloopcol()

static void bm_init_types_bmloopcol ( void  )
static

◆ bm_init_types_bmloopuv()

static void bm_init_types_bmloopuv ( void  )
static

Definition at line 118 of file bmesh_py_types_meshdata.c.

References bpy_bmloopuv_getseters, BPy_BMLoopUV_Type, and NULL.

Referenced by BPy_BM_init_types_meshdata().

◆ bm_init_types_bmvertskin()

static void bm_init_types_bmvertskin ( void  )
static

◆ BPy_BM_init_types_meshdata()

void BPy_BM_init_types_meshdata ( void  )

◆ bpy_bmdeformvert_ass_subscript()

static int bpy_bmdeformvert_ass_subscript ( BPy_BMDeformVert self,
PyObject *  key,
PyObject *  value 
)
static

◆ BPy_BMDeformVert_AssignPyObject()

int BPy_BMDeformVert_AssignPyObject ( struct MDeformVert dvert,
PyObject *  value 
)

◆ bpy_bmdeformvert_clear()

static PyObject* bpy_bmdeformvert_clear ( BPy_BMDeformVert self)
static

Definition at line 626 of file bmesh_py_types_meshdata.c.

References BKE_defvert_clear(), and self.

◆ bpy_bmdeformvert_contains()

static int bpy_bmdeformvert_contains ( BPy_BMDeformVert self,
PyObject *  value 
)
static

Definition at line 485 of file bmesh_py_types_meshdata.c.

References BKE_defvert_find_index(), NULL, and self.

◆ BPy_BMDeformVert_CreatePyObject()

PyObject* BPy_BMDeformVert_CreatePyObject ( struct MDeformVert dvert)

Definition at line 677 of file bmesh_py_types_meshdata.c.

References BPy_BMDeformVert_Type.

Referenced by BPy_BMLayerItem_GetItem().

◆ bpy_bmdeformvert_get()

static PyObject* bpy_bmdeformvert_get ( BPy_BMDeformVert self,
PyObject *  args 
)
static

Definition at line 604 of file bmesh_py_types_meshdata.c.

References BKE_defvert_find_index(), NULL, self, and MDeformWeight::weight.

◆ bpy_bmdeformvert_items()

static PyObject* bpy_bmdeformvert_items ( BPy_BMDeformVert self)
static

◆ bpy_bmdeformvert_keys()

static PyObject* bpy_bmdeformvert_keys ( BPy_BMDeformVert self)
static

Definition at line 532 of file bmesh_py_types_meshdata.c.

References MDeformWeight::def_nr, ret, and self.

◆ bpy_bmdeformvert_len()

static int bpy_bmdeformvert_len ( BPy_BMDeformVert self)
static

Definition at line 404 of file bmesh_py_types_meshdata.c.

◆ bpy_bmdeformvert_subscript()

static PyObject* bpy_bmdeformvert_subscript ( BPy_BMDeformVert self,
PyObject *  key 
)
static

Definition at line 409 of file bmesh_py_types_meshdata.c.

References BKE_defvert_find_index(), NULL, self, and MDeformWeight::weight.

◆ bpy_bmdeformvert_values()

static PyObject* bpy_bmdeformvert_values ( BPy_BMDeformVert self)
static

Definition at line 554 of file bmesh_py_types_meshdata.c.

References ret, self, and MDeformWeight::weight.

◆ BPy_BMLoopColor_AssignPyObject()

int BPy_BMLoopColor_AssignPyObject ( struct MLoopCol mloopcol,
PyObject *  value 
)

Definition at line 345 of file bmesh_py_types_meshdata.c.

References mathutils_array_parse(), and mloopcol_from_float().

Referenced by BPy_BMLayerItem_SetItem().

◆ BPy_BMLoopColor_CreatePyObject()

PyObject* BPy_BMLoopColor_CreatePyObject ( struct MLoopCol mloopcol)

◆ BPy_BMLoopUV_AssignPyObject()

int BPy_BMLoopUV_AssignPyObject ( struct MLoopUV mloopuv,
PyObject *  value 
)

Definition at line 133 of file bmesh_py_types_meshdata.c.

References BPy_BMLoopUV_Check, and UNLIKELY.

Referenced by BPy_BMLayerItem_SetItem().

◆ BPy_BMLoopUV_CreatePyObject()

PyObject* BPy_BMLoopUV_CreatePyObject ( struct MLoopUV mloopuv)

Definition at line 144 of file bmesh_py_types_meshdata.c.

References BPy_BMLoopUV_Type.

Referenced by BPy_BMLayerItem_GetItem().

◆ bpy_bmloopuv_flag_get()

static PyObject* bpy_bmloopuv_flag_get ( BPy_BMLoopUV self,
void *  flag_p 
)
static

Definition at line 76 of file bmesh_py_types_meshdata.c.

References POINTER_AS_INT, and self.

◆ bpy_bmloopuv_flag_set()

static int bpy_bmloopuv_flag_set ( BPy_BMLoopUV self,
PyObject *  value,
void *  flag_p 
)
static

Definition at line 82 of file bmesh_py_types_meshdata.c.

References POINTER_AS_INT, and PyC_Long_AsBool().

◆ bpy_bmloopuv_uv_get()

static PyObject* bpy_bmloopuv_uv_get ( BPy_BMLoopUV self,
void *  UNUSEDclosure 
)
static

Definition at line 57 of file bmesh_py_types_meshdata.c.

References NULL, self, and Vector_CreatePyObject_wrap().

◆ bpy_bmloopuv_uv_set()

static int bpy_bmloopuv_uv_set ( BPy_BMLoopUV self,
PyObject *  value,
void *  UNUSEDclosure 
)
static

Definition at line 62 of file bmesh_py_types_meshdata.c.

References copy_v2_v2(), mathutils_array_parse(), and self.

◆ BPy_BMVertSkin_AssignPyObject()

int BPy_BMVertSkin_AssignPyObject ( struct MVertSkin mvertskin,
PyObject *  value 
)

Definition at line 247 of file bmesh_py_types_meshdata.c.

References BPy_BMVertSkin_Check, and UNLIKELY.

Referenced by BPy_BMLayerItem_SetItem().

◆ BPy_BMVertSkin_CreatePyObject()

PyObject* BPy_BMVertSkin_CreatePyObject ( struct MVertSkin mvertskin)

Definition at line 258 of file bmesh_py_types_meshdata.c.

References BPy_BMVertSkin_Type.

Referenced by BPy_BMLayerItem_GetItem().

◆ bpy_bmvertskin_flag_get()

static PyObject* bpy_bmvertskin_flag_get ( BPy_BMVertSkin self,
void *  flag_p 
)
static

Definition at line 186 of file bmesh_py_types_meshdata.c.

References POINTER_AS_INT, and self.

◆ bpy_bmvertskin_flag_set()

static int bpy_bmvertskin_flag_set ( BPy_BMVertSkin self,
PyObject *  value,
void *  flag_p 
)
static

Definition at line 192 of file bmesh_py_types_meshdata.c.

References POINTER_AS_INT, and PyC_Long_AsBool().

◆ bpy_bmvertskin_radius_get()

static PyObject* bpy_bmvertskin_radius_get ( BPy_BMVertSkin self,
void *  UNUSEDclosure 
)
static

Definition at line 165 of file bmesh_py_types_meshdata.c.

References NULL, self, and Vector_CreatePyObject_wrap().

◆ bpy_bmvertskin_radius_set()

static int bpy_bmvertskin_radius_set ( BPy_BMVertSkin self,
PyObject *  value,
void *  UNUSEDclosure 
)
static

Definition at line 170 of file bmesh_py_types_meshdata.c.

References copy_v2_v2(), mathutils_array_parse(), and self.

◆ mathutils_bmloopcol_check()

static int mathutils_bmloopcol_check ( BaseMathObject UNUSEDbmo)
static

Definition at line 289 of file bmesh_py_types_meshdata.c.

◆ mathutils_bmloopcol_get()

static int mathutils_bmloopcol_get ( BaseMathObject bmo,
int   UNUSEDsubtype 
)
static

◆ mathutils_bmloopcol_get_index()

static int mathutils_bmloopcol_get_index ( BaseMathObject bmo,
int  subtype,
int   UNUSEDindex 
)
static

Definition at line 309 of file bmesh_py_types_meshdata.c.

References mathutils_bmloopcol_get().

◆ mathutils_bmloopcol_set()

static int mathutils_bmloopcol_set ( BaseMathObject bmo,
int   UNUSEDsubtype 
)
static

◆ mathutils_bmloopcol_set_index()

static int mathutils_bmloopcol_set_index ( BaseMathObject bmo,
int  subtype,
int  index 
)
static

◆ mloopcol_from_float()

static void mloopcol_from_float ( MLoopCol mloopcol,
const float  col[4] 
)
static

◆ mloopcol_to_float()

static void mloopcol_to_float ( const MLoopCol mloopcol,
float  r_col[4] 
)
static

Definition at line 277 of file bmesh_py_types_meshdata.c.

References MLoopCol::r, and rgba_uchar_to_float().

Referenced by mathutils_bmloopcol_get().

◆ PyDoc_STRVAR() [1/11]

PyDoc_STRVAR ( bpy_bmdeformvert_clear_doc  ,
".. method:: clear()\n" "\n" " Clears all weights.\n"   
)

◆ PyDoc_STRVAR() [2/11]

PyDoc_STRVAR ( bpy_bmdeformvert_get_doc  ,
".. method:: get(key, default=None)\n" "\n" " Returns the deform weight matching the key or default\n" " when not found (matches pythons dictionary function of the same name).\n" "\n" " :arg key: The key associated with deform weight.\n" " :type key: int\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Undefined\n"   
)

◆ PyDoc_STRVAR() [3/11]

PyDoc_STRVAR ( bpy_bmdeformvert_items_doc  ,
".. method:: items()\n" "\n" " Return (group, weight) pairs for this vertex\n" " (matching pythons dict.items() functionality).\n" "\n" " :return: (key, value) pairs for each deform weight of this vertex.\n" " :rtype: list of tuples\n"   
)

◆ PyDoc_STRVAR() [4/11]

PyDoc_STRVAR ( bpy_bmdeformvert_keys_doc  ,
".. method:: keys()\n" "\n" " Return the group indices used by this vertex\n" " (matching pythons dict.keys() functionality).\n" "\n" " :return: the deform group this vertex uses\n" " :rtype: list of ints\n"   
)

◆ PyDoc_STRVAR() [5/11]

PyDoc_STRVAR ( bpy_bmdeformvert_values_doc  ,
".. method:: values()\n" "\n" " Return the weights of the deform vertex\n" " (matching pythons dict.values() functionality).\n" "\n" " :return: The weights that influence this vertex\n" " :rtype: list of floats\n"   
)

◆ PyDoc_STRVAR() [6/11]

PyDoc_STRVAR ( bpy_bmloopuv_flag__pin_uv_doc  ,
"UV pin state.\n\n:type: boolean"   
)

◆ PyDoc_STRVAR() [7/11]

PyDoc_STRVAR ( bpy_bmloopuv_flag__select_doc  ,
"UV select state.\n\n:type: boolean"   
)

◆ PyDoc_STRVAR() [8/11]

PyDoc_STRVAR ( bpy_bmloopuv_uv_doc  ,
"Loops UV (as a 2D Vector).\n\n:type: :class:`mathutils.Vector`"   
)

◆ PyDoc_STRVAR() [9/11]

PyDoc_STRVAR ( bpy_bmvertskin_flag__use_loose_doc  ,
"Use loose vertex.\n\n:type: boolean"   
)

◆ PyDoc_STRVAR() [10/11]

PyDoc_STRVAR ( bpy_bmvertskin_flag__use_root_doc  ,
"Use as root vertex. Setting this flag does not clear other roots in the same mesh " "island.\n\n:type: boolean"   
)

◆ PyDoc_STRVAR() [11/11]

PyDoc_STRVAR ( bpy_bmvertskin_radius_doc  ,
"Vert skin radii (as a 2D Vector).\n\n:type: :class:`mathutils.Vector`"   
)

Variable Documentation

◆ bpy_bmdeformvert_as_mapping

PyMappingMethods bpy_bmdeformvert_as_mapping
static
Initial value:
= {
}
static int bpy_bmdeformvert_len(BPy_BMDeformVert *self)
static PyObject * bpy_bmdeformvert_subscript(BPy_BMDeformVert *self, PyObject *key)
static int bpy_bmdeformvert_ass_subscript(BPy_BMDeformVert *self, PyObject *key, PyObject *value)

Definition at line 515 of file bmesh_py_types_meshdata.c.

Referenced by bm_init_types_bmdvert().

◆ bpy_bmdeformvert_as_sequence

PySequenceMethods bpy_bmdeformvert_as_sequence
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
(binaryfunc)NULL,
(ssizeargfunc)NULL,
}
static int bpy_bmdeformvert_contains(BPy_BMDeformVert *self, PyObject *value)

Definition at line 498 of file bmesh_py_types_meshdata.c.

Referenced by bm_init_types_bmdvert().

◆ bpy_bmdeformvert_methods

struct PyMethodDef bpy_bmdeformvert_methods[]
static
Initial value:
= {
{"keys", (PyCFunction)bpy_bmdeformvert_keys, METH_NOARGS, bpy_bmdeformvert_keys_doc},
{"values", (PyCFunction)bpy_bmdeformvert_values, METH_NOARGS, bpy_bmdeformvert_values_doc},
{"items", (PyCFunction)bpy_bmdeformvert_items, METH_NOARGS, bpy_bmdeformvert_items_doc},
{"get", (PyCFunction)bpy_bmdeformvert_get, METH_VARARGS, bpy_bmdeformvert_get_doc},
{"clear", (PyCFunction)bpy_bmdeformvert_clear, METH_NOARGS, bpy_bmdeformvert_clear_doc},
{NULL, NULL, 0, NULL},
}
static PyObject * bpy_bmdeformvert_values(BPy_BMDeformVert *self)
static PyObject * bpy_bmdeformvert_clear(BPy_BMDeformVert *self)
static PyObject * bpy_bmdeformvert_items(BPy_BMDeformVert *self)
static PyObject * bpy_bmdeformvert_keys(BPy_BMDeformVert *self)
static PyObject * bpy_bmdeformvert_get(BPy_BMDeformVert *self, PyObject *args)

Definition at line 626 of file bmesh_py_types_meshdata.c.

Referenced by bm_init_types_bmdvert().

◆ BPy_BMDeformVert_Type

PyTypeObject BPy_BMDeformVert_Type

◆ bpy_bmloopuv_getseters

PyGetSetDef bpy_bmloopuv_getseters[]
static
Initial value:
= {
{"uv", (getter)bpy_bmloopuv_uv_get, (setter)bpy_bmloopuv_uv_set, bpy_bmloopuv_uv_doc, NULL},
{"pin_uv",
bpy_bmloopuv_flag__pin_uv_doc,
(void *)MLOOPUV_PINNED},
{"select",
bpy_bmloopuv_flag__select_doc,
(void *)MLOOPUV_VERTSEL},
}
@ MLOOPUV_PINNED
@ MLOOPUV_VERTSEL
static int bpy_bmloopuv_uv_set(BPy_BMLoopUV *self, PyObject *value, void *UNUSED(closure))
static PyObject * bpy_bmloopuv_flag_get(BPy_BMLoopUV *self, void *flag_p)
static PyObject * bpy_bmloopuv_uv_get(BPy_BMLoopUV *self, void *UNUSED(closure))
static int bpy_bmloopuv_flag_set(BPy_BMLoopUV *self, PyObject *value, void *flag_p)

Definition at line 99 of file bmesh_py_types_meshdata.c.

Referenced by bm_init_types_bmloopuv().

◆ BPy_BMLoopUV_Type

PyTypeObject BPy_BMLoopUV_Type

◆ bpy_bmvertskin_getseters

PyGetSetDef bpy_bmvertskin_getseters[]
static
Initial value:
= {
{"radius",
bpy_bmvertskin_radius_doc,
NULL},
{"use_root",
bpy_bmvertskin_flag__use_root_doc,
(void *)MVERT_SKIN_ROOT},
{"use_loose",
bpy_bmvertskin_flag__use_loose_doc,
(void *)MVERT_SKIN_LOOSE},
}
@ MVERT_SKIN_LOOSE
@ MVERT_SKIN_ROOT
static PyObject * bpy_bmvertskin_radius_get(BPy_BMVertSkin *self, void *UNUSED(closure))
static int bpy_bmvertskin_flag_set(BPy_BMVertSkin *self, PyObject *value, void *flag_p)
static int bpy_bmvertskin_radius_set(BPy_BMVertSkin *self, PyObject *value, void *UNUSED(closure))
static PyObject * bpy_bmvertskin_flag_get(BPy_BMVertSkin *self, void *flag_p)

Definition at line 209 of file bmesh_py_types_meshdata.c.

Referenced by bm_init_types_bmvertskin().

◆ BPy_BMVertSkin_Type

PyTypeObject BPy_BMVertSkin_Type
static

◆ mathutils_bmloopcol_cb

Mathutils_Callback mathutils_bmloopcol_cb
static
Initial value:
= {
}
static int mathutils_bmloopcol_get(BaseMathObject *bmo, int UNUSED(subtype))
static int mathutils_bmloopcol_check(BaseMathObject *UNUSED(bmo))
static int mathutils_bmloopcol_set_index(BaseMathObject *bmo, int subtype, int index)
static int mathutils_bmloopcol_get_index(BaseMathObject *bmo, int subtype, int UNUSED(index))
static int mathutils_bmloopcol_set(BaseMathObject *bmo, int UNUSED(subtype))

Definition at line 331 of file bmesh_py_types_meshdata.c.

Referenced by bm_init_types_bmloopcol().

◆ mathutils_bmloopcol_cb_index

uchar mathutils_bmloopcol_cb_index = -1
static