mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-14 21:41:17 +05:00
Patch for problems with new BOP
This commit is contained in:
parent
1d3e084e09
commit
5c8f2ccfa7
@ -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();
|
||||
}
|
||||
//=======================================================================
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user