py3: ported Part to python3
This commit is contained in:
@@ -501,7 +501,7 @@ PyObject *PropertyFilletEdges::getPyObject(void)
|
||||
int index = 0;
|
||||
for (it = _lValueList.begin(); it != _lValueList.end(); ++it) {
|
||||
Py::Tuple ent(3);
|
||||
ent.setItem(0, Py::Int(it->edgeid));
|
||||
ent.setItem(0, Py::Long(it->edgeid));
|
||||
ent.setItem(1, Py::Float(it->radius1));
|
||||
ent.setItem(2, Py::Float(it->radius2));
|
||||
list[index++] = ent;
|
||||
@@ -518,7 +518,7 @@ void PropertyFilletEdges::setPyObject(PyObject *value)
|
||||
for (Py::Sequence::iterator it = list.begin(); it != list.end(); ++it) {
|
||||
FilletElement fe;
|
||||
Py::Tuple ent(*it);
|
||||
fe.edgeid = (int)Py::Int(ent.getItem(0));
|
||||
fe.edgeid = (int)Py::Long(ent.getItem(0));
|
||||
fe.radius1 = (double)Py::Float(ent.getItem(1));
|
||||
fe.radius2 = (double)Py::Float(ent.getItem(2));
|
||||
values.push_back(fe);
|
||||
|
||||
Reference in New Issue
Block a user