Blender V5.3
blender::BMLog Struct Reference

Public Attributes

RangeTreeUInt * unused_ids
Map< uint, BMElem *, 0 > id_to_elem
Map< BMElem *, uint, 0 > elem_to_id
ListBaseT< BMLogEntry > entries
BMLogEntry * current_entry

Detailed Description

Definition at line 76 of file bmesh_log.cc.

Member Data Documentation

◆ current_entry

BMLogEntry* blender::BMLog::current_entry

The current log entry from entries list

If null, then the original mesh from before any of the log entries is current (i.e. there is nothing left to undo.)

If equal to the last entry in the entries list, then all log entries have been applied (i.e. there is nothing left to redo.)

Definition at line 105 of file bmesh_log.cc.

◆ elem_to_id

Map<BMElem *, uint, 0> blender::BMLog::elem_to_id

Definition at line 91 of file bmesh_log.cc.

◆ entries

ListBaseT<BMLogEntry> blender::BMLog::entries

All #BMLogEntrys, ordered from earliest to most recent.

Definition at line 94 of file bmesh_log.cc.

◆ id_to_elem

Map<uint, BMElem *, 0> blender::BMLog::id_to_elem

Mapping from unique IDs to vertices and faces

Each vertex and face in the log gets a unique uint assigned. That ID is taken from the set managed by the unused_ids range tree.

The ID is needed because element pointers will change as they are created and deleted.

Definition at line 90 of file bmesh_log.cc.

◆ unused_ids

RangeTreeUInt* blender::BMLog::unused_ids

Tree of free IDs

Definition at line 78 of file bmesh_log.cc.


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