Blender  V3.3
bmesh_query.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
18  ATTR_NONNULL();
23 
29  ATTR_NONNULL();
30 
32  ATTR_NONNULL();
34  const BMVert *v2,
36 
51 bool BM_edge_face_pair(BMEdge *e, BMFace **r_fa, BMFace **r_fb) ATTR_NONNULL();
58 bool BM_edge_loop_pair(BMEdge *e, BMLoop **r_la, BMLoop **r_lb) ATTR_NONNULL();
60  ATTR_NONNULL();
97  ATTR_NONNULL();
126  ATTR_NONNULL();
144  ATTR_NONNULL();
187 
202 
207  ATTR_NONNULL();
209  BMVert *v_b,
210  bool (*test_fn)(BMFace *f, void *user_data),
212  ATTR_NONNULL(1, 2, 3);
214  BMVert *v_b,
215  bool allow_adjacent,
216  bool (*callback)(BMFace *, BMLoop *, BMLoop *, void *userdata),
217  void *user_data,
218  BMLoop **r_l_a,
219  BMLoop **r_l_b) ATTR_NONNULL(1, 2, 4, 6, 7);
224  BMVert *v_a, BMVert *v_b, BMLoop **r_l_a, BMLoop **r_l_b, bool allow_adjacent) ATTR_NONNULL();
233  BMVert *v_a, BMVert *v_b, BMLoop **r_l_a, BMLoop **r_l_b, bool allow_adjacent) ATTR_NONNULL();
234 
236  BMEdge *e_a, BMEdge *e_b, BMLoop **r_l_a, BMLoop **r_l_b, bool allow_adjacent) ATTR_NONNULL();
237 
239 #define BM_vert_edge_count_is_equal(v, n) (BM_vert_edge_count_at_most(v, (n) + 1) == n)
240 #define BM_vert_edge_count_is_over(v, n) (BM_vert_edge_count_at_most(v, (n) + 1) == (n) + 1)
242  ATTR_NONNULL();
247 #define BM_edge_face_count_is_equal(e, n) (BM_edge_face_count_at_most(e, (n) + 1) == n)
248 #define BM_edge_face_count_is_over(e, n) (BM_edge_face_count_at_most(e, (n) + 1) == (n) + 1)
250  ATTR_NONNULL();
255 #define BM_vert_face_count_is_equal(v, n) (BM_vert_face_count_at_most(v, (n) + 1) == n)
256 #define BM_vert_face_count_is_over(v, n) (BM_vert_face_count_at_most(v, (n) + 1) == (n) + 1)
258  ATTR_NONNULL();
271 
286 bool BM_vert_edge_pair(BMVert *v, BMEdge **r_e_a, BMEdge **r_e_b);
299 
326  int cd_loop_type,
327  int cd_loop_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
328 
333  ATTR_NONNULL(1);
341  ATTR_NONNULL();
348 float BM_loop_point_side_of_loop_test(const BMLoop *l, const float co[3]) ATTR_WARN_UNUSED_RESULT
349  ATTR_NONNULL();
356 float BM_loop_point_side_of_edge_test(const BMLoop *l, const float co[3]) ATTR_WARN_UNUSED_RESULT
357  ATTR_NONNULL();
358 
362 BMLoop *BM_loop_find_prev_nodouble(BMLoop *l, BMLoop *l_stop, float eps_sq);
366 BMLoop *BM_loop_find_next_nodouble(BMLoop *l, BMLoop *l_stop, float eps_sq);
367 
384 float BM_loop_calc_face_normal(const BMLoop *l, float r_normal[3]) ATTR_NONNULL();
390 float BM_loop_calc_face_normal_safe(const BMLoop *l, float r_normal[3]) ATTR_NONNULL();
400 float BM_loop_calc_face_normal_safe_ex(const BMLoop *l, float epsilon_sq, float r_normal[3])
401  ATTR_NONNULL();
406  const float normal_fallback[3],
407  float const (*vertexCos)[3],
408  float epsilon_sq,
409  float r_normal[3]) ATTR_NONNULL();
411  const float normal_fallback[3],
412  float const (*vertexCos)[3],
413  float r_normal[3]) ATTR_NONNULL();
414 
423 void BM_loop_calc_face_direction(const BMLoop *l, float r_dir[3]);
433 void BM_loop_calc_face_tangent(const BMLoop *l, float r_tangent[3]);
434 
443 float BM_edge_calc_face_angle_ex(const BMEdge *e, float fallback) ATTR_WARN_UNUSED_RESULT
444  ATTR_NONNULL();
455  ATTR_NONNULL();
465  const float imat3[3][3],
466  float fallback) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
468  const float imat3[3][3]) ATTR_WARN_UNUSED_RESULT
469  ATTR_NONNULL();
483 void BM_edge_calc_face_tangent(const BMEdge *e, const BMLoop *e_loop, float r_tangent[3])
484  ATTR_NONNULL();
493 float BM_vert_calc_edge_angle_ex(const BMVert *v, float fallback) ATTR_WARN_UNUSED_RESULT
494  ATTR_NONNULL();
500 /* alternate version of #BM_vert_calc_shell_factor which only
501  * uses 'hflag' faces, but falls back to all if none found. */
503  const float no[3],
510  ATTR_NONNULL();
511 
520 
528 
536 BMFace *BM_face_exists(BMVert **varr, int len) ATTR_NONNULL(1);
541 
555  ATTR_NONNULL();
556 /* same as 'BM_face_exists_multi' but built vert array from edges */
558 
582 
597 
610 
615 
628 
660 
661 void BM_edge_ordered_verts(const BMEdge *edge, BMVert **r_v1, BMVert **r_v2) ATTR_NONNULL();
674 void BM_edge_ordered_verts_ex(const BMEdge *edge,
675  BMVert **r_v1,
676  BMVert **r_v2,
677  const BMLoop *edge_loop) ATTR_NONNULL();
678 
680  char hflag,
681  bool respect_hide) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
683  char hflag,
684  bool respect_hide) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
686  char hflag,
687  bool respect_hide) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
688 
689 /* convenience functions for checking flags */
691  ATTR_NONNULL();
693  ATTR_NONNULL();
695  ATTR_NONNULL();
697  ATTR_NONNULL();
698 
700 
705 
707 
725  int *r_groups_array,
726  int (**r_group_index)[2],
727  BMLoopFilterFunc filter_fn,
728  BMLoopPairFilterFunc filter_pair_fn,
729  void *user_data,
730  char hflag_test,
731  char htype_step) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2, 3);
751  int *r_groups_array,
752  int (**r_group_index)[2],
753  BMVertFilterFunc filter_fn,
754  void *user_data,
755  char hflag_test) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2, 3);
756 
765  BMVert **verts,
766  BMEdge **edges,
767  BMFace **faces,
768  int (**r_groups)[3]) ATTR_WARN_UNUSED_RESULT
769  ATTR_NONNULL(1, 2, 3, 4, 5);
770 
771 /* Not really any good place to put this. */
772 float bmesh_subd_falloff_calc(int falloff, float val) ATTR_WARN_UNUSED_RESULT;
773 
774 #include "bmesh_query_inline.h"
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
#define BLI_INLINE
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble v1
bool(* BMVertFilterFunc)(const BMVert *, void *user_data)
Definition: bmesh_class.h:503
bool(* BMLoopFilterFunc)(const BMLoop *, void *user_data)
Definition: bmesh_class.h:506
bool(* BMLoopPairFilterFunc)(const BMLoop *, const BMLoop *, void *user_data)
Definition: bmesh_class.h:507
ATTR_WARN_UNUSED_RESULT BMesh * bm
float BM_loop_calc_face_normal_safe_ex(const BMLoop *l, float epsilon_sq, float r_normal[3]) ATTR_NONNULL()
BM_loop_calc_face_normal.
Definition: bmesh_query.c:1197
int BM_mesh_calc_face_groups(BMesh *bm, int *r_groups_array, int(**r_group_index)[2], BMLoopFilterFunc filter_fn, BMLoopPairFilterFunc filter_pair_fn, void *user_data, char hflag_test, char htype_step) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
BMLoop * BM_edge_find_first_loop_visible(BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1598
int BM_vert_edge_count(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:607
BMFace * BM_vert_pair_share_face_by_angle(BMVert *v_a, BMVert *v_b, BMLoop **r_l_a, BMLoop **r_l_b, bool allow_adjacent) ATTR_NONNULL()
Definition: bmesh_query.c:251
BMLoop * BM_face_vert_share_loop(BMFace *f, BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Return the Loop Shared by Face and Vertex.
Definition: bmesh_query.c:1100
float BM_vert_calc_shell_factor(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1420
BLI_INLINE bool BM_edge_is_contiguous(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_face_is_any_vert_flag_test(const BMFace *f, char hflag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1989
bool BM_edge_is_any_vert_flag_test(const BMEdge *e, char hflag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1984
float BM_edge_calc_face_angle_ex(const BMEdge *e, float fallback) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BMESH EDGE/FACE ANGLE.
Definition: bmesh_query.c:1329
bool BM_edge_in_face(const BMEdge *e, const BMFace *f) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:420
int int int float bmesh_subd_falloff_calc(int falloff, float val) ATTR_WARN_UNUSED_RESULT
Definition: bmesh_query.c:2452
bool BM_verts_in_face(BMVert **varr, int len, BMFace *f) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:370
int BM_vert_edge_count_nonwire(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:617
float BM_edge_calc_length_squared(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:533
float BM_vert_calc_edge_angle(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1415
BMLoop * BM_vert_find_first_loop_visible(BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:301
bool BM_face_is_normal_valid(const BMFace *f) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:2033
bool BM_vert_is_boundary(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:916
BLI_INLINE bool BM_edge_is_manifold(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_edge_is_contiguous_loop_cd(const BMEdge *e, int cd_loop_type, int cd_loop_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:875
double BM_mesh_calc_volume(BMesh *bm, bool is_signed) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:2076
bool BM_face_is_any_edge_flag_test(const BMFace *f, char hflag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:2003
int BM_vert_face_count(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:664
BLI_INLINE bool BM_edge_is_boundary(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_edge_share_vert_check(BMEdge *e1, BMEdge *e2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1074
bool BM_edge_loop_pair(BMEdge *e, BMLoop **r_la, BMLoop **r_lb) ATTR_NONNULL()
Definition: bmesh_query.c:553
BLI_INLINE bool BM_loop_is_adjacent(const BMLoop *l_a, const BMLoop *l_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BM_loop_calc_face_tangent(const BMLoop *l, float r_tangent[3])
BM_loop_calc_face_tangent.
Definition: bmesh_query.c:1299
BMLoop * BM_face_other_vert_loop(BMFace *f, BMVert *v_prev, BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Other Loop in Face Sharing a Vertex.
Definition: bmesh_query.c:39
BMFace * BM_face_exists(BMVert **varr, int len) ATTR_NONNULL(1)
Definition: bmesh_query.c:1612
float BM_loop_calc_face_normal(const BMLoop *l, float r_normal[3]) ATTR_NONNULL()
BM_loop_calc_face_normal.
Definition: bmesh_query.c:1270
bool BM_edge_is_any_face_flag_test(const BMEdge *e, char hflag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1968
int BM_face_share_vert_count(BMFace *f_a, BMFace *f_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:999
bool BM_vert_is_wire(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:688
bool BM_face_share_edge_check(BMFace *f_a, BMFace *f_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:984
bool BM_face_exists_multi(BMVert **varr, BMEdge **earr, int len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1692
float BM_vert_calc_median_tagged_edge_length(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1467
int int BM_mesh_calc_edge_groups(BMesh *bm, int *r_groups_array, int(**r_group_index)[2], BMVertFilterFunc filter_fn, void *user_data, char hflag_test) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
float BM_loop_calc_face_angle(const BMLoop *l) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1192
void BM_edge_ordered_verts_ex(const BMEdge *edge, BMVert **r_v1, BMVert **r_v2, const BMLoop *edge_loop) ATTR_NONNULL()
Definition: bmesh_query.c:1130
BMLoop * BM_face_find_shortest_loop(BMFace *f) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1487
bool BM_face_exists_multi_edge(BMEdge **earr, int len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1800
BMLoop * BM_face_edge_share_loop(BMFace *f, BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Return the Loop Shared by Face and Edge.
Definition: bmesh_query.c:1115
BMLoop * BM_loop_other_vert_loop_by_edge(BMLoop *l, BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:86
float BM_loop_calc_face_normal_safe_vcos_ex(const BMLoop *l, const float normal_fallback[3], float const (*vertexCos)[3], float epsilon_sq, float r_normal[3]) ATTR_NONNULL()
Definition: bmesh_query.c:1226
bool BM_edge_share_quad_check(BMEdge *e1, BMEdge *e2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1054
bool BM_vert_is_all_face_flag_test(const BMVert *v, char hflag, bool respect_hide) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1932
float BM_loop_calc_face_normal_safe_vcos(const BMLoop *l, const float normal_fallback[3], float const (*vertexCos)[3], float r_normal[3]) ATTR_NONNULL()
Definition: bmesh_query.c:1261
bool BM_loop_is_convex(const BMLoop *l) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1180
BMLoop * BM_loop_other_vert_loop(BMLoop *l, BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Other Loop in Face Sharing a Vert.
Definition: bmesh_query.c:61
BMEdge * BM_vert_other_disk_edge(BMVert *v, BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:482
float BM_vert_calc_edge_angle_ex(const BMVert *v, float fallback) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BMESH VERT/EDGE ANGLE.
Definition: bmesh_query.c:1397
BMLoop * BM_vert_find_first_loop(BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:297
float BM_loop_calc_face_normal_safe(const BMLoop *l, float r_normal[3]) ATTR_NONNULL()
Definition: bmesh_query.c:1256
int BM_face_share_face_count(BMFace *f_a, BMFace *f_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:933
BLI_INLINE BMVert * BM_edge_other_vert(BMEdge *e, const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BLI_INLINE bool BM_edge_in_loop(const BMEdge *e, const BMLoop *l) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_vert_edge_pair(BMVert *v, BMEdge **r_e_a, BMEdge **r_e_b)
Definition: bmesh_query.c:590
bool BM_face_share_face_check(BMFace *f_a, BMFace *f_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:951
void BM_edge_ordered_verts(const BMEdge *edge, BMVert **r_v1, BMVert **r_v2) ATTR_NONNULL()
Definition: bmesh_query.c:1141
BLI_INLINE bool BM_verts_in_edge(const BMVert *v1, const BMVert *v2, const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BMVert * BM_edge_share_vert(BMEdge *e1, BMEdge *e2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1079
bool BM_vert_is_edge_pair(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:568
int BM_edge_face_count(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:629
bool BM_edge_is_convex(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:858
int int int BM_mesh_calc_edge_groups_as_arrays(BMesh *bm, BMVert **verts, BMEdge **edges, BMFace **faces, int(**r_groups)[3]) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
bool BM_vert_is_all_edge_flag_test(const BMVert *v, char hflag, bool respect_hide) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1914
bool BM_vert_face_check(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:674
void BM_edge_calc_face_tangent(const BMEdge *e, const BMLoop *e_loop, float r_tangent[3]) ATTR_NONNULL()
BMESH EDGE/FACE TANGENT.
Definition: bmesh_query.c:1384
int BM_loop_region_loops_count_at_most(BMLoop *l, int *r_loop_total) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
Definition: bmesh_query.c:829
BMFace * BM_face_find_double(BMFace *f) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1660
BMEdge * BM_edge_exists(BMVert *v_a, BMVert *v_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1553
void BM_loop_calc_face_direction(const BMLoop *l, float r_dir[3])
BM_loop_calc_face_direction.
Definition: bmesh_query.c:1284
BMLoop * BM_edge_vert_share_loop(BMLoop *l, BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Return the Loop Shared by Edge and Vert.
Definition: bmesh_query.c:1091
bool BM_vert_pair_share_face_check(BMVert *v_a, BMVert *v_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:100
float BM_edge_calc_length(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:528
int BM_edge_face_count_at_most(const BMEdge *e, int count_max) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:645
BLI_INLINE bool BM_edge_is_wire(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BMLoop * BM_face_other_edge_loop(BMFace *f, BMEdge *e, BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Other Loop in Face Sharing an Edge.
Definition: bmesh_query.c:26
bool BM_edge_share_face_check(BMEdge *e1, BMEdge *e2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1036
BMLoop * BM_face_find_longest_loop(BMFace *f) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1508
int BM_verts_in_face_count(BMVert **varr, int len, BMFace *f) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:330
bool BMFace BMFace * BM_vert_pair_share_face_by_len(BMVert *v_a, BMVert *v_b, BMLoop **r_l_a, BMLoop **r_l_b, bool allow_adjacent) ATTR_NONNULL()
Definition: bmesh_query.c:165
bool BM_vert_is_edge_pair_manifold(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:578
float BM_edge_calc_face_angle_with_imat3_ex(const BMEdge *e, const float imat3[3][3], float fallback) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BMESH EDGE/FACE ANGLE.
Definition: bmesh_query.c:1343
bool BM_edge_face_pair(BMEdge *e, BMFace **r_fa, BMFace **r_fb) ATTR_NONNULL()
Definition: bmesh_query.c:538
BMLoop * BM_vert_step_fan_loop(BMLoop *l, BMEdge **e_step) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:461
bool BM_vert_is_manifold_region(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:847
BMLoop * BM_loop_find_prev_nodouble(BMLoop *l, BMLoop *l_stop, float eps_sq)
Definition: bmesh_query.c:1146
float BM_loop_point_side_of_edge_test(const BMLoop *l, const float co[3]) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:238
bool BMFace * BM_vert_pair_shared_face_cb(BMVert *v_a, BMVert *v_b, bool allow_adjacent, bool(*callback)(BMFace *, BMLoop *, BMLoop *, void *userdata), void *user_data, BMLoop **r_l_a, BMLoop **r_l_b) ATTR_NONNULL(1
BMLoop * BM_edge_other_loop(BMEdge *e, BMLoop *l) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:436
float BM_edge_calc_face_angle_signed_ex(const BMEdge *e, float fallback) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BMESH EDGE/FACE ANGLE.
Definition: bmesh_query.c:1369
float BM_loop_point_side_of_loop_test(const BMLoop *l, const float co[3]) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:232
BMFace * BM_face_exists_overlap(BMVert **varr, int len) ATTR_WARN_UNUSED_RESULT
Definition: bmesh_query.c:1813
bool BM_loop_share_edge_check(BMLoop *l_a, BMLoop *l_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1030
float BM_edge_calc_face_angle_with_imat3(const BMEdge *e, const float imat3[3][3]) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1364
float BM_edge_calc_face_angle(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1338
float BM_edge_calc_face_angle_signed(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1379
int BM_vert_face_count_at_most(const BMVert *v, int count_max) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:669
BMFace * BM_edge_pair_share_face_by_len(BMEdge *e_a, BMEdge *e_b, BMLoop **r_l_a, BMLoop **r_l_b, bool allow_adjacent) ATTR_NONNULL()
Definition: bmesh_query.c:193
BMEdge * BM_edge_find_double(BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1581
BLI_INLINE bool BM_vert_in_edge(const BMEdge *e, const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BM_vert_in_face(BMVert *v, BMFace *f) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:306
bool BM_vert_pair_share_face_check_cb(BMVert *v_a, BMVert *v_b, bool(*test_fn)(BMFace *f, void *user_data), void *user_data) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
BMLoop * BM_loop_other_edge_loop(BMLoop *l, BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:33
int BM_vert_edge_count_at_most(const BMVert *v, int count_max) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:612
bool BM_edge_is_any_face_len_test(const BMEdge *e, int len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:2017
bool BM_face_exists_overlap_subset(BMVert **varr, int len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1851
bool BM_vert_is_manifold(const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:705
bool BM_face_share_vert_check(BMFace *f_a, BMFace *f_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1015
BMLoop * BM_loop_find_next_nodouble(BMLoop *l, BMLoop *l_stop, float eps_sq)
Definition: bmesh_query.c:1163
int BM_loop_region_loops_count(BMLoop *l) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
Definition: bmesh_query.c:842
bool BM_edge_is_all_face_flag_test(const BMEdge *e, char hflag, bool respect_hide) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1950
float BM_vert_calc_shell_factor_ex(const BMVert *v, const float no[3], char hflag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:1438
int BM_face_share_edge_count(BMFace *f_a, BMFace *f_b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition: bmesh_query.c:968
ATTR_WARN_UNUSED_RESULT const BMVert * v2
ATTR_WARN_UNUSED_RESULT const BMLoop * l
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
ATTR_WARN_UNUSED_RESULT const BMLoop * l_b
ATTR_WARN_UNUSED_RESULT const BMVert * v
void * user_data
DEGForeachIDComponentCallback callback
int len
Definition: draw_manager.c:108
static float verts[][3]
static char faces[256]