]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
0021116: [CEA] non regression test fails
authoreap <eap@opencascade.com>
Wed, 29 Dec 2010 11:59:59 +0000 (11:59 +0000)
committereap <eap@opencascade.com>
Wed, 29 Dec 2010 11:59:59 +0000 (11:59 +0000)
   make sub-meshes of degenerated EDGE's be "always computed"

src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index e44b2cc2292782174e8d36eccfd390c2424ddfa4..be723481e8c67c312e062bf8ea13e88a68187881 100644 (file)
@@ -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 )
   {