mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
fix optimizing mesh without geometry
This commit is contained in:
parent
43fbd57a67
commit
54ee68d847
@ -1058,9 +1058,10 @@ namespace netgen
|
|||||||
|
|
||||||
void NetgenGeometry :: FinalizeMesh(Mesh& mesh) const
|
void NetgenGeometry :: FinalizeMesh(Mesh& mesh) const
|
||||||
{
|
{
|
||||||
for (int i = 0; i < mesh.GetNDomains(); i++)
|
if(solids.Size())
|
||||||
if (auto name = solids[i]->properties.name)
|
for (int i = 0; i < mesh.GetNDomains(); i++)
|
||||||
mesh.SetMaterial (i+1, *name);
|
if (auto name = solids[i]->properties.name)
|
||||||
|
mesh.SetMaterial (i+1, *name);
|
||||||
}
|
}
|
||||||
|
|
||||||
shared_ptr<NetgenGeometry> GeometryRegisterArray :: LoadFromMeshFile (istream & ist) const
|
shared_ptr<NetgenGeometry> GeometryRegisterArray :: LoadFromMeshFile (istream & ist) const
|
||||||
|
Loading…
Reference in New Issue
Block a user