From bcf5ea67aad9ece97b2f8221b950d2fcd66529a4 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Wed, 6 Dec 2017 14:16:52 +0100 Subject: [PATCH] GetGeometry from mesh --- libsrc/meshing/python_mesh.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index c4277474..788717f5 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -694,11 +694,11 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) Refinement().MakeSecondOrder(self); })) - .def ("SetGeometry", FunctionPointer - ([](Mesh & self, shared_ptr geo) + .def ("GetGeometry", [] (Mesh& self) { return self.GetGeometry(); }) + .def ("SetGeometry", [](Mesh & self, shared_ptr geo) { self.SetGeometry(geo); - })) + }) /* .def ("SetGeometry", FunctionPointer