Merge branch 'getgeometry_mesh' into 'master'

GetGeometry from mesh

See merge request jschoeberl/netgen!72
This commit is contained in:
Joachim Schöberl 2017-12-06 17:40:33 +01:00
commit 997e4f8469

View File

@ -694,11 +694,11 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
Refinement().MakeSecondOrder(self);
}))
.def ("SetGeometry", FunctionPointer
([](Mesh & self, shared_ptr<NetgenGeometry> geo)
.def ("GetGeometry", [] (Mesh& self) { return self.GetGeometry(); })
.def ("SetGeometry", [](Mesh & self, shared_ptr<NetgenGeometry> geo)
{
self.SetGeometry(geo);
}))
})
/*
.def ("SetGeometry", FunctionPointer