Blender  V3.3
Public Attributes | List of all members
CustomData Struct Reference

#include <DNA_customdata_types.h>

Public Attributes

CustomDataLayerlayers
 
int typemap [52]
 
char _pad [4]
 
int totlayer
 
int maxlayer
 
int totsize
 
struct BLI_mempoolpool
 
CustomDataExternalexternal
 

Detailed Description

Structure which stores custom element data associated with mesh elements (vertices, edges or faces). The custom data is organized into a series of layers, each with a data type (e.g. MTFace, MDeformVert, etc.).

Definition at line 63 of file DNA_customdata_types.h.

Member Data Documentation

◆ _pad

char CustomData::_pad[4]

Definition at line 72 of file DNA_customdata_types.h.

◆ external

CustomDataExternal* CustomData::external

External file storing customdata layers.

Definition at line 80 of file DNA_customdata_types.h.

Referenced by bm_corners_to_loops_ex(), CustomData_copy(), and mesh_foreach_path().

◆ layers

CustomDataLayer* CustomData::layers

CustomDataLayers, ordered by type.

Definition at line 65 of file DNA_customdata_types.h.

Referenced by add_shapekey_layers(), BKE_editmesh_loop_tangent_calc(), BKE_id_attribute_data_length(), BKE_id_attribute_domain(), BKE_id_attribute_find(), BKE_id_attribute_from_index(), BKE_id_attribute_new(), BKE_id_attribute_search(), BKE_id_attribute_subset_active_get(), BKE_id_attribute_subset_active_set(), BKE_id_attribute_to_index(), BKE_id_attributes_active_get(), BKE_id_attributes_active_set(), BKE_id_attributes_iterator_next_domain(), BKE_mesh_add_mface_layers(), BKE_mesh_calc_loop_tangent_ex(), BKE_mesh_calc_loop_tangent_step_0(), BKE_mesh_from_pointcloud(), BKE_remesh_reproject_vertex_paint(), BKE_sculpt_color_layer_create_if_needed(), blo_do_versions_290(), BM_data_layer_add(), BM_data_layer_add_named(), BM_data_layer_free(), BM_data_layer_free_n(), BM_data_layer_free_named(), bm_edge_collapse_loop_customdata(), bm_loop_customdata_merge(), BM_mesh_bm_from_me(), bm_to_mesh_shape(), bm_to_mesh_shape_layer_index_from_kb(), BM_vert_loop_groups_data_layer_create(), BM_vert_loop_groups_data_layer_merge(), bm_vert_loop_groups_data_layer_merge__single(), BM_vert_loop_groups_data_layer_merge_weights(), bm_vert_loop_groups_data_layer_merge_weights__single(), bmo_average_vert_facedata_exec(), bmo_collapsecon_do_layer(), bmo_get_loop_color_ref(), bmo_pointmerge_facedata_exec(), bmw_UVEdgeWalker_step(), contig_ldata_across_loops(), CustomData_bmesh_copy_data_exclude_by_type(), CustomData_bmesh_merge(), customdata_compare(), CustomData_copy_data(), CustomData_copy_data_layer(), CustomData_copy_data_named(), CustomData_from_bmesh_block(), CustomData_interp(), CustomData_merge(), CustomData_to_bmesh_block(), CustomData_to_bmeshpoly(), customdata_version_242(), customdata_version_243(), blender::geometry::customdata_weld(), do_versions_mesh_mloopcol_swap_2_62_1(), do_versions_point_attribute_names(), do_versions_point_attributes(), ED_mesh_color_ensure(), ED_mesh_color_remove_index(), ED_mesh_sculpt_color_remove_index(), ED_mesh_uv_remove_index(), EDBM_verts_mirror_cache_begin_ex(), blender::bke::CustomDataAttributes::foreach_attribute(), blender::bke::CustomDataAttributeProvider::foreach_attribute(), blender::bke::NamedLegacyCustomDataProvider::foreach_attribute(), get_active_layer(), blender::bke::CustomDataAttributes::get_for_read(), blender::bke::CustomDataAttributes::get_for_write(), get_render_layer(), GPU_pbvh_attribute_names_update(), gpu_pbvh_make_attr_offs(), GPU_pbvh_mesh_buffers_update(), blender::bke::CustomDataAttributes::remove(), blender::bke::CustomDataAttributes::reorder(), SCULPT_dyntopo_node_layers_add(), shape_itemf(), shapekey_layers_to_keyblocks(), blender::bke::CustomDataAttributeProvider::try_create(), blender::bke::CustomDataAttributeProvider::try_delete(), blender::bke::NamedLegacyCustomDataProvider::try_delete(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_read(), blender::bke::CustomDataAttributeProvider::try_get_for_read(), blender::bke::NamedLegacyCustomDataProvider::try_get_for_read(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_write(), blender::bke::CustomDataAttributeProvider::try_get_for_write(), blender::bke::NamedLegacyCustomDataProvider::try_get_for_write(), um_arraystore_cd_compact(), um_arraystore_cd_expand(), unique_name_cb(), and vertex_color_set().

◆ maxlayer

int CustomData::maxlayer

Definition at line 74 of file DNA_customdata_types.h.

Referenced by blo_do_versions_290().

◆ pool

struct BLI_mempool* CustomData::pool

(BMesh Only): Memory pool for allocation of blocks.

Definition at line 78 of file DNA_customdata_types.h.

Referenced by BM_data_layer_free_named(), BM_mesh_cd_flag_apply(), BM_mesh_data_free(), CustomData_bmesh_merge(), and update_data_blocks().

◆ totlayer

int CustomData::totlayer

Number of layers, size of layers array.

Definition at line 74 of file DNA_customdata_types.h.

Referenced by blender::bke::add_custom_data_layer_from_attribute_init(), BKE_id_attribute_data_length(), BKE_id_attribute_domain(), BKE_id_attribute_find(), BKE_id_attribute_from_index(), BKE_id_attribute_search(), BKE_id_attribute_subset_active_get(), BKE_id_attribute_subset_active_set(), BKE_id_attribute_to_index(), BKE_id_attributes_active_get(), BKE_id_attributes_active_set(), BKE_id_attributes_iterator_next_domain(), BKE_mesh_add_mface_layers(), blo_do_versions_290(), bm_edge_collapse_loop_customdata(), bm_loop_customdata_merge(), BM_mesh_bm_from_me(), BM_mesh_cd_flag_apply(), BM_mesh_data_free(), bm_to_mesh_shape(), bm_to_mesh_shape_layer_index_from_kb(), bmo_average_vert_facedata_exec(), bmo_collapse_uvs_exec(), bmo_pointmerge_facedata_exec(), contig_ldata_across_edge(), CustomData_bmesh_copy_data_exclude_by_type(), customdata_compare(), CustomData_copy_data(), CustomData_copy_data_named(), CustomData_from_bmesh_block(), CustomData_interp(), CustomData_merge(), CustomData_to_bmesh_block(), CustomData_to_bmeshpoly(), customdata_version_242(), customdata_version_243(), blender::geometry::customdata_weld(), do_versions_mesh_mloopcol_swap_2_62_1(), do_versions_point_attribute_names(), do_versions_point_attributes(), blender::bke::CustomDataAttributes::foreach_attribute(), blender::bke::CustomDataAttributeProvider::foreach_attribute(), blender::bke::NamedLegacyCustomDataProvider::foreach_attribute(), blender::bke::CustomDataAttributes::get_for_read(), blender::bke::CustomDataAttributes::get_for_write(), gpu_pbvh_make_attr_offs(), math_layer_info_init(), blender::bke::CustomDataAttributes::remove(), blender::bke::CustomDataAttributes::reorder(), set_ccgdm_all_geometry(), shape_itemf(), tc_mesh_customdatacorrect_init_container_merge_group(), blender::bke::CustomDataAttributeProvider::try_create(), blender::bke::CustomDataAttributeProvider::try_delete(), blender::bke::NamedLegacyCustomDataProvider::try_delete(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_read(), blender::bke::CustomDataAttributeProvider::try_get_for_read(), blender::bke::NamedLegacyCustomDataProvider::try_get_for_read(), blender::bke::BuiltinCustomDataLayerProvider::try_get_for_write(), blender::bke::CustomDataAttributeProvider::try_get_for_write(), blender::bke::NamedLegacyCustomDataProvider::try_get_for_write(), um_arraystore_cd_compact(), unique_name_cb(), and vertex_color_set().

◆ totsize

int CustomData::totsize

In editmode, total size of all data layers.

Definition at line 76 of file DNA_customdata_types.h.

◆ typemap

int CustomData::typemap[52]

runtime only! - maps types to indices of first layer of that type, MUST be >= CD_NUMTYPES, but we can't use a define here. Correct size is ensured in CustomData_update_typemap assert().

Definition at line 71 of file DNA_customdata_types.h.

Referenced by BKE_mesh_new_nomain(), customdata_typemap_is_valid(), and DM_init().


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