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 BMCalcPathUVParams { 24 uint use_topology_distance : 1; 25 uint use_step_face : 1; 26 uint cd_loop_uv_offset; 27 float aspect_y; 28 }; 29 30 struct LinkNode *BM_mesh_calc_path_uv_vert(BMesh *bm, 31 BMLoop *l_src, 32 BMLoop *l_dst, 33 const struct BMCalcPathUVParams *params, 34 bool (*filter_fn)(BMLoop *, void *), 35 void *user_data) ATTR_WARN_UNUSED_RESULT 36 ATTR_NONNULL(1, 2, 3, 5); 37 38 struct LinkNode *BM_mesh_calc_path_uv_face(BMesh *bm, 39 BMFace *f_src, 40 BMFace *f_dst, 41 const struct BMCalcPathUVParams *params, 42 bool (*filter_fn)(BMFace *, void *), 43 void *user_data) ATTR_WARN_UNUSED_RESULT 44 ATTR_NONNULL(1, 2, 3, 5); 45