Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_mesh.h
| Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
| struct Mesh *BKE_mesh_from_bmesh_nomain(struct BMesh *bm, | struct Mesh *BKE_mesh_from_bmesh_nomain(struct BMesh *bm, | ||||
| const struct BMeshToMeshParams *params, | const struct BMeshToMeshParams *params, | ||||
| const struct Mesh *me_settings); | const struct Mesh *me_settings); | ||||
| struct Mesh *BKE_mesh_from_bmesh_for_eval_nomain(struct BMesh *bm, | struct Mesh *BKE_mesh_from_bmesh_for_eval_nomain(struct BMesh *bm, | ||||
| const struct CustomData_MeshMasks *cd_mask_extra, | const struct CustomData_MeshMasks *cd_mask_extra, | ||||
| const struct Mesh *me_settings); | const struct Mesh *me_settings); | ||||
| /** | /** | ||||
| * Add original index (#CD_ORIGINDEX) layers if they don't already exist. This is meant to be used | |||||
| * when creating an evaluated mesh from an original edit-mode mesh, to allow mapping from the | |||||
| * evaluated vertices to the originals. | |||||
| */ | |||||
| void BKE_mesh_ensure_default_orig_index_layers(struct Mesh *mesh); | |||||
campbellbarton: Similar functions refer to `customdata` instead of layers, eg… | |||||
| /** | |||||
| * Find the index of the loop in 'poly' which references vertex, | * Find the index of the loop in 'poly' which references vertex, | ||||
| * returns -1 if not found | * returns -1 if not found | ||||
| */ | */ | ||||
| int poly_find_loop_from_vert(const struct MPoly *poly, const struct MLoop *loopstart, uint vert); | int poly_find_loop_from_vert(const struct MPoly *poly, const struct MLoop *loopstart, uint vert); | ||||
| /** | /** | ||||
| * Fill \a r_adj with the loop indices in \a poly adjacent to the | * Fill \a r_adj with the loop indices in \a poly adjacent to the | ||||
| * vertex. Returns the index of the loop matching vertex, or -1 if the | * vertex. Returns the index of the loop matching vertex, or -1 if the | ||||
| * vertex is not in \a poly | * vertex is not in \a poly | ||||
| ▲ Show 20 Lines • Show All 970 Lines • Show Last 20 Lines | |||||
Similar functions refer to customdata instead of layers, eg:
This could be named using a similar convention.