mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
refine at vertices
This commit is contained in:
parent
6dfc78ca42
commit
49a6172548
@ -332,6 +332,9 @@ namespace netgen
|
|||||||
|
|
||||||
if (!exists)
|
if (!exists)
|
||||||
mesh.AddPoint (mp);
|
mesh.AddPoint (mp);
|
||||||
|
|
||||||
|
double maxh = OCCGeometry::global_shape_properties[TopoDS::Vertex(geom.vmap(i)).TShape()].maxh;
|
||||||
|
mesh.RestrictLocalH (occ2ng(pnt), maxh);
|
||||||
}
|
}
|
||||||
tsearch.Stop();
|
tsearch.Stop();
|
||||||
|
|
||||||
|
@ -872,7 +872,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
|||||||
},
|
},
|
||||||
[](TopoDS_Shape& self, double val)
|
[](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())
|
for (TopExp_Explorer e(self, typ); e.More(); e.Next())
|
||||||
{
|
{
|
||||||
auto & maxh = OCCGeometry::global_shape_properties[e.Current().TShape()].maxh;
|
auto & maxh = OCCGeometry::global_shape_properties[e.Current().TShape()].maxh;
|
||||||
|
Loading…
Reference in New Issue
Block a user