Part: export Part::shape2pyshape

This commit is contained in:
Zheng, Lei 2017-01-19 23:05:30 +08:00
parent a79013e7f3
commit 4a0e037893
2 changed files with 5 additions and 1 deletions

View File

@ -105,7 +105,9 @@ PyObject* Curve2dPy::reverse(PyObject * args)
return 0;
}
namespace Part {
extern Py::Object shape2pyshape(const TopoDS_Shape &shape);
}
PyObject* Curve2dPy::toShape(PyObject *args)
{

View File

@ -157,8 +157,9 @@ int TopoShapePy::PyInit(PyObject* args, PyObject*)
return 0;
}
namespace Part {
//common code.. maybe put somewhere else?
Py::Object shape2pyshape(const TopoDS_Shape &shape)
Py::Object PartExport shape2pyshape(const TopoDS_Shape &shape)
{
PyObject* ret = 0;
if (!shape.IsNull()) {
@ -204,6 +205,7 @@ Py::Object shape2pyshape(const TopoDS_Shape &shape)
return Py::asObject(ret);
}
} //namespace Part
PyObject* TopoShapePy::copy(PyObject *args)
{