Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/tools/bmesh_region_match.c
| Context not available. | |||||
| #define PRIME_VERT_MID_A 103 | #define PRIME_VERT_MID_A 103 | ||||
| #define PRIME_VERT_MID_B 131 | #define PRIME_VERT_MID_B 131 | ||||
| int tot = 0; | unsigned int tot = 0; | ||||
| BMIter iter; | BMIter iter; | ||||
| BMLoop *l; | BMLoop *l; | ||||
| SUID_Int id = PRIME_VERT_MID_A; | SUID_Int id = PRIME_VERT_MID_A; | ||||
| BM_ITER_ELEM (l, &iter, v, BM_LOOPS_OF_VERT) { | BM_ITER_ELEM (l, &iter, v, BM_LOOPS_OF_VERT) { | ||||
| const bool is_boundary_vert = (bm_edge_is_region_boundary(l->e) || bm_edge_is_region_boundary(l->prev->e)); | const bool is_boundary_vert = (bm_edge_is_region_boundary(l->e) || bm_edge_is_region_boundary(l->prev->e)); | ||||
| id ^= l->f->len * (is_boundary_vert ? PRIME_VERT_SMALL_A : PRIME_VERT_SMALL_B); | id ^= (unsigned int)l->f->len * (is_boundary_vert ? PRIME_VERT_SMALL_A : PRIME_VERT_SMALL_B); | ||||
| tot += 1; | tot += 1; | ||||
| } | } | ||||
| Context not available. | |||||