mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Merge branch 'restricth_vertices' into 'master'
[occ] restrict meshsize at vertices See merge request ngsolve/netgen!578
This commit is contained in:
commit
fe770960b6
@ -515,6 +515,16 @@ namespace netgen
|
||||
for(auto layer : Range(1, maxlayer+1))
|
||||
mesh.SetLocalH (bb.PMin(), bb.PMax(), mparam.grading, layer);
|
||||
|
||||
for(const auto& v : GetVertices(geom.GetShape()))
|
||||
{
|
||||
if(OCCGeometry::HaveProperties(v))
|
||||
{
|
||||
auto& props = OCCGeometry::GetProperties(v);
|
||||
if(props.maxh < 1e99)
|
||||
mesh.GetLocalH(props.layer)->SetH(occ2ng(BRep_Tool::Pnt(TopoDS::Vertex(v))), props.maxh);
|
||||
}
|
||||
}
|
||||
|
||||
int nedges = geom.emap.Extent();
|
||||
|
||||
double mincurvelength = IGNORECURVELENGTH;
|
||||
|
@ -530,7 +530,7 @@ namespace netgen
|
||||
{
|
||||
bool have_identifications = false;
|
||||
|
||||
for (auto typ : { TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE })
|
||||
for (auto typ : { TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE, TopAbs_VERTEX })
|
||||
for (TopExp_Explorer e(shape, typ); e.More(); e.Next())
|
||||
{
|
||||
auto s = e.Current();
|
||||
|
Loading…
Reference in New Issue
Block a user