Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-27 14:38:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-27 14:39:25 +0300
commit0a118317fcf3ca3b650fc6428f6a6675303c49ee (patch)
tree6b4a25d6333ac5651681027998ed9db76ca6eefd /source/blender/bmesh/tools/bmesh_path.h
parent3afa72b6c714d7e1f9e0414481c41c4bebcff179 (diff)
BMesh Path Select: Face Stepping Option
Supports diagonal paths for verts and faces, Selects edge-rings with edges.
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_path.h')
-rw-r--r--source/blender/bmesh/tools/bmesh_path.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/bmesh/tools/bmesh_path.h b/source/blender/bmesh/tools/bmesh_path.h
index c39e08e83ef..fdcea8e9803 100644
--- a/source/blender/bmesh/tools/bmesh_path.h
+++ b/source/blender/bmesh/tools/bmesh_path.h
@@ -27,18 +27,23 @@
* \ingroup bmesh
*/
+struct BMCalcPathParams {
+ unsigned int use_topology_distance : 1;
+ unsigned int use_step_face : 1;
+};
+
struct LinkNode *BM_mesh_calc_path_vert(
- BMesh *bm, BMVert *v_src, BMVert *v_dst, const bool use_length,
+ BMesh *bm, BMVert *v_src, BMVert *v_dst, const struct BMCalcPathParams *params,
bool (*filter_fn)(BMVert *, void *), void *user_data)
ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2, 3, 5);
struct LinkNode *BM_mesh_calc_path_edge(
- BMesh *bm, BMEdge *e_src, BMEdge *e_dst, const bool use_length,
+ BMesh *bm, BMEdge *e_src, BMEdge *e_dst, const struct BMCalcPathParams *params,
bool (*filter_fn)(BMEdge *, void *), void *user_data)
ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2, 3, 5);
struct LinkNode *BM_mesh_calc_path_face(
- BMesh *bm, BMFace *f_src, BMFace *f_dst, const bool use_length,
+ BMesh *bm, BMFace *f_src, BMFace *f_dst, const struct BMCalcPathParams *params,
bool (*test_fn)(BMFace *, void *), void *user_data)
ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2, 3, 5);