refine at vertices

This commit is contained in:
Joachim Schoeberl 2021-09-24 18:47:47 +02:00
parent 6dfc78ca42
commit 49a6172548
2 changed files with 4 additions and 1 deletions

View File

@ -332,6 +332,9 @@ namespace netgen
if (!exists)
mesh.AddPoint (mp);
double maxh = OCCGeometry::global_shape_properties[TopoDS::Vertex(geom.vmap(i)).TShape()].maxh;
mesh.RestrictLocalH (occ2ng(pnt), maxh);
}
tsearch.Stop();

View File

@ -872,7 +872,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
},
[](TopoDS_Shape& self, double val)
{
for (auto typ : { TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE })
for (auto typ : { TopAbs_SOLID, TopAbs_FACE, TopAbs_EDGE, TopAbs_VERTEX })
for (TopExp_Explorer e(self, typ); e.More(); e.Next())
{
auto & maxh = OCCGeometry::global_shape_properties[e.Current().TShape()].maxh;