Blender  V2.93
bmesh_query_uv.h
Go to the documentation of this file.
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 
24  const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
25  ATTR_NONNULL();
27  const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
28  ATTR_NONNULL();
29 
31  const float aspect[2],
32  const int cd_loop_uv_offset,
33  float r_cent[2]) ATTR_NONNULL();
34 void BM_face_uv_calc_center_median(const BMFace *f, const int cd_loop_uv_offset, float r_cent[2])
35  ATTR_NONNULL();
36 
37 float BM_face_uv_calc_cross(const BMFace *f, const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
38  ATTR_NONNULL();
39 
40 void BM_face_uv_minmax(const BMFace *f, float min[2], float max[2], const int cd_loop_uv_offset);
41 void BM_face_uv_transform(BMFace *f, const float matrix[2][2], const int cd_loop_uv_offset);
42 
44  BMLoop *l_b,
45  const float limit[2],
46  const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
47  ATTR_NONNULL();
48 
50  BMLoop *l_b,
51  const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
52  ATTR_NONNULL();
53 
54 bool BM_edge_uv_share_vert_check(BMEdge *e, BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset)
56 
58  BMLoop *l_b,
59  const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
60  ATTR_NONNULL();
61 
63  const float co[2],
64  const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
65  ATTR_NONNULL();
#define ATTR_NONNULL(...)
void BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() ATTR_WARN_UNUSED_RESULT
ATTR_WARN_UNUSED_RESULT const BMLoop * l
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
ATTR_WARN_UNUSED_RESULT const BMLoop * l_b
float BM_face_uv_calc_cross(const BMFace *f, const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BM_face_uv_transform(BMFace *f, const float matrix[2][2], const int cd_loop_uv_offset)
bool BM_edge_uv_share_vert_check(BMEdge *e, BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_face_uv_point_inside_test(const BMFace *f, const float co[2], const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
float BM_loop_uv_calc_edge_length(const BMLoop *l, const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
float BM_loop_uv_calc_edge_length_squared(const BMLoop *l, const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_loop_uv_share_edge_check_with_limit(BMLoop *l_a, BMLoop *l_b, const float limit[2], const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_loop_uv_share_vert_check(BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BM_face_uv_minmax(const BMFace *f, float min[2], float max[2], const int cd_loop_uv_offset)
void BM_face_uv_calc_center_median(const BMFace *f, const int cd_loop_uv_offset, float r_cent[2]) ATTR_NONNULL()
void BM_face_uv_calc_center_median_weighted(const BMFace *f, const float aspect[2], const int cd_loop_uv_offset, float r_cent[2]) ATTR_NONNULL()
bool BM_loop_uv_share_edge_check(BMLoop *l_a, BMLoop *l_b, const int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
#define min(a, b)
Definition: sort.c:51
float max