allow access to global mesh pointer from Python

This commit is contained in:
Matthias Hochsteger 2016-08-30 15:32:55 +02:00
parent 93c5f98d90
commit a9c0525891

View File

@ -3574,6 +3574,10 @@ DLL_HEADER void ExportMeshVis()
([] (int facenr) { ([] (int facenr) {
vsmesh.SetSelectedFace(facenr); vsmesh.SetSelectedFace(facenr);
})); }));
bp::def("GetGlobalMesh", FunctionPointer
([] () {
return vsmesh.GetMesh();
}));
} }
BOOST_PYTHON_MODULE(libvisual) BOOST_PYTHON_MODULE(libvisual)
{ {