2008-07-24 08:29:48 +00:00
|
|
|
#ifndef FREESTYLE_PYTHON_BBOX_H
|
|
|
|
|
#define FREESTYLE_PYTHON_BBOX_H
|
|
|
|
|
|
2010-04-07 23:28:29 +00:00
|
|
|
#include <Python.h>
|
|
|
|
|
|
2008-07-24 08:29:48 +00:00
|
|
|
#include "../geometry/BBox.h"
|
|
|
|
|
#include "../geometry/Geom.h"
|
|
|
|
|
using namespace Geometry;
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
extern PyTypeObject BBox_Type;
|
|
|
|
|
|
2008-07-29 05:45:16 +00:00
|
|
|
#define BPy_BBox_Check(v) ( PyObject_IsInstance( (PyObject *) v, (PyObject *) &BBox_Type) )
|
2008-07-24 08:29:48 +00:00
|
|
|
|
|
|
|
|
/*---------------------------Python BPy_BBox structure definition----------*/
|
|
|
|
|
typedef struct {
|
|
|
|
|
PyObject_HEAD
|
|
|
|
|
BBox<Vec3r> *bb;
|
|
|
|
|
} BPy_BBox;
|
|
|
|
|
|
|
|
|
|
/*---------------------------Python BPy_BBox visible prototypes-----------*/
|
|
|
|
|
|
2009-09-27 00:32:20 +00:00
|
|
|
int BBox_Init( PyObject *module );
|
2008-07-24 08:29:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FREESTYLE_PYTHON_BBOX_H */
|