Skip to content
Snippets Groups Projects
Commit c5b7b017 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

[Mesh] add isActiveNode() to ElementStatus

parent 113cce73
No related branches found
No related tags found
No related merge requests found
......@@ -125,4 +125,9 @@ void ElementStatus::setElementStatus(std::size_t i, bool status)
}
}
bool ElementStatus::isActiveNode(MeshLib::Node const* node) const
{
return _active_nodes[node->getID()]>0;
}
}
......@@ -43,6 +43,9 @@ public:
/// Returns the status of element i
bool isActive(std::size_t i) const { return _element_status[i]; }
/// Returns the status of node i
bool isActiveNode(MeshLib::Node const* node) const;
/// Returns a vector of active elements connected to a node
std::vector<MeshLib::Element*> getActiveElementsAtNode(std::size_t node_id) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment