Blender V5.0
bmesh_edgeloop.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2013 by Campbell Barton. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11#include "bmesh_class.hh"
12
13struct BMEdgeLoopStore;
14struct GSet;
15struct ListBase;
16
17/* multiple edgeloops (ListBase) */
22 ListBase *r_eloops,
23 bool (*test_fn)(BMEdge *, void *user_data),
24 void *user_data);
26 ListBase *r_eloops,
27 bool (*test_fn)(BMEdge *, void *user_data),
28 void *user_data,
29 BMVert *v_src,
30 BMVert *v_dst);
31
35void BM_mesh_edgeloops_calc_normal_aligned(BMesh *bm, ListBase *eloops, const float no_align[3]);
36void BM_mesh_edgeloops_calc_order(BMesh *bm, ListBase *eloops, bool use_normals);
37
43BMEdgeLoopStore *BM_edgeloop_from_verts(BMVert **v_arr, int v_arr_tot, bool is_closed);
44
45void BM_edgeloop_free(BMEdgeLoopStore *el_store);
49const float *BM_edgeloop_normal_get(BMEdgeLoopStore *el_store);
50const float *BM_edgeloop_center_get(BMEdgeLoopStore *el_store);
54void BM_edgeloop_edges_get(BMEdgeLoopStore *el_store, BMEdge **e_arr);
64 BMEdgeLoopStore *el_store,
65 const float no_align[3]);
68 BMesh *bm, BMEdgeLoopStore *el_store, int el_store_len, bool split, GSet *split_edges);
69
70bool BM_edgeloop_overlap_check(BMEdgeLoopStore *el_store_a, BMEdgeLoopStore *el_store_b);
71
72#define BM_EDGELINK_NEXT(el_store, elink) \
73 (elink)->next ? \
74 (elink)->next : \
75 (BM_edgeloop_is_closed(el_store) ? (LinkData *)BM_edgeloop_verts_get(el_store)->first : \
76 NULL)
77
78#define BM_EDGELOOP_NEXT(el_store) \
79 (CHECK_TYPE_INLINE(el_store, BMEdgeLoopStore *), (BMEdgeLoopStore *)((LinkData *)el_store)->next)
struct GSet GSet
Definition BLI_ghash.h:337
static void split(const char *text, const char *seps, char ***str, int *count)
void BM_edgeloop_calc_center(BMesh *bm, BMEdgeLoopStore *el_store)
BMEdgeLoopStore * BM_edgeloop_from_verts(BMVert **v_arr, int v_arr_tot, bool is_closed)
void BM_edgeloop_expand(BMesh *bm, BMEdgeLoopStore *el_store, int el_store_len, bool split, GSet *split_edges)
bool BM_edgeloop_calc_normal_aligned(BMesh *bm, BMEdgeLoopStore *el_store, const float no_align[3])
void BM_mesh_edgeloops_free(ListBase *eloops)
void BM_edgeloop_free(BMEdgeLoopStore *el_store)
bool BM_edgeloop_overlap_check(BMEdgeLoopStore *el_store_a, BMEdgeLoopStore *el_store_b)
BMEdgeLoopStore * BM_edgeloop_copy(BMEdgeLoopStore *el_store)
int BM_mesh_edgeloops_find(BMesh *bm, ListBase *r_eloops, bool(*test_fn)(BMEdge *, void *user_data), void *user_data)
bool BM_edgeloop_calc_normal(BMesh *bm, BMEdgeLoopStore *el_store)
bool BM_mesh_edgeloops_find_path(BMesh *bm, ListBase *r_eloops, bool(*test_fn)(BMEdge *, void *user_data), void *user_data, BMVert *v_src, BMVert *v_dst)
int BM_edgeloop_length_get(BMEdgeLoopStore *el_store)
const float * BM_edgeloop_normal_get(BMEdgeLoopStore *el_store)
bool BM_edgeloop_is_closed(BMEdgeLoopStore *el_store)
void BM_mesh_edgeloops_calc_normal_aligned(BMesh *bm, ListBase *eloops, const float no_align[3])
void BM_edgeloop_edges_get(BMEdgeLoopStore *el_store, BMEdge **e_arr)
void BM_edgeloop_flip(BMesh *bm, BMEdgeLoopStore *el_store)
const float * BM_edgeloop_center_get(BMEdgeLoopStore *el_store)
void BM_mesh_edgeloops_calc_normal(BMesh *bm, ListBase *eloops)
ListBase * BM_edgeloop_verts_get(BMEdgeLoopStore *el_store)
void BM_mesh_edgeloops_calc_order(BMesh *bm, ListBase *eloops, bool use_normals)
void BM_mesh_edgeloops_calc_center(BMesh *bm, ListBase *eloops)
BMesh * bm