mirror of
https://github.com/NGSolve/netgen.git
synced 2025-05-19 00:30:48 +05:00
Corrections for Abaqus surface writing.
This also includes more indentation changes.
This commit is contained in:
parent
4405db8e41
commit
3d7ab32868
@ -141,7 +141,7 @@ void WriteAbaqusSurfaceElements(const Mesh & mesh,
|
||||
outfile << el.PNum(2) << ", ";
|
||||
outfile << el.PNum(3) << "\n";
|
||||
}
|
||||
else if (non == 10)
|
||||
else if (non == 6)
|
||||
{
|
||||
outfile << el.PNum(1) << ", ";
|
||||
outfile << el.PNum(2) << ", ";
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -636,9 +636,12 @@ void STLTopology :: FindNeighbourTrigs()
|
||||
int ne = GetNTE();
|
||||
|
||||
for (int i = 1; i <= nt; i++)
|
||||
{
|
||||
GetTriangle(i).flags.toperror = 0;
|
||||
}
|
||||
|
||||
for (int i = 1; i <= nt; i++)
|
||||
{
|
||||
for (int j = 1; j <= 3; j++)
|
||||
{
|
||||
const STLTopEdge & edge = GetTopEdge (GetTriangle(i).EdgeNum(j));
|
||||
@ -648,6 +651,7 @@ void STLTopology :: FindNeighbourTrigs()
|
||||
GetTriangle(i).flags.toperror = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 1; i <= ne; i++)
|
||||
{
|
||||
@ -669,12 +673,16 @@ void STLTopology :: FindNeighbourTrigs()
|
||||
{
|
||||
const STLTriangle & nbt = GetTriangle (t.NBTrigNum(j));
|
||||
if (!t.IsNeighbourFrom (nbt))
|
||||
{
|
||||
orientation_ok = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
orientation_ok = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -835,7 +843,13 @@ void STLTopology :: FindNeighbourTrigs()
|
||||
|
||||
found = 0;
|
||||
for (int ii = 1; ii <= NONeighbourTrigs(i); ii++)
|
||||
{if (NeighbourTrig(i,ii) == tr) {found = 1;break;};}
|
||||
{
|
||||
if (NeighbourTrig(i,ii) == tr)
|
||||
{
|
||||
found = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (! found) {AddNeighbourTrig(i,tr);}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user