split dissolve_disk into dissolve_vert dissolve_disk as agreed. also made dissolve...
[blender.git] / source / blender / bmesh / bmesh_walkers.h
1 #ifndef BM_WALKERS_H
2 #define BM_WALKERS_H
3
4 /*Walkers*/
5 typedef struct BMWalker{
6         BLI_mempool *stack;
7         BMesh *bm;
8         void *currentstate;
9         void *(*begin) (struct BMWalker *walker, void *start);
10         void *(*yield)(struct BMWalker *walker);
11         void   (*step) (struct BMWalker *walker);
12         int visitedmask;
13         int restrictflag;
14 }BMWalker;
15
16 void BMWalker_Init(struct BMWalker *walker, BMesh *bm, int type, int searchmask);
17 void *BMWalker_Step(struct BMWalker *walker);
18 void BMWalker_End(struct BMWalker *walker);
19
20 #define BM_SHELLWALKER  0
21 #define BM_LOOPWALKER   1
22 #define BM_RINGWALKER   2
23 #define BM_UVISLANDS            3
24 #define BM_MAXWALKERS   4
25
26 #endif