OGS
MeshLib::details Namespace Reference

Functions

template<unsigned N>
bool isEdge (unsigned const (&edge_nodes)[N], unsigned idx1, unsigned idx2)
 
bool isEdge (unsigned const (&)[1], unsigned, unsigned)
 

Function Documentation

◆ isEdge() [1/2]

bool MeshLib::details::isEdge ( unsigned const(&)[1],
unsigned ,
unsigned  )
inline

Definition at line 80 of file TemplateElement-impl.h.

81{
82 return false;
83}

◆ isEdge() [2/2]

template<unsigned N>
bool MeshLib::details::isEdge ( unsigned const (&) edge_nodes[N],
unsigned idx1,
unsigned idx2 )

Definition at line 65 of file TemplateElement-impl.h.

66{
67 if (edge_nodes[0] == idx1 && edge_nodes[1] == idx2)
68 {
69 return true;
70 }
71 if (edge_nodes[1] == idx1 && edge_nodes[0] == idx2)
72 {
73 return true;
74 }
75
76 return false;
77}

Referenced by MeshLib::TemplateElement< ELEMENT_RULE >::isEdge().