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)