1d occ meshes

This commit is contained in:
Christopher Lackner 2025-03-19 17:38:51 +01:00
parent 42c1818784
commit 78994da199
2 changed files with 25 additions and 0 deletions

View File

@ -1314,6 +1314,13 @@ namespace netgen
if(multithread.terminate || mparam.perfstepsend <= MESHCONST_MESHEDGES)
return 0;
if(dimension == 1)
{
FinalizeMesh(*mesh);
mesh->SetDimension(1);
return 0;
}
if (mparam.perfstepsstart <= MESHCONST_MESHSURFACE)
{
MeshSurface(*mesh, mparam);

View File

@ -4819,6 +4819,24 @@ namespace netgen
for (auto & seg : LineSegments())
seg.si = seg.edgenr;
}
if (dimension == 3 && dim == 1)
{
for(auto str : materials)
delete str;
materials.SetSize(0);
for(auto str : bcnames)
delete str;
bcnames.SetSize(0);
for(auto str: cd2names)
{
cout << "found material = " << *str << endl;
materials.Append(str);
}
cd2names.SetSize(0);
for(auto str : cd3names)
bcnames.Append(str);
cd3names.SetSize(0);
}
dimension = dim;
}