Blender V5.0
BKE_mesh_iterators.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
9
10struct Mesh;
11
14 /* foreachMappedVert, foreachMappedLoop, foreachMappedFaceCenter */
16};
17
19 const Mesh *mesh,
20 void (*func)(void *user_data, int index, const float co[3], const float no[3]),
21 void *user_data,
29 Mesh *mesh,
30 int tot_edges,
31 void (*func)(void *user_data, int index, const float v0co[3], const float v1co[3]),
32 void *user_data);
34 Mesh *mesh,
35 void (*func)(void *user_data, int vert, int face_index, const float co[3], const float no[3]),
36 void *user_data,
39 Mesh *mesh,
40 void (*func)(void *user_data, int index, const float cent[3], const float no[3]),
41 void *user_data,
44 Mesh *mesh,
45 void (*func)(void *user_data, int index, const float cent[3], const float no[3]),
46 void *user_data,
48
49void BKE_mesh_foreach_mapped_vert_coords_get(const Mesh *mesh_eval, float (*r_cos)[3], int totcos);
void BKE_mesh_foreach_mapped_vert_coords_get(const Mesh *mesh_eval, float(*r_cos)[3], int totcos)
void BKE_mesh_foreach_mapped_loop(Mesh *mesh, void(*func)(void *user_data, int vert, int face_index, const float co[3], const float no[3]), void *user_data, MeshForeachFlag flag)
MeshForeachFlag
@ MESH_FOREACH_NOP
@ MESH_FOREACH_USE_NORMAL
void BKE_mesh_foreach_mapped_edge(Mesh *mesh, int tot_edges, void(*func)(void *user_data, int index, const float v0co[3], const float v1co[3]), void *user_data)
void BKE_mesh_foreach_mapped_face_center(Mesh *mesh, void(*func)(void *user_data, int index, const float cent[3], const float no[3]), void *user_data, MeshForeachFlag flag)
void BKE_mesh_foreach_mapped_subdiv_face_center(Mesh *mesh, void(*func)(void *user_data, int index, const float cent[3], const float no[3]), void *user_data, MeshForeachFlag flag)
void BKE_mesh_foreach_mapped_vert(const Mesh *mesh, void(*func)(void *user_data, int index, const float co[3], const float no[3]), void *user_data, MeshForeachFlag flag)
uint8_t flag
Definition wm_window.cc:145