From: eap Date: Mon, 3 Sep 2012 06:29:00 +0000 (+0000) Subject: 0021823: [CEA 649] Compute failed without any errors X-Git-Tag: V6_6_0a1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4116123e649878cd1ade5157a4722c51ec06b7fd;p=plugins%2Fblsurfplugin.git 0021823: [CEA 649] Compute failed without any errors Avoid reporting errors about EDGEs w/o mesh --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 0014788..e834c58 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -1904,12 +1904,11 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) }; } - // SetIsAlwaysComputed( true ) to sub-meshes of degenerated EDGEs + // SetIsAlwaysComputed( true ) to sub-meshes of EDGEs w/o mesh TopLoc_Location loc; double f,l; for (int i = 1; i <= emap.Extent(); i++) - if ( BRep_Tool::Curve(TopoDS::Edge( emap( i )), loc, f,l).IsNull() ) - if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( emap( i ))) - sm->SetIsAlwaysComputed( true ); + if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( emap( i ))) + sm->SetIsAlwaysComputed( true ); for (int i = 1; i <= pmap.Extent(); i++) if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( pmap( i ))) if ( !sm->IsMeshComputed() )