From 8c56725dcfc796f54f67a06be13b3df7517f7b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Mon, 25 Jun 2018 19:42:42 +0200 Subject: [PATCH] query coordinate trafo --- libsrc/meshing/python_mesh.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 21a7c3d8..bc729895 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -124,6 +124,8 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) .def("__call__", [] (Transformation<3> trafo, Point<3> p) { return trafo(p); }) ; + m.def ("GetTransformation", [] () { return global_trafo; }); + m.def ("SetTransformation", [] (Transformation<3> trafo) { global_trafo = trafo; }); m.def ("SetTransformation", [](int dir, double angle) {