Blender  V3.3
bmesh_construct.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
9 #include "bmesh_core.h"
10 
11 struct BMAllocTemplate;
12 struct Mesh;
13 
19 bool BM_verts_from_edges(BMVert **vert_arr, BMEdge **edge_arr, int len);
20 
26 bool BM_edges_from_verts(BMEdge **edge_arr, BMVert **vert_arr, int len);
31 void BM_edges_from_verts_ensure(BMesh *bm, BMEdge **edge_arr, BMVert **vert_arr, int len);
32 
50 void BM_verts_sort_radial_plane(BMVert **vert_arr, int len);
51 
66  BMVert *v1,
67  BMVert *v2,
68  BMVert *v3,
69  BMVert *v4,
70  const BMFace *f_example,
71  eBMCreateFlag create_flag);
72 
83 void BM_face_copy_shared(BMesh *bm, BMFace *f, BMLoopFilterFunc filter_fn, void *user_data);
84 
100  BMVert *v1,
101  BMVert *v2,
102  BMEdge **edges,
103  int len,
104  const BMFace *f_example,
105  eBMCreateFlag create_flag);
115  BMVert **vert_arr,
116  int len,
117  const BMFace *f_example,
118  eBMCreateFlag create_flag,
119  bool calc_winding,
120  bool create_edges);
121 
126 void BM_elem_attrs_copy_ex(BMesh *bm_src,
127  BMesh *bm_dst,
128  const void *ele_src_v,
129  void *ele_dst_v,
130  char hflag_mask,
131  uint64_t cd_mask_exclude);
132 void BM_elem_attrs_copy(BMesh *bm_src, BMesh *bm_dst, const void *ele_src_v, void *ele_dst_v);
133 void BM_elem_select_copy(BMesh *bm_dst, void *ele_dst_v, const void *ele_src_v);
134 
145  const struct Mesh *me_src_array[],
146  int me_src_array_len,
147  const struct BMAllocTemplate *allocsize);
149  const struct Mesh *me_src,
150  const struct BMAllocTemplate *allocsize);
152  BMesh *bm_src,
153  const struct BMAllocTemplate *allocsize);
164  BMesh *bm_src,
165  char htype,
166  const struct BMAllocTemplate *allocsize);
167 BMesh *BM_mesh_copy(BMesh *bm_old);
168 
169 char BM_face_flag_from_mflag(char mflag);
170 char BM_edge_flag_from_mflag(short mflag);
171 /* ME -> BM */
172 char BM_vert_flag_from_mflag(char mflag);
175 /* BM -> ME */
_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(* BMLoopFilterFunc)(const BMLoop *, void *user_data)
Definition: bmesh_class.h:506
void BM_mesh_copy_init_customdata_from_mesh(BMesh *bm_dst, const struct Mesh *me_src, const struct BMAllocTemplate *allocsize)
void BM_mesh_copy_init_customdata(BMesh *bm_dst, BMesh *bm_src, const struct BMAllocTemplate *allocsize)
void BM_verts_sort_radial_plane(BMVert **vert_arr, int len)
void BM_face_copy_shared(BMesh *bm, BMFace *f, BMLoopFilterFunc filter_fn, void *user_data)
copies face loop data from shared adjacent faces.
bool BM_edges_from_verts(BMEdge **edge_arr, BMVert **vert_arr, int len)
bool BM_verts_from_edges(BMVert **vert_arr, BMEdge **edge_arr, int len)
void BM_elem_select_copy(BMesh *bm_dst, void *ele_dst_v, const void *ele_src_v)
void BM_mesh_copy_init_customdata_all_layers(BMesh *bm_dst, BMesh *bm_src, char htype, const struct BMAllocTemplate *allocsize)
char BM_face_flag_to_mflag(BMFace *f)
char BM_vert_flag_from_mflag(char mflag)
char BM_edge_flag_from_mflag(short mflag)
void BM_elem_attrs_copy_ex(BMesh *bm_src, BMesh *bm_dst, const void *ele_src_v, void *ele_dst_v, char hflag_mask, uint64_t cd_mask_exclude)
short BM_edge_flag_to_mflag(BMEdge *e)
void BM_elem_attrs_copy(BMesh *bm_src, BMesh *bm_dst, const void *ele_src_v, void *ele_dst_v)
char BM_face_flag_from_mflag(char mflag)
BMFace * BM_face_create_ngon(BMesh *bm, BMVert *v1, BMVert *v2, BMEdge **edges, int len, const BMFace *f_example, eBMCreateFlag create_flag)
Make NGon.
char BM_vert_flag_to_mflag(BMVert *v)
void BM_mesh_copy_init_customdata_from_mesh_array(BMesh *bm_dst, const struct Mesh *me_src_array[], int me_src_array_len, const struct BMAllocTemplate *allocsize)
BMesh * BM_mesh_copy(BMesh *bm_old)
BMFace * BM_face_create_quad_tri(BMesh *bm, BMVert *v1, BMVert *v2, BMVert *v3, BMVert *v4, const BMFace *f_example, eBMCreateFlag create_flag)
Make Quad/Triangle.
BMFace * BM_face_create_ngon_verts(BMesh *bm, BMVert **vert_arr, int len, const BMFace *f_example, eBMCreateFlag create_flag, bool calc_winding, bool create_edges)
void BM_edges_from_verts_ensure(BMesh *bm, BMEdge **edge_arr, BMVert **vert_arr, int len)
eBMCreateFlag
Definition: bmesh_core.h:11
ATTR_WARN_UNUSED_RESULT BMesh * bm
ATTR_WARN_UNUSED_RESULT const BMVert * v2
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
ATTR_WARN_UNUSED_RESULT const BMVert * v
void * user_data
int len
Definition: draw_manager.c:108
unsigned __int64 uint64_t
Definition: stdint.h:90