diff --git a/libsrc/meshing/topology.cpp b/libsrc/meshing/topology.cpp index e001602a..18c80564 100644 --- a/libsrc/meshing/topology.cpp +++ b/libsrc/meshing/topology.cpp @@ -2167,6 +2167,13 @@ namespace netgen return facedir; } } + + void MeshTopology :: GetSegmentEdge (int segnr, int & enr, int & orient) const + { + enr = segedges.Get(segnr)+1; + orient = GetSegmentEdgeOrientation(segnr); + } + int MeshTopology :: GetSegmentEdgeOrientation (int elnr) const { diff --git a/libsrc/meshing/topology.hpp b/libsrc/meshing/topology.hpp index a80b8ca6..0afaa54d 100644 --- a/libsrc/meshing/topology.hpp +++ b/libsrc/meshing/topology.hpp @@ -93,12 +93,14 @@ public: int GetEdge (SegmentIndex segnr) const { return segedges[segnr]; } [[deprecated("use GetEdge(SegmentIndex) instead")]] - void GetSegmentEdge (int segnr, int & enr, int & orient) const + void GetSegmentEdge (int segnr, int & enr, int & orient) const; + /* { enr = segedges.Get(segnr)+1; // orient = segedges.Get(segnr).orient; orient = GetSegmentEdgeOrientation(segnr); - } + } + */ [[deprecated("use GetEdges (ElementIndex) -> FlatArray")]] void GetElementEdges (int elnr, NgArray & edges) const;