|
Blender V5.3
|
#include <bmesh_polygon.hh>
Public Attributes | |
| CustomDataLayer * | layers = nullptr |
| int | typemap [53] = {} |
| int | totlayer = 0 |
| int | maxlayer = 0 |
| int | totsize = 0 |
| struct BLI_mempool * | pool = nullptr |
| CustomDataExternal * | external = nullptr |
CustomData stores an arbitrary number of typed data "layers" for multiple elements. The layers are typically geometry attributes, and the elements are typically geometry elements like vertices, edges, or curves.
Each layer has a type, often with certain semantics beyond the type of the raw data. However, a subset of the layer types are exposed as attributes and accessed with a higher level API built around AttributeAccessor.
For BMesh, CustomData is adapted to store the data from all layers in a single "block" which is allocated for each element. Each layer's data is stored at a certain offset into every block's data.
Definition at line 249 of file bmesh_polygon.hh.
| CustomDataExternal* blender::blender::CustomData::external = nullptr |
External file storing custom-data layers.
Definition at line 264 of file bmesh_polygon.hh.
| CustomDataLayer* blender::blender::CustomData::layers = nullptr |
Layers ordered by type.
Definition at line 251 of file bmesh_polygon.hh.
Referenced by blender::blo_do_versions_300(), blender::BM_data_layer_lookup(), blender::bm_edge_collapse_loop_customdata(), blender::bm_loop_customdata_merge(), blender::BM_mesh_bm_from_me(), blender::bm_to_mesh_shape(), blender::bm_to_mesh_shape_layer_index_from_kb(), blender::BM_uv_map_offsets_from_layer(), blender::BM_vert_loop_groups_data_layer_create(), blender::BM_vert_loop_groups_data_layer_merge(), blender::bm_vert_loop_groups_data_layer_merge__single(), blender::BM_vert_loop_groups_data_layer_merge_weights(), blender::bm_vert_loop_groups_data_layer_merge_weights__single(), blender::bmo_average_vert_facedata_exec(), blender::bmo_collapsecon_do_layer(), blender::bmo_get_loop_color_ref(), blender::bmo_pointmerge_facedata_exec(), blender::bmw_UVEdgeWalker_step(), blender::convert_grease_pencil_stroke_hardness_to_softness(), blender::EDBM_verts_mirror_cache_begin_ex(), and blender::shape_itemf().
| int blender::blender::CustomData::maxlayer = 0 |
Definition at line 258 of file bmesh_polygon.hh.
| struct BLI_mempool* blender::blender::CustomData::pool = nullptr |
(BMesh Only): Memory pool for allocation of blocks.
Definition at line 262 of file bmesh_polygon.hh.
Referenced by blender::BM_mesh_data_free().
| int blender::blender::CustomData::totlayer = 0 |
Number of layers, size of layers array.
Definition at line 258 of file bmesh_polygon.hh.
Referenced by blender::BM_data_layer_lookup(), blender::bm_edge_collapse_loop_customdata(), blender::bm_loop_customdata_merge(), blender::BM_mesh_bm_from_me(), blender::BM_mesh_data_free(), blender::bm_to_mesh_shape(), blender::bm_to_mesh_shape_layer_index_from_kb(), blender::bmo_average_vert_facedata_exec(), blender::bmo_collapse_uvs_exec(), blender::bmo_get_loop_color_ref(), blender::bmo_pointmerge_facedata_exec(), and blender::shape_itemf().
| int blender::blender::CustomData::totsize = 0 |
In editmode, total size of all data layers.
Definition at line 260 of file bmesh_polygon.hh.
| int blender::blender::CustomData::typemap[53] = {} |
Runtime only map from types to indices of first layer of that type, Correct size of CD_NUMTYPES is ensured by CustomData_update_typemap.
Definition at line 256 of file bmesh_polygon.hh.