Blender  V2.93
bmesh_py_types_meshdata.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  * The Original Code is Copyright (C) 2012 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 extern PyTypeObject BPy_BMLoopUV_Type;
27 extern PyTypeObject BPy_BMDeformVert_Type;
28 
29 #define BPy_BMLoopUV_Check(v) (Py_TYPE(v) == &BPy_BMLoopUV_Type)
30 
31 typedef struct BPy_BMGenericMeshData {
32  PyObject_VAR_HEAD
33  void *data;
35 
36 struct MDeformVert;
37 struct MLoopCol;
38 struct MLoopUV;
39 struct MVertSkin;
40 
41 int BPy_BMLoopUV_AssignPyObject(struct MLoopUV *mloopuv, PyObject *value);
42 PyObject *BPy_BMLoopUV_CreatePyObject(struct MLoopUV *mloopuv);
43 
44 int BPy_BMVertSkin_AssignPyObject(struct MVertSkin *mvertskin, PyObject *value);
45 PyObject *BPy_BMVertSkin_CreatePyObject(struct MVertSkin *mvertskin);
46 
47 int BPy_BMLoopColor_AssignPyObject(struct MLoopCol *mloopcol, PyObject *value);
48 PyObject *BPy_BMLoopColor_CreatePyObject(struct MLoopCol *mloopcol);
49 
50 int BPy_BMDeformVert_AssignPyObject(struct MDeformVert *dvert, PyObject *value);
51 PyObject *BPy_BMDeformVert_CreatePyObject(struct MDeformVert *dvert);
52 
int BPy_BMLoopColor_AssignPyObject(struct MLoopCol *mloopcol, PyObject *value)
PyObject * BPy_BMLoopColor_CreatePyObject(struct MLoopCol *mloopcol)
int BPy_BMDeformVert_AssignPyObject(struct MDeformVert *dvert, PyObject *value)
int BPy_BMVertSkin_AssignPyObject(struct MVertSkin *mvertskin, PyObject *value)
void BPy_BM_init_types_meshdata(void)
PyObject * BPy_BMDeformVert_CreatePyObject(struct MDeformVert *dvert)
struct BPy_BMGenericMeshData BPy_BMGenericMeshData
int BPy_BMLoopUV_AssignPyObject(struct MLoopUV *mloopuv, PyObject *value)
PyTypeObject BPy_BMDeformVert_Type
PyObject * BPy_BMLoopUV_CreatePyObject(struct MLoopUV *mloopuv)
PyTypeObject BPy_BMLoopUV_Type
PyObject * BPy_BMVertSkin_CreatePyObject(struct MVertSkin *mvertskin)
PyObject_VAR_HEAD void * data