From 5c8f2ccfa759dda3122823b6408b5b441ce1789d Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 11 Feb 2013 13:15:18 +0000 Subject: [PATCH] Patch for problems with new BOP --- src/GEOMAlgo/GEOMAlgo_Splitter.cxx | 14 ++++++++++++++ src/GEOMImpl/GEOMImpl_PartitionDriver.cxx | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/GEOMAlgo/GEOMAlgo_Splitter.cxx b/src/GEOMAlgo/GEOMAlgo_Splitter.cxx index cb3f22bef..e701a92df 100755 --- a/src/GEOMAlgo/GEOMAlgo_Splitter.cxx +++ b/src/GEOMAlgo/GEOMAlgo_Splitter.cxx @@ -271,6 +271,20 @@ void GEOMAlgo_Splitter::PostTreat() myShape=aC; }//if (myLimit!=TopAbs_SHAPE) { // + Standard_Integer aNbS; + TopoDS_Iterator aIt; + BOPCol_ListOfShape aLS; + // + aIt.Initialize(myShape); + for (; aIt.More(); aIt.Next()) { + const TopoDS_Shape& aS=aIt.Value(); + aLS.Append(aS); + } + aNbS=aLS.Extent(); + if (aNbS==1) { + myShape=aLS.First(); + } + // BOPAlgo_Builder::PostTreat(); } //======================================================================= diff --git a/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx b/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx index 679bf4add..737274961 100644 --- a/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx @@ -383,7 +383,7 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(TFunction_Logbook& log) const aShape = PS.Shape(); if (aShape.IsNull()) { // Mantis issue 22009 - if (PS.ErrorStatus() == 10 && PS.Tools().Extent() == 0 && PS.Arguments().Extent() == 1) + if (PS.ErrorStatus() == 100 && PS.Tools().Extent() == 0 && PS.Arguments().Extent() == 1) aShape = PS.Arguments().First(); else return 0; -- 2.39.2