mirror of
https://github.com/NGSolve/netgen.git
synced 2025-03-21 22:18:00 +05:00
1d occ meshes
This commit is contained in:
parent
42c1818784
commit
78994da199
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user