Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/intern/bmesh_query.c
| Show First 20 Lines • Show All 2,475 Lines • ▼ Show 20 Lines | bool BM_face_is_any_edge_flag_test(const BMFace *f, const char hflag) | ||||
| do { | do { | ||||
| if (BM_elem_flag_test(l_iter->e, hflag)) { | if (BM_elem_flag_test(l_iter->e, hflag)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } while ((l_iter = l_iter->next) != l_first); | } while ((l_iter = l_iter->next) != l_first); | ||||
| return false; | return false; | ||||
| } | } | ||||
| bool BM_edge_is_any_face_len_test(const BMEdge *e, const int len) | |||||
| { | |||||
| if (e->l) { | |||||
| BMLoop *l_iter, *l_first; | |||||
| l_iter = l_first = e->l; | |||||
| do { | |||||
| if (l_iter->f->len == len) { | |||||
| return true; | |||||
| } | |||||
| } while ((l_iter = l_iter->radial_next) != l_first); | |||||
| } | |||||
| return false; | |||||
| } | |||||
| /** | /** | ||||
| * Use within assert's to check normals are valid. | * Use within assert's to check normals are valid. | ||||
| */ | */ | ||||
| bool BM_face_is_normal_valid(const BMFace *f) | bool BM_face_is_normal_valid(const BMFace *f) | ||||
| { | { | ||||
| const float eps = 0.0001f; | const float eps = 0.0001f; | ||||
| float no[3]; | float no[3]; | ||||
| ▲ Show 20 Lines • Show All 468 Lines • Show Last 20 Lines | |||||