|
Blender V4.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) |
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 () |
| PyObject * | BPy_BMLayerItem_GetItem (BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer) |
| BMElem.__getitem__() / setitem() | |
| 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 23 of file bmesh_py_types_customdata.hh.
| #define BPy_BMLayerCollection_Check | ( | v | ) | (Py_TYPE(v) == &BPy_BMLayerCollection_Type) |
Definition at line 24 of file bmesh_py_types_customdata.hh.
| #define BPy_BMLayerItem_Check | ( | v | ) | (Py_TYPE(v) == &BPy_BMLayerItem_Type) |
Definition at line 25 of file bmesh_py_types_customdata.hh.
Referenced by bpy_bmlayercollection_remove(), bpy_bmlayeritem_copy_from(), and bpy_bmlayeritem_ptr_get().
| void BPy_BM_init_types_customdata | ( | ) |
Definition at line 1052 of file bmesh_py_types_customdata.cc.
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, and BPy_BMLayerItem_Type.
Referenced by BPyInit_bmesh().
| PyObject * BPy_BMLayerAccess_CreatePyObject | ( | BMesh * | bm, |
| char | htype ) |
Definition at line 1002 of file bmesh_py_types_customdata.cc.
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, and self.
Referenced by bpy_bmelemseq_layers_get().
Definition at line 1033 of file bmesh_py_types_customdata.cc.
References bm, BPy_BMLayerCollection_Type, and self.
Referenced by bpy_bmlayeraccess_collection_get().
Definition at line 1042 of file bmesh_py_types_customdata.cc.
References bm, BPy_BMLayerItem_Type, and self.
Referenced by bpy_bmlayercollection_active_get(), bpy_bmlayercollection_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 1166 of file bmesh_py_types_customdata.cc.
References BPy_BMElem::bm, BPy_BMLayerItem::bm, BPy_BMDeformVert_CreatePyObject(), bpy_bmlayeritem_ptr_get(), BPy_BMLoopColor_CreatePyObject(), BPy_BMLoopUV_CreatePyObject(), BPy_BMVertSkin_CreatePyObject(), CD_MDEFORMVERT, CD_MVERT_SKIN, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_STRING, CD_SHAPEKEY, BPy_BMElem::ele, BPy_BMLayerItem::index, 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 1231 of file bmesh_py_types_customdata.cc.
References BPy_BMElem::bm, BPy_BMLayerItem::bm, BPy_BMDeformVert_AssignPyObject(), bpy_bmlayeritem_ptr_get(), BPy_BMLoopColor_AssignPyObject(), BPy_BMLoopUV_AssignPyObject(), BPy_BMVertSkin_AssignPyObject(), CD_MDEFORMVERT, CD_MVERT_SKIN, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_STRING, CD_SHAPEKEY, copy_v3_v3(), BPy_BMElem::ele, mathutils_array_parse(), ret, MStringProperty::s, MStringProperty::s_len, BPy_BMLayerItem::type, and UNLIKELY.
Referenced by bpy_bmelem_ass_subscript().
|
extern |
Definition at line 996 of file bmesh_py_types_customdata.cc.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 997 of file bmesh_py_types_customdata.cc.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 998 of file bmesh_py_types_customdata.cc.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 995 of file bmesh_py_types_customdata.cc.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 999 of file bmesh_py_types_customdata.cc.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerCollection_CreatePyObject(), and BPyInit_bmesh_types().
|
extern |
Definition at line 1000 of file bmesh_py_types_customdata.cc.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerItem_CreatePyObject(), and BPyInit_bmesh_types().