From a11384b3ca686fe1136aeed64c281877196b7c23 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 2 Sep 2019 16:28:50 +0300 Subject: [PATCH] IPAL54421: Quadratic sub-mesh is not computed --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(); } -- 2.39.2