soc-2008-mxcurioni: Added first batch of Iterators: AdjacencyIterator, Interface0DIterator, CurvePointIterator, StrokeVertexIterator, SVertexIterator, orientedViewEdgeIterator.

This commit is contained in:
Maxime Curioni
2008-07-24 04:48:34 +00:00
parent d1b82d1f15
commit dd899939da
28 changed files with 1326 additions and 715 deletions

View File

@@ -12,6 +12,9 @@ PyObject * PyBool_from_bool( bool b ){
return PyBool_FromLong( b ? 1 : 0);
}
bool bool_from_PyBool( PyObject *b ) {
return b == Py_True;
}
PyObject * Vector_from_Vec2f( Vec2f& vec ) {
float vec_data[2]; // because vec->_coord is protected