From: jfa Date: Thu, 15 Jun 2006 13:45:46 +0000 (+0000) Subject: PAL12612: Message with Partition. Prevent meaningless message appearance. X-Git-Tag: T3_2_1_pre~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6a137c7733749d1f1265903315355503ef7360da;p=modules%2Fgeom.git PAL12612: Message with Partition. Prevent meaningless message appearance. --- diff --git a/src/NMTAlgo/NMTAlgo_Splitter.cxx b/src/NMTAlgo/NMTAlgo_Splitter.cxx index 268da634a..a92245346 100644 --- a/src/NMTAlgo/NMTAlgo_Splitter.cxx +++ b/src/NMTAlgo/NMTAlgo_Splitter.cxx @@ -309,12 +309,18 @@ static return; } // - if (!mySourceShapes.Extent()){ + if (!mySourceShapes.Extent()) { // No source shapes to treat myErrorStatus=103; return; } // + if (!aDSF.IsDone()) { + // NMTTools_DSFiller failed + myErrorStatus=104; + return; + } + // NMTAlgo_Builder::ComputeWithFiller(aDSF); // myIsComputed=Standard_True; @@ -622,3 +628,4 @@ static // 101 - Null shape is not allowed here // 102 - DS is not computed // 103 - No source shapes to treat +// 104 - NMTTools_DSFiller failed diff --git a/src/NMTTools/NMTTools_PaveFiller.cxx b/src/NMTTools/NMTTools_PaveFiller.cxx index cfbd9d0f7..c3a4f9695 100644 --- a/src/NMTTools/NMTTools_PaveFiller.cxx +++ b/src/NMTTools/NMTTools_PaveFiller.cxx @@ -224,8 +224,10 @@ NMTTools_DEProcessor aDEP(*this); aDEP.Do(); // + myIsDone = Standard_True; } catch (BOPTColStd_Failure& /*x*/) { //QQ MESSAGE(x.Message() << flush); + myIsDone = Standard_False; } }