solid2d gets its own maxh parameter such that maxh is also respected inside the domain

This commit is contained in:
Matthias Rambausek 2021-11-18 09:25:17 +01:00
parent 543d1a378a
commit e30daf4232
2 changed files with 3 additions and 0 deletions

View File

@ -2185,6 +2185,7 @@ shared_ptr<netgen::SplineGeometry2d> CSG2d :: GenerateSplineGeometry()
if(!is_solid_degenerated)
{
geo->SetMaterial(dom, s.name);
geo->SetDomainMaxh(dom, s.maxh);
if(s.layer != 1)
geo->SetDomainLayer(dom, s.layer);
}

View File

@ -632,6 +632,7 @@ struct Solid2d
int layer = 1;
string name = MAT_DEFAULT;
double maxh = MAXH_DEFAULT;
Solid2d() = default;
Solid2d(string name_) : name(name_) {}
@ -697,6 +698,7 @@ struct Solid2d
Solid2d & Maxh(double maxh)
{
this->maxh = maxh;
for(auto & p : polys)
for(auto v : p.Vertices(ALL))
v->info.maxh = maxh;