Blender V5.3
blender::CustomData Struct Reference

#include <DNA_customdata_types.h>

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

Detailed Description

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 DNA_customdata_types.h.

Member Data Documentation

◆ external

◆ layers

Layers ordered by type.

Definition at line 251 of file DNA_customdata_types.h.

Referenced by blender::add_bm_cd_to_mesh(), blender::add_mface_layers(), blender::ed::object::add_shapekey_layers(), blender::bke::attribute_legacy_convert_customdata_to_storage(), blender::BKE_attribute_domain(), blender::BKE_attribute_from_index(), blender::BKE_attribute_new(), blender::BKE_attribute_to_index(), blender::BKE_attributes_active_name_get(), blender::BKE_attributes_length(), blender::BM_data_layer_add(), blender::BM_data_layer_add_named(), blender::BM_data_layer_free(), blender::BM_data_layer_free_n(), blender::BM_data_layer_free_named(), blender::bm_face_loop_table_build(), blender::BM_mesh_bm_from_me(), blender::BM_mesh_copy_init_customdata_all_layers(), blender::bm_to_mesh_copy_info_calc(), blender::contig_ldata_across_loops(), blender::CustomData_bmesh_copy_map_calc(), blender::CustomData_bmesh_merge_layout(), blender::CustomData_copy_data(), blender::CustomData_copy_data_layer(), blender::CustomData_interp(), blender::customdata_merge_internal(), blender::CustomData_to_bmeshpoly(), blender::do_versions_point_attribute_names(), blender::do_versions_point_attributes(), blender::find_old_seam_layer(), blender::get_mesh_to_bm_custom_data(), blender::mesh_bm_to_me_compact(), blender::mesh_foreach_working_space_color(), blender::bke::mesh_skin_to_legacy(), blender::mesh_to_bm_copy_info_calc(), blender::move_shapekey_layers_to_keyblocks(), blender::replace_custom_data_layer_with_named(), blender::um_arraystore_cd_clear(), blender::um_arraystore_cd_create(), and blender::um_arraystore_cd_expand().

◆ maxlayer

◆ pool

◆ totlayer

◆ totsize

In editmode, total size of all data layers.

Definition at line 260 of file DNA_customdata_types.h.

Referenced by blender::CustomData_bmesh_copy_block().

◆ typemap

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 DNA_customdata_types.h.

Referenced by blender::BLI_STATIC_ASSERT(), and blender::customdata_typemap_is_valid().


The documentation for this struct was generated from the following file: