BMesh: improve path-select fill region w/ ngons

Rewrote to work with ngons and and more complex topology, now uses separate function.
Fixes T48009.
This commit is contained in:
2016-04-01 23:27:31 +11:00
parent ae49f2ed99
commit c6b27dd4fa
7 changed files with 587 additions and 371 deletions

View File

@@ -30,8 +30,6 @@
struct BMCalcPathParams {
unsigned int use_topology_distance : 1;
unsigned int use_step_face : 1;
/* return all paths (no longer ordered) */
unsigned int use_fill : 1;
};
struct LinkNode *BM_mesh_calc_path_vert(
@@ -46,7 +44,7 @@ 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 struct BMCalcPathParams *params,
bool (*test_fn)(BMFace *, void *), void *user_data)
bool (*filter_fn)(BMFace *, void *), void *user_data)
ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2, 3, 5);
#endif /* __BMESH_PATH_H__ */