few more inline functions

This commit is contained in:
Joachim Schöberl 2017-02-15 22:30:48 +01:00
parent ef3d7c9270
commit cd314e2f45
2 changed files with 9 additions and 4 deletions

View File

@ -1474,11 +1474,13 @@ namespace netgen
{
return surffaces.Get(elnr).fnr+1;
}
/*
int MeshTopology :: GetFace (SurfaceElementIndex elnr) const
{
return surffaces[elnr].fnr;
}
*/
void MeshTopology ::
@ -1837,11 +1839,12 @@ namespace netgen
}
}
/*
ELEMENT_TYPE MeshTopology :: GetFaceType (int fnr) const
{
if (face2vert.Get(fnr)[3] == 0) return TRIG; else return QUAD;
}
*/
void MeshTopology :: GetVertexElements (int vnr, Array<ElementIndex> & elements) const

View File

@ -114,14 +114,16 @@ public:
const int * GetFaceVerticesPtr (int fnr) const { return &face2vert[fnr][0]; }
void GetFaceEdges (int fnr, Array<int> & edges, bool withorientation = false) const;
ELEMENT_TYPE GetFaceType (int fnr) const;
ELEMENT_TYPE GetFaceType (int fnr) const
{ return (face2vert.Get(fnr)[3] == 0) ? TRIG : QUAD; }
void GetSurfaceElementEdges (int elnr, Array<int> & edges) const;
int GetSurfaceElementFace (int elnr) const;
void GetSurfaceElementEdgeOrientations (int elnr, Array<int> & eorient) const;
int GetSurfaceElementFaceOrientation (int elnr) const;
void GetEdges (SurfaceElementIndex elnr, Array<int> & edges) const;
int GetFace (SurfaceElementIndex elnr) const;
int GetFace (SurfaceElementIndex elnr) const
{ return surffaces[elnr].fnr; }
int GetSurfaceElementEdges (int elnr, int * edges, int * orient) const;