#include <TopOpeBRepDS_ListOfShapeOn1State.hxx>
#include <TopOpeBRepDS_ProcessInterferencesTool.hxx>
-#ifdef OCCT_DEBUG
-extern Standard_Boolean TopOpeBRepDS_GetcontextNOPFI();
-extern Standard_Boolean TopOpeBRepDS_GettracePFI();
-extern Standard_Boolean TopOpeBRepDS_GettracePI();
-extern Standard_Boolean TopOpeBRepDS_GettraceSPSX(const Standard_Integer);
-static Standard_Boolean TRCF(const Standard_Integer F) {
- Standard_Boolean b1 = TopOpeBRepDS_GettracePFI();
- Standard_Boolean b2 = TopOpeBRepDS_GettracePI();
- Standard_Boolean b3 = TopOpeBRepDS_GettraceSPSX(F);
- return (b1 || b2 || b3);
-}
-#endif
-
Standard_EXPORT Standard_Integer FUN_unkeepFdoubleGBoundinterferences(TopOpeBRepDS_ListOfInterference& LI,const TopOpeBRepDS_DataStructure& BDS,const Standard_Integer SIX);
Standard_EXPORT void FUN_resolveFUNKNOWN
(TopOpeBRepDS_ListOfInterference& LI,TopOpeBRepDS_DataStructure& BDS,
const TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State& MEsp,
TopOpeBRepTool_PShapeClassifier pClassif);
-#ifdef OCCT_DEBUG
-void debfilfac(const Standard_Integer I) {cout<<"+ + + + debfilfac "<<I<<endl;}
-void debpfi(const Standard_Integer I) {cout<<"+ + + + debpfi "<<I<<endl;}
-#endif
-
-// -------------------------------------------------------
-void FUN_FilterFace
-// -------------------------------------------------------
-#ifdef OCCT_DEBUG
-(TopOpeBRepDS_ListOfInterference& LI,const TopOpeBRepDS_DataStructure& /*BDS*/,const Standard_Integer SIX)
-#else
-(TopOpeBRepDS_ListOfInterference& ,const TopOpeBRepDS_DataStructure& ,const Standard_Integer )
-#endif
-{
-#ifdef OCCT_DEBUG
- Standard_Boolean TRC=TRCF(SIX);
- Standard_Integer nI = 0;
- if (TRC) debfilfac(SIX);
-#endif
-
-#ifdef OCCT_DEBUG
- nI = LI.Extent();
- if (TRC) cout <<"before FUN_FilterFace on "<<SIX<<" nI = "<<nI<<endl;
-#endif
-
-// ::FUN_unkeepFdoubleGBoundinterferences(LI,BDS,SIX);
-
-#ifdef OCCT_DEBUG
- nI = LI.Extent();
- if (TRC) cout <<"after unkeepFinterferences nI = "<<nI<<endl;
-#endif
-}
-
//=======================================================================
//function : ProcessFaceInterferences
//purpose :
(const Standard_Integer SIX,const TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State& MEsp)
{
TopOpeBRepDS_DataStructure& BDS = myHDS->ChangeDS();
-
-#ifdef OCCT_DEBUG
- Standard_Boolean TRC=TRCF(SIX);
- Standard_Integer nI = 0;
- if (TRC) debpfi(SIX);
-#endif
-
-// BDS.Shape(SIX);
+
+ // BDS.Shape(SIX);
TopOpeBRepDS_ListOfInterference& LI = BDS.ChangeShapeInterferences(SIX);
::FUN_reducedoublons(LI,BDS,SIX);
-#ifdef OCCT_DEBUG
- nI = LI.Extent();
- if (TRC) cout <<"after reducedoublons nI = "<<nI<<endl;
-#endif
-
TopOpeBRepDS_ListOfInterference lw, lE, lFE, lFEF, lF, lUU, lall; lall.Assign(LI);
-#ifdef OCCT_DEBUG
- Standard_Integer nUU =
-#endif
- ::FUN_selectTRAUNKinterference(lall,lUU);
+ ::FUN_selectTRAUNKinterference(lall,lUU);
FUN_resolveFUNKNOWN(lUU,BDS,SIX,MEsp,myPShapeClassif);
lw.Append(lall);
lw.Append(lUU);
-#ifdef OCCT_DEBUG
- Standard_Integer nF, nFE, nFEF, nE;
-#endif
-
::FUN_selectTRASHAinterference(lw,TopAbs_FACE,lF);
::FUN_selectGKinterference(lF,TopOpeBRepDS_EDGE,lFE);
::FUN_selectSKinterference(lFE,TopOpeBRepDS_FACE,lFEF);
::FUN_selectTRASHAinterference(lw,TopAbs_EDGE,lE);
-
-#ifdef OCCT_DEBUG
- nF = lF.Extent();
- nFE = lFE.Extent();
- nFEF = lFEF.Extent();
- nE = lE.Extent();
- if(TRC){
- if(nF||nFE||nFEF||nE){cout<<endl;cout<<"-----------------------"<<endl;}
- if(nUU) {cout<<"FACE "<<SIX<<" UNKNOWN : "<<nUU<<endl;FDS_dumpLI(lUU," ");}
- if(nF) {cout<<"FACE "<<SIX<<" (FACE) : "<<nF<<endl;FDS_dumpLI(lF," ");}
- if(nFE){cout<<"FACE "<<SIX<<" (FACE)(GK EDGE) : "<<nFE<<endl;FDS_dumpLI(lFE," ");}
- if(nFEF){cout<<"FACE "<<SIX<<" (FACE)(GK EDGE)(SK FACE) : "<<nFEF<<endl;FDS_dumpLI(lFEF," ");}
- if(nE) {cout<<"FACE "<<SIX<<" (EDGE) : "<<nE<<endl;FDS_dumpLI(lE," ");}
- }
-#endif
-
- ::FUN_FilterFace(lFEF,BDS,SIX);
-
-#ifdef OCCT_DEBUG
- nF = lF.Extent();
- nFE = lFE.Extent();
- nFEF = lFEF.Extent();
- nE = lE.Extent();
- if(TRC){
- if(nF||nFE||nFEF||nE)cout<<endl;
- if(nF) {cout<<"FACE "<<SIX<<" (FACE) : "<<nF<<endl;FDS_dumpLI(lF," ");}
- if(nFE){cout<<"FACE "<<SIX<<" (FACE)(GK EDGE) : "<<nFE<<endl;FDS_dumpLI(lFE," ");}
- if(nFEF){cout<<"FACE "<<SIX<<" (FACE)(GK EDGE)(SK FACE) : "<<nFEF<<endl;FDS_dumpLI(lFEF," ");}
- if(nE) {cout<<"FACE "<<SIX<<" (EDGE) : "<<nE<<endl;FDS_dumpLI(lE," ");}
- cout<<"-----------------------"<<endl;
- }
-#endif
LI.Clear();
LI.Append(lF);