|
Blender V5.3
|
#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 |
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.
External file storing custom-data layers.
Definition at line 264 of file DNA_customdata_types.h.
Referenced by blender::bm_corners_to_loops_ex(), blender::BM_mesh_bm_from_me(), blender::CustomData_init_from(), blender::CustomData_init_layout_from(), and blender::mesh_bm_to_me_compact().
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().
| int blender::CustomData::maxlayer = 0 |
Definition at line 258 of file DNA_customdata_types.h.
Referenced by blender::bke::mesh_skin_to_legacy().
| struct BLI_mempool* blender::CustomData::pool = nullptr |
(BMesh Only): Memory pool for allocation of blocks.
Definition at line 262 of file DNA_customdata_types.h.
Referenced by blender::BM_data_layer_free_named(), blender::CustomData_bmesh_copy_block(), blender::CustomData_bmesh_merge_layout(), and blender::update_data_blocks().
| int blender::CustomData::totlayer = 0 |
Number of layers, size of layers array.
Definition at line 258 of file DNA_customdata_types.h.
Referenced by blender::add_bm_cd_to_mesh(), blender::add_mface_layers(), blender::bke::attribute_legacy_convert_customdata_to_storage(), blender::BKE_attribute_domain(), blender::BKE_attribute_from_index(), blender::BKE_attribute_to_index(), blender::BKE_attributes_active_name_get(), blender::BKE_attributes_length(), blender::BM_mesh_copy_init_customdata_all_layers(), blender::bm_to_mesh_copy_info_calc(), blender::contig_ldata_across_edge(), blender::contig_ldata_around_vert(), blender::CustomData_bmesh_copy_map_calc(), blender::CustomData_copy_data(), 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::math_layer_info_init(), blender::ed::transform::mesh_customdatacorrect_init_container_merge_group(), blender::mesh_foreach_working_space_color(), blender::bke::mesh_skin_to_legacy(), blender::mesh_to_bm_copy_info_calc(), blender::replace_custom_data_layer_with_named(), blender::um_arraystore_cd_clear(), blender::um_arraystore_cd_create(), and blender::um_arraystore_cd_expand().
| int blender::CustomData::totsize = 0 |
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().
| int 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 DNA_customdata_types.h.
Referenced by blender::BLI_STATIC_ASSERT(), and blender::customdata_typemap_is_valid().