From da4053adfa8179bc7b6bab9a3a2aad76b2b2da5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 5 Dec 2019 14:52:14 +0100 Subject: [PATCH] Draw 2D geometry --- libsrc/geom2d/python_geom2d.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libsrc/geom2d/python_geom2d.cpp b/libsrc/geom2d/python_geom2d.cpp index fe25e4be..e8bff0b7 100644 --- a/libsrc/geom2d/python_geom2d.cpp +++ b/libsrc/geom2d/python_geom2d.cpp @@ -363,6 +363,13 @@ DLL_HEADER void ExportGeom2d(py::module &m) //cout << i << " : " << self.splines[i]->GetPoint(0.1) << " , " << self.splines[i]->GetPoint(0.5) << endl; } })) + .def("Draw", FunctionPointer + ([] (shared_ptr self) + { + ng_geometry = self; + }) + ) + // If we change to c++17 this can become optional .def("GenerateMesh", [](shared_ptr self, MeshingParameters* pars, py::kwargs kwargs)