38 for (
const int vert : verts) {
50 for (
const int vert : verts) {
62 for (
const int vert : verts) {
98 while (!this->
queue.empty()) {
99 const int from_v = this->
queue.front();
107 for (
const int neighbor : neighbors) {
112 if (!hide_vert.is_empty() && hide_vert[neighbor]) {
117 if (func(from_v, neighbor)) {
118 this->
queue.push(neighbor);
130 while (!this->
queue.empty()) {
147 for (
int i = neighbors.
coords.
size() - 1; i >= 0; i--) {
149 const int index_in_grid = neighbor.
y * key.
grid_size + neighbor.
x;
162 const bool is_duplicate = i >= num_unique;
163 if (func(from_v, neighbor, is_duplicate)) {
164 this->
queue.push(neighbor);
172 BMesh *
bm =
object.runtime->sculpt_session->bm;
174 while (!this->
queue.empty()) {
195 if (func(from_v, neighbor)) {
196 this->
queue.push(neighbor);
#define BM_elem_index_get(ele)
#define BM_elem_flag_test(ele, hflag)
void append(const T &value)
void insert(const int64_t insert_index, const T &value)
GAttributeReader lookup_or_default(StringRef name, AttrDomain domain, AttrType data_type, const void *default_value=nullptr) const
GAttributeReader lookup(const StringRef name) const
#define FAKE_NEIGHBOR_NONE
Vector< BMVert *, 64 > BMeshNeighborVerts
Span< BMVert * > vert_neighbors_get_bmesh(BMVert &vert, BMeshNeighborVerts &r_neighbors)
Span< int > vert_neighbors_get_mesh(const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face, const Span< bool > hide_poly, const int vert, Vector< int > &r_neighbors)
CCGKey BKE_subdiv_ccg_key_top_level(const SubdivCCG &subdiv_ccg)
void BKE_subdiv_ccg_neighbor_coords_get(const SubdivCCG &subdiv_ccg, const SubdivCCGCoord &coord, bool include_duplicates, SubdivCCGNeighbors &r_neighbors)
BMesh const char void * data
BLI_INLINE BMVert * BM_vert_at_index(BMesh *bm, const int index)
static SubdivCCGCoord from_index(const CCGKey &key, int index)
int to_index(const CCGKey &key) const
SubdivCCGNeighborCoords coords
BitGroupVector grid_hidden
Span< int > fake_neighbors
std::queue< BMVert * > queue
void add_initial(BMVert *vertex)
void add_and_skip_initial(BMVert *vertex, int index)
void execute(Object &object, FunctionRef< bool(BMVert *from_v, BMVert *to_v)> func)
void execute(Object &object, const SubdivCCG &subdiv_ccg, FunctionRef< bool(SubdivCCGCoord from_v, SubdivCCGCoord to_v, bool is_duplicate)> func)
std::queue< SubdivCCGCoord > queue
void add_initial(SubdivCCGCoord vertex)
Span< int > fake_neighbors
void add_and_skip_initial(SubdivCCGCoord vertex, int index)
void execute(Object &object, GroupedSpan< int > vert_to_face_map, FunctionRef< bool(int from_v, int to_v)> func)
void add_and_skip_initial(int vertex)
void add_initial(int vertex)
Span< int > fake_neighbors