mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-04 17:10:33 +05:00
GetIndex - 0-based
This commit is contained in:
parent
325e1e315c
commit
1ebe4a3f6b
@ -76,7 +76,7 @@ namespace netgen
|
|||||||
int index; // material / boundary condition
|
int index; // material / boundary condition
|
||||||
|
|
||||||
NG_ELEMENT_TYPE GetType() const { return type; }
|
NG_ELEMENT_TYPE GetType() const { return type; }
|
||||||
int GetIndex() const { return index; }
|
int GetIndex() const { return index-1; }
|
||||||
Ng_Points points; // all points
|
Ng_Points points; // all points
|
||||||
Ng_Vertices vertices;
|
Ng_Vertices vertices;
|
||||||
Ng_Edges edges;
|
Ng_Edges edges;
|
||||||
|
@ -4,6 +4,12 @@ NGX_INLINE DLL_HEADER Ng_Point Ngx_Mesh :: GetPoint (int nr) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template <>
|
||||||
|
NGX_INLINE DLL_HEADER int Ngx_Mesh :: GetElementIndex<0> (int nr) const
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
NGX_INLINE DLL_HEADER int Ngx_Mesh :: GetElementIndex<1> (int nr) const
|
NGX_INLINE DLL_HEADER int Ngx_Mesh :: GetElementIndex<1> (int nr) const
|
||||||
{
|
{
|
||||||
|
@ -226,13 +226,14 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
template <>
|
template <>
|
||||||
DLL_HEADER int Ngx_Mesh :: GetElementIndex<0> (int nr) const
|
DLL_HEADER int Ngx_Mesh :: GetElementIndex<0> (int nr) const
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
template <>
|
template <>
|
||||||
DLL_HEADER int Ngx_Mesh :: GetElementIndex<1> (int nr) const
|
DLL_HEADER int Ngx_Mesh :: GetElementIndex<1> (int nr) const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user