expose Geometry::getTag to Python
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user