From: vsr Date: Mon, 11 Feb 2013 13:15:18 +0000 (+0000) Subject: Patch for problems with new BOP X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c8f2ccfa759dda3122823b6408b5b441ce1789d;p=modules%2Fgeom.git Patch for problems with new BOP --- 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;