Blender  V3.3
Classes | Functions
bmesh_mesh_convert.h File Reference
#include "bmesh.h"

Go to the source code of this file.

Classes

struct  BMeshFromMeshParams
 
struct  BMeshToMeshParams
 

Functions

void BM_mesh_cd_flag_ensure (BMesh *bm, struct Mesh *mesh, char cd_flag)
 
void BM_mesh_cd_flag_apply (BMesh *bm, char cd_flag)
 
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
 Mesh -> BMesh. More...
 
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
 

Function Documentation

◆ BM_mesh_bm_from_me()

void BM_mesh_bm_from_me ( BMesh bm,
const struct Mesh me,
const struct BMeshFromMeshParams params 
)

Mesh -> BMesh.

Parameters
bmThe mesh to write into, while this is typically a newly created BMesh, merging into existing data is supported. Note the custom-data layout isn't used. If more comprehensive merging is needed we should move this into a separate function since this should be kept fast for edit-mode switching and storing undo steps.
Warning
This function doesn't calculate face normals.

◆ BM_mesh_bm_to_me()

void BM_mesh_bm_to_me ( struct Main bmain,
BMesh bm,
struct Mesh me,
const struct BMeshToMeshParams params 
)
Parameters
bmainMay be NULL in case calc_object_remap parameter option is not set.

◆ BM_mesh_bm_to_me_for_eval()

void void BM_mesh_bm_to_me_for_eval ( BMesh bm,
struct Mesh me,
const struct CustomData_MeshMasks cd_mask_extra 
)

A version of BM_mesh_bm_to_me intended for getting the mesh to pass to the modifier stack for evaluation, instead of mode switching (where we make sure all data is kept and do expensive lookups to maintain shape keys).

Key differences:

Note
Was cddm_from_bmesh_ex in 2.7x, removed MFace support.

◆ BM_mesh_cd_flag_apply()

void BM_mesh_cd_flag_apply ( BMesh bm,
char  cd_flag 
)

◆ BM_mesh_cd_flag_ensure()

void BM_mesh_cd_flag_ensure ( BMesh bm,
struct Mesh mesh,
char  cd_flag 
)

◆ BM_mesh_cd_flag_from_bmesh()

char BM_mesh_cd_flag_from_bmesh ( BMesh bm)