From: eap Date: Wed, 29 Dec 2010 11:59:59 +0000 (+0000) Subject: 0021116: [CEA] non regression test fails X-Git-Tag: Start_BR_19998_21191~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d245c0e35cf430cc8ddf6db1b596a5427b1f13e;p=plugins%2Fnetgenplugin.git 0021116: [CEA] non regression test fails make sub-meshes of degenerated EDGE's be "always computed" --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index e44b2cc..be72348 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -1857,6 +1857,13 @@ bool NETGENPlugin_Mesher::Compute() if ( !comment.empty() ) error->myComment = comment; + // SetIsAlwaysComputed( true ) to sub-meshes of degenerated EDGEs + TopLoc_Location loc; double f,l; + for (int i = 1; i <= occgeo.emap.Extent(); i++) + if ( BRep_Tool::Curve(TopoDS::Edge( occgeo.emap( i )), loc, f,l).IsNull() ) + if ( SMESH_subMesh* sm = _mesh->GetSubMeshContaining( occgeo.emap( i ))) + sm->SetIsAlwaysComputed( true ); + // set bad compute error to subshapes of all failed subshapes shapes if ( !error->IsOK() && err ) {