1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
19 /** \file
20  * \ingroup bmesh
21  */
22 
23 struct BMCalcPathParams {
24   uint use_topology_distance : 1;
25   uint use_step_face : 1;
26 };
27 
28 struct LinkNode *BM_mesh_calc_path_vert(BMesh *bm,
29                                         BMVert *v_src,
30                                         BMVert *v_dst,
31                                         const struct BMCalcPathParams *params,
32                                         bool (*filter_fn)(BMVert *, void *),
33                                         void *user_data) ATTR_WARN_UNUSED_RESULT
34     ATTR_NONNULL(1, 2, 3, 5);
35 
36 struct LinkNode *BM_mesh_calc_path_edge(BMesh *bm,
37                                         BMEdge *e_src,
38                                         BMEdge *e_dst,
39                                         const struct BMCalcPathParams *params,
40                                         bool (*filter_fn)(BMEdge *, void *),
41                                         void *user_data) ATTR_WARN_UNUSED_RESULT
42     ATTR_NONNULL(1, 2, 3, 5);
43 
44 struct LinkNode *BM_mesh_calc_path_face(BMesh *bm,
45                                         BMFace *f_src,
46                                         BMFace *f_dst,
47                                         const struct BMCalcPathParams *params,
48                                         bool (*filter_fn)(BMFace *, void *),
49                                         void *user_data) ATTR_WARN_UNUSED_RESULT
50     ATTR_NONNULL(1, 2, 3, 5);
51