Blender V4.3
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
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 void (*func)(void *user_data,
35 int vertex_index,
36 int face_index,
37 const float co[3],
38 const float no[3]),
39 void *user_data,
42 Mesh *mesh,
43 void (*func)(void *user_data, int index, const float cent[3], const float no[3]),
44 void *user_data,
47 Mesh *mesh,
48 void (*func)(void *user_data, int index, const float cent[3], const float no[3]),
49 void *user_data,
51
52void 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 vertex_index, int face_index, const float co[3], const float no[3]), void *user_data, MeshForeachFlag flag)
void BKE_mesh_foreach_mapped_vert_coords_get(const Mesh *mesh_eval, float(*r_cos)[3], int totcos)
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:138