From a5ba809e9f393d6dad883f2b47cdb1d848d7fe34 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 1 Nov 2010 13:06:15 +0000 Subject: [PATCH] 0021059: EDF 1666 SMESH: 515rc1 Regression in Netgen Make NETGEN 2d work with pre-computed sub-meshes similarly to work w/o them --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 76093a6..89e9ca8 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -493,6 +493,10 @@ bool NETGENPlugin_Mesher::fillNgMesh(const netgen::OCCGeometry& occgeom, seg.si = faceID; // = geom.fmap.FindIndex (face); seg.edgenr = ngMesh.GetNSeg() + 1; // segment id ngMesh.AddSegment (seg); + + netgen::Point3d ngP1(p1.node->X(), p1.node->Y(), p1.node->Z()); + netgen::Point3d ngP2(p2.node->X(), p2.node->Y(), p2.node->Z()); + ngMesh.RestrictLocalH( netgen::Center( ngP1,ngP2), Dist(ngP1,ngP2)); #ifdef DUMP_SEGMENTS cout << "Segment: " << seg.edgenr << " on SMESH face " << helper.GetMeshDS()->ShapeToIndex( face ) << endl << "\tface index: " << seg.si << endl -- 2.39.2