mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
py-bind with multiple inheritance
This commit is contained in:
parent
73c60d5194
commit
f87a173ccf
@ -128,7 +128,7 @@ namespace netgen
|
||||
|
||||
|
||||
|
||||
class SplineGeometry2d : public NetgenGeometry, public SplineGeometry<2>
|
||||
class SplineGeometry2d : public SplineGeometry<2>, public NetgenGeometry
|
||||
{
|
||||
protected:
|
||||
Array<char*> materials;
|
||||
|
@ -17,7 +17,8 @@ DLL_HEADER void ExportGeom2d(py::module &m)
|
||||
{
|
||||
py::class_<SplineGeometry2d, NetgenGeometry, shared_ptr<SplineGeometry2d>>
|
||||
(m, "SplineGeometry",
|
||||
"a 2d boundary representation geometry model by lines and splines")
|
||||
"a 2d boundary representation geometry model by lines and splines",
|
||||
py::multiple_inheritance())
|
||||
.def(py::init<>())
|
||||
.def(py::init([](const string& filename)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user