mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
Draw 2D geometry
This commit is contained in:
parent
e5ead2065b
commit
da4053adfa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user