mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
allow access to global mesh pointer from Python
This commit is contained in:
parent
93c5f98d90
commit
a9c0525891
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user