32 for (
auto ele_id : ele_ids_near_sfc)
36 if (!e->isBoundaryElement())
41 for (
unsigned i = 0; i < e->getNumberOfFaces(); i++)
45 std::size_t cnt_match = 0;
46 for (std::size_t j = 0; j < face->getNumberOfBaseNodes(); j++)
48 if (std::find(node_ids_on_sfc.begin(), node_ids_on_sfc.end(),
49 getNodeIndex(*face, j)) != node_ids_on_sfc.end())
59 if (cnt_match == face->getNumberOfBaseNodes())
Definition of the Element class.
Definition of the Mesh class.
A Surface is represented by Triangles. It consists of a reference to a vector of (pointers to) points...
const std::vector< std::size_t > & getSearchedElementIDs() const
return marked elements
std::size_t searchByNodeIDs(const std::vector< std::size_t > &nodes)
Marks all elements connecting to any of the given nodes.
virtual const Element * getFace(unsigned i) const =0
Returns the i-th face of the element.
const Element * getElement(std::size_t idx) const
Get the element with the given index.