save/load mesh bbbnd

This commit is contained in:
Michael 2020-10-27 07:57:17 +01:00
parent a3391519f0
commit 4a1d3cdcb2

View File

@ -677,6 +677,18 @@ namespace netgen
outfile << endl << endl;
}
int cntcd3names = 0;
for (int ii = 0; ii<cd3names.Size(); ii++)
if(cd3names[ii]) cntcd3names++;
if(cntcd3names)
{
outfile << "\n\ncd3names" << endl << cd3names.Size() << endl;
for (i=0; i<cd3names.Size(); i++)
outfile << i+1 << "\t" << GetCD3Name(i) << endl;
outfile << endl << endl;
}
/*
if ( GetDimension() == 2 )
{
@ -1155,6 +1167,23 @@ namespace netgen
}
}
if ( strcmp (str, "cd3names" ) == 0)
{
infile >> n;
NgArray<int,0> cd3nrs(n);
SetNCD3Names(n);
for( i=1; i<=n; i++)
{
string nextcd3name;
infile >> cd3nrs[i-1] >> nextcd3name;
cd3names[cd3nrs[i-1]-1] = new string(nextcd3name);
}
if (GetDimension() < 3)
{
throw NgException("co dim 3 elements not implemented for dimension < 3");
}
}
if (strcmp (str, "singular_points") == 0)
{
infile >> n;