Blender  V3.3
BKE_mesh_wrapper.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #pragma once
3 
8 struct BMEditMesh;
10 struct Mesh;
11 struct Object;
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
18  struct BMEditMesh *em,
19  const struct CustomData_MeshMasks *cd_mask_extra,
20  const float (*vert_coords)[3],
21  const struct Mesh *me_settings);
23  const struct CustomData_MeshMasks *cd_mask_extra,
24  const struct Mesh *me_settings);
25 void BKE_mesh_wrapper_ensure_mdata(struct Mesh *me);
26 bool BKE_mesh_wrapper_minmax(const struct Mesh *me, float min[3], float max[3]);
27 
28 int BKE_mesh_wrapper_vert_len(const struct Mesh *me);
29 int BKE_mesh_wrapper_edge_len(const struct Mesh *me);
30 int BKE_mesh_wrapper_loop_len(const struct Mesh *me);
31 int BKE_mesh_wrapper_poly_len(const struct Mesh *me);
32 
34  float (*vert_coords)[3],
35  int vert_coords_len);
37  float (*vert_coords)[3],
38  int vert_coords_len,
39  const float mat[4][4]);
40 
42 
43 #ifdef __cplusplus
44 }
45 #endif
struct Mesh * BKE_mesh_wrapper_from_editmesh(struct BMEditMesh *em, const struct CustomData_MeshMasks *cd_mask_extra, const struct Mesh *me_settings)
void BKE_mesh_wrapper_ensure_mdata(struct Mesh *me)
Definition: mesh_wrapper.cc:94
bool BKE_mesh_wrapper_minmax(const struct Mesh *me, float min[3], float max[3])
int BKE_mesh_wrapper_edge_len(const struct Mesh *me)
int BKE_mesh_wrapper_vert_len(const struct Mesh *me)
int BKE_mesh_wrapper_poly_len(const struct Mesh *me)
int BKE_mesh_wrapper_loop_len(const struct Mesh *me)
void BKE_mesh_wrapper_vert_coords_copy_with_mat4(const struct Mesh *me, float(*vert_coords)[3], int vert_coords_len, const float mat[4][4])
struct Mesh * BKE_mesh_wrapper_from_editmesh_with_coords(struct BMEditMesh *em, const struct CustomData_MeshMasks *cd_mask_extra, const float(*vert_coords)[3], const struct Mesh *me_settings)
void BKE_mesh_wrapper_vert_coords_copy(const struct Mesh *me, float(*vert_coords)[3], int vert_coords_len)
struct Mesh * BKE_mesh_wrapper_ensure_subdivision(struct Mesh *me)
#define min(a, b)
Definition: sort.c:35
struct Material ** mat
float max