void GeomAlgoAPI_PaveFiller::build(const ListOfShape& theListOfShape,
const bool theIsMakeCompSolids)
{
- BOPAlgo_PaveFiller aPaveFiller;
- BOPCol_ListOfShape aListOfShape;
+ BOPAlgo_PaveFiller* aPaveFiller = new BOPAlgo_PaveFiller;
+ TopTools_ListOfShape aListOfShape;
for(ListOfShape::const_iterator
anIt = theListOfShape.cbegin(); anIt != theListOfShape.cend(); anIt++) {
const TopoDS_Shape& aShape = (*anIt)->impl<TopoDS_Shape>();
aListOfShape.Append(aShape);
}
}
- aPaveFiller.SetArguments(aListOfShape);
- aPaveFiller.Perform();
-#ifdef USE_OCCT_720
- if (aPaveFiller.HasErrors())
+ aPaveFiller->SetArguments(aListOfShape);
+ aPaveFiller->Perform();
+ if (aPaveFiller->HasErrors())
return;
-#else
- Standard_Integer iErr = aPaveFiller.ErrorStatus();
- if(iErr) {
- return;
- }
-#endif
BOPAlgo_Builder* aBuilder = new BOPAlgo_Builder();
this->setImpl(aBuilder);
this->setBuilderType(OCCT_BOPAlgo_Builder);
aBuilder->SetArguments(aListOfShape);
- aBuilder->PerformWithFiller(aPaveFiller);
-#ifdef USE_OCCT_720
+ aBuilder->PerformWithFiller(*aPaveFiller);
if (aBuilder->HasErrors())
return;
-#else
- iErr = aBuilder->ErrorStatus();
- if(iErr) {
- return;
- }
-#endif
TopoDS_Shape aResult = aBuilder->Shape();
if(aResult.ShapeType() == TopAbs_COMPOUND) {