From 6a137c7733749d1f1265903315355503ef7360da Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 15 Jun 2006 13:45:46 +0000 Subject: [PATCH] PAL12612: Message with Partition. Prevent meaningless message appearance. --- src/NMTAlgo/NMTAlgo_Splitter.cxx | 9 ++++++++- src/NMTTools/NMTTools_PaveFiller.cxx | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) 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; } } -- 2.39.2