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

@@ -100,9 +100,15 @@ PyObject* MeshPointPy::move(PyObject *args)
Py_Return;
}
#if PY_MAJOR_VERSION >= 3
Py::Long MeshPointPy::getIndex(void) const
{
return Py::Long((long) getMeshPointPtr()->Index);
#else
Py::Int MeshPointPy::getIndex(void) const
{
return Py::Int((long) getMeshPointPtr()->Index);
#endif
}
Py::Boolean MeshPointPy::getBound(void) const