mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 06:30:34 +05:00
closesurfacefix
This commit is contained in:
parent
1b55504456
commit
8d8ce8add6
@ -1079,6 +1079,7 @@ void CloseSurfaceIdentification :: IdentifyFaces (class Mesh & mesh)
|
|||||||
|
|
||||||
for (int i = 1; i <= mesh.GetNFD(); i++)
|
for (int i = 1; i <= mesh.GetNFD(); i++)
|
||||||
{
|
{
|
||||||
|
auto & fdi = mesh.GetFaceDescriptor(i);
|
||||||
int surfi = mesh.GetFaceDescriptor(i).SurfNr();
|
int surfi = mesh.GetFaceDescriptor(i).SurfNr();
|
||||||
if (s1rep != surfi) continue;
|
if (s1rep != surfi) continue;
|
||||||
|
|
||||||
@ -1090,11 +1091,20 @@ void CloseSurfaceIdentification :: IdentifyFaces (class Mesh & mesh)
|
|||||||
|
|
||||||
for (int j = 1; j <= mesh.GetNFD(); j++)
|
for (int j = 1; j <= mesh.GetNFD(); j++)
|
||||||
{
|
{
|
||||||
|
auto & fdj = mesh.GetFaceDescriptor(j);
|
||||||
int surfj = mesh.GetFaceDescriptor(j).SurfNr();
|
int surfj = mesh.GetFaceDescriptor(j).SurfNr();
|
||||||
|
|
||||||
if (surfi == surfj) continue;
|
if (surfi == surfj) continue;
|
||||||
if (s2rep != surfj) continue;
|
if (s2rep != surfj) continue;
|
||||||
|
|
||||||
|
bool have_common = false;
|
||||||
|
if (fdi.DomainIn() != 0)
|
||||||
|
if (fdi.DomainIn() == fdj.DomainIn() || fdi.DomainIn() == fdj.DomainOut())
|
||||||
|
have_common = true;
|
||||||
|
if (fdi.DomainOut() != 0)
|
||||||
|
if (fdi.DomainOut() == fdj.DomainIn() || fdi.DomainOut() == fdj.DomainOut())
|
||||||
|
have_common = true;
|
||||||
|
if (!have_common) continue;
|
||||||
|
|
||||||
int idok = 1;
|
int idok = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user