mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0027525: Coding - eliminate warnings on Windows for OCCT with static type of libraries
Useless *.cxx files were removed to eliminate linker warning LNK4221. Package TopOpeBRepDS was cleaned up from old debugging routines. Merged OSD_signal_WNT.cxx into OSD_signal.cxx Class Standard_ErrorHandlerCallback was moved into the Standard_ErrorHandler class as nested class Callback Eliminated warning about unused variable.
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
extern Standard_Boolean TopOpeBRepBuild_GettraceAREA();
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceSTRANGE();
|
||||
#endif
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -27,10 +27,6 @@
|
||||
#include <TopOpeBRepBuild_LoopClassifier.hxx>
|
||||
#include <TopOpeBRepBuild_LoopSet.hxx>
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceSTRANGE();
|
||||
#endif
|
||||
|
||||
//=======================================================================
|
||||
//function : TopOpeBRepBuild_AreaBuilder
|
||||
//purpose :
|
||||
@@ -115,12 +111,6 @@ void TopOpeBRepBuild_AreaBuilder::Atomize(TopAbs_State& state,
|
||||
"AreaBuilder : Position Unknown");
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( TopOpeBRepDS_GettraceSTRANGE() ) {
|
||||
cout<<"AreaBuilder : state "; TopAbs::Print(state,cout);
|
||||
cout<<" taken as "; TopAbs::Print(newstate,cout); cout<<endl;
|
||||
}
|
||||
#endif
|
||||
state = newstate;
|
||||
}
|
||||
}
|
||||
|
@@ -75,8 +75,6 @@ void TopOpeBRepBuild_Builder::BuildFaces(const Standard_Integer iS,
|
||||
//
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean tSE = TopOpeBRepBuild_GettraceSPF();
|
||||
Standard_Boolean tCU = TopOpeBRepBuild_GettraceCU();
|
||||
Standard_Boolean NtCUV = !TopOpeBRepBuild_GettraceCUV();
|
||||
#endif
|
||||
//
|
||||
TopOpeBRepDS_CurveIterator SCurves(HDS->SurfaceCurves(iS));
|
||||
@@ -85,7 +83,6 @@ void TopOpeBRepBuild_Builder::BuildFaces(const Standard_Integer iS,
|
||||
const TopOpeBRepDS_Curve& CDS = HDS->Curve(iC);
|
||||
#ifdef OCCT_DEBUG
|
||||
if (tSE) cout<<endl<<"BuildFaces : C "<<iC<<" on S "<<iS<<endl;
|
||||
if (tCU) { CDS.Dump(cout,iC,NtCUV); cout<<endl; }
|
||||
#endif
|
||||
TopoDS_Shape anEdge;
|
||||
TopTools_ListIteratorOfListOfShape Iti(NewEdges(iC));
|
||||
|
@@ -179,11 +179,6 @@ void TopOpeBRepBuild_Builder::AddIntersectionEdges
|
||||
TopOpeBRepDS_CurveIterator FCurves = myDataStructure->FaceCurves(aFace);
|
||||
for (; FCurves.More(); FCurves.Next()) {
|
||||
Standard_Integer iC = FCurves.Current();
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean tCU = TopOpeBRepBuild_GettraceCU();
|
||||
Standard_Boolean NtCUV = !TopOpeBRepBuild_GettraceCUV();
|
||||
if(tCU) {cout<<endl;myDataStructure->Curve(iC).Dump(cout,iC,NtCUV);}
|
||||
#endif
|
||||
const TopTools_ListOfShape& LnewE = NewEdges(iC);
|
||||
for (TopTools_ListIteratorOfListOfShape Iti(LnewE); Iti.More(); Iti.Next()) {
|
||||
anEdge = Iti.Value();
|
||||
|
@@ -75,9 +75,7 @@ void TopOpeBRepBuild_BuilderON::Perform2d
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer iFOR;Standard_Boolean tFOR=myPB->GtraceSPS(FOR,iFOR);
|
||||
if (tFOR) debfillonf(iFOR);
|
||||
if (tFOR) {cout<<endl<<"LI on F"<<iFOR<<":"<<endl;
|
||||
for (TopOpeBRepDS_ListIteratorOfListOfInterference iit(lFEI); iit.More(); iit.Next())
|
||||
{iit.Value()->Dump(cout);cout<<endl;}}
|
||||
if (tFOR) cout<<endl<<"LI on F"<<iFOR<<endl;
|
||||
#endif
|
||||
|
||||
for (TopOpeBRepDS_ListIteratorOfListOfInterference itI(lFEI); itI.More(); itI.Next()){
|
||||
@@ -147,7 +145,6 @@ void TopOpeBRepBuild_BuilderON::GFillONParts2dWES2(const Handle(TopOpeBRepDS_Int
|
||||
// Standard_Boolean tE=myPB->GtraceSPS(GI);
|
||||
// Standard_Boolean tEFOR = (tE && tFOR);
|
||||
if (tFOR) {debON2d(iFOR);}
|
||||
if (tFOR) {I->Dump(cout);cout<<endl;}
|
||||
#endif
|
||||
|
||||
Standard_Integer iFCX=SI;
|
||||
|
@@ -59,8 +59,6 @@
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
extern Standard_Boolean TopOpeBRepBuild_GettracePURGE();
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceSTRANGE();
|
||||
#include <TopOpeBRepDS_DSX.hxx>
|
||||
void debifb() {}
|
||||
#endif
|
||||
|
||||
@@ -92,10 +90,6 @@ TopOpeBRepBuild_FaceBuilder::TopOpeBRepBuild_FaceBuilder(TopOpeBRepBuild_WireEdg
|
||||
void TopOpeBRepBuild_FaceBuilder::InitFaceBuilder(TopOpeBRepBuild_WireEdgeSet& WES,const TopoDS_Shape& F,const Standard_Boolean ForceClass)
|
||||
{
|
||||
myFace = TopoDS::Face(F);
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean deb = TopOpeBRepDS_GettraceSPSX(myFace);
|
||||
if (deb) debifb();
|
||||
#endif
|
||||
MakeLoops(WES);
|
||||
TopOpeBRepBuild_BlockBuilder& BB = myBlockBuilder;
|
||||
TopOpeBRepBuild_WireEdgeClassifier WEC(F,BB);
|
||||
@@ -374,10 +368,8 @@ void TopOpeBRepBuild_FaceBuilder::CorrectGclosedWire(const TopTools_IndexedDataM
|
||||
{
|
||||
// prequesitory : edges described by <mapVon1Edge> are not closed,not degenerated
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean trc = TopOpeBRepDS_GettraceSTRANGE();
|
||||
if (TopOpeBRepBuild_GettracePURGE()) {
|
||||
cout<<endl<<"* CorrectGclosedWire :"<<endl<<endl;
|
||||
trc = Standard_True;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -397,10 +389,6 @@ void TopOpeBRepBuild_FaceBuilder::CorrectGclosedWire(const TopTools_IndexedDataM
|
||||
TopoDS_Vertex newVref = TopoDS::Vertex(aLocalShape);
|
||||
// TopoDS_Vertex newVref = TopoDS::Vertex(Vref.Oriented(V.Orientation()));
|
||||
BB.Add(E,newVref);
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer iV = i,iVref = mapVVref.FindIndex(Vref),iE = mapVon1Edge.FindIndex(V);
|
||||
if (trc) cout << " replacing V "<<iV<<" with V "<<iVref<<" on edge "<<iE<<endl;
|
||||
#endif
|
||||
TopOpeBRepDS_BuildTool BT;
|
||||
BT.Parameter(E,newVref,paronE);
|
||||
}
|
||||
|
@@ -429,13 +429,6 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
|
||||
const TopOpeBRepDS_ListOfInterference& LICur = tki.Value(Kcur,Gcur);
|
||||
Standard_Boolean point = (Kcur == TopOpeBRepDS_POINT); //xpu170498
|
||||
Standard_Boolean vertex = (Kcur == TopOpeBRepDS_VERTEX);//xpu170498
|
||||
#ifdef OCCT_DEBUG
|
||||
// Standard_Integer nLICur = LICur.Extent();
|
||||
Standard_Boolean trcI = Standard_False;
|
||||
if(trcI) {TopOpeBRepDS_Dumper DSD(myDataStructure); TCollection_AsciiString aa("lI");
|
||||
aa += TCollection_AsciiString(Gcur); DSD.DumpLOI(LICur,cout,aa);}
|
||||
#endif
|
||||
|
||||
TopoDS_Shape vGsd;
|
||||
if (vertex) FUN_ds_getoov(BDS.Shape(Gcur), myDataStructure, vGsd); //xpu221098
|
||||
|
||||
@@ -521,9 +514,6 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
|
||||
|
||||
TopOpeBRepDS_ListOfInterference li; li.Append(newI); TopOpeBRepDS_PointIterator itCur(li);
|
||||
GFillPointTopologyPVS(E,itCur,G,PVS);
|
||||
#ifdef OCCT_DEBUG
|
||||
if(tSPS) {newI->Dump(cout,"\nnewinterf ","\n\n"); debfillp2(iEDS);}
|
||||
#endif
|
||||
{tki.Next(); continue;}
|
||||
} // isSE
|
||||
|
||||
@@ -542,10 +532,6 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
|
||||
TopAbs_ShapeEnum SB1,SA1;Standard_Integer IB1,IA1;TopOpeBRepDS_Kind GT1,ST1;Standard_Integer G1,S1;
|
||||
FDS_Idata(I1,SB1,IB1,SA1,IA1,GT1,G1,ST1,S1);
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if(tSPS) {I1->Dump(cout,"\n? keepinterf ","\n\n"); debfillp2(iEDS);}
|
||||
#endif
|
||||
|
||||
Standard_Boolean keepinterf1 = Standard_False;
|
||||
if (isEd) {
|
||||
keepinterf1 = Standard_True;
|
||||
@@ -569,9 +555,6 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
|
||||
Standard_Boolean id2d = (I1 == i2d);
|
||||
if (tSPS) {
|
||||
cout<<"DEB : GFillPointTopologyPVS E"<<iEDS<<" has2d3d"<<endl;
|
||||
i2d->Dump(cout,"2d : ","\n");
|
||||
i3d->Dump(cout,"3d : ","\n");
|
||||
I1->Dump (cout,"I1 : ","\n");
|
||||
if (id3d) cout<<"--> Interference 3d ";
|
||||
if (id2d) cout<<"--> Interference 2d ";
|
||||
if (keepinterf1) cout<<" traitee"<<endl;
|
||||
|
@@ -57,7 +57,6 @@ Standard_IMPORT void FUN_draw2de (const TopoDS_Shape& ed,const TopoDS_Shape& fa)
|
||||
#endif
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
#include <TopOpeBRepDS_DSX.hxx>
|
||||
extern void* GFABUMAKEFACEPWES_DEB;
|
||||
#define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
|
||||
Standard_Integer GLOBAL_iexE = 0;
|
||||
@@ -153,10 +152,6 @@ Standard_Boolean FUN_computeLIFfaces2d(const TopOpeBRepBuild_Builder& BU,
|
||||
// {I = (T(F),ES,FTRA)} / Fsdm F and ES interfers with E which has splits ON
|
||||
// E is edge of F
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer iF;Standard_Boolean tF=BU.GtraceSPS(F,iF);
|
||||
#endif
|
||||
|
||||
const TopOpeBRepDS_DataStructure& BDS = BU.DataStructure()->DS();
|
||||
const TopOpeBRepDS_ListOfInterference& LI = BDS.ShapeInterferences(E);
|
||||
Standard_Integer IE = BDS.Shape(E);
|
||||
@@ -215,9 +210,6 @@ Standard_Boolean FUN_computeLIFfaces2d(const TopOpeBRepBuild_Builder& BU,
|
||||
if (ok) {
|
||||
newT.Index(ITRA); TopOpeBRepDS_Config C = TopOpeBRepDS_SAMEORIENTED;
|
||||
Handle(TopOpeBRepDS_Interference) newI = TopOpeBRepDS_InterferenceTool::MakeFaceEdgeInterference(newT,ITRA,IE,Standard_True,C);
|
||||
#ifdef OCCT_DEBUG
|
||||
if (tF) {cout<<"f"<<IF<<" + ";newI->Dump(cout);cout<<endl;}
|
||||
#endif
|
||||
pDS2d->AddShapeInterference(F,newI);
|
||||
}
|
||||
}
|
||||
@@ -233,9 +225,6 @@ Standard_Boolean FUN_computeLIFfaces2d(const TopOpeBRepBuild_Builder& BU,
|
||||
if (ok) {
|
||||
newT.Index(IF); TopOpeBRepDS_Config C = TopOpeBRepDS_SAMEORIENTED;
|
||||
Handle(TopOpeBRepDS_Interference) newI = TopOpeBRepDS_InterferenceTool::MakeFaceEdgeInterference(newT,IF,IE,Standard_False,C);
|
||||
#ifdef OCCT_DEBUG
|
||||
if (tF) {cout<<"f"<<ITRA<<" + ";newI->Dump(cout);cout<<endl;}
|
||||
#endif
|
||||
pDS2d->AddShapeInterference(FTRA,newI);
|
||||
}
|
||||
|
||||
@@ -243,9 +232,6 @@ Standard_Boolean FUN_computeLIFfaces2d(const TopOpeBRepBuild_Builder& BU,
|
||||
if (ok) {
|
||||
newT.Index(IF); TopOpeBRepDS_Config C = TopOpeBRepDS_SAMEORIENTED;
|
||||
Handle(TopOpeBRepDS_Interference) newI = TopOpeBRepDS_InterferenceTool::MakeFaceEdgeInterference(newT,IF,S,Standard_True,C);
|
||||
#ifdef OCCT_DEBUG
|
||||
if (tF) {cout<<endl<<"f"<<ITRA<<" + ";newI->Dump(cout);cout<<endl;}
|
||||
#endif
|
||||
pDS2d->AddShapeInterference(FTRA,newI);
|
||||
}
|
||||
|
||||
@@ -264,9 +250,6 @@ Standard_Boolean FUN_computeLIFfaces2d(const TopOpeBRepBuild_Builder& BU,
|
||||
if (ok) {
|
||||
newT.Index(ITRA); TopOpeBRepDS_Config C = TopOpeBRepDS_SAMEORIENTED;
|
||||
Handle(TopOpeBRepDS_Interference) newI = TopOpeBRepDS_InterferenceTool::MakeFaceEdgeInterference(newT,ITRA,S,Standard_False,C);
|
||||
#ifdef OCCT_DEBUG
|
||||
if (tF) {cout<<"f"<<iF<<" + ";newI->Dump(cout);cout<<endl;}
|
||||
#endif
|
||||
pDS2d->AddShapeInterference(F,newI);
|
||||
}
|
||||
}
|
||||
@@ -869,11 +852,8 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"o-o GridFF ffil F"<<ifil<<" se E"<<iEOR<<" / "<<iWESF<<" ";
|
||||
TopAbs::Print(TB1,cout);cout.flush();
|
||||
Standard_Boolean tse = TopOpeBRepDS_GettraceSPSX(iEOR);
|
||||
TopOpeBRepDS_SettraceSPSX(iEOR,Standard_True);
|
||||
if (!ftg) {cout<<" : !ftg --> "; GKeepShape(EOR,LSclass,TB1);cout.flush();}
|
||||
else {cout<<" : ftg --> non gardee"<<endl;cout.flush();}
|
||||
TopOpeBRepDS_SettraceSPSX(iEOR,tse);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@@ -87,7 +87,6 @@
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
#define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceSTRANGE();
|
||||
Standard_EXPORT void debsplitf(const Standard_Integer i){cout<<"++ debsplitf "<<i<<endl;}
|
||||
Standard_EXPORT void debspanc(const Standard_Integer i){cout<<"++ debspanc "<<i<<endl;}
|
||||
Standard_Integer GLOBAL_iexF = 0;
|
||||
@@ -154,10 +153,6 @@ static Standard_Boolean FUN_EPIforEvisoONperiodicF
|
||||
if (!ok) return Standard_False; // nyi FUN_Raise
|
||||
Standard_Integer iEinterf=0; Standard_Integer iG = FUN_getG(p3d,EPIlist,HDS,iEinterf);
|
||||
if (iG == 0) {
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean strange = TopOpeBRepDS_GettraceSTRANGE();
|
||||
if (strange) cout<<"strange : FUN_EPIforEvisoONperiodicF"<<endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
if (HDS->Shape(iEinterf).ShapeType() != TopAbs_EDGE) iEinterf = 0;
|
||||
@@ -970,19 +965,13 @@ static Standard_Boolean FUN_SplitEvisoONperiodicF(const Handle(TopOpeBRepDS_HDat
|
||||
TopOpeBRepDS_Kind GT,ST;Standard_Integer GI,SI;FDS_data(SSI,GT,GI,ST,SI);
|
||||
|
||||
const TopoDS_Face& FS = TopoDS::Face( HDS->Shape(SI));
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer iFS =
|
||||
#endif
|
||||
HDS->Shape(FS);
|
||||
HDS->Shape(FS);
|
||||
// Standard_Boolean FSper = FUN_periodicS(FS);
|
||||
Standard_Boolean FSper = FUN_tool_closedS(FS);
|
||||
if (!FSper) continue;
|
||||
|
||||
const TopoDS_Edge& EG = TopoDS::Edge(HDS->Shape(GI));
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer iEG =
|
||||
#endif
|
||||
HDS->Shape(EG);
|
||||
HDS->Shape(EG);
|
||||
Standard_Boolean isrest = HDS->DS().IsSectionEdge(EG);
|
||||
if (!isrest) continue;
|
||||
|
||||
@@ -1014,19 +1003,10 @@ static Standard_Boolean FUN_SplitEvisoONperiodicF(const Handle(TopOpeBRepDS_HDat
|
||||
TopOpeBRepDS_DataStructure& BDS = HDS->ChangeDS();
|
||||
TopOpeBRepDS_ListOfInterference EPIlist; FUN_getEPIonEds(FS,HDS,EPIlist);
|
||||
TopOpeBRepDS_ListOfInterference loCPI;
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean recadre =
|
||||
#endif
|
||||
FUN_EPIforEvisoONperiodicF(EG,FS,EPIlist, HDS,loCPI);
|
||||
FUN_EPIforEvisoONperiodicF(EG,FS,EPIlist, HDS,loCPI);
|
||||
|
||||
TopOpeBRepDS_ListOfInterference& lIEG = BDS.ChangeShapeInterferences(EG);
|
||||
lIEG.Append(loCPI);
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean trc = TopOpeBRepDS_GettraceSTRANGE();
|
||||
if (trc) {cout<<"!! recadre is "; if (!recadre) cout<<"not ";
|
||||
cout<<"done on face FS "<<iFS<<" for edge "<<iEG<<endl;}
|
||||
#endif
|
||||
} // ILI
|
||||
return Standard_True;
|
||||
}
|
||||
|
@@ -83,8 +83,6 @@
|
||||
#include <TopOpeBRepBuild_WireEdgeSet.hxx>
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceSPSX(const Standard_Integer);
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceSPSXX(const Standard_Integer,const Standard_Integer);
|
||||
static TCollection_AsciiString PRODINS("dins ");
|
||||
#endif
|
||||
|
||||
@@ -643,19 +641,10 @@ Standard_Boolean TopOpeBRepBuild_Builder::GtraceSPS(const Standard_Integer ) con
|
||||
//function : GtraceSPS
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean TopOpeBRepBuild_Builder::GtraceSPS(const Standard_Integer i,
|
||||
const Standard_Integer j) const
|
||||
#else
|
||||
Standard_Boolean TopOpeBRepBuild_Builder::GtraceSPS(const Standard_Integer ,
|
||||
const Standard_Integer ) const
|
||||
#endif
|
||||
{
|
||||
Standard_Boolean b = Standard_False;
|
||||
#ifdef OCCT_DEBUG
|
||||
b = TopOpeBRepDS_GettraceSPSXX(i,j);
|
||||
#endif
|
||||
return b;
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@@ -680,24 +669,11 @@ Standard_Boolean TopOpeBRepBuild_Builder::GtraceSPS(const TopoDS_Shape& ) const
|
||||
//function : GtraceSPS
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean TopOpeBRepBuild_Builder::GtraceSPS(const TopoDS_Shape& S,
|
||||
Standard_Integer& IS) const
|
||||
#else
|
||||
Standard_Boolean TopOpeBRepBuild_Builder::GtraceSPS(const TopoDS_Shape&,
|
||||
Standard_Integer& IS) const
|
||||
#endif
|
||||
{
|
||||
IS = 0; Standard_Boolean b = Standard_False;
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( ! myDataStructure.IsNull() ) {
|
||||
if ( ! S.IsNull() ) {
|
||||
IS = myDataStructure->Shape(S);
|
||||
b = TopOpeBRepDS_GettraceSPSX(IS);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return b;
|
||||
IS = 0;
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -64,7 +64,6 @@
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
extern Standard_Boolean TopOpeBRepBuild_GettraceSPS();
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceDSNC();
|
||||
Standard_EXPORT void debsplitse(const Standard_Integer) {}
|
||||
Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s = "");
|
||||
Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s){cout<<"+++ debsplitse "<<s<<" E"<<i<<endl;debsplitse(i);}
|
||||
@@ -257,12 +256,7 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
|
||||
|
||||
const TopOpeBRepDS_DataStructure& BDS = myDataStructure->DS();
|
||||
Standard_Integer i,n = BDS.NbSectionEdges();
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
if (TopOpeBRepDS_GettraceDSNC() && !mySplitSectionEdgesDone)
|
||||
cout<<"TopOpeBRepBuild_Builder::SSE : compute "<<n<<" section edges"<<endl;
|
||||
#endif
|
||||
|
||||
|
||||
for (i = 1; i <= n; i++) { // 1
|
||||
const TopoDS_Edge& E = TopoDS::Edge(BDS.SectionEdge(i));
|
||||
if(E.IsNull()) continue;
|
||||
|
@@ -53,9 +53,7 @@
|
||||
#include <TopOpeBRepBuild_define.hxx>
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
#define TSTRA TopOpeBRepDS_GettraceSTRANGE()
|
||||
static TCollection_AsciiString PRODINS("dins ");
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceSTRANGE();
|
||||
#endif
|
||||
|
||||
//Standard_IMPORT extern TopOpeBRepBuild_Builder* GLOBAL_PBUILDER;
|
||||
@@ -149,12 +147,6 @@ TopAbs_State TopOpeBRepBuild_WireEdgeClassifier::Compare
|
||||
}
|
||||
} //UNKNOWN
|
||||
|
||||
if (state == TopAbs_UNKNOWN) {
|
||||
#ifdef OCCT_DEBUG
|
||||
if (TSTRA) cout<<"TopOpeBRepBuild_Builder::WES::Compare UNKNOWN -> ShapeClassifier "<<endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (state == TopAbs_UNKNOWN) {
|
||||
TopoDS_Shape s1 = LoopToShape(L1); if (s1.IsNull()) return state;
|
||||
TopoDS_Shape s2 = LoopToShape(L2); if (s2.IsNull()) return state;
|
||||
|
@@ -64,7 +64,6 @@
|
||||
extern Standard_Boolean TopOpeBRepBuild_GetcontextNOPURGE();
|
||||
extern Standard_Boolean TopOpeBRepBuild_GetcontextNOCORRISO();
|
||||
extern Standard_Boolean TopOpeBRepBuild_GettraceCHK();
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceSTRANGE();
|
||||
#define DEBSHASET(sarg,meth,shaset,str) \
|
||||
TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
|
||||
Standard_EXPORT void debgfabu(const Standard_Integer i) {cout<<"++ debgfabu "<<i<<endl;}
|
||||
@@ -580,10 +579,6 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
|
||||
|
||||
Standard_Boolean topurge = FUN_purgeFon1nonoriE(newFace);
|
||||
if (topurge) {
|
||||
#ifdef OCCT_DEBUG
|
||||
if (TopOpeBRepDS_GettraceSTRANGE())
|
||||
cout<<"Builder::GFABUMakeFaces -> purgeFon1nonoriE\n";
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@@ -52,7 +52,6 @@
|
||||
#include <TopTools_IndexedMapOfOrientedShape.hxx>
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
extern Standard_Boolean TopOpeBRepDS_GettraceSTRANGE();
|
||||
Standard_EXPORT void debgsobu(const Standard_Integer /*iSO*/) {}
|
||||
#endif
|
||||
|
||||
@@ -83,7 +82,6 @@ void TopOpeBRepBuild_Builder::GSOBUMakeSolids
|
||||
(const TopoDS_Shape& SOF,TopOpeBRepBuild_SolidBuilder& SOBU,TopTools_ListOfShape& LOSO)
|
||||
{
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Boolean trcso = TopOpeBRepDS_GettraceSTRANGE();
|
||||
Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SOF,iSO);
|
||||
if(tSPS){GdumpSHA(SOF, (char *) "#--- GSOBUMakeSolids ");cout<<endl;}
|
||||
if(tSPS){GdumpSOBU(SOBU);debgsobu(iSO);}
|
||||
@@ -141,9 +139,6 @@ void TopOpeBRepBuild_Builder::GSOBUMakeSolids
|
||||
TopExp_Explorer ex(newSolid,TopAbs_VERTEX);
|
||||
Standard_Boolean isempty = ex.More();
|
||||
if (!isempty) {
|
||||
#ifdef OCCT_DEBUG
|
||||
if (trcso) cout <<"TopOpeBRepBuild_Builder::GSOBUMakeSolids ->EMPTY SOLID\n";
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user