Blender V5.3
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
15namespace blender {
16
23
29
31 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
33float BM_loop_uv_calc_edge_length(const BMLoop *l, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
35
45 const float aspect[2],
46 int cd_loop_uv_offset,
47 float r_cent[2]) ATTR_NONNULL();
48void BM_face_uv_calc_center_median(const BMFace *f, int cd_loop_uv_offset, float r_cent[2])
50
54float BM_face_uv_calc_cross(const BMFace *f, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
56
57void BM_face_uv_minmax(const BMFace *f, float min[2], float max[2], int cd_loop_uv_offset);
58
60 const BMLoop *l_b,
61 const float limit[2],
62 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT
64
69 const BMLoop *l_b,
70 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
71
76 const BMLoop *l_a,
77 const BMLoop *l_b,
78 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
79
84 const BMLoop *l_b,
85 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
86
91 const float co[2],
92 int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
93
94} // namespace blender
CustomData interface, see also DNA_customdata_types.h.
btScalar max
#define layer
BMesh Iterators.
ATTR_WARN_UNUSED_RESULT const BMLoop * l
bool BM_face_uv_point_inside_test(const BMFace *f, const float co[2], const int cd_loop_uv_offset)
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, const int cd_loop_uv_offset)
float BM_loop_uv_calc_edge_length_squared(const BMLoop *l, int cd_loop_uv_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
ATTR_WARN_UNUSED_RESULT const BMLoop * l_b
void BM_face_uv_calc_center_median(const BMFace *f, const int cd_loop_uv_offset, float r_cent[2])
bool BM_edge_uv_share_vert_check(const BMEdge *e, const BMLoop *l_a, const BMLoop *l_b, const int cd_loop_uv_offset)
float BM_face_uv_calc_cross(const BMFace *f, const int cd_loop_uv_offset)
BMUVOffsets BM_uv_map_offsets_from_layer(const BMesh *bm, const int layer)
float BM_loop_uv_calc_edge_length(const BMLoop *l, 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_weighted(const BMFace *f, const float aspect[2], const int cd_loop_uv_offset, float r_cent[2])
bool BM_loop_uv_share_edge_check(const BMLoop *l_a, const BMLoop *l_b, const int cd_loop_uv_offset)
bool ATTR_WARN_UNUSED_RESULT
BMUVOffsets BM_uv_map_offsets_get(const BMesh *bm)
void ATTR_NONNULL(1, 2)
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
#define min(a, b)
Definition sort.cc:38