Skip to content

Commit

Permalink
+ return point/facet indices as unsigned long in Python
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 3, 2015
1 parent 7788205 commit c47eea6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Mod/Mesh/App/FacetPyImp.cpp
Expand Up @@ -151,8 +151,9 @@ Py::Tuple FacetPy::getPointIndices(void) const
{ return Py::Tuple(); }

Py::Tuple idxTuple(3);
for (int i=0; i<3; i++)
{ idxTuple.setItem( i, Py::Int( (long)face->PIndex[i] ) ); }
for (int i=0; i<3; i++) {
idxTuple.setItem(i, Py::Long(face->PIndex[i]));
}
return idxTuple;
}

Expand All @@ -163,8 +164,9 @@ Py::Tuple FacetPy::getNeighbourIndices(void) const
{ return Py::Tuple(); }

Py::Tuple idxTuple(3);
for (int i=0; i<3; i++)
{ idxTuple.setItem( i, Py::Int( (long)face->NIndex[i] ) ); }
for (int i=0; i<3; i++) {
idxTuple.setItem(i, Py::Long(face->NIndex[i]));
}
return idxTuple;
}

Expand Down

0 comments on commit c47eea6

Please sign in to comment.