diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-23 11:10:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-23 14:50:27 +0400 |
commit | 7e78322eef40ae0e874ff483b34ed58cd8d4090a (patch) | |
tree | fc1f41a9af533d673f7aa43bf71a306cb35c9869 /source/blender/bmesh/intern | |
parent | d82cd4d5ef877d22e5daeaa8e6df50f26cde58db (diff) |
BMesh Walker: rename BMW_SHELL -> BMW_VERT_SHELL
Diffstat (limited to 'source/blender/bmesh/intern')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_walkers.h | 2 | ||||
-rw-r--r-- | source/blender/bmesh/intern/bmesh_walkers_impl.c | 26 |
2 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/bmesh/intern/bmesh_walkers.h b/source/blender/bmesh/intern/bmesh_walkers.h index b39ef800feb..48ee68121c4 100644 --- a/source/blender/bmesh/intern/bmesh_walkers.h +++ b/source/blender/bmesh/intern/bmesh_walkers.h @@ -107,7 +107,7 @@ void BMW_reset(BMWalker *walker); */ enum { - BMW_SHELL, + BMW_VERT_SHELL, BMW_LOOP, BMW_FACELOOP, BMW_EDGERING, diff --git a/source/blender/bmesh/intern/bmesh_walkers_impl.c b/source/blender/bmesh/intern/bmesh_walkers_impl.c index 2ddc44de121..cf53d1ceec2 100644 --- a/source/blender/bmesh/intern/bmesh_walkers_impl.c +++ b/source/blender/bmesh/intern/bmesh_walkers_impl.c @@ -98,7 +98,7 @@ static bool bmw_mask_check_face(BMWalker *walker, BMFace *f) * * \todo Add restriction flag/callback for wire edges. */ -static void bmw_ShellWalker_visitEdge(BMWalker *walker, BMEdge *e) +static void bmw_VertShellWalker_visitEdge(BMWalker *walker, BMEdge *e) { BMwShellWalker *shellWalk = NULL; @@ -115,7 +115,7 @@ static void bmw_ShellWalker_visitEdge(BMWalker *walker, BMEdge *e) BLI_gset_insert(walker->visit_set, e); } -static void bmw_ShellWalker_begin(BMWalker *walker, void *data) +static void bmw_VertShellWalker_begin(BMWalker *walker, void *data) { BMIter eiter; BMHeader *h = data; @@ -133,7 +133,7 @@ static void bmw_ShellWalker_begin(BMWalker *walker, void *data) * to the worklist */ v = (BMVert *)h; BM_ITER_ELEM (e, &eiter, v, BM_EDGES_OF_VERT) { - bmw_ShellWalker_visitEdge(walker, e); + bmw_VertShellWalker_visitEdge(walker, e); } break; } @@ -143,7 +143,7 @@ static void bmw_ShellWalker_begin(BMWalker *walker, void *data) /* starting the walk at an edge, add the single edge * to the worklist */ e = (BMEdge *)h; - bmw_ShellWalker_visitEdge(walker, e); + bmw_VertShellWalker_visitEdge(walker, e); break; } default: @@ -151,13 +151,13 @@ static void bmw_ShellWalker_begin(BMWalker *walker, void *data) } } -static void *bmw_ShellWalker_yield(BMWalker *walker) +static void *bmw_VertShellWalker_yield(BMWalker *walker) { BMwShellWalker *shellWalk = BMW_current_state(walker); return shellWalk->curedge; } -static void *bmw_ShellWalker_step(BMWalker *walker) +static void *bmw_VertShellWalker_step(BMWalker *walker) { BMwShellWalker *swalk, owalk; BMEdge *e, *e2; @@ -173,7 +173,7 @@ static void *bmw_ShellWalker_step(BMWalker *walker) for (i = 0; i < 2; i++) { v = i ? e->v2 : e->v1; BM_ITER_ELEM (e2, &iter, v, BM_EDGES_OF_VERT) { - bmw_ShellWalker_visitEdge(walker, e2); + bmw_VertShellWalker_visitEdge(walker, e2); } } @@ -181,7 +181,7 @@ static void *bmw_ShellWalker_step(BMWalker *walker) } #if 0 -static void *bmw_ShellWalker_step(BMWalker *walker) +static void *bmw_VertShellWalker_step(BMWalker *walker) { BMEdge *curedge, *next = NULL; BMVert *v_old = NULL; @@ -1175,11 +1175,11 @@ static void *bmw_UVEdgeWalker_step(BMWalker *walker) /** \} */ -static BMWalker bmw_ShellWalker_Type = { +static BMWalker bmw_VertShellWalker_Type = { BM_VERT | BM_EDGE, - bmw_ShellWalker_begin, - bmw_ShellWalker_step, - bmw_ShellWalker_yield, + bmw_VertShellWalker_begin, + bmw_VertShellWalker_step, + bmw_VertShellWalker_yield, sizeof(BMwShellWalker), BMW_BREADTH_FIRST, BM_EDGE, /* valid restrict masks */ @@ -1266,7 +1266,7 @@ static BMWalker bmw_ConnectedVertexWalker_Type = { }; BMWalker *bm_walker_types[] = { - &bmw_ShellWalker_Type, /* BMW_SHELL */ + &bmw_VertShellWalker_Type, /* BMW_VERT_SHELL */ &bmw_LoopWalker_Type, /* BMW_LOOP */ &bmw_FaceLoopWalker_Type, /* BMW_FACELOOP */ &bmw_EdgeringWalker_Type, /* BMW_EDGERING */ |