Blender V5.3
blender::BMHeader Struct Reference

#include <bmesh_class.hh>

Public Attributes

void * data
int index
char htype
char hflag
char api_flag

Detailed Description

BMHeader

All mesh elements begin with a BMHeader. This structure hold several types of data

1: The type of the element (vert, edge, loop or face) 2: Persistent "header" flags/markings (smooth, seam, select, hidden, etc) note that this is different from the "tool" flags. 3: Unique ID in the BMesh. 4: some elements for internal record keeping.

Definition at line 53 of file bmesh_class.hh.

Member Data Documentation

◆ api_flag

Internal use only!

Note
We are very picky about not bloating this struct but in this case its padded up to 16 bytes anyway, so adding a flag here gives no increase in size.

Definition at line 84 of file bmesh_class.hh.

◆ data

◆ hflag

◆ htype

◆ index

Note
  • Use BM_elem_index_get/set macros for index
  • Uninitialized to -1 so we can easily tell its not set.
  • Used for edge/vert/face/loop, check BMesh.elem_index_dirty for valid index values, this is abused by various tools which set it dirty.
  • For loops this is used for sorting during tessellation.

Definition at line 71 of file bmesh_class.hh.

Referenced by blender::_bm_elem_index_get(), and blender::_bm_elem_index_set().


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