soc-2008-mxcurioni: ported ALL 1D unary functions, representing 32 new classes.

This commit is contained in:
Maxime Curioni
2008-07-27 11:27:59 +00:00
parent 0cc6f9db3d
commit 2b2df54aef
83 changed files with 5761 additions and 339 deletions

View File

@@ -189,6 +189,22 @@ PyObject * BPy_FrsMaterial_from_Material( Material& m ){
return py_m;
}
PyObject * BPy_IntegrationType_from_IntegrationType( int i ) {
PyObject *py_it = IntegrationType_Type.tp_new( &IntegrationType_Type, 0, 0 );
PyObject *args = PyTuple_New(1);
PyTuple_SetItem( args, 0, PyInt_FromLong(i) );
IntegrationType_Type.tp_init( py_it, args, 0 );
Py_DECREF(args);
return py_it;
}
IntegrationType IntegrationType_from_BPy_IntegrationType( PyObject* obj ) {
return static_cast<IntegrationType>( PyInt_AsLong(obj) );
}
///////////////////////////////////////////////////////////////////////////////////////////