Draw 2D geometry

This commit is contained in:
Joachim Schöberl 2019-12-05 14:52:14 +01:00
parent e5ead2065b
commit da4053adfa

View File

@ -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<SplineGeometry2d> self)
{
ng_geometry = self;
})
)
// If we change to c++17 this can become optional<MeshingParameters>
.def("GenerateMesh", [](shared_ptr<SplineGeometry2d> self,
MeshingParameters* pars, py::kwargs kwargs)