Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | BPy_BMLayerAccess |
struct | BPy_BMLayerCollection |
struct | BPy_BMLayerItem |
Macros | |
#define | BPy_BMLayerAccess_Check(v) (Py_TYPE(v) == &BPy_BMLayerAccess_Type) |
#define | BPy_BMLayerCollection_Check(v) (Py_TYPE(v) == &BPy_BMLayerCollection_Type) |
#define | BPy_BMLayerItem_Check(v) (Py_TYPE(v) == &BPy_BMLayerItem_Type) |
Typedefs | |
typedef struct BPy_BMLayerAccess | BPy_BMLayerAccess |
typedef struct BPy_BMLayerCollection | BPy_BMLayerCollection |
typedef struct BPy_BMLayerItem | BPy_BMLayerItem |
Functions | |
PyObject * | BPy_BMLayerAccess_CreatePyObject (BMesh *bm, char htype) |
PyObject * | BPy_BMLayerCollection_CreatePyObject (BMesh *bm, char htype, int type) |
PyObject * | BPy_BMLayerItem_CreatePyObject (BMesh *bm, char htype, int type, int index) |
void | BPy_BM_init_types_customdata (void) |
PyObject * | BPy_BMLayerItem_GetItem (BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer) |
BMElem.__getitem__() / setitem() More... | |
int | BPy_BMLayerItem_SetItem (BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer, PyObject *value) |
Variables | |
PyTypeObject | BPy_BMLayerAccessVert_Type |
PyTypeObject | BPy_BMLayerAccessEdge_Type |
PyTypeObject | BPy_BMLayerAccessFace_Type |
PyTypeObject | BPy_BMLayerAccessLoop_Type |
PyTypeObject | BPy_BMLayerCollection_Type |
PyTypeObject | BPy_BMLayerItem_Type |
Definition at line 20 of file bmesh_py_types_customdata.h.
#define BPy_BMLayerCollection_Check | ( | v | ) | (Py_TYPE(v) == &BPy_BMLayerCollection_Type) |
Definition at line 21 of file bmesh_py_types_customdata.h.
#define BPy_BMLayerItem_Check | ( | v | ) | (Py_TYPE(v) == &BPy_BMLayerItem_Type) |
Definition at line 22 of file bmesh_py_types_customdata.h.
typedef struct BPy_BMLayerAccess BPy_BMLayerAccess |
All layers for vert/edge/face/loop.
typedef struct BPy_BMLayerCollection BPy_BMLayerCollection |
Access different layer types deform/uv/vertex-color.
typedef struct BPy_BMLayerItem BPy_BMLayerItem |
Access a specific layer directly.
Definition at line 983 of file bmesh_py_types_customdata.c.
References bpy_bmelemseq_methods, bpy_bmlayeraccess_edge_getseters, bpy_bmlayeraccess_face_getseters, bpy_bmlayeraccess_loop_getseters, bpy_bmlayeraccess_vert_getseters, BPy_BMLayerAccessEdge_Type, BPy_BMLayerAccessFace_Type, BPy_BMLayerAccessLoop_Type, BPy_BMLayerAccessVert_Type, bpy_bmlayercollection_as_mapping, bpy_bmlayercollection_as_sequence, bpy_bmlayercollection_getseters, bpy_bmlayercollection_iter(), BPy_BMLayerCollection_Type, bpy_bmlayeritem_getseters, bpy_bmlayeritem_methods, BPy_BMLayerItem_Type, and NULL.
Referenced by BPyInit_bmesh().
PyObject* BPy_BMLayerAccess_CreatePyObject | ( | BMesh * | bm, |
char | htype | ||
) |
Definition at line 933 of file bmesh_py_types_customdata.c.
References BLI_assert_unreachable, bm, BM_EDGE, BM_FACE, BM_LOOP, BM_VERT, BPy_BMLayerAccessEdge_Type, BPy_BMLayerAccessFace_Type, BPy_BMLayerAccessLoop_Type, BPy_BMLayerAccessVert_Type, NULL, and type.
Referenced by bpy_bmelemseq_layers_get().
PyObject* BPy_BMLayerCollection_CreatePyObject | ( | BMesh * | bm, |
char | htype, | ||
int | type | ||
) |
Definition at line 964 of file bmesh_py_types_customdata.c.
References bm, BPy_BMLayerCollection_Type, and type.
Referenced by bpy_bmlayeraccess_collection_get().
PyObject* BPy_BMLayerItem_CreatePyObject | ( | BMesh * | bm, |
char | htype, | ||
int | type, | ||
int | index | ||
) |
Definition at line 973 of file bmesh_py_types_customdata.c.
References bm, BPy_BMLayerItem_Type, and type.
Referenced by bpy_bmlayercollection_active_get(), bpy_bmlayercollection_items(), bpy_bmlayercollection_new(), bpy_bmlayercollection_subscript_int(), bpy_bmlayercollection_subscript_slice(), bpy_bmlayercollection_subscript_str(), bpy_bmlayercollection_values(), and bpy_bmlayercollection_verify().
PyObject* BPy_BMLayerItem_GetItem | ( | BPy_BMElem * | py_ele, |
BPy_BMLayerItem * | py_layer | ||
) |
BMElem.__getitem__() / setitem()
Assume all error checks are done, eg: uv = vert[uv_layer]
Definition at line 1096 of file bmesh_py_types_customdata.c.
References BPy_BMDeformVert_CreatePyObject(), bpy_bmlayeritem_ptr_get(), BPy_BMLoopColor_CreatePyObject(), BPy_BMLoopUV_CreatePyObject(), BPy_BMVertSkin_CreatePyObject(), CD_BWEIGHT, CD_CREASE, CD_FACEMAP, CD_MDEFORMVERT, CD_MLOOPUV, CD_MVERT_SKIN, CD_PAINT_MASK, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_STRING, CD_SHAPEKEY, NULL, ret, MStringProperty::s, MStringProperty::s_len, BPy_BMLayerItem::type, UNLIKELY, and Vector_CreatePyObject_wrap().
Referenced by bpy_bmelem_subscript().
int BPy_BMLayerItem_SetItem | ( | BPy_BMElem * | py_ele, |
BPy_BMLayerItem * | py_layer, | ||
PyObject * | value | ||
) |
Definition at line 1167 of file bmesh_py_types_customdata.c.
References BPy_BMDeformVert_AssignPyObject(), bpy_bmlayeritem_ptr_get(), BPy_BMLoopColor_AssignPyObject(), BPy_BMLoopUV_AssignPyObject(), BPy_BMVertSkin_AssignPyObject(), CD_BWEIGHT, CD_CREASE, CD_FACEMAP, CD_MDEFORMVERT, CD_MLOOPUV, CD_MVERT_SKIN, CD_PAINT_MASK, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_STRING, CD_SHAPEKEY, clamp_f(), copy_v3_v3(), mathutils_array_parse(), NULL, ret, MStringProperty::s, MStringProperty::s_len, BPy_BMLayerItem::type, and UNLIKELY.
Referenced by bpy_bmelem_ass_subscript().
|
extern |
Definition at line 927 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 928 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 929 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 926 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 930 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerCollection_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 931 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerItem_CreatePyObject(), and BPyInit_bmesh_types().