py3: ported Mesh to python3

This commit is contained in:
Yorik van Havre
2016-01-22 18:44:54 -02:00
committed by wmayer
parent 171d908615
commit 707d6a0a4d
7 changed files with 124 additions and 6 deletions

View File

@@ -76,10 +76,15 @@ PyObject* FacetPy::unbound(PyObject *args)
getFacetPtr()->Mesh = 0;
Py_Return;
}
#if PY_MAJOR_VERSION >= 3
Py::Long FacetPy::getIndex(void) const
{
return Py::Long((long) getFacetPtr()->Index);
#else
Py::Int FacetPy::getIndex(void) const
{
return Py::Int((long) getFacetPtr()->Index);
#endif
}
Py::Boolean FacetPy::getBound(void) const