Blender V5.0
BMLog Struct Reference

Public Attributes

RangeTreeUInt * unused_ids
blender::Map< uint, BMElem *, 0 > id_to_elem
blender::Map< BMElem *, uint, 0 > elem_to_id
ListBase entries
BMLogEntrycurrent_entry

Detailed Description

Definition at line 74 of file bmesh_log.cc.

Member Data Documentation

◆ current_entry

BMLogEntry* 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 103 of file bmesh_log.cc.

◆ elem_to_id

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

Definition at line 89 of file bmesh_log.cc.

◆ entries

ListBase BMLog::entries

All #BMLogEntrys, ordered from earliest to most recent.

Definition at line 92 of file bmesh_log.cc.

◆ id_to_elem

blender::Map<uint, BMElem *, 0> 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 88 of file bmesh_log.cc.

◆ unused_ids

RangeTreeUInt* BMLog::unused_ids

Tree of free IDs

Definition at line 76 of file bmesh_log.cc.


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