expose Geometry::getTag to Python

This commit is contained in:
wmayer
2017-04-08 16:56:59 +02:00
parent f13aac4dd7
commit ce68a5b9dd
2 changed files with 14 additions and 0 deletions

View File

@@ -35,6 +35,8 @@
# include <Standard_Failure.hxx>
#endif
#include <boost/uuid/uuid_io.hpp>
#include <Base/GeometryPyCXX.h>
#include <Base/Matrix.h>
#include <Base/MatrixPy.h>
@@ -221,6 +223,12 @@ void GeometryPy::setConstruction(Py::Boolean arg)
getGeometryPtr()->Construction = arg;
}
Py::String GeometryPy::getTag(void) const
{
std::string tmp = boost::uuids::to_string(getGeometryPtr()->getTag());
return Py::String(tmp);
}
PyObject *GeometryPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;