mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
31 lines
392 B
C++
31 lines
392 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> DLL_HEADER int Ng_GetNElements ();
|
|
|
|
template <int DIM> DLL_HEADER Ng_Element Ng_GetElement (int nr);
|
|
|