96e52b09da
Interface0DIterator was modified to allow BPy_Interface1D to be instantiated: verticesBegin(), verticesEnd(), pointsBegin(float) and pointsEnd(float) are not pure virtual functions anymore. If they are called directly from BPy_Interface1D (instead of its subclasses), an error message is displayed.
37 lines
750 B
C++
37 lines
750 B
C++
#ifndef FREESTYLE_PYTHON_CONVERT_H
|
|
#define FREESTYLE_PYTHON_CONVERT_H
|
|
|
|
#include "../geometry/Geom.h"
|
|
using namespace Geometry;
|
|
|
|
#include "Id.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include <Python.h>
|
|
#include "api2_2x/vector.h"
|
|
#include "api2_2x/gen_utils.h"
|
|
|
|
PyObject *Convert_Init( void );
|
|
|
|
PyObject *PyBool_from_bool( bool b );
|
|
|
|
PyObject *Vector_from_Vec2f( Vec2f v );
|
|
PyObject *Vector_from_Vec3f( Vec3f v );
|
|
PyObject *Vector_from_Vec3r( Vec3r v );
|
|
|
|
PyObject *BPy_Id_from_Id( Id id );
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* FREESTYLE_PYTHON_CONVERT_H */
|