Made the Freestyle Python API compatible with Python 3.
[blender.git] / source / blender / freestyle / intern / python / BinaryPredicate1D / BPy_SameShapeIdBP1D.cpp
1 #include "BPy_SameShapeIdBP1D.h"
2
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 ///////////////////////////////////////////////////////////////////////////////////////////
8
9 /*---------------  Python API function prototypes for SameShapeIdBP1D instance  -----------*/
10 static int SameShapeIdBP1D___init__(BPy_SameShapeIdBP1D* self, PyObject *args);
11
12 /*-----------------------BPy_SameShapeIdBP1D type definition ------------------------------*/
13 PyTypeObject SameShapeIdBP1D_Type = {
14         PyObject_HEAD_INIT(NULL)
15         "SameShapeIdBP1D",              /* tp_name */
16         sizeof(BPy_SameShapeIdBP1D),    /* tp_basicsize */
17         0,                              /* tp_itemsize */
18         0,                              /* tp_dealloc */
19         0,                              /* tp_print */
20         0,                              /* tp_getattr */
21         0,                              /* tp_setattr */
22         0,                              /* tp_reserved */
23         0,                              /* tp_repr */
24         0,                              /* tp_as_number */
25         0,                              /* tp_as_sequence */
26         0,                              /* tp_as_mapping */
27         0,                              /* tp_hash  */
28         0,                              /* tp_call */
29         0,                              /* tp_str */
30         0,                              /* tp_getattro */
31         0,                              /* tp_setattro */
32         0,                              /* tp_as_buffer */
33         Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
34         "SameShapeIdBP1D objects",      /* tp_doc */
35         0,                              /* tp_traverse */
36         0,                              /* tp_clear */
37         0,                              /* tp_richcompare */
38         0,                              /* tp_weaklistoffset */
39         0,                              /* tp_iter */
40         0,                              /* tp_iternext */
41         0,                              /* tp_methods */
42         0,                              /* tp_members */
43         0,                              /* tp_getset */
44         &BinaryPredicate1D_Type,        /* tp_base */
45         0,                              /* tp_dict */
46         0,                              /* tp_descr_get */
47         0,                              /* tp_descr_set */
48         0,                              /* tp_dictoffset */
49         (initproc)SameShapeIdBP1D___init__, /* tp_init */
50         0,                              /* tp_alloc */
51         0,                              /* tp_new */
52 };
53
54 //------------------------INSTANCE METHODS ----------------------------------
55
56 int SameShapeIdBP1D___init__( BPy_SameShapeIdBP1D* self, PyObject *args )
57 {
58         if(!( PyArg_ParseTuple(args, "") ))
59                 return -1;
60         self->py_bp1D.bp1D = new Predicates1D::SameShapeIdBP1D();
61         return 0;
62 }
63
64 ///////////////////////////////////////////////////////////////////////////////////////////
65
66 #ifdef __cplusplus
67 }
68 #endif