From: eap Date: Wed, 4 Dec 2013 11:54:41 +0000 (+0000) Subject: 22433: [CEA 1020] A correct mesh ends with error X-Git-Tag: V7_3_0b1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f84b67d7b30cd4c4d12527cd736098886a3f5a54;p=plugins%2Fblsurfplugin.git 22433: [CEA 1020] A correct mesh ends with error If CADSurf reports no errors, set a warning but not an error to a face w/o mesh --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index a8abc9b..e89d864 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -3066,12 +3066,17 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh& aMesh, sm->SetIsAlwaysComputed( true ); // Set error to FACE's w/o elements + SMESH_ComputeErrorName err = COMPERR_ALGO_FAILED; + if ( _comment.empty() ) + { + err = COMPERR_WARNING; + _comment = "No mesh elements assigned to a face"; + } for ( int i = 1; i <= fmap.Extent(); ++i ) { SMESH_subMesh* sm = aMesh.GetSubMesh( fmap(i) ); if ( !sm->GetSubMeshDS() || sm->GetSubMeshDS()->NbElements() == 0 ) - sm->GetComputeError().reset - ( new SMESH_ComputeError( COMPERR_ALGO_FAILED, _comment, this )); + sm->GetComputeError().reset( new SMESH_ComputeError( err, _comment, this )); } // Issue 0019864. On DebianSarge, FE signals do not obey to OSD::SetSignal(false)