Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_mesh.h
| Show First 20 Lines • Show All 466 Lines • ▼ Show 20 Lines | void BKE_mesh_calc_normals_poly(const struct MVert *mvert, | ||||
| int mvert_len, | int mvert_len, | ||||
| const struct MLoop *mloop, | const struct MLoop *mloop, | ||||
| int mloop_len, | int mloop_len, | ||||
| const struct MPoly *mpoly, | const struct MPoly *mpoly, | ||||
| int mpoly_len, | int mpoly_len, | ||||
| float (*r_poly_normals)[3]); | float (*r_poly_normals)[3]); | ||||
| /** | /** | ||||
| * Calculate face and vertex normals directly into result arrays. | |||||
| * | |||||
| * \note Usually #BKE_mesh_vertex_normals_ensure is the preferred way to access face normals, | |||||
| * since they may already be calculated and cached on the mesh. | |||||
| */ | |||||
| void BKE_mesh_calc_normals_poly_and_vertex(const struct MVert *mvert, | |||||
| int mvert_len, | |||||
| const struct MLoop *mloop, | |||||
| int mloop_len, | |||||
| const struct MPoly *mpoly, | |||||
| int mpoly_len, | |||||
| float (*r_poly_normals)[3], | |||||
| float (*r_vert_normals)[3]); | |||||
| /** | |||||
| * Calculate vertex and face normals, storing the result in custom data layers on the mesh. | * Calculate vertex and face normals, storing the result in custom data layers on the mesh. | ||||
| * | * | ||||
| * \note It is usually preferable to calculate normals lazily with | * \note It is usually preferable to calculate normals lazily with | ||||
| * #BKE_mesh_vertex_normals_ensure, but some areas (perhaps unnecessarily) | * #BKE_mesh_vertex_normals_ensure, but some areas (perhaps unnecessarily) | ||||
| * can also calculate them eagerly. | * can also calculate them eagerly. | ||||
| */ | */ | ||||
| void BKE_mesh_calc_normals(struct Mesh *me); | void BKE_mesh_calc_normals(struct Mesh *me); | ||||
| ▲ Show 20 Lines • Show All 593 Lines • Show Last 20 Lines | |||||