From 49a617254854a25f3e361e66bc184c046243466e Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Fri, 24 Sep 2021 18:47:47 +0200 Subject: [PATCH] refine at vertices --- libsrc/occ/occgenmesh.cpp | 3 +++ libsrc/occ/python_occ_shapes.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index aadaff72..2c821bba 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -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(); diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index fd788bf8..f4b0061c 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -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;