From d3dc8a611de5ce8adab0d912673620053cf30db3 Mon Sep 17 00:00:00 2001 From: Dmitrij Naumov <dmitrij@naumov.de> Date: Fri, 16 Sep 2016 16:46:12 +0200 Subject: [PATCH] [MeL] Add MeshSubset::getNodes(). --- MeshLib/MeshSubset.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MeshLib/MeshSubset.h b/MeshLib/MeshSubset.h index 6323599928f..49f7291d718 100644 --- a/MeshLib/MeshSubset.h +++ b/MeshLib/MeshSubset.h @@ -125,6 +125,12 @@ public: return _msh.getElements().cend(); } + std::vector<Node*> const& getNodes() const + { + assert(_nodes); + return *_nodes; + } + /// Constructs a new mesh subset which is a set intersection of the current /// nodes and the provided vector of nodes. /// An empty mesh subset may be returned, not a nullptr, in case of empty -- GitLab