From: eap Date: Mon, 2 Sep 2019 13:28:50 +0000 (+0300) Subject: IPAL54421: Quadratic sub-mesh is not computed X-Git-Tag: V9_4_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a11384b3ca686fe1136aeed64c281877196b7c23;p=plugins%2Fnetgenplugin.git IPAL54421: Quadratic sub-mesh is not computed --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index aaec673..be897ca 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -1107,8 +1107,8 @@ bool NETGENPlugin_Mesher::FillNgMesh(netgen::OCCGeometry& occgeom, bool isForwad = ( fOri == eNotSeam.Orientation() || fOri >= TopAbs_INTERNAL ); // get all nodes from connected - const bool isQuad = smDS->IsQuadratic(); - StdMeshers_FaceSide fSide( face, edges, _mesh, isForwad, isQuad, &helper ); + const bool skipMedium = netgen::mparam.secondorder;//smDS->IsQuadratic(); + StdMeshers_FaceSide fSide( face, edges, _mesh, isForwad, skipMedium, &helper ); const vector& points = fSide.GetUVPtStruct(); if ( points.empty() ) return false; // invalid node params? @@ -3273,7 +3273,10 @@ bool NETGENPlugin_Mesher::Compute() { const netgen::Segment & seg = _ngMesh->LineSegment (i); if ( seg.epgeominfo[ 0 ].edgenr == 0 ) + { _ngMesh->DeleteSegment( i ); + initState._nbSegments--; + } } _ngMesh->Compress(); }