Patch for problems with new BOP

This commit is contained in:
vsr 2013-02-11 13:15:18 +00:00
parent 1d3e084e09
commit 5c8f2ccfa7
2 changed files with 15 additions and 1 deletions

View File

@ -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();
}
//=======================================================================

View File

@ -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;