//
#include <GEOMAlgo_ShellSolid.hxx>
-#include <Basics_OCCTVersion.hxx>
-
#include <Standard_Failure.hxx>
#include <gp_Pnt2d.hxx>
#include <BOPCol_DataMapOfShapeListOfShape.hxx>
#include <BOPCol_ListOfShape.hxx>
-#if OCC_VERSION_LARGE > 0x06070100
#include <IntTools_Context.hxx>
-#else
-#include <BOPInt_Context.hxx>
-#endif
#include <BOPDS_DS.hxx>
#include <BOPAlgo_Builder.hxx>
//=======================================================================
void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFiller)
{
- myErrorStatus=0;
//
myPaveFiller=(BOPAlgo_PaveFiller*)&theFiller;
myDS=myPaveFiller->PDS();
//
// 1. CheckData
CheckData();
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
//
// 2. Prepare
Prepare();
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
//
// 3. Fill Images
// 3.1 Vertice
FillImagesVertices();
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
//
BuildResult(TopAbs_VERTEX);
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
// 3.2 Edges
FillImagesEdges();
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
//
BuildResult(TopAbs_EDGE);
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
//
// 3.3 Wires
FillImagesContainers(TopAbs_WIRE);
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
//
BuildResult(TopAbs_WIRE);
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
// 3.4 Faces
FillImagesFaces();
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
//
BuildResult(TopAbs_FACE);
- if (myErrorStatus) {
+ if (HasErrors()) {
return;
}
}
//=======================================================================
void GEOMAlgo_ShellSolid::Perform()
{
- myErrorStatus=0;
//
try {
Standard_Integer aNbArgs, iRank, iErr, iBeg, iEnd, i, aNbSp;
myErrorStatus=10;
return;
}
- if(myDSFiller->ErrorStatus()) {
+ if(myDSFiller->HasErrors()) {
myErrorStatus=11;
return;
}
return;
}
//
-#if OCC_VERSION_LARGE > 0x06070100
Handle(IntTools_Context) aCtx=myDSFiller->Context();
-#else
- Handle(BOPInt_Context) aCtx=myDSFiller->Context();
-#endif
const BOPDS_IndexRange& aRange=pDS->Range(iRank);
aRange.Indices(iBeg, iEnd);
const TopoDS_Solid& aSolid=(!iRank) ? *((TopoDS_Solid*)&aTool) : *((TopoDS_Solid*)&aObj);
GEOMAlgo_ShellSolidBuilder aSSB;
//
aSSB.PerformWithFiller(*myDSFiller);
- iErr=aSSB.ErrorStatus();
+ iErr=aSSB.HasErrors();
if (iErr) {
myErrorStatus=15;
return;