diff --git a/libsrc/geom2d/geometry2d.hpp b/libsrc/geom2d/geometry2d.hpp index 2aee6ccc..52e7a20e 100644 --- a/libsrc/geom2d/geometry2d.hpp +++ b/libsrc/geom2d/geometry2d.hpp @@ -128,7 +128,7 @@ namespace netgen - class SplineGeometry2d : public NetgenGeometry, public SplineGeometry<2> + class SplineGeometry2d : public SplineGeometry<2>, public NetgenGeometry { protected: Array materials; diff --git a/libsrc/geom2d/python_geom2d.cpp b/libsrc/geom2d/python_geom2d.cpp index 1fc34f99..dc1add41 100644 --- a/libsrc/geom2d/python_geom2d.cpp +++ b/libsrc/geom2d/python_geom2d.cpp @@ -17,7 +17,8 @@ DLL_HEADER void ExportGeom2d(py::module &m) { py::class_> (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) {