Blender  V2.93
bmesh_mesh_convert.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  * The Original Code is Copyright (C) 2004 Blender Foundation.
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
26 #include "bmesh.h"
27 
29 struct Main;
30 struct Mesh;
31 
32 void BM_mesh_cd_flag_ensure(BMesh *bm, struct Mesh *mesh, const char cd_flag);
33 void BM_mesh_cd_flag_apply(BMesh *bm, const char cd_flag);
35 
38  /* add a vertex CD_SHAPE_KEYINDEX layer */
40  /* set vertex coordinates from the shapekey */
42  /* define the active shape key (index + 1) */
45 };
46 void BM_mesh_bm_from_me(BMesh *bm, const struct Mesh *me, const struct BMeshFromMeshParams *params)
47  ATTR_NONNULL(1, 3);
48 
63 };
64 void BM_mesh_bm_to_me(struct Main *bmain,
65  BMesh *bm,
66  struct Mesh *me,
67  const struct BMeshToMeshParams *params) ATTR_NONNULL(2, 3, 4);
68 
70  struct Mesh *me,
71  const struct CustomData_MeshMasks *cd_mask_extra)
72  ATTR_NONNULL(1, 2);
#define ATTR_NONNULL(...)
unsigned int uint
Definition: BLI_sys_types.h:83
ATTR_WARN_UNUSED_RESULT BMesh * bm
void BM_mesh_cd_flag_ensure(BMesh *bm, struct Mesh *mesh, const char cd_flag)
void BM_mesh_bm_to_me(struct Main *bmain, BMesh *bm, struct Mesh *me, const struct BMeshToMeshParams *params) ATTR_NONNULL(2
void void BM_mesh_bm_to_me_for_eval(BMesh *bm, struct Mesh *me, const struct CustomData_MeshMasks *cd_mask_extra) ATTR_NONNULL(1
char BM_mesh_cd_flag_from_bmesh(BMesh *bm)
void BM_mesh_bm_from_me(BMesh *bm, const struct Mesh *me, const struct BMeshFromMeshParams *params) ATTR_NONNULL(1
void BM_mesh_cd_flag_apply(BMesh *bm, const char cd_flag)
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
struct CustomData_MeshMasks cd_mask_extra
struct CustomData_MeshMasks cd_mask_extra
Definition: BKE_main.h:116
char cd_flag