mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Merge branch 'export_getsurface2vol' into 'master'
export function to get volume elements adjacent to surface element See merge request jschoeberl/netgen!167
This commit is contained in:
commit
6dc7f6a39b
@ -763,6 +763,13 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
py::return_value_policy::reference)
|
py::return_value_policy::reference)
|
||||||
.def("GetNFaceDescriptors", &Mesh::GetNFD)
|
.def("GetNFaceDescriptors", &Mesh::GetNFD)
|
||||||
|
|
||||||
|
.def("GetVolumeNeighboursOfSurfaceElement", [](Mesh & self, size_t sel)
|
||||||
|
{
|
||||||
|
int elnr1, elnr2;
|
||||||
|
self.GetTopology().GetSurface2VolumeElement(sel+1, elnr1, elnr2);
|
||||||
|
return py::make_tuple(elnr1, elnr2);
|
||||||
|
}, "Returns element nrs of volume element connected to surface element, -1 if no volume element")
|
||||||
|
|
||||||
.def("GetNCD2Names", &Mesh::GetNCD2Names)
|
.def("GetNCD2Names", &Mesh::GetNCD2Names)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user