Blender  V2.93
bmesh_interp.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
23 struct LinkNode;
24 struct MemArena;
25 
27  BMLoop *l_dst,
28  const BMFace *f_src,
29  const float f_dst_center[3],
30  const float f_src_center[3],
31  const int cd_loop_mdisp_offset);
32 void BM_loop_interp_multires(BMesh *bm, BMLoop *l_dst, const BMFace *f_src);
33 
35  BMFace *f_dst,
36  const BMFace *f_src,
37  const float f_dst_center[3],
38  const float f_src_center[3],
39  const int cd_loop_mdisp_offset);
40 void BM_face_interp_multires(BMesh *bm, BMFace *f_dst, const BMFace *f_src);
41 
42 void BM_vert_interp_from_face(BMesh *bm, BMVert *v_dst, const BMFace *f_src);
43 
45  BMesh *bm, const BMVert *v_src_1, const BMVert *v_src_2, BMVert *v_dst, const float fac);
47  BMesh *bm, const BMEdge *e_src_1, const BMEdge *e_src_2, BMEdge *e_dst, const float fac);
49  const BMVert *v_src_1,
50  const BMVert *v_src_2,
51  BMVert *v,
52  BMEdge *e,
53  const float fac);
55 void BM_data_layer_add_named(BMesh *bm, CustomData *data, int type, const char *name);
57 void BM_data_layer_free_n(BMesh *bm, CustomData *data, int type, int n);
58 void BM_data_layer_copy(BMesh *bm, CustomData *data, int type, int src_n, int dst_n);
59 
60 float BM_elem_float_data_get(CustomData *cd, void *element, int type);
61 void BM_elem_float_data_set(CustomData *cd, void *element, int type, const float val);
62 
64  BMFace *f_dst,
65  const BMFace *f_src,
66  const bool do_vertex,
67  const void **blocks,
68  const void **blocks_v,
69  float (*cos_2d)[2],
70  float axis_mat[3][3]);
71 void BM_face_interp_from_face(BMesh *bm, BMFace *f_dst, const BMFace *f_src, const bool do_vertex);
73  BMesh *bm, BMLoop *l_dst, const BMFace *f_src, const bool do_vertex, const bool do_multires);
74 
76 
78  BMesh *bm, BMVert *v, const int layer_n, const float *loop_weights, struct MemArena *arena);
79 void BM_vert_loop_groups_data_layer_merge(BMesh *bm, struct LinkNode *groups, const int layer_n);
81  struct LinkNode *groups,
82  const int layer_n,
83  const float *loop_weights);
_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 type
void BM_face_interp_multires(BMesh *bm, BMFace *f_dst, const BMFace *f_src)
Definition: bmesh_interp.c:606
void BM_data_interp_face_vert_edge(BMesh *bm, const BMVert *v_src_1, const BMVert *v_src_2, BMVert *v, BMEdge *e, const float fac)
void BM_data_layer_free_n(BMesh *bm, CustomData *data, int type, int n)
Definition: bmesh_interp.c:952
void BM_data_layer_free(BMesh *bm, CustomData *data, int type)
Definition: bmesh_interp.c:930
float BM_elem_float_data_get(CustomData *cd, void *element, int type)
void BM_vert_interp_from_face(BMesh *bm, BMVert *v_dst, const BMFace *f_src)
Definition: bmesh_interp.c:791
void BM_face_interp_multires_ex(BMesh *bm, BMFace *f_dst, const BMFace *f_src, const float f_dst_center[3], const float f_src_center[3], const int cd_loop_mdisp_offset)
Definition: bmesh_interp.c:591
void BM_data_layer_copy(BMesh *bm, CustomData *data, int type, int src_n, int dst_n)
Definition: bmesh_interp.c:974
struct LinkNode * BM_vert_loop_groups_data_layer_create(BMesh *bm, BMVert *v, const int layer_n, const float *loop_weights, struct MemArena *arena)
void BM_loop_interp_multires(BMesh *bm, BMLoop *l_dst, const BMFace *f_src)
Definition: bmesh_interp.c:576
void BM_data_layer_add(BMesh *bm, CustomData *data, int type)
Definition: bmesh_interp.c:894
void BM_data_layer_add_named(BMesh *bm, CustomData *data, int type, const char *name)
Definition: bmesh_interp.c:912
void BM_data_interp_from_edges(BMesh *bm, const BMEdge *e_src_1, const BMEdge *e_src_2, BMEdge *e_dst, const float fac)
Data, Interp From Edges.
Definition: bmesh_interp.c:105
void BM_face_interp_from_face(BMesh *bm, BMFace *f_dst, const BMFace *f_src, const bool do_vertex)
Definition: bmesh_interp.c:213
void BM_face_multires_bounds_smooth(BMesh *bm, BMFace *f)
Definition: bmesh_interp.c:625
void BM_loop_interp_from_face(BMesh *bm, BMLoop *l_dst, const BMFace *f_src, const bool do_vertex, const bool do_multires)
Definition: bmesh_interp.c:737
void BM_face_interp_from_face_ex(BMesh *bm, BMFace *f_dst, const BMFace *f_src, const bool do_vertex, const void **blocks, const void **blocks_v, float(*cos_2d)[2], float axis_mat[3][3])
Data Interp From Face.
Definition: bmesh_interp.c:180
void BM_elem_float_data_set(CustomData *cd, void *element, int type, const float val)
void BM_loop_interp_multires_ex(BMesh *bm, BMLoop *l_dst, const BMFace *f_src, const float f_dst_center[3], const float f_src_center[3], const int cd_loop_mdisp_offset)
void BM_vert_loop_groups_data_layer_merge(BMesh *bm, struct LinkNode *groups, const int layer_n)
void BM_vert_loop_groups_data_layer_merge_weights(BMesh *bm, struct LinkNode *groups, const int layer_n, const float *loop_weights)
void BM_data_interp_from_verts(BMesh *bm, const BMVert *v_src_1, const BMVert *v_src_2, BMVert *v_dst, const float fac)
Data, Interp From Verts.
Definition: bmesh_interp.c:91
ATTR_WARN_UNUSED_RESULT BMesh * bm
ATTR_WARN_UNUSED_RESULT const void * element
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
ATTR_WARN_UNUSED_RESULT const BMVert * v
const char * name
Definition: BLI_memarena.c:57