Blender V5.0
bmesh_query_uv.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11#include "BKE_customdata.hh"
12
13#include "bmesh_class.hh"
14
21
27
29 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
31float BM_loop_uv_calc_edge_length(const BMLoop *l, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
33
43 const float aspect[2],
44 int cd_loop_uv_offset,
45 float r_cent[2]) ATTR_NONNULL();
46void BM_face_uv_calc_center_median(const BMFace *f, int cd_loop_uv_offset, float r_cent[2])
48
52float BM_face_uv_calc_cross(const BMFace *f, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
54
55void BM_face_uv_minmax(const BMFace *f, float min[2], float max[2], int cd_loop_uv_offset);
56
58 const BMLoop *l_b,
59 const float limit[2],
60 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
62
67 const BMLoop *l_b,
68 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
69
74 const BMLoop *l_a,
75 const BMLoop *l_b,
76 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
77
82 const BMLoop *l_b,
83 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
84
89 const float co[2],
90 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
CustomData interface, see also DNA_customdata_types.h.
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
BMesh * bm
ATTR_WARN_UNUSED_RESULT const BMLoop * l
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
ATTR_WARN_UNUSED_RESULT const BMLoop * l_b
bool BM_edge_uv_share_vert_check(const BMEdge *e, const BMLoop *l_a, const BMLoop *l_b, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
float BM_loop_uv_calc_edge_length_squared(const BMLoop *l, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BMUVOffsets BM_uv_map_offsets_get(const BMesh *bm)
bool BM_loop_uv_share_edge_check(const BMLoop *l_a, const BMLoop *l_b, 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], int cd_loop_uv_offset)
void BM_face_uv_calc_center_median(const BMFace *f, int cd_loop_uv_offset, float r_cent[2]) ATTR_NONNULL()
bool BM_face_uv_point_inside_test(const BMFace *f, const float co[2], int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_loop_uv_share_edge_check_with_limit(const BMLoop *l_a, const BMLoop *l_b, const float limit[2], int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_loop_uv_share_vert_check(const BMLoop *l_a, const BMLoop *l_b, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BMUVOffsets BM_uv_map_offsets_from_layer(const BMesh *bm, int layer)
float BM_face_uv_calc_cross(const BMFace *f, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BM_face_uv_calc_center_median_weighted(const BMFace *f, const float aspect[2], int cd_loop_uv_offset, float r_cent[2]) ATTR_NONNULL()
float BM_loop_uv_calc_edge_length(const BMLoop *l, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
#define min(a, b)
Definition sort.cc:36
max
Definition text_draw.cc:251