Blender V5.3
blender::blender::CustomData Struct Reference

#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

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 bmesh_polygon.hh.

Member Data Documentation

◆ external

CustomDataExternal* blender::blender::CustomData::external = nullptr

External file storing custom-data layers.

Definition at line 264 of file bmesh_polygon.hh.

◆ layers

◆ maxlayer

int blender::blender::CustomData::maxlayer = 0

Definition at line 258 of file bmesh_polygon.hh.

◆ pool

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().

◆ totlayer

◆ totsize

int blender::blender::CustomData::totsize = 0

In editmode, total size of all data layers.

Definition at line 260 of file bmesh_polygon.hh.

◆ typemap

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.


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