export mesh timestamp to python

This commit is contained in:
Christopher Lackner 2018-05-11 10:53:03 +02:00
parent ec1bcd8799
commit 8e73ba68fc

View File

@ -482,6 +482,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
*/ */
.def("__str__", &ToString<Mesh>) .def("__str__", &ToString<Mesh>)
.def_property_readonly("timestamp", &Mesh::GetTimeStamp)
.def("Load", FunctionPointer .def("Load", FunctionPointer
([](Mesh & self, const string & filename) ([](Mesh & self, const string & filename)
{ {