mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
more to nginterface2
This commit is contained in:
parent
0bb738b29e
commit
868ee9643f
@ -374,6 +374,10 @@ namespace netgen
|
|||||||
int GetClusterRepEdge (int edi) const;
|
int GetClusterRepEdge (int edi) const;
|
||||||
int GetClusterRepFace (int fai) const;
|
int GetClusterRepFace (int fai) const;
|
||||||
int GetClusterRepElement (int eli) const;
|
int GetClusterRepElement (int eli) const;
|
||||||
|
|
||||||
|
// just copied from nginterface, now 0-based
|
||||||
|
int GetElement_Faces (int elnr, int * faces, int * orient = 0) const;
|
||||||
|
int GetSurfaceElement_Face (int selnr, int * orient = 0) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -1297,6 +1297,36 @@ int Ngx_Mesh::GetClusterRepElement (int pi) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int Ngx_Mesh::GetElement_Faces (int elnr, int * faces, int * orient) const
|
||||||
|
{
|
||||||
|
const MeshTopology & topology = mesh->GetTopology();
|
||||||
|
if (mesh->GetDimension() == 3)
|
||||||
|
{
|
||||||
|
int num = topology.GetElementFaces (elnr+1, faces, orient);
|
||||||
|
for (int i = 0; i < num; i++)
|
||||||
|
faces[i]--;
|
||||||
|
return num;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
faces[0] = elnr;
|
||||||
|
if (orient) orient[0] = 0;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int Ngx_Mesh::GetSurfaceElement_Face (int selnr, int * orient) const
|
||||||
|
{
|
||||||
|
if (mesh->GetDimension() == 3)
|
||||||
|
{
|
||||||
|
const MeshTopology & topology = mesh->GetTopology();
|
||||||
|
if (orient)
|
||||||
|
*orient = topology.GetSurfaceElementFaceOrientation (selnr+1);
|
||||||
|
return topology.GetSurfaceElementFace (selnr+1)-1;
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//HERBERT: falsche Anzahl von Argumenten
|
//HERBERT: falsche Anzahl von Argumenten
|
||||||
|
Loading…
Reference in New Issue
Block a user