Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_BBox.h
| Show All 21 Lines | |||||
| extern "C" { | extern "C" { | ||||
| #include <Python.h> | #include <Python.h> | ||||
| } | } | ||||
| #include "../geometry/BBox.h" | #include "../geometry/BBox.h" | ||||
| #include "../geometry/Geom.h" | #include "../geometry/Geom.h" | ||||
| using namespace Freestyle; | |||||
| using namespace Freestyle::Geometry; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| extern PyTypeObject BBox_Type; | extern PyTypeObject BBox_Type; | ||||
| #define BPy_BBox_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&BBox_Type)) | #define BPy_BBox_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&BBox_Type)) | ||||
| /*---------------------------Python BPy_BBox structure definition----------*/ | /*---------------------------Python BPy_BBox structure definition----------*/ | ||||
| typedef struct { | typedef struct { | ||||
| PyObject_HEAD BBox<Vec3r> *bb; | PyObject_HEAD Freestyle::BBox<Freestyle::Geometry::Vec3r> *bb; | ||||
| } BPy_BBox; | } BPy_BBox; | ||||
| /*---------------------------Python BPy_BBox visible prototypes-----------*/ | /*---------------------------Python BPy_BBox visible prototypes-----------*/ | ||||
| int BBox_Init(PyObject *module); | int BBox_Init(PyObject *module); | ||||
| /////////////////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////////////////// | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||