mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +05:00
30 lines
369 B
C++
30 lines
369 B
C++
|
class Ng_Element
|
||
|
{
|
||
|
public:
|
||
|
NG_ELEMENT_TYPE type;
|
||
|
int npoints;
|
||
|
int nv;
|
||
|
int * points;
|
||
|
|
||
|
NG_ELEMENT_TYPE GetType() const
|
||
|
{
|
||
|
return type;
|
||
|
}
|
||
|
|
||
|
int GetNP() const
|
||
|
{
|
||
|
return npoints;
|
||
|
}
|
||
|
|
||
|
int operator[] (int i) const
|
||
|
{
|
||
|
return points[i]-1;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
template <int DIM> int Ng_GetNElements ();
|
||
|
template <int DIM> Ng_Element Ng_GetElement (int nr);
|
||
|
|