From f84b67d7b30cd4c4d12527cd736098886a3f5a54 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 4 Dec 2013 11:54:41 +0000 Subject: [PATCH] 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 --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) -- 2.39.2