Blender  V2.93
BKE_mesh_wrapper.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 #pragma once
17 
22 struct BMEditMesh;
24 struct Mesh;
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
31  struct BMEditMesh *em,
32  const struct CustomData_MeshMasks *cd_mask_extra,
33  const float (*vert_coords)[3],
34  const struct Mesh *me_settings);
36  const struct CustomData_MeshMasks *cd_mask_extra,
37  const struct Mesh *me_settings);
38 void BKE_mesh_wrapper_ensure_mdata(struct Mesh *me);
39 bool BKE_mesh_wrapper_minmax(const struct Mesh *me, float min[3], float max[3]);
40 
41 int BKE_mesh_wrapper_vert_len(const struct Mesh *me);
42 int BKE_mesh_wrapper_edge_len(const struct Mesh *me);
43 int BKE_mesh_wrapper_loop_len(const struct Mesh *me);
44 int BKE_mesh_wrapper_poly_len(const struct Mesh *me);
45 
47  float (*vert_coords)[3],
48  int vert_coords_len);
50  float (*vert_coords)[3],
51  int vert_coords_len,
52  const float mat[4][4]);
53 
54 #ifdef __cplusplus
55 }
56 #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.c:98
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)
#define min(a, b)
Definition: sort.c:51
struct Material ** mat
float max