Blender  V3.3
bmesh_log.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
9 struct BMFace;
10 struct BMVert;
11 struct BMesh;
12 struct RangeTreeUInt;
13 
14 typedef struct BMLog BMLog;
15 typedef struct BMLogEntry BMLogEntry;
16 
21 
32 
36 void BM_log_free(BMLog *log);
37 
41 int BM_log_length(const BMLog *log);
42 
45 
58 
60 void BM_log_cleanup_entry(BMLogEntry *entry);
61 
71 void BM_log_entry_drop(BMLogEntry *entry);
72 
78 void BM_log_undo(BMesh *bm, BMLog *log);
79 
85 void BM_log_redo(BMesh *bm, BMLog *log);
86 
111 void BM_log_vert_before_modified(BMLog *log, struct BMVert *v, int cd_vert_mask_offset);
112 
120 void BM_log_vert_added(BMLog *log, struct BMVert *v, int cd_vert_mask_offset);
121 
128 void BM_log_face_modified(BMLog *log, struct BMFace *f);
129 
137 void BM_log_face_added(BMLog *log, struct BMFace *f);
138 
156 void BM_log_vert_removed(BMLog *log, struct BMVert *v, int cd_vert_mask_offset);
157 
172 void BM_log_face_removed(BMLog *log, struct BMFace *f);
173 
178 
181 
187 const float *BM_log_original_vert_co(BMLog *log, BMVert *v);
188 
194 const float *BM_log_original_vert_no(BMLog *log, BMVert *v);
195 
201 
203 void BM_log_original_vert_data(BMLog *log, BMVert *v, const float **r_co, const float **r_no);
204 
208 struct RangeTreeUInt *BM_log_unused_ids(BMLog *log);
ATTR_WARN_UNUSED_RESULT BMesh * bm
BMLog * BM_log_create(BMesh *bm)
Definition: bmesh_log.c:461
void BM_log_all_added(BMesh *bm, BMLog *log)
Definition: bmesh_log.c:870
void BM_log_face_removed(BMLog *log, struct BMFace *f)
Definition: bmesh_log.c:849
void BM_log_free(BMLog *log)
Definition: bmesh_log.c:539
BMLogEntry * BM_log_entry_add(BMLog *log)
Definition: bmesh_log.c:620
const float * BM_log_original_vert_no(BMLog *log, BMVert *v)
Definition: bmesh_log.c:930
void BM_log_cleanup_entry(BMLogEntry *entry)
Definition: bmesh_log.c:476
struct RangeTreeUInt * BM_log_unused_ids(BMLog *log)
Definition: bmesh_log.c:983
void BM_log_original_vert_data(BMLog *log, BMVert *v, const float **r_co, const float **r_no)
Definition: bmesh_log.c:960
float BM_log_original_mask(BMLog *log, BMVert *v)
Definition: bmesh_log.c:945
void BM_log_vert_added(BMLog *log, struct BMVert *v, int cd_vert_mask_offset)
Definition: bmesh_log.c:786
void BM_log_vert_before_modified(BMLog *log, struct BMVert *v, int cd_vert_mask_offset)
Definition: bmesh_log.c:768
void BM_log_face_modified(BMLog *log, struct BMFace *f)
Definition: bmesh_log.c:797
void BM_log_vert_removed(BMLog *log, struct BMVert *v, int cd_vert_mask_offset)
Definition: bmesh_log.c:821
const float * BM_log_original_vert_co(BMLog *log, BMVert *v)
Definition: bmesh_log.c:915
BMLogEntry * BM_log_current_entry(BMLog *log)
Definition: bmesh_log.c:978
void BM_log_redo(BMesh *bm, BMLog *log)
Definition: bmesh_log.c:734
BMLog * BM_log_from_existing_entries_create(BMesh *bm, BMLogEntry *entry)
Definition: bmesh_log.c:498
void BM_log_mesh_elems_reorder(BMesh *bm, BMLog *log)
Definition: bmesh_log.c:569
void BM_log_entry_drop(BMLogEntry *entry)
Definition: bmesh_log.c:647
void BM_log_face_added(BMLog *log, struct BMFace *f)
Definition: bmesh_log.c:807
void BM_log_undo(BMesh *bm, BMLog *log)
Definition: bmesh_log.c:713
int BM_log_length(const BMLog *log)
Definition: bmesh_log.c:564
void BM_log_before_all_removed(BMesh *bm, BMLog *log)
Definition: bmesh_log.c:897
ATTR_WARN_UNUSED_RESULT const BMVert * v
ccl_device_inline float3 log(float3 v)
Definition: math_float3.h:397