mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
save FaceDescriptors in mesh file
This commit is contained in:
parent
814cc59c08
commit
f5b7e27e5d
@ -665,6 +665,13 @@ namespace netgen
|
||||
|
||||
outfile << "geomtype\n" << int(geomtype) << "\n";
|
||||
|
||||
outfile << "\n";
|
||||
outfile << "# surfnr\tdomin\tdomout\ttlosurf\tbcprop\n";
|
||||
outfile << "facedescriptors\n";
|
||||
outfile << GetNFD() << "\n";
|
||||
for(auto & fd : FaceDescriptors())
|
||||
outfile << fd.SurfNr() << ' ' << fd.DomainIn() << ' ' << fd.DomainOut() << ' ' << fd.TLOSurface() << ' ' << fd.BCProperty() << '\n';
|
||||
|
||||
|
||||
outfile << "\n";
|
||||
outfile << "# surfnr bcnr domin domout np p1 p2 p3"
|
||||
@ -1192,6 +1199,19 @@ namespace netgen
|
||||
geomtype = GEOM_TYPE(hi);
|
||||
}
|
||||
|
||||
if (strcmp (str, "facedescriptors") == 0)
|
||||
{
|
||||
int nfd;
|
||||
infile >> nfd;
|
||||
for(auto i : Range(nfd))
|
||||
{
|
||||
int surfnr, domin, domout, tlosurf, bcprop;
|
||||
infile >> surfnr >> domin >> domout >> tlosurf >> bcprop;
|
||||
auto faceind = AddFaceDescriptor (FaceDescriptor(surfnr, domin, domout, tlosurf));
|
||||
GetFaceDescriptor(faceind).SetBCProperty(bcprop);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (strcmp (str, "surfaceelements") == 0 || strcmp (str, "surfaceelementsgi")==0 || strcmp (str, "surfaceelementsuv") == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user