soc-2008-mxcurioni: add all predicate subclasses( BinaryPredicate1D, UnaryPredicate{0D,1D} ).

There is just one more class remaining to port (and probably the most important): Operators. After that, I'll be able to test whether Freestyle functions well without SWIG.
This commit is contained in:
Maxime Curioni
2008-07-28 22:53:42 +00:00
parent 362e4f763f
commit e4677c409d
37 changed files with 2302 additions and 157 deletions

View File

@@ -3,6 +3,12 @@
#include "BPy_Convert.h"
#include "BPy_Interface1D.h"
#include "BinaryPredicate1D/BPy_FalseBP1D.h"
#include "BinaryPredicate1D/BPy_Length2DBP1D.h"
#include "BinaryPredicate1D/BPy_SameShapeIdBP1D.h"
#include "BinaryPredicate1D/BPy_TrueBP1D.h"
#include "BinaryPredicate1D/BPy_ViewMapGradientNormBP1D.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -116,9 +122,35 @@ PyMODINIT_FUNC BinaryPredicate1D_Init( PyObject *module )
if( PyType_Ready( &BinaryPredicate1D_Type ) < 0 )
return;
Py_INCREF( &BinaryPredicate1D_Type );
PyModule_AddObject(module, "BinaryPredicate1D", (PyObject *)&BinaryPredicate1D_Type);
if( PyType_Ready( &FalseBP1D_Type ) < 0 )
return;
Py_INCREF( &FalseBP1D_Type );
PyModule_AddObject(module, "FalseBP1D", (PyObject *)&FalseBP1D_Type);
if( PyType_Ready( &Length2DBP1D_Type ) < 0 )
return;
Py_INCREF( &Length2DBP1D_Type );
PyModule_AddObject(module, "Length2DBP1D", (PyObject *)&Length2DBP1D_Type);
if( PyType_Ready( &SameShapeIdBP1D_Type ) < 0 )
return;
Py_INCREF( &SameShapeIdBP1D_Type );
PyModule_AddObject(module, "SameShapeIdBP1D", (PyObject *)&SameShapeIdBP1D_Type);
if( PyType_Ready( &TrueBP1D_Type ) < 0 )
return;
Py_INCREF( &TrueBP1D_Type );
PyModule_AddObject(module, "TrueBP1D", (PyObject *)&TrueBP1D_Type);
if( PyType_Ready( &ViewMapGradientNormBP1D_Type ) < 0 )
return;
Py_INCREF( &ViewMapGradientNormBP1D_Type );
PyModule_AddObject(module, "ViewMapGradientNormBP1D", (PyObject *)&ViewMapGradientNormBP1D_Type);
}