1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00

0023947: Eliminate trivial compiler warnings in MSVC++ with warning level 4

Fix first subset of warnings (about 100)
- while(1) and similar constructs replaced by for(;;)
- some uninitialized variables corrected
Got rid of Warning C4189: local variable is initialised but not referenced
Corrected mistakes after getting rid of C4189 compiler warning
Corrected some mistakes that led to compiling errors
Fixed test case because of improvement message - removed unnecessary TODO.
Small fix: tabs have been replaced with whitespaces.
Added TODO for Windows platform
removed last TODO
Corrected mistakes, returned some #ifdef DEB code, fixed test case .
Restoring a few places which have been modified too much
Small grammar fix
Deleted unnecessary puts in bugs/end
This commit is contained in:
omy 2013-07-12 12:37:38 +04:00
parent a8195d65ba
commit 302f96fb0d
189 changed files with 455 additions and 1010 deletions

View File

@ -805,7 +805,6 @@ gp_Elips Adaptor3d_IsoCurve::Ellipse() const
default: default:
{ {
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:Ellipse"); Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:Ellipse");
return gp_Elips();
} }
} }

View File

@ -492,9 +492,6 @@ GeomAbs_SurfaceType Adaptor3d_SurfaceOfLinearExtrusion::GetType() const
return GeomAbs_SurfaceOfExtrusion; return GeomAbs_SurfaceOfExtrusion;
} }
// portage WNT
return GeomAbs_SurfaceOfExtrusion;
} }
//======================================================================= //=======================================================================

View File

@ -333,7 +333,6 @@ void BOPAlgo_ArgumentAnalyzer::TestSelfInterferences()
Standard_Integer aNb[6] = {aVVs.Extent(), aVEs.Extent(), aEEs.Extent(), Standard_Integer aNb[6] = {aVVs.Extent(), aVEs.Extent(), aEEs.Extent(),
aVFs.Extent(), aEFs.Extent(), aFFs.Extent()}; aVFs.Extent(), aEFs.Extent(), aFFs.Extent()};
// //
Standard_Integer ind = 0;
for (Standard_Integer aTypeInt = 0; aTypeInt < 6; ++aTypeInt) { for (Standard_Integer aTypeInt = 0; aTypeInt < 6; ++aTypeInt) {
for (Standard_Integer i = 0; i < aNb[aTypeInt]; ++i) { for (Standard_Integer i = 0; i < aNb[aTypeInt]; ++i) {
BOPDS_Interf* aInt = (aTypeInt==0) ? (BOPDS_Interf*)(&aVVs(i)) : BOPDS_Interf* aInt = (aTypeInt==0) ? (BOPDS_Interf*)(&aVVs(i)) :

View File

@ -182,7 +182,7 @@ static
myShapesToAvoid.Clear(); myShapesToAvoid.Clear();
// //
iCnt=0; iCnt=0;
while (1) { for(;;) {
++iCnt; ++iCnt;
bFound=Standard_False; bFound=Standard_False;
// //

View File

@ -166,7 +166,7 @@ static
myShapesToAvoid.Clear(); myShapesToAvoid.Clear();
// //
iCnt=0; iCnt=0;
while (1) { for(;;) {
++iCnt; ++iCnt;
bFound=Standard_False; bFound=Standard_False;
// //
@ -178,9 +178,6 @@ static
if (!myShapesToAvoid.Contains(aF)) { if (!myShapesToAvoid.Contains(aF)) {
BOPTools::MapShapesAndAncestors(aF, TopAbs_EDGE, TopAbs_FACE, aMEF); BOPTools::MapShapesAndAncestors(aF, TopAbs_EDGE, TopAbs_FACE, aMEF);
} }
else {
int a=0;
}
} }
aNbE=aMEF.Extent(); aNbE=aMEF.Extent();
// //

View File

@ -570,7 +570,7 @@ void MakeBlocksCnx(const BOPCol_IndexedDataMapOfShapeListOfShape& aMILI,
aMVAdd.Clear(); aMVAdd.Clear();
// //
aMVP.Add(nV); aMVP.Add(nV);
while(1) { for(;;) {
aNbVP=aMVP.Extent(); aNbVP=aMVP.Extent();
for (j=1; j<=aNbVP; ++j) { for (j=1; j<=aNbVP; ++j) {
const TopoDS_Shape& nVP=aMVP(j); const TopoDS_Shape& nVP=aMVP(j);

View File

@ -523,7 +523,7 @@
BOPCol_MapIteratorOfMapOfInteger aIt1; BOPCol_MapIteratorOfMapOfInteger aIt1;
// //
aMIP.Add(i); aMIP.Add(i);
while(1) { for(;;) {
aNbIP=aMIP.Extent(); aNbIP=aMIP.Extent();
aIt1.Initialize(aMIP); aIt1.Initialize(aMIP);
for(; aIt1.More(); aIt1.Next()) { for(; aIt1.More(); aIt1.Next()) {

View File

@ -327,8 +327,6 @@ static void ToleranceFF(const TopoDS_Face& aF1,
for (j=0; j<aNbC; ++j) { for (j=0; j<aNbC; ++j) {
BOPDS_Curve& aNC=aVC.ChangeValue(j); BOPDS_Curve& aNC=aVC.ChangeValue(j);
const IntTools_Curve& aIC=aNC.Curve(); const IntTools_Curve& aIC=aNC.Curve();
// DEBf
const Handle(Geom_Curve)& aC3D=aIC.Curve();
// DEBt // DEBt
aNC.InitPaveBlock1(); aNC.InitPaveBlock1();
// //
@ -798,9 +796,6 @@ static void ToleranceFF(const TopoDS_Face& aF1,
if (aSI.ShapeType()!=TopAbs_FACE) { if (aSI.ShapeType()!=TopAbs_FACE) {
continue; continue;
} }
//
const TopoDS_Face& aF=(*(TopoDS_Face*)(&aSI.Shape()));
//
if(!myDS->HasFaceInfo(i)) { if(!myDS->HasFaceInfo(i)) {
continue; continue;
} }

View File

@ -59,7 +59,7 @@
aMVAdd.Clear(); aMVAdd.Clear();
// //
aMVP.Add(nV); aMVP.Add(nV);
while(1) { for(;;) {
aNbVP=aMVP.Extent(); aNbVP=aMVP.Extent();
for (j=1; j<=aNbVP; ++j) { for (j=1; j<=aNbVP; ++j) {
nVP=aMVP(j); nVP=aMVP(j);
@ -215,7 +215,7 @@
aMVAdd.Clear(); aMVAdd.Clear();
// //
aMVP.Add(nV); aMVP.Add(nV);
while(1) { for(;;) {
aNbVP=aMVP.Extent(); aNbVP=aMVP.Extent();
for (j=1; j<=aNbVP; ++j) { for (j=1; j<=aNbVP; ++j) {
const Handle(BOPDS_PaveBlock)& nVP=aMVP(j); const Handle(BOPDS_PaveBlock)& nVP=aMVP(j);

View File

@ -198,7 +198,7 @@
// //
aMVP.Add(aV); aMVP.Add(aV);
// //
while(1) { for(;;) {
aNbVP=aMVP.Extent(); aNbVP=aMVP.Extent();
for (k=1; k<=aNbVP; ++k) { for (k=1; k<=aNbVP; ++k) {
const TopoDS_Shape& aVP=aMVP(k); const TopoDS_Shape& aVP=aMVP(k);

View File

@ -284,7 +284,7 @@ template <class Type>
BOPCol_PMemBlock pBlock, pNext; BOPCol_PMemBlock pBlock, pNext;
// //
pBlock=myPBlock1; pBlock=myPBlock1;
while(1) { for(;;) {
pNext=pBlock->myNext; pNext=pBlock->myNext;
if(!pNext) { if(!pNext) {
myPBlock=pBlock; myPBlock=pBlock;
@ -321,7 +321,7 @@ template <class Type>
BOPCol_PMemBlock pBlock, pNext; BOPCol_PMemBlock pBlock, pNext;
// //
pBlock=myPBlock1; pBlock=myPBlock1;
while(1) { for(;;) {
pNext=pBlock->myNext; pNext=pBlock->myNext;
if(!pNext) { if(!pNext) {
myPBlock=pBlock; myPBlock=pBlock;

View File

@ -1379,7 +1379,7 @@ static
} }
// //
const BOPCol_MapOfInteger& aMVIn1=aFI1.VerticesIn(); const BOPCol_MapOfInteger& aMVIn1=aFI1.VerticesIn();
aIt.Initialize(aMVOn1); aIt.Initialize(aMVIn1);
for (; aIt.More(); aIt.Next()) { for (; aIt.More(); aIt.Next()) {
nV=aIt.Value(); nV=aIt.Value();
aMI.Add(nV); aMI.Add(nV);
@ -1393,7 +1393,7 @@ static
} }
// //
const BOPCol_MapOfInteger& aMVIn2=aFI2.VerticesIn(); const BOPCol_MapOfInteger& aMVIn2=aFI2.VerticesIn();
aIt.Initialize(aMVOn1); aIt.Initialize(aMVIn2);
for (; aIt.More(); aIt.Next()) { for (; aIt.More(); aIt.Next()) {
nV=aIt.Value(); nV=aIt.Value();
aMI.Add(nV); aMI.Add(nV);

View File

@ -230,7 +230,6 @@
i=aIt2.Value(); i=aIt2.Value();
// //
const BOPDS_ShapeInfo& aSI=myDS->ShapeInfo(i); const BOPDS_ShapeInfo& aSI=myDS->ShapeInfo(i);
const TopoDS_Shape& aSi=aSI.Shape();
const Bnd_Box& aBoxEx=aSI.Box(); const Bnd_Box& aBoxEx=aSI.Box();
// //
aSelector.Clear(); aSelector.Clear();

View File

@ -140,7 +140,7 @@ static
aMAdd.Clear(); aMAdd.Clear();
aMAdd.Add(aF1); aMAdd.Add(aF1);
// //
while(1) { for(;;) {
aMAdd1.Clear(); aMAdd1.Clear();
// //
aNbAdd = aMAdd.Extent(); aNbAdd = aMAdd.Extent();
@ -374,7 +374,7 @@ static
const TopoDS_Shape& aF1=theLFIn.First(); const TopoDS_Shape& aF1=theLFIn.First();
aMAdd.Add(aF1); aMAdd.Add(aF1);
// //
while(1) { for(;;) {
aMAdd1.Clear(); aMAdd1.Clear();
aNbAdd = aMAdd.Extent(); aNbAdd = aMAdd.Extent();
for (i=1; i<=aNbAdd; ++i) { for (i=1; i<=aNbAdd; ++i) {

View File

@ -477,7 +477,7 @@ static
TopoDS_Iterator aItC; TopoDS_Iterator aItC;
// //
aLC.Append (theC1); aLC.Append (theC1);
while(1) { for(;;) {
aLC1.Clear(); aLC1.Clear();
aIt.Initialize(aLC); aIt.Initialize(aLC);
for (; aIt.More(); aIt.Next()) { for (; aIt.More(); aIt.Next()) {

View File

@ -115,10 +115,6 @@ static void UpdateCurves(BRep_ListOfCurveRepresentation& lcr,
GC = Handle(BRep_GCurve)::DownCast(itcr.Value()); GC = Handle(BRep_GCurve)::DownCast(itcr.Value());
if (!GC.IsNull()) { if (!GC.IsNull()) {
if (GC->IsCurve3D()) { if (GC->IsCurve3D()) {
#ifdef DEB
const Handle(Geom_Curve)& Crv =
#endif
GC->Curve3D();
// if (!C.IsNull()) { //xpu031198, edge degeneree // if (!C.IsNull()) { //xpu031198, edge degeneree
// xpu151298 : parameters can be setted for null curves // xpu151298 : parameters can be setted for null curves
@ -185,10 +181,6 @@ static void UpdateCurves(BRep_ListOfCurveRepresentation& lcr,
GC = Handle(BRep_GCurve)::DownCast(itcr.Value()); GC = Handle(BRep_GCurve)::DownCast(itcr.Value());
if (!GC.IsNull()) { if (!GC.IsNull()) {
if (GC->IsCurve3D()) { if (GC->IsCurve3D()) {
#ifdef DEB
const Handle(Geom_Curve)& Crv =
#endif
GC->Curve3D();
// if (!C.IsNull()) { //xpu031198, edge degeneree // if (!C.IsNull()) { //xpu031198, edge degeneree
// xpu151298 : parameters can be setted for null curves // xpu151298 : parameters can be setted for null curves

View File

@ -532,7 +532,6 @@ void BRepAlgo_Loop::Perform()
} }
} }
#endif #endif
//------------------------------------------------ //------------------------------------------------
// Cut edges // Cut edges
//------------------------------------------------ //------------------------------------------------
@ -573,11 +572,11 @@ void BRepAlgo_Loop::Perform()
TopTools_MapOfShape Done; TopTools_MapOfShape Done;
for (Mapit.Initialize(MVE); Mapit.More();Mapit.Next()) { for (Mapit.Initialize(MVE); Mapit.More();Mapit.Next()) {
for (itl.Initialize(Mapit.Value()); itl.More(); itl.Next()) { for (itl.Initialize(Mapit.Value()); itl.More(); itl.Next()) {
TopoDS_Edge& E = TopoDS::Edge(itl.Value()); TopoDS_Edge& E = TopoDS::Edge(itl.Value());
if (Done.Add(E)) { if (Done.Add(E)) {
sprintf(name,"EEC_%d_%d",NbLoops,NbEdges++); sprintf(name,"EEC_%d_%d",NbLoops,NbEdges++);
DBRep::Set(name,E); DBRep::Set(name,E);
} }
} }
} }
} }
@ -633,14 +632,14 @@ void BRepAlgo_Loop::Perform()
UsedEdges.Add(CE); UsedEdges.Add(CE);
if (!MVE.IsBound(CV) || MVE(CV).IsEmpty()) { if (!MVE.IsBound(CV) || MVE(CV).IsEmpty()) {
End = Standard_True; End = Standard_True;
} }
else { else {
End = !SelectEdge(myFace,CE,CV,NE,MVE(CV)); End = !SelectEdge(myFace,CE,CV,NE,MVE(CV));
if (!End) { if (!End) {
CE = NE; CE = NE;
if (MVE(CV).IsEmpty()) MVE.UnBind(CV); if (MVE(CV).IsEmpty()) MVE.UnBind(CV);
} }
} }
} }
//-------------------------------------------------- //--------------------------------------------------
@ -650,28 +649,28 @@ void BRepAlgo_Loop::Perform()
TopExp_Explorer explo( NW, TopAbs_VERTEX ); TopExp_Explorer explo( NW, TopAbs_VERTEX );
for (; explo.More(); explo.Next()) for (; explo.More(); explo.Next())
{ {
const TopoDS_Vertex& aV = TopoDS::Vertex( explo.Current() ); const TopoDS_Vertex& aV = TopoDS::Vertex( explo.Current() );
Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &(aV).TShape()); Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &(aV).TShape());
TV->Tolerance( Tol ); TV->Tolerance( Tol );
TV->Modified( Standard_True ); TV->Modified( Standard_True );
} }
for (explo.Init( NW, TopAbs_EDGE ); explo.More(); explo.Next()) for (explo.Init( NW, TopAbs_EDGE ); explo.More(); explo.Next())
{ {
const TopoDS_Edge& aE = TopoDS::Edge( explo.Current() ); const TopoDS_Edge& aE = TopoDS::Edge( explo.Current() );
Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &(aE).TShape()); Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &(aE).TShape());
TE->Tolerance( Tol ); TE->Tolerance( Tol );
TE->Modified( Standard_True ); TE->Modified( Standard_True );
} }
if (VF.IsSame(CV) && SamePnt2d(VF,EF,CE,myFace)) if (VF.IsSame(CV) && SamePnt2d(VF,EF,CE,myFace))
myNewWires.Append (NW); myNewWires.Append (NW);
else {
#ifdef DEB #ifdef DEB
else {
cout <<"BRepAlgo_Loop: Open Wire"<<endl; cout <<"BRepAlgo_Loop: Open Wire"<<endl;
if (AffichLoop) if (AffichLoop)
cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<endl; cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<endl;
}
#endif #endif
}
#ifdef DRAW #ifdef DRAW
if (AffichLoop) { if (AffichLoop) {
sprintf(name,"NW_%d_%d",NbLoops,NbWires++); sprintf(name,"NW_%d_%d",NbLoops,NbWires++);
@ -694,7 +693,6 @@ void BRepAlgo_Loop::CutEdge (const TopoDS_Edge& E,
{ {
TopoDS_Shape aLocalE = E.Oriented(TopAbs_FORWARD); TopoDS_Shape aLocalE = E.Oriented(TopAbs_FORWARD);
TopoDS_Edge WE = TopoDS::Edge(aLocalE); TopoDS_Edge WE = TopoDS::Edge(aLocalE);
// TopoDS_Edge WE = TopoDS::Edge(E.Oriented(TopAbs_FORWARD));
Standard_Real U1,U2; Standard_Real U1,U2;
TopoDS_Vertex V1,V2; TopoDS_Vertex V1,V2;

View File

@ -186,7 +186,6 @@ static void DEBControl (const TopTools_DataMapOfShapeListOfShape& MG)
TopTools_ListIteratorOfListOfShape itl(MG(OS)); TopTools_ListIteratorOfListOfShape itl(MG(OS));
Standard_Integer IV = 1; Standard_Integer IV = 1;
for (; itl.More(); itl.Next()) { for (; itl.More(); itl.Next()) {
const TopoDS_Shape& NS = itl.Value();
sprintf(name, "SV_%d_%d",IK,IV++); sprintf(name, "SV_%d_%d",IK,IV++);
#ifdef DRAW #ifdef DRAW
DBRep::Set(name,NS); DBRep::Set(name,NS);

View File

@ -410,7 +410,7 @@ Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P,
Standard_Integer NbPointsOK=0; Standard_Integer NbPointsOK=0;
Standard_Integer NbFacesInSolid=0; Standard_Integer NbFacesInSolid=0;
do { for(;;) {
myFirstFace++; myFirstFace++;
faceexplorer.Init(myShape,TopAbs_FACE); faceexplorer.Init(myShape,TopAbs_FACE);
// look for point on face starting from myFirstFace // look for point on face starting from myFirstFace
@ -583,8 +583,7 @@ Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P,
else { myParamOnEdge*=0.5; } else { myParamOnEdge*=0.5; }
} //-- do { ... } } //-- for(;;) { ... }
while(1);
return 0; return 0;
} }

View File

@ -181,21 +181,16 @@ Standard_Real BRepFeat::ParametricBarycenter(const TopoDS_Shape& S,
// On projette sur CC // On projette sur CC
extpc.Perform(pone); extpc.Perform(pone);
if (extpc.IsDone() && extpc.NbExt() >= 1) { if (extpc.IsDone() && extpc.NbExt() >= 1) {
Standard_Real Dist2Min = extpc.SquareDistance(1); Standard_Real Dist2Min = extpc.SquareDistance(1);
Standard_Integer kmin = 1; Standard_Integer kmin = 1;
for (Standard_Integer k=2; k<=extpc.NbExt(); k++) { for (Standard_Integer k=2; k<=extpc.NbExt(); k++) {
Standard_Real Dist2 = extpc.SquareDistance(k); Standard_Real Dist2 = extpc.SquareDistance(k);
if (Dist2 < Dist2Min) { if (Dist2 < Dist2Min) {
Dist2Min = Dist2; Dist2Min = Dist2;
kmin = k; kmin = k;
} }
} }
nbp++; nbp++;
#ifdef DEB
Standard_Real prmp = extpc.Point(kmin).Parameter();
#else
extpc.Point(kmin).Parameter();
#endif
} }
} }
} }

View File

@ -1198,10 +1198,6 @@ static void MajMap(const TopoDS_Shape& theB,
for (exp.Init(theB,TopAbs_EDGE); exp.More(); exp.Next()) { for (exp.Init(theB,TopAbs_EDGE); exp.More(); exp.Next()) {
if (!theMap.IsBound(exp.Current())) { if (!theMap.IsBound(exp.Current())) {
#ifdef DEB
const TopoDS_Edge& e =
#endif
TopoDS::Edge(exp.Current());
TopTools_ListOfShape thelist2; TopTools_ListOfShape thelist2;
theMap.Bind(exp.Current(), thelist2); theMap.Bind(exp.Current(), thelist2);
theMap(exp.Current()) = theP.Shapes(exp.Current()); theMap(exp.Current()) = theP.Shapes(exp.Current());

View File

@ -1735,10 +1735,6 @@ static void MajMap(const TopoDS_Shape& theB,
for (exp.Init(theB,TopAbs_EDGE); exp.More(); exp.Next()) { for (exp.Init(theB,TopAbs_EDGE); exp.More(); exp.Next()) {
if (!theMap.IsBound(exp.Current())) { if (!theMap.IsBound(exp.Current())) {
#ifdef DEB
const TopoDS_Edge& e =
#endif
TopoDS::Edge(exp.Current());
TopTools_ListOfShape thelist2; TopTools_ListOfShape thelist2;
theMap.Bind(exp.Current(), thelist2); theMap.Bind(exp.Current(), thelist2);
theMap(exp.Current()) = theP.Shapes(exp.Current()); theMap(exp.Current()) = theP.Shapes(exp.Current());

View File

@ -929,11 +929,6 @@ void BRepFill_CompatibleWires::
// extremity of the first wire // extremity of the first wire
V1 = TopoDS::Vertex(SeqV.Value(1)); V1 = TopoDS::Vertex(SeqV.Value(1));
// previous wire
#ifdef DEB
const TopoDS_Wire& wire2 =
#endif
TopoDS::Wire(myWork(i-1));
// loop on vertices of wire1 // loop on vertices of wire1
for (ii=1;ii<=SeqV.Length();ii++) { for (ii=1;ii<=SeqV.Length();ii++) {

View File

@ -533,9 +533,8 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
Handle(Geom_Curve) G3d = BRep_Tool::Curve(TopoDS::Edge(anE),f,l); Handle(Geom_Curve) G3d = BRep_Tool::Curve(TopoDS::Edge(anE),f,l);
GeomAdaptor_Curve AC(G3d,f,l); GeomAdaptor_Curve AC(G3d,f,l);
Standard_Boolean dummy = PerformCurve(Parameters, Points, PerformCurve(Parameters, Points, AC, aDefl, f,
AC, aDefl, f, l, Precision::Confusion(), l, Precision::Confusion(), 2);
2);
Standard_Integer NPnts = Points.Length(); Standard_Integer NPnts = Points.Length();
if(NPnts > 2) { if(NPnts > 2) {

View File

@ -851,7 +851,6 @@ Standard_Boolean SplitUEdges(const Handle(TopTools_HArray2OfShape)& theUEdge
const BOPDS_PDS& theDS, const BOPDS_PDS& theDS,
TopTools_DataMapOfShapeListOfShape& theHistMap) { TopTools_DataMapOfShapeListOfShape& theHistMap) {
const BOPDS_VectorOfInterfVE& aVEs = theDS->InterfVE();
const BOPDS_VectorOfInterfVV& aVVs = theDS->InterfVV(); const BOPDS_VectorOfInterfVV& aVVs = theDS->InterfVV();
BRep_Builder aBB; BRep_Builder aBB;

View File

@ -210,7 +210,7 @@ void BRepLib_FindSurface::Init(const TopoDS_Shape& S,
Standard_Integer i = 0,j; Standard_Integer i = 0,j;
// iterate on the surfaces of the first edge // iterate on the surfaces of the first edge
while ( Standard_True) { for(;;) {
i++; i++;
BRep_Tool::CurveOnSurface(E,PC,mySurface,myLocation,f,l,i); BRep_Tool::CurveOnSurface(E,PC,mySurface,myLocation,f,l,i);
if (mySurface.IsNull()) { if (mySurface.IsNull()) {
@ -220,7 +220,7 @@ void BRepLib_FindSurface::Init(const TopoDS_Shape& S,
for (ex.Init(S,TopAbs_EDGE); ex.More(); ex.Next()) { for (ex.Init(S,TopAbs_EDGE); ex.More(); ex.Next()) {
if (!E.IsSame(ex.Current())) { if (!E.IsSame(ex.Current())) {
j = 0; j = 0;
while (Standard_True) { for(;;) {
j++; j++;
BRep_Tool::CurveOnSurface(TopoDS::Edge(ex.Current()), BRep_Tool::CurveOnSurface(TopoDS::Edge(ex.Current()),
PPC,SS,L,ff,ll,j); PPC,SS,L,ff,ll,j);

View File

@ -761,7 +761,6 @@ void BRepMesh_Delaun::RemovePivotTriangles( const Standard_Integer theEdgeInfo,
GetTriangle( anElemId ).Edges( e[0], e[1], e[2], GetTriangle( anElemId ).Edges( e[0], e[1], e[2],
o[0], o[1], o[2] ); o[0], o[1], o[2] );
Standard_Boolean isFind = Standard_False;
for ( Standard_Integer anIndex = 0; anIndex < 3; ++anIndex ) for ( Standard_Integer anIndex = 0; anIndex < 3; ++anIndex )
{ {
if ( e[anIndex] == anMainEdgeId && o[anIndex] == anIsForward ) if ( e[anIndex] == anMainEdgeId && o[anIndex] == anIsForward )
@ -1128,7 +1127,6 @@ void BRepMesh_Delaun::MeshLeftPolygonOf( const Standard_Integer theEdgeIndex,
return; return;
Standard_Integer aDeadEdgeId = Abs( aPolygon.Last() ); Standard_Integer aDeadEdgeId = Abs( aPolygon.Last() );
const BRepMesh_Edge& aDeadEdge = GetEdge( aDeadEdgeId );
aDealLinks.Add( aDeadEdgeId ); aDealLinks.Add( aDeadEdgeId );

View File

@ -169,7 +169,7 @@ const BRepMesh_ListOfInteger& BRepMesh_VertexTool::GetListOfDelNodes() const
//======================================================================= //=======================================================================
Standard_Integer BRepMesh_VertexTool::FindIndex(const BRepMesh_Vertex& theVertex) Standard_Integer BRepMesh_VertexTool::FindIndex(const BRepMesh_Vertex& theVertex)
{ {
mySelector.SetCurrent(theVertex.Coord()); mySelector.SetCurrent(theVertex.Coord(), Standard_False);
myCellFilter.Inspect (theVertex.Coord(), mySelector); myCellFilter.Inspect (theVertex.Coord(), mySelector);
return mySelector.GetCoincidentInd(); return mySelector.GetCoincidentInd();
} }

View File

@ -149,16 +149,10 @@
static void DEBVerticesControl (const TopTools_IndexedMapOfShape& NewEdges, static void DEBVerticesControl (const TopTools_IndexedMapOfShape& NewEdges,
Handle(BRepAlgo_AsDes) AsDes) Handle(BRepAlgo_AsDes) AsDes)
{ {
Standard_Integer NVP = 0;
Standard_Integer NVM = 0;
Standard_Integer NVN = 0;
TopTools_ListOfShape LVP; TopTools_ListOfShape LVP;
//TopTools_MapIteratorOfMapOfShape it;
TopTools_ListIteratorOfListOfShape it1LE ; TopTools_ListIteratorOfListOfShape it1LE ;
TopTools_ListIteratorOfListOfShape it2LE ; TopTools_ListIteratorOfListOfShape it2LE ;
//for (it.Initialize(NewEdges) ; it.More(); it.Next()) {
Standard_Integer i; Standard_Integer i;
for (i = 1; i <= NewEdges.Extent(); i++) { for (i = 1; i <= NewEdges.Extent(); i++) {
const TopoDS_Edge& NE = TopoDS::Edge(NewEdges(i)); const TopoDS_Edge& NE = TopoDS::Edge(NewEdges(i));

View File

@ -1313,7 +1313,6 @@ void BRepOffset_Offset::Init(const TopoDS_Vertex& Vertex,
#endif #endif
Standard_Integer NbEdges = 1; Standard_Integer NbEdges = 1;
for (it.Initialize(LEdge); it.More(); it.Next()) { for (it.Initialize(LEdge); it.More(); it.Next()) {
const TopoDS_Edge& CurE = TopoDS::Edge(it.Value());
sprintf(name,"EOnSph_%d_%d",NbOFFSET,NbEdges++); sprintf(name,"EOnSph_%d_%d",NbOFFSET,NbEdges++);
#ifdef DRAW #ifdef DRAW
DBRep::Set(name, CurE); DBRep::Set(name, CurE);

View File

@ -531,8 +531,6 @@ void BRepOffsetAPI_MiddlePath::Build()
E2 = TopoDS::Edge(myPaths((j<=NbPaths)? j : 1)(i)); E2 = TopoDS::Edge(myPaths((j<=NbPaths)? j : 1)(i));
TopoDS_Edge E12 = TopoDS::Edge(SectionsEdges(i)(j-1)); TopoDS_Edge E12 = TopoDS::Edge(SectionsEdges(i)(j-1));
//TopoDS_Vertex PrevVertex = TopoDS::Vertex(VerSeq(j-1));
//TopoDS_Vertex CurVertex = TopoDS::Vertex(VerSeq(j));
TopoDS_Vertex PrevVertex = (E1.IsNull())? TopoDS::Vertex(myPaths(j-1)(i)) TopoDS_Vertex PrevVertex = (E1.IsNull())? TopoDS::Vertex(myPaths(j-1)(i))
: TopExp::LastVertex(E1, Standard_True); : TopExp::LastVertex(E1, Standard_True);
TopoDS_Vertex CurVertex = (E2.IsNull())? TopoDS::Vertex(myPaths((j<=NbPaths)? j : 1)(i)) TopoDS_Vertex CurVertex = (E2.IsNull())? TopoDS::Vertex(myPaths((j<=NbPaths)? j : 1)(i))
@ -540,9 +538,7 @@ void BRepOffsetAPI_MiddlePath::Build()
TopoDS_Edge ProperEdge; TopoDS_Edge ProperEdge;
const TopTools_ListOfShape& LE = VEmap.FindFromKey(PrevVertex); const TopTools_ListOfShape& LE = VEmap.FindFromKey(PrevVertex);
//Temporary
Standard_Integer LenList = LE.Extent();
///////////
for (itl.Initialize(LE); itl.More(); itl.Next()) for (itl.Initialize(LE); itl.More(); itl.Next())
{ {
anEdge = TopoDS::Edge(itl.Value()); anEdge = TopoDS::Edge(itl.Value());
@ -673,7 +669,6 @@ void BRepOffsetAPI_MiddlePath::Build()
BRepLib::BuildCurve3d(NewEdge2); BRepLib::BuildCurve3d(NewEdge2);
Standard_Boolean good_ne = IsValidEdge(NewEdge, theFace); Standard_Boolean good_ne = IsValidEdge(NewEdge, theFace);
Standard_Boolean good_ne1 = IsValidEdge(NewEdge1, theFace); Standard_Boolean good_ne1 = IsValidEdge(NewEdge1, theFace);
Standard_Boolean good_ne2 = IsValidEdge(NewEdge2, theFace);
GeomAbs_CurveType type_E1 = TypeOfEdge(E1); GeomAbs_CurveType type_E1 = TypeOfEdge(E1);
GeomAbs_CurveType type_E2 = TypeOfEdge(E2); GeomAbs_CurveType type_E2 = TypeOfEdge(E2);

View File

@ -444,24 +444,6 @@ static Standard_Integer continuity (Draw_Interpretor& ,
aFind.Perform(); aFind.Perform();
aFind.Dump(); aFind.Dump();
for (i=1; i<=aFind.NbContigousEdges(); i++) {
#ifdef DEB
const TopoDS_Edge& edge =
#endif
aFind.ContigousEdge(i);
const TopTools_ListOfShape& list = aFind.ContigousEdgeCouple(i);
const TopoDS_Edge& sec1 = TopoDS::Edge(list.First());
const TopoDS_Edge& sec2 = TopoDS::Edge(list.Last());
#ifdef DEB
const TopoDS_Edge& bound1 =
#endif
aFind.SectionToBoundary(sec1);
#ifdef DEB
const TopoDS_Edge& bound2 =
#endif
aFind.SectionToBoundary(sec2);
}
return 0; return 0;
} }

View File

@ -485,7 +485,7 @@ static void Touched(const BRepOffset_Analyse& Analyse,
TopTools_MapOfShape& TouchedByCork) TopTools_MapOfShape& TouchedByCork)
{ {
// currently nothing is done !! // currently nothing is done !!
if ( Standard_True) { /*if ( Standard_True) {
return; return;
} }
else { else {
@ -497,7 +497,8 @@ static void Touched(const BRepOffset_Analyse& Analyse,
else if (StopFaces.Contains(L.Last())) else if (StopFaces.Contains(L.Last()))
TouchedByCork.Add(L.First()); TouchedByCork.Add(L.First());
} }
} }*/
return;
} }
//======================================================================= //=======================================================================

View File

@ -153,8 +153,6 @@ static void TreatInfinitePlane(const gp_Pln &aPlane,
{ {
// Get 3 coordinate axes of the plane. // Get 3 coordinate axes of the plane.
const gp_Dir &aNorm = aPlane.Axis().Direction(); const gp_Dir &aNorm = aPlane.Axis().Direction();
const gp_Dir &aXDir = aPlane.XAxis().Direction();
const gp_Dir &aYDir = aPlane.YAxis().Direction();
const Standard_Real anAngularTol = RealEpsilon(); const Standard_Real anAngularTol = RealEpsilon();
// Get location of the plane as its barycenter // Get location of the plane as its barycenter

View File

@ -3301,7 +3301,7 @@ Standard_Boolean ChFi3d_ComputeCurves(Handle(Adaptor3d_HSurface)& S1,
// At this stage : // At this stage :
// classic intersections have failed, the path is approached in vain. // classic intersections have failed, the path is approached in vain.
// Standard_Real Step = 0.1; // Standard_Real Step = 0.1;
while(1) { for(;;) {
//Attention the parameters of arrow for the path and //Attention the parameters of arrow for the path and
//the tolerance for the approximation can't be taken as those of the //the tolerance for the approximation can't be taken as those of the
//Builder, so they are reestimated as much as possible. //Builder, so they are reestimated as much as possible.

View File

@ -851,7 +851,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
Standard_Real aDelta = VLast - VFirst; Standard_Real aDelta = VLast - VFirst;
Standard_Integer aDenom = 2; Standard_Integer aDenom = 2;
while (Standard_True) { for(;;) {
Standard_Real aDeltav = aDelta/aDenom; Standard_Real aDeltav = aDelta/aDenom;
Standard_Real aParam = VFirst + aDeltav; Standard_Real aParam = VFirst + aDeltav;
gp_Pnt2d PUV = PCurveOnFace->Value(aParam); gp_Pnt2d PUV = PCurveOnFace->Value(aParam);

View File

@ -960,7 +960,6 @@ static Standard_Integer DDataStd_GetExtStringArray (Draw_Interpretor& di,
} }
for(Standard_Integer i = A->Lower(); i<=A->Upper(); i++){ for(Standard_Integer i = A->Lower(); i<=A->Upper(); i++){
const TCollection_ExtendedString& anExtendedString = A->Value(i);
TCollection_AsciiString anAsciiString(A->Value(i),'?'); TCollection_AsciiString anAsciiString(A->Value(i),'?');
di << anAsciiString.ToCString(); di << anAsciiString.ToCString();
if(i<A->Upper()) if(i<A->Upper())
@ -1188,7 +1187,6 @@ static Standard_Integer DDataStd_SetBooleanArray (Draw_Interpretor& di,
TDF_Label label; TDF_Label label;
DDF::AddLabel(DF, arg[2], label); DDF::AddLabel(DF, arg[2], label);
Standard_Integer isDelta = Draw::Atoi(arg[3]);
Standard_Integer From = Draw::Atoi(arg[4]), To = Draw::Atoi( arg[5] ), j; Standard_Integer From = Draw::Atoi(arg[4]), To = Draw::Atoi( arg[5] ), j;
di << "Array of Standard_Boolean with bounds from = " << From << " to = " << To << "\n"; di << "Array of Standard_Boolean with bounds from = " << From << " to = " << To << "\n";
Handle(TDataStd_BooleanArray) A = TDataStd_BooleanArray::Set(label, From, To); Handle(TDataStd_BooleanArray) A = TDataStd_BooleanArray::Set(label, From, To);

View File

@ -98,10 +98,6 @@ static void Sample()
realarray->SetValue(j, M_PI * j); realarray->SetValue(j, M_PI * j);
} }
// Getting length of array
Standard_Integer length = realarray->Length();
// Retrieving value by index // Retrieving value by index
Standard_Real value = realarray->Value(3); Standard_Real value = realarray->Value(3);
@ -346,7 +342,6 @@ static void Sample()
Handle(TDataStd_Real) valOfdistance = constraint->GetValue(); Handle(TDataStd_Real) valOfdistance = constraint->GetValue();
Standard_Real distance = valOfdistance->Get();
} }
// Setting PARALLEL constraint between NS1 and NS2 // Setting PARALLEL constraint between NS1 and NS2

View File

@ -351,7 +351,6 @@ Standard_Boolean DNaming_BooleanOperationDriver::CheckAndLoad
if(!aCheck.IsValid(theMkOpe.Shape())) if(!aCheck.IsValid(theMkOpe.Shape()))
aResIsValid = FixSameParameter(theMkOpe.Shape(), aCheck); aResIsValid = FixSameParameter(theMkOpe.Shape(), aCheck);
if (aResIsValid) { if (aResIsValid) {
const TDF_Label& aResultLabel = RESPOSITION(theFunction);
if(theFunction->GetDriverGUID() == FUSE_GUID) { if(theFunction->GetDriverGUID() == FUSE_GUID) {
LoadNamingDS(RESPOSITION(theFunction), theMkOpe); LoadNamingDS(RESPOSITION(theFunction), theMkOpe);
} }

View File

@ -179,12 +179,6 @@ static void Sample()
//Presentation of the attribute is erased //Presentation of the attribute is erased
//from viewer and removed from AIS_InteractiveContext //from viewer and removed from AIS_InteractiveContext
//Checking if attribute is displayed in viewer
if( ShapeLabel.FindAttribute(TPrsStd_AISPresentation::GetID(), PRS) )
Standard_Boolean isDisplayed = PRS->IsDisplayed();
Handle(TPrsStd_AISPresentation) P; Handle(TPrsStd_AISPresentation) P;
if( ShapeLabel.FindAttribute(TPrsStd_AISPresentation::GetID(), P) ) { if( ShapeLabel.FindAttribute(TPrsStd_AISPresentation::GetID(), P) ) {

View File

@ -405,7 +405,7 @@ static Standard_Integer Draw_wait(Draw_Interpretor& , Standard_Integer n, const
static unsigned int __stdcall CpuFunc (void * param) static unsigned int __stdcall CpuFunc (void * param)
{ {
clock_t aCurrent; clock_t aCurrent;
while (1) for(;;)
{ {
Sleep (5); Sleep (5);
Standard_Real anUserSeconds, aSystemSeconds; Standard_Real anUserSeconds, aSystemSeconds;

View File

@ -1110,7 +1110,7 @@ static Standard_Real ParseFactor(char*& name)
{ {
Standard_Real x = ParseValue(name); Standard_Real x = ParseValue(name);
while (1) { for(;;) {
char c = *name; char c = *name;
if (c == '\0') return x; if (c == '\0') return x;
name++; name++;
@ -1136,7 +1136,7 @@ static Standard_Real Parse(char*& name)
{ {
Standard_Real x = ParseFactor(name); Standard_Real x = ParseFactor(name);
while (1) { for(;;) {
char c = *name; char c = *name;
if (c == '\0') return x; if (c == '\0') return x;
name++; name++;

View File

@ -1725,7 +1725,6 @@ void DrawWindow::Clear()
HDC hDC = GetDC(win); HDC hDC = GetDC(win);
HDC aWorkDC = myUseBuffer ? GetMemDC(hDC) : hDC; HDC aWorkDC = myUseBuffer ? GetMemDC(hDC) : hDC;
int debug = GetROP2(aWorkDC);
SaveDC(aWorkDC); SaveDC(aWorkDC);
SelectObject(aWorkDC,GetStockObject(BLACK_PEN)); SelectObject(aWorkDC,GetStockObject(BLACK_PEN));
Rectangle(aWorkDC, 0, 0, WidthWin(), HeightWin()); Rectangle(aWorkDC, 0, 0, WidthWin(), HeightWin());
@ -2048,7 +2047,7 @@ static DWORD WINAPI readStdinThreadFunc(VOID)
{ {
if (!Draw_IsConsoleSubsystem) return 1; if (!Draw_IsConsoleSubsystem) return 1;
while (1) { for(;;) {
while (console_semaphore != WAIT_CONSOLE_COMMAND) while (console_semaphore != WAIT_CONSOLE_COMMAND)
Sleep(100); Sleep(100);
//if (gets(console_command)) //if (gets(console_command))

View File

@ -41,7 +41,6 @@ Extrema_FuncExtPS::Extrema_FuncExtPS (const gp_Pnt& P,
{ {
myP = P; myP = P;
myS = (Adaptor3d_SurfacePtr)&S; myS = (Adaptor3d_SurfacePtr)&S;
GeomAbs_SurfaceType aSType = S.GetType();
myPinit = Standard_True; myPinit = Standard_True;
mySinit = Standard_True; mySinit = Standard_True;
} }
@ -50,7 +49,6 @@ Extrema_FuncExtPS::Extrema_FuncExtPS (const gp_Pnt& P,
void Extrema_FuncExtPS::Initialize(const Adaptor3d_Surface& S) void Extrema_FuncExtPS::Initialize(const Adaptor3d_Surface& S)
{ {
myS = (Adaptor3d_SurfacePtr)&S; myS = (Adaptor3d_SurfacePtr)&S;
GeomAbs_SurfaceType aSType = S.GetType();
mySinit = Standard_True; mySinit = Standard_True;
myPoint.Clear(); myPoint.Clear();
mySqDist.Clear(); mySqDist.Clear();

View File

@ -496,7 +496,6 @@ void Extrema_GenExtPS::GetGridPoints( const Adaptor3d_Surface& theSurf)
{ {
Handle(TColStd_HArray1OfReal) anArrKnots; Handle(TColStd_HArray1OfReal) anArrKnots;
Standard_Integer aDegree = 0; Standard_Integer aDegree = 0;
GeomAbs_CurveType aType = theSurf.BasisCurve()->Curve().GetType();
if(theSurf.BasisCurve()->Curve().GetType() == GeomAbs_BSplineCurve) if(theSurf.BasisCurve()->Curve().GetType() == GeomAbs_BSplineCurve)
{ {
Handle(Geom_BSplineCurve) aBspl = theSurf.BasisCurve()->Curve().BSpline(); Handle(Geom_BSplineCurve) aBspl = theSurf.BasisCurve()->Curve().BSpline();
@ -810,14 +809,10 @@ void Extrema_GenExtPS::FindSolution(const gp_Pnt& P,
math_Vector errors(1,2); math_Vector errors(1,2);
math_Vector root(1, 2); math_Vector root(1, 2);
Standard_Real eps = 1.e-9;
Standard_Integer nbsubsample = 11;
Standard_Integer aNbMaxIter = 100; Standard_Integer aNbMaxIter = 100;
gp_Pnt PStart = theParams.Value(); gp_Pnt PStart = theParams.Value();
Standard_Real DistStart = theParams.GetSqrDistance();
Standard_Real DistSol = DistStart;
math_FunctionSetRoot S (myF,UV,Tol,UVinf,UVsup, aNbMaxIter); math_FunctionSetRoot S (myF,UV,Tol,UVinf,UVsup, aNbMaxIter);
@ -962,7 +957,7 @@ void Extrema_GenExtPS::Perform(const gp_Pnt& P)
Bnd_SphereUBTreeSelectorMin aSelector(mySphereArray, aSol); Bnd_SphereUBTreeSelectorMin aSelector(mySphereArray, aSol);
//aSelector.SetMaxDist( RealLast() ); //aSelector.SetMaxDist( RealLast() );
aSelector.DefineCheckPoint( P ); aSelector.DefineCheckPoint( P );
Standard_Integer aNbSel = mySphereUBTree->Select( aSelector ); mySphereUBTree->Select( aSelector );
//TODO: check if no solution in binary tree //TODO: check if no solution in binary tree
Bnd_Sphere& aSph = aSelector.Sphere(); Bnd_Sphere& aSph = aSelector.Sphere();
Standard_Real aU = myUParams->Value(aSph.U()); Standard_Real aU = myUParams->Value(aSph.U());
@ -979,13 +974,12 @@ void Extrema_GenExtPS::Perform(const gp_Pnt& P)
Bnd_SphereUBTreeSelectorMax aSelector(mySphereArray, aSol); Bnd_SphereUBTreeSelectorMax aSelector(mySphereArray, aSol);
//aSelector.SetMaxDist( RealLast() ); //aSelector.SetMaxDist( RealLast() );
aSelector.DefineCheckPoint( P ); aSelector.DefineCheckPoint( P );
Standard_Integer aNbSel = mySphereUBTree->Select( aSelector ); mySphereUBTree->Select( aSelector );
//TODO: check if no solution in binary tree //TODO: check if no solution in binary tree
Bnd_Sphere& aSph = aSelector.Sphere(); Bnd_Sphere& aSph = aSelector.Sphere();
Standard_Real aU = myUParams->Value(aSph.U()); Standard_Real aU = myUParams->Value(aSph.U());
Standard_Real aV = myVParams->Value(aSph.V()); Standard_Real aV = myVParams->Value(aSph.V());
Extrema_POnSurfParams aParams(aU, aV, myS->Value(aU, aV)); Extrema_POnSurfParams aParams(aU, aV, myS->Value(aU, aV));
aParams.SetSqrDistance(P.SquareDistance(aParams.Value())); aParams.SetSqrDistance(P.SquareDistance(aParams.Value()));
aParams.SetIndices(aSph.U(), aSph.V()); aParams.SetIndices(aSph.U(), aSph.V());

View File

@ -392,7 +392,7 @@ void FSD_CmpFile::ReadString(TCollection_AsciiString& buffer)
void FSD_CmpFile::ReadWord(TCollection_AsciiString& buffer) void FSD_CmpFile::ReadWord(TCollection_AsciiString& buffer)
{ {
char c; char c = '\0';
char b[8193],*tmpb; char b[8193],*tmpb;
Standard_Boolean IsEnd = Standard_False; Standard_Boolean IsEnd = Standard_False;
Standard_Integer i; Standard_Integer i;
@ -1394,5 +1394,4 @@ Storage_Position FSD_CmpFile::Tell()
} }
default: return -1; default: return -1;
} }
return -1;
} }

View File

@ -326,7 +326,7 @@ void FSD_File::ReadString(TCollection_AsciiString& buffer)
void FSD_File::ReadWord(TCollection_AsciiString& buffer) void FSD_File::ReadWord(TCollection_AsciiString& buffer)
{ {
char c; char c = '\0';
char b[8193],*tmpb; char b[8193],*tmpb;
Standard_Boolean IsEnd = Standard_False; Standard_Boolean IsEnd = Standard_False;
Standard_Integer i; Standard_Integer i;
@ -1368,5 +1368,4 @@ Storage_Position FSD_File::Tell()
} }
default: return -1; default: return -1;
} }
return -1;
} }

View File

@ -94,7 +94,6 @@ Standard_Boolean FWOSDriver_Driver::HasReadPermission(const TCollection_Extended
default: default:
return Standard_False; return Standard_False;
} }
return Standard_False;
} }
//============================================================================== //==============================================================================

View File

@ -528,8 +528,6 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
Handle(Geom_TrimmedCurve) curvTrim; Handle(Geom_TrimmedCurve) curvTrim;
Handle(Geom_BSplineCurve) curvBS, curvBS1; Handle(Geom_BSplineCurve) curvBS, curvBS1;
Handle(Geom_Curve) curv = mySections(1); Handle(Geom_Curve) curv = mySections(1);
Standard_Real first = curv->FirstParameter(),
last = curv->LastParameter();
for (j=jdeb; j<=jfin; j++) { for (j=jdeb; j<=jfin; j++) {

View File

@ -847,7 +847,6 @@ static void ComputeDeviation(const Handle(Geom_Curve)& theCurve,
theUfMax = 0.; theUfMax = 0.;
theUlMax = 0.; theUlMax = 0.;
theImax = 0; theImax = 0;
Standard_Real ufmax = 0., ulmax = 0.;
//take knots //take knots
Standard_Integer nbp = thePnts->NbKnots(); Standard_Integer nbp = thePnts->NbKnots();

View File

@ -152,9 +152,7 @@ void HLRTopoBRep_OutLiner::ProcessFace(const TopoDS_Face& F,
B.Add(NF,W); // add the new wire in the new face. B.Add(NF,W); // add the new wire in the new face.
} }
//} //}
myDS.AddIntL(F);
TopTools_ListOfShape& IntL = myDS.AddIntL(F);
TopTools_ListOfShape& OutL = myDS.AddOutL(F); TopTools_ListOfShape& OutL = myDS.AddOutL(F);
if (myDS.FaceHasIntL(F)) { // get the InternalOutLines on face F if (myDS.FaceHasIntL(F)) { // get the InternalOutLines on face F

View File

@ -114,7 +114,7 @@ static int deja = 0;
// read mode : lire les lignes // read mode : lire les lignes
// On charge le fichier dans "thelist" // On charge le fichier dans "thelist"
Standard_Boolean header = Standard_False; Standard_Boolean header = Standard_False;
while (1) { for(;;) {
ligne[0] = '\0'; ligne[0] = '\0';
fgets(ligne,200,lefic); fgets(ligne,200,lefic);
if (feof(lefic)) break; if (feof(lefic)) break;

View File

@ -71,7 +71,7 @@ char* nomfic; int lesect[6]; int modefnes;
if (lefic == NULL) return -1; /* fichier pas pu etre ouvert */ if (lefic == NULL) return -1; /* fichier pas pu etre ouvert */
for (i = 1; i < 6; i++) lesect[i] = 0; for (i = 1; i < 6; i++) lesect[i] = 0;
for (j = 0; j < 100; j++) ligne[j] = 0; for (j = 0; j < 100; j++) ligne[j] = 0;
while (1) { for(;;) {
numl ++; numl ++;
i = iges_lire(lefic,&numsec,ligne,modefnes); i = iges_lire(lefic,&numsec,ligne,modefnes);
if (i <= 0) { if (i <= 0) {

View File

@ -566,7 +566,6 @@
default: default:
return(gp_Pnt(0.0,0.0,0.0)); return(gp_Pnt(0.0,0.0,0.0));
} }
return(gp_Pnt(0.0,0.0,0.0));
} }
// //

View File

@ -893,7 +893,7 @@ gp_Pnt DefineDU(const Handle(IntPatch_ALine)& aline,
gp_Pnt P1 = aline->Value(U), P2, P3; gp_Pnt P1 = aline->Value(U), P2, P3;
gp_Vec V13, V12, V23; gp_Vec V13, V12, V23;
Standard_Real dU = DU/2.0, curvDef, angDef, m1, m2, m3; Standard_Real dU = DU/2.0, curvDef, angDef, m1, m2, m3;
do{ //According to class TangentialDeflection from GCPnts for(;;) { //According to class TangentialDeflection from GCPnts
P2=aline->Value(U+dU); P3=aline->Value(U+DU); P2=aline->Value(U+dU); P3=aline->Value(U+DU);
V13 = P3.XYZ().Subtracted(P1.XYZ()); m1 = V13.Magnitude(); V13 = P3.XYZ().Subtracted(P1.XYZ()); m1 = V13.Magnitude();
V12 = P2.XYZ().Subtracted(P1.XYZ()); m2 = V12.Magnitude(); V12 = P2.XYZ().Subtracted(P1.XYZ()); m2 = V12.Magnitude();
@ -903,7 +903,7 @@ gp_Pnt DefineDU(const Handle(IntPatch_ALine)& aline,
angDef = Abs(V13.Angle(V23)); angDef = Abs(V13.Angle(V23));
if(curvDef < CurvDef && angDef < AngDef) break; if(curvDef < CurvDef && angDef < AngDef) break;
DU = dU; dU /= 2.0; DU = dU; dU /= 2.0;
}while(1); }
return P3; return P3;
} }
//======================================================================= //=======================================================================

View File

@ -149,7 +149,6 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)&
done = Standard_True; done = Standard_True;
SLin.Clear(); SLin.Clear();
Standard_Real Deflection2 = Deflection*Deflection;
Standard_Integer nbLigSec = Interference.NbSectionLines(); Standard_Integer nbLigSec = Interference.NbSectionLines();
Standard_Integer nbTanZon = Interference.NbTangentZones(); Standard_Integer nbTanZon = Interference.NbTangentZones();
@ -1327,11 +1326,9 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)&
if(V2<VminLig2) VminLig2=V2; if(V2<VminLig2) VminLig2=V2;
} }
Standard_Real Deflection2 = Deflection*Deflection;
Standard_Real SeuildPointLigne = 15.0 * Increment * Increment; Standard_Real SeuildPointLigne = 15.0 * Increment * Increment;
Standard_Integer NbPntOn2SOnLine = 0, NbLigCalculee = 0, ver; Standard_Integer NbLigCalculee = 0, ver;
Standard_Real pu1,pu2,pv1,pv2, dminiPointLigne; Standard_Real pu1,pu2,pv1,pv2, dminiPointLigne;
Standard_Boolean HasStartPoint,RejetLigne; Standard_Boolean HasStartPoint,RejetLigne;
IntSurf_PntOn2S StartPOn2S; IntSurf_PntOn2S StartPOn2S;
@ -1896,12 +1893,11 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)& Sur
return; return;
} }
Standard_Real Deflection2 = Deflection*Deflection;
Standard_Integer nbLigSec = Interference.NbSectionLines(); Standard_Integer nbLigSec = Interference.NbSectionLines();
Standard_Integer nbTanZon = Interference.NbTangentZones(); Standard_Integer nbTanZon = Interference.NbTangentZones();
Standard_Real SeuildPointLigne = 15.0 * Increment * Increment; Standard_Real SeuildPointLigne = 15.0 * Increment * Increment;
Standard_Integer NbPntOn2SOnLine = 0, NbLigCalculee = 0, ver; Standard_Integer NbLigCalculee = 0, ver;
Standard_Real U1,U2,V1,V2, pu1,pu2,pv1,pv2, incidence, dminiPointLigne; Standard_Real U1,U2,V1,V2, pu1,pu2,pv1,pv2, incidence, dminiPointLigne;
Standard_Boolean HasStartPoint,RejetLigne; Standard_Boolean HasStartPoint,RejetLigne;
IntSurf_PntOn2S StartPOn2S; IntSurf_PntOn2S StartPOn2S;
@ -2489,7 +2485,6 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)& Sur
empt = Standard_True; empt = Standard_True;
done = Standard_True; done = Standard_True;
SLin.Clear(); SLin.Clear();
Standard_Real Deflection2 = Deflection*Deflection;
Standard_Integer NbLigCalculee = 0; Standard_Integer NbLigCalculee = 0;
Standard_Real U1,U2,V1,V2; Standard_Real U1,U2,V1,V2;

View File

@ -208,7 +208,6 @@ void IntPolyh_MaillageAffinage::FillArrayOfPnt
Standard_Real u0, u1, v0, v1, aU, aV, dU, dV; Standard_Real u0, u1, v0, v1, aU, aV, dU, dV;
// //
const Handle(Adaptor3d_HSurface&) MaSurface=(SurfID==1)? MaSurface1 : MaSurface2; const Handle(Adaptor3d_HSurface&) MaSurface=(SurfID==1)? MaSurface1 : MaSurface2;
IntPolyh_ArrayOfPoints &TPoints=(SurfID==1)? TPoints1:TPoints2;
NbSamplesU=(SurfID==1)? NbSamplesU1:NbSamplesU2; NbSamplesU=(SurfID==1)? NbSamplesU1:NbSamplesU2;
NbSamplesV=(SurfID==1)? NbSamplesV1:NbSamplesV2; NbSamplesV=(SurfID==1)? NbSamplesV1:NbSamplesV2;
// //
@ -260,7 +259,6 @@ void IntPolyh_MaillageAffinage::FillArrayOfPnt
Standard_Integer NbSamplesU, NbSamplesV, i, aNbSamplesU1, aNbSamplesV1; Standard_Integer NbSamplesU, NbSamplesV, i, aNbSamplesU1, aNbSamplesV1;
Standard_Real u0, u1, v0, v1, aU, aV, dU, dV; Standard_Real u0, u1, v0, v1, aU, aV, dU, dV;
const Handle(Adaptor3d_HSurface)& MaSurface=(SurfID==1)? MaSurface1 : MaSurface2; const Handle(Adaptor3d_HSurface)& MaSurface=(SurfID==1)? MaSurface1 : MaSurface2;
IntPolyh_ArrayOfPoints &TPoints=(SurfID==1)? TPoints1:TPoints2;
NbSamplesU=(SurfID==1)? NbSamplesU1:NbSamplesU2; NbSamplesU=(SurfID==1)? NbSamplesU1:NbSamplesU2;
NbSamplesV=(SurfID==1)? NbSamplesV1:NbSamplesV2; NbSamplesV=(SurfID==1)? NbSamplesV1:NbSamplesV2;

View File

@ -1305,7 +1305,7 @@ Standard_Integer FindMaxDistPC(const Standard_Real aT1A,
return iErr; return iErr;
} }
// //
while(1) { for(;;) {
if (aYP>aYL) { if (aYP>aYL) {
aA=aXL; aA=aXL;
aXL=aXP; aXL=aXP;

View File

@ -898,7 +898,6 @@ Standard_Integer IntTools_BeanFaceIntersector::FastComputeExactIntersection()
aTolang2=1.e-16; aTolang2=1.e-16;
aLin=myCurve.Line(); aLin=myCurve.Line();
const gp_Dir& aDirL=aLin.Direction(); const gp_Dir& aDirL=aLin.Direction();
const gp_Pnt& aLocL=aLin.Location();
// //
aCos=aDirC.Dot(aDirL); aCos=aDirC.Dot(aDirL);
if(aCos >= 0.) { if(aCos >= 0.) {

View File

@ -585,7 +585,7 @@ IntTools_EdgeEdge::IntTools_EdgeEdge()
Standard_Integer step = 1, stepcheck = 1000, steplimit = 100000; Standard_Integer step = 1, stepcheck = 1000, steplimit = 100000;
Standard_Real value = (IP==1) ? DistanceFunction(0.5*(a+b)) : DerivativeFunction(0.5*(a+b)); Standard_Real value = (IP==1) ? DistanceFunction(0.5*(a+b)) : DerivativeFunction(0.5*(a+b));
while (1) { for(;;) {
x0=.5*(a+b); x0=.5*(a+b);
if (IP==1) if (IP==1)

View File

@ -323,7 +323,7 @@ void IntTools_ComparatorCurve::GetCurveBase(const Handle(Geom_Curve)& aC3D,
return; return;
} }
// //
while(1) { for(;;) {
iTrimmed=0; iTrimmed=0;
iOffset=0; iOffset=0;
aCT3D=Handle(Geom_TrimmedCurve)::DownCast(aC3DB); aCT3D=Handle(Geom_TrimmedCurve)::DownCast(aC3DB);
@ -795,7 +795,7 @@ void IntTools_DistCC::FindMaxLocal(const Standard_Real aT11,
return; return;
} }
// //
while(1) { for(;;) {
if (fabs(aA-aB)<aEps) { if (fabs(aA-aB)<aEps) {
aX=0.5*(aA+aB); aX=0.5*(aA+aB);
aF=Distance(aX); aF=Distance(aX);

View File

@ -391,7 +391,7 @@ void IntTools_EdgeFace::CheckData()
anIsProj1=ff1; anIsProj1=ff1;
anIsProj2=ff2; anIsProj2=ff2;
while (1) { for(;;) {
if (fabs(t1-t2) < aEpsT) { if (fabs(t1-t2) < aEpsT) {
tRoot=(anIsProj1) ? t1 : t2; tRoot=(anIsProj1) ? t1 : t2;
return; return;
@ -781,7 +781,7 @@ void IntTools_EdgeFace::CheckData()
a=tA; b=tB; r=fA; a=tA; b=tB; r=fA;
while (1) { for(;;) {
x0=.5*(a+b); x0=.5*(a+b);
if (IP==1) if (IP==1)
@ -825,7 +825,7 @@ void IntTools_EdgeFace::CheckData()
yl=coeff*DistanceFunction(xl); yl=coeff*DistanceFunction(xl);
while (1) { for(;;) {
if (fabs(b-a) < myEpsT) { if (fabs(b-a) < myEpsT) {
return .5*(b+a); return .5*(b+a);

View File

@ -592,7 +592,7 @@ IntTools_FClass2d::IntTools_FClass2d()
}//if (IsVPer) { }//if (IsVPer) {
} }
while (1) { for(;;) {
dedans = 1; dedans = 1;
gp_Pnt2d Puv(u,v); gp_Pnt2d Puv(u,v);

View File

@ -4835,7 +4835,7 @@ Standard_Real FindMaxSquareDistance (const Standard_Real aT1,
aF2=MaxSquareDistance(aX2, aF2=MaxSquareDistance(aX2,
aC3D, aC2D1, aC2D2, myHS1, myHS2, myFace1, myFace2, myContext); aC3D, aC2D1, aC2D2, myHS1, myHS2, myFace1, myFace2, myContext);
// //
while(1) { for(;;) {
// //
if (fabs(aA-aB)<aEps) { if (fabs(aA-aB)<aEps) {
aX=0.5*(aA+aB); aX=0.5*(aA+aB);

View File

@ -166,7 +166,7 @@ Standard_Boolean LDOMParser::ParseDocument ()
Standard_Boolean isHeader = Standard_False; Standard_Boolean isHeader = Standard_False;
Standard_Boolean isDoctype = Standard_False; Standard_Boolean isDoctype = Standard_False;
while (1) { for(;;) {
LDOM_XmlReader::RecordType aType = ReadRecord (*myReader, myCurrentData); LDOM_XmlReader::RecordType aType = ReadRecord (*myReader, myCurrentData);
switch (aType) { switch (aType) {
case LDOM_XmlReader::XML_HEADER: case LDOM_XmlReader::XML_HEADER:
@ -246,7 +246,7 @@ Standard_Boolean LDOMParser::ParseElement ()
Standard_Boolean isError = Standard_False; Standard_Boolean isError = Standard_False;
const LDOM_BasicElement * aParent = &myReader->GetElement(); const LDOM_BasicElement * aParent = &myReader->GetElement();
const LDOM_BasicNode * aLastChild = NULL; const LDOM_BasicNode * aLastChild = NULL;
while (1) { for(;;) {
LDOM_Node::NodeType aLocType; LDOM_Node::NodeType aLocType;
LDOMBasicString aTextValue; LDOMBasicString aTextValue;
char *aTextStr; char *aTextStr;

View File

@ -54,7 +54,7 @@ char * LDOM_CharReference::Decode (char * theSrc, Standard_Integer& theLen)
char * aSrcPtr = theSrc, * aDstPtr = theSrc; char * aSrcPtr = theSrc, * aDstPtr = theSrc;
Standard_Integer anIncrCount = 0; Standard_Integer anIncrCount = 0;
while (1) { for(;;) {
char * aPtr = strchr (aSrcPtr, '&'); char * aPtr = strchr (aSrcPtr, '&');
if (aPtr == NULL) { if (aPtr == NULL) {
// End of the loop // End of the loop
@ -152,7 +152,7 @@ char * LDOM_CharReference::Encode (const char* theSrc, Standard_Integer& theLen,
char * aDest = (char *) theSrc; char * aDest = (char *) theSrc;
Standard_Integer aCount = 0; Standard_Integer aCount = 0;
// Analyse if there is a non-standard character in the string // Analyse if there is a non-standard character in the string
while (1) { for(;;) {
const unsigned int iSrc = const unsigned int iSrc =
(const unsigned int) * (const unsigned char *) ptrSrc; (const unsigned int) * (const unsigned char *) ptrSrc;
if (iSrc == 0) { if (iSrc == 0) {

View File

@ -48,7 +48,7 @@ LDOMString LDOM_Element::getAttribute (const LDOMString& aName) const
if (myLastChild == NULL) { if (myLastChild == NULL) {
const LDOM_BasicNode * aNode = anElem.GetFirstChild(); const LDOM_BasicNode * aNode = anElem.GetFirstChild();
if (aNode && aNode -> getNodeType () != LDOM_Node::ATTRIBUTE_NODE) if (aNode && aNode -> getNodeType () != LDOM_Node::ATTRIBUTE_NODE)
while (1) { for(;;) {
const LDOM_BasicNode * aSibling = aNode -> GetSibling(); const LDOM_BasicNode * aSibling = aNode -> GetSibling();
if (aSibling == NULL) if (aSibling == NULL)
return LDOMString (); return LDOMString ();
@ -77,7 +77,7 @@ LDOM_Attr LDOM_Element::getAttributeNode (const LDOMString& aName) const
if (myLastChild == NULL) { if (myLastChild == NULL) {
const LDOM_BasicNode * aNode = anElem.GetFirstChild(); const LDOM_BasicNode * aNode = anElem.GetFirstChild();
if (aNode && aNode -> getNodeType () != LDOM_Node::ATTRIBUTE_NODE) if (aNode && aNode -> getNodeType () != LDOM_Node::ATTRIBUTE_NODE)
while (1) { for(;;) {
const LDOM_BasicNode * aSibling = aNode -> GetSibling(); const LDOM_BasicNode * aSibling = aNode -> GetSibling();
if (aSibling == NULL) if (aSibling == NULL)
return LDOM_Attr (); return LDOM_Attr ();

View File

@ -116,7 +116,7 @@ LDOM_XmlReader::RecordType LDOM_XmlReader::ReadRecord
LDOMBasicString anAttrName, anAttrValue; LDOMBasicString anAttrName, anAttrValue;
char anAttDelimiter = '\0'; char anAttDelimiter = '\0';
while (1) { for(;;) {
// Check if the current file buffer is exhausted // Check if the current file buffer is exhausted
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// There should always be some bytes available in the buffer for analysis // There should always be some bytes available in the buffer for analysis
@ -293,7 +293,7 @@ LDOM_XmlReader::RecordType LDOM_XmlReader::ReadRecord
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
case STATE_COMMENT: case STATE_COMMENT:
aPtr = aStartData; aPtr = aStartData;
while (1) { for(;;) {
aPtr = (const char *) memchr (aPtr, '-', (myEndPtr - 2) - aPtr); aPtr = (const char *) memchr (aPtr, '-', (myEndPtr - 2) - aPtr);
if (aPtr == NULL) break; if (aPtr == NULL) break;
if (aPtr[1] != '-') ++ aPtr; if (aPtr[1] != '-') ++ aPtr;
@ -327,7 +327,7 @@ LDOM_XmlReader::RecordType LDOM_XmlReader::ReadRecord
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
case STATE_CDATA: case STATE_CDATA:
aPtr = aStartData; aPtr = aStartData;
while (1) { for(;;) {
aPtr = (const char *) memchr (aPtr, ']', (myEndPtr - 1) - aStartData); aPtr = (const char *) memchr (aPtr, ']', (myEndPtr - 1) - aStartData);
if (aPtr == NULL) break; if (aPtr == NULL) break;
if (aPtr[1] != ']') { // ERROR if (aPtr[1] != ']') { // ERROR
@ -530,7 +530,7 @@ static Standard_Boolean isName (const char * aString,
const char *& aNameEnd) const char *& aNameEnd)
{ {
Standard_Boolean aResult; Standard_Boolean aResult;
int aCh = aString[0]; char aCh = aString[0];
if (IsAlphabetic(aCh) || aCh == '_' || aCh == ':') { if (IsAlphabetic(aCh) || aCh == '_' || aCh == ':') {
const char * aPtr = &aString[1]; const char * aPtr = &aString[1];
while (aPtr < aStringEnd) { while (aPtr < aStringEnd) {

View File

@ -99,7 +99,7 @@ getString (_Char *& thePtr,
// Skip whitespaces in the beginning of the string // Skip whitespaces in the beginning of the string
aPtr = anEndPtr; aPtr = anEndPtr;
aLeftSpaces = 0; aLeftSpaces = 0;
while (1) for (;;)
{ {
_Char aChar = * aPtr; _Char aChar = * aPtr;
if (aChar == ' ') aLeftSpaces++; if (aChar == ' ') aLeftSpaces++;

View File

@ -44,6 +44,8 @@ namespace
#define IMEM_FREE(p_bl) (size_t(p_bl->p_end_block - p_bl->p_free_space)) #define IMEM_FREE(p_bl) (size_t(p_bl->p_end_block - p_bl->p_free_space))
// auxiliary dummy function used to get a place where break point can be set
inline void place_for_breakpoint() {}
}; };
#define MaxLookup 16 #define MaxLookup 16
@ -82,6 +84,8 @@ Standard_EXPORT void IncAllocator_SetDebugFlag(const Standard_Boolean theDebug)
IS_DEBUG = theDebug; IS_DEBUG = theDebug;
} }
#ifdef DEB
//======================================================================= //=======================================================================
/** /**
* Static value of the current allocation ID. It provides unique * Static value of the current allocation ID. It provides unique
@ -102,12 +106,9 @@ static void Debug_Create(Standard_Address theAlloc)
aMutex.Lock(); aMutex.Lock();
StorageIDMap().Bind(theAlloc, ++CurrentID); StorageIDMap().Bind(theAlloc, ++CurrentID);
StorageIDSet().Add(CurrentID); StorageIDSet().Add(CurrentID);
aMutex.Unlock();
if (CurrentID == CATCH_ID) if (CurrentID == CATCH_ID)
{ place_for_breakpoint();
// Place for break point for creation of investigated allocator aMutex.Unlock();
int a = 1;
}
} }
//======================================================================= //=======================================================================
@ -128,6 +129,8 @@ static void Debug_Destroy(Standard_Address theAlloc)
aMutex.Unlock(); aMutex.Unlock();
} }
#endif /* DEB */
//======================================================================= //=======================================================================
//function : IncAllocator_PrintAlive //function : IncAllocator_PrintAlive
//purpose : Outputs the alive numbers to the file inc_alive.d //purpose : Outputs the alive numbers to the file inc_alive.d

View File

@ -42,7 +42,8 @@ Standard_Boolean OSD::RealToCString(const Standard_Real aReal,
// Suppress "e+00" and unsignificant 0's // Suppress "e+00" and unsignificant 0's
if ((p = strchr(aString,'e'))) { p = strchr(aString,'e');
if (p) {
if (!strcmp(p,"e+00")) if (!strcmp(p,"e+00"))
*p = 0 ; *p = 0 ;
for (q = p-1 ; *q == '0' ; q--) ; for (q = p-1 ; *q == '0' ; q--) ;

View File

@ -327,7 +327,7 @@ Standard_Integer OSD_DirectoryIterator :: Error () const {
OSD_DirectoryIterator::OSD_DirectoryIterator() {} OSD_DirectoryIterator::OSD_DirectoryIterator() {}
void OSD_DirectoryIterator::Initialize( void OSD_DirectoryIterator::Initialize(
const OSD_Path& where, const OSD_Path& /*where*/,
const TCollection_AsciiString& Mask){} const TCollection_AsciiString& /*Mask*/){}
#endif #endif

View File

@ -329,7 +329,7 @@ Standard_Integer OSD_Disk :: DiskQuota () {
} // end OSD_Disk :: DiskQuota } // end OSD_Disk :: DiskQuota
void OSD_Disk :: SetDiskQuota ( const Standard_Integer QuotaSize ) { void OSD_Disk :: SetDiskQuota ( const Standard_Integer /*QuotaSize*/ ) {
SetLastError ( ( DWORD )STG_E_UNIMPLEMENTEDFUNCTION ); SetLastError ( ( DWORD )STG_E_UNIMPLEMENTEDFUNCTION );

View File

@ -960,9 +960,8 @@ void OSD_File :: Build (
// Open a file // Open a file
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
void OSD_File :: Open ( void OSD_File :: Open (const OSD_OpenMode Mode, const OSD_Protection& /*Protect*/)
const OSD_OpenMode Mode, const OSD_Protection& Protect {
) {
TCollection_AsciiString fName; TCollection_AsciiString fName;
@ -1516,7 +1515,7 @@ void OSD_File :: Seek (
const Standard_Integer Offset, const OSD_FromWhere Whence const Standard_Integer Offset, const OSD_FromWhere Whence
) { ) {
DWORD dwMoveMethod; DWORD dwMoveMethod = 0;
TEST_RAISE( TEXT( "Seek" ) ); TEST_RAISE( TEXT( "Seek" ) );
@ -1940,7 +1939,7 @@ PSECURITY_DESCRIPTOR __fastcall _osd_wnt_protection_to_sd (
PTOKEN_OWNER pTkOwner = NULL; PTOKEN_OWNER pTkOwner = NULL;
PTOKEN_GROUPS pTkGroups = NULL; PTOKEN_GROUPS pTkGroups = NULL;
PTOKEN_PRIMARY_GROUP pTkPrimaryGroup = NULL; PTOKEN_PRIMARY_GROUP pTkPrimaryGroup = NULL;
PSECURITY_DESCRIPTOR retVal; PSECURITY_DESCRIPTOR retVal = NULL;
PSECURITY_DESCRIPTOR pfSD = NULL; PSECURITY_DESCRIPTOR pfSD = NULL;
BOOL fDummy; BOOL fDummy;
PFILE_ACE pFileACE; PFILE_ACE pFileACE;
@ -2388,7 +2387,7 @@ static int __fastcall _get_buffer (
static DWORD __fastcall _get_access_mask ( OSD_SingleProtection prt ) { static DWORD __fastcall _get_access_mask ( OSD_SingleProtection prt ) {
DWORD retVal; DWORD retVal = 0;
switch ( prt ) { switch ( prt ) {
@ -2500,7 +2499,7 @@ static DWORD __fastcall _get_access_mask ( OSD_SingleProtection prt ) {
static DWORD __fastcall _get_dir_access_mask ( OSD_SingleProtection prt ) { static DWORD __fastcall _get_dir_access_mask ( OSD_SingleProtection prt ) {
DWORD retVal; DWORD retVal = 0;
switch ( prt ) { switch ( prt ) {
@ -2617,7 +2616,7 @@ static HANDLE __fastcall _open_file (
) { ) {
HANDLE retVal = INVALID_HANDLE_VALUE; HANDLE retVal = INVALID_HANDLE_VALUE;
DWORD dwDesiredAccess; DWORD dwDesiredAccess = 0;
DWORD dwCreationDistribution; DWORD dwCreationDistribution;
switch ( oMode ) { switch ( oMode ) {
@ -2680,7 +2679,7 @@ Standard_Integer __fastcall _get_file_type (
Standard_CString fName, Standard_Integer fileHandle Standard_CString fName, Standard_Integer fileHandle
) { ) {
Standard_Integer retVal; Standard_Integer retVal = 0;
DWORD dwType; DWORD dwType;
int fileType; int fileType;
@ -3049,9 +3048,9 @@ static OSD_SingleProtection __fastcall _get_protection_dir ( DWORD mask ) {
BOOL __fastcall _osd_print (const Standard_PCharacter pName, Standard_CString fName ) { BOOL __fastcall _osd_print (const Standard_PCharacter pName, Standard_CString fName ) {
BOOL fOK, fJob; BOOL fOK, fJob;
HANDLE hPrinter; HANDLE hPrinter = NULL;
BYTE jobInfo[ MAX_PATH + sizeof ( DWORD ) ]; BYTE jobInfo[ MAX_PATH + sizeof ( DWORD ) ];
DWORD dwNeeded, dwCode; DWORD dwNeeded, dwCode = 0;
fOK = fJob = FALSE; fOK = fJob = FALSE;
@ -3187,7 +3186,7 @@ Standard_Boolean OSD_File::ReadLastLine(TCollection_AsciiString& aLine,const Sta
if (Count <= 0) if (Count <= 0)
return Standard_False ; return Standard_False ;
while(1) { for(;;) {
ReadLine(aLine, MaxLength, Len) ; ReadLine(aLine, MaxLength, Len) ;
if (!aLine.IsEmpty()) if (!aLine.IsEmpty())
return Standard_True ; return Standard_True ;

View File

@ -411,7 +411,7 @@ Standard_Integer OSD_FileIterator :: Error () const {
OSD_FileIterator::OSD_FileIterator() {} OSD_FileIterator::OSD_FileIterator() {}
void OSD_FileIterator::Initialize( void OSD_FileIterator::Initialize(
const OSD_Path& where, const OSD_Path& /*where*/,
const TCollection_AsciiString& Mask){} const TCollection_AsciiString& /*Mask*/){}
#endif #endif

View File

@ -851,7 +851,7 @@ Quantity_Date OSD_FileNode::CreationMoment () {
Standard_Integer OSD_FileNode::UserId () { Standard_Integer OSD_FileNode::UserId () {
PSID pSIDowner = NULL; PSID pSIDowner = NULL;
PSID retVal; PSID retVal = NULL;
BOOL fDefaulted; BOOL fDefaulted;
TCollection_AsciiString fName; TCollection_AsciiString fName;
PSECURITY_DESCRIPTOR pSD; PSECURITY_DESCRIPTOR pSD;
@ -1002,7 +1002,7 @@ static BOOL __fastcall _get_file_time (
FILETIME ftCreationTime; FILETIME ftCreationTime;
FILETIME ftLastWriteTime; FILETIME ftLastWriteTime;
LPFILETIME lpftPtr; LPFILETIME lpftPtr;
HANDLE hFile; HANDLE hFile = INVALID_HANDLE_VALUE;
__try { __try {

View File

@ -246,7 +246,7 @@ OSD_Host :: OSD_Host () {
DWORD nSize; DWORD nSize;
Standard_Character szHostName[ MAX_COMPUTERNAME_LENGTH + 1 ]; Standard_Character szHostName[ MAX_COMPUTERNAME_LENGTH + 1 ];
char* hostAddr; char* hostAddr = 0;
MEMORYSTATUS ms; MEMORYSTATUS ms;
WSADATA wd; WSADATA wd;
PHOSTENT phe; PHOSTENT phe;
@ -258,6 +258,7 @@ OSD_Host :: OSD_Host () {
nSize = MAX_COMPUTERNAME_LENGTH + 1; nSize = MAX_COMPUTERNAME_LENGTH + 1;
osVerInfo.dwOSVersionInfoSize = sizeof ( OSVERSIONINFO ); osVerInfo.dwOSVersionInfoSize = sizeof ( OSVERSIONINFO );
ZeroMemory (&ms, sizeof(ms));
ZeroMemory ( szHostName, sizeof ( Standard_Character ) * (MAX_COMPUTERNAME_LENGTH + 1) ); ZeroMemory ( szHostName, sizeof ( Standard_Character ) * (MAX_COMPUTERNAME_LENGTH + 1) );
if ( !GetVersionEx ( &osVerInfo ) ) { if ( !GetVersionEx ( &osVerInfo ) ) {

View File

@ -39,6 +39,11 @@
static OSD_MAllocHook::Callback* MypCurrentCallback = NULL; static OSD_MAllocHook::Callback* MypCurrentCallback = NULL;
namespace {
// dummy function to call at place where break point might be needed
inline void place_for_breakpoint () {}
};
//======================================================================= //=======================================================================
//function : GetCallback //function : GetCallback
//purpose : //purpose :
@ -414,11 +419,9 @@ void OSD_MAllocHook::LogFileHandler::AllocEvent
myMutex.Lock(); myMutex.Lock();
myLogFile << "alloc "<< std::setw(10) << theRequestNum myLogFile << "alloc "<< std::setw(10) << theRequestNum
<< std::setw(20) << theSize << std::endl; << std::setw(20) << theSize << std::endl;
myMutex.Unlock();
if (myBreakSize == theSize) if (myBreakSize == theSize)
{ place_for_breakpoint();
int a = 1; myMutex.Unlock();
}
} }
} }
@ -562,9 +565,7 @@ void OSD_MAllocHook::CollectBySize::AllocEvent
long /*theRequestNum*/) long /*theRequestNum*/)
{ {
if (myBreakSize == theSize) if (myBreakSize == theSize)
{ place_for_breakpoint();
int a = 1;
}
if (theSize > 0) if (theSize > 0)
{ {
myMutex.Lock(); myMutex.Lock();

View File

@ -1209,7 +1209,7 @@ void OSD_Path :: SystemName (
} // end OSD_Path :: SystemName } // end OSD_Path :: SystemName
Standard_Boolean OSD_Path :: IsValid ( Standard_Boolean OSD_Path :: IsValid (
const TCollection_AsciiString& aDependentName, const TCollection_AsciiString& /*aDependentName*/,
const OSD_SysType aSysType const OSD_SysType aSysType
) const { ) const {
@ -1263,7 +1263,7 @@ Standard_Integer OSD_Path :: TrekLength () const {
return retVal; return retVal;
while ( Standard_True ) { for (;;) {
if ( myTrek.Token ( TEXT( "|" ), i++ ).IsEmpty () ) if ( myTrek.Token ( TEXT( "|" ), i++ ).IsEmpty () )

View File

@ -340,7 +340,7 @@ Standard_Boolean OSD_Process :: IsSuperUser () {
Standard_Boolean retVal = FALSE; Standard_Boolean retVal = FALSE;
PSID pSIDadmin; PSID pSIDadmin;
HANDLE hProcessToken = INVALID_HANDLE_VALUE; HANDLE hProcessToken = INVALID_HANDLE_VALUE;
PTOKEN_GROUPS pTKgroups; PTOKEN_GROUPS pTKgroups = NULL;
if ( !OpenProcessToken ( if ( !OpenProcessToken (
GetCurrentProcess (), GetCurrentProcess (),

View File

@ -298,7 +298,7 @@ Standard_CString OSD_SharedLibrary :: Name () const {
} // end OSD_SharedLibrary :: Name } // end OSD_SharedLibrary :: Name
Standard_Boolean OSD_SharedLibrary :: DlOpen ( const OSD_LoadMode Mode ) { Standard_Boolean OSD_SharedLibrary :: DlOpen ( const OSD_LoadMode /*Mode*/ ) {
Standard_Boolean retVal = Standard_True; Standard_Boolean retVal = Standard_True;

View File

@ -911,7 +911,7 @@ BOOL MoveDirectory ( LPCTSTR oldDir, LPCTSTR newDir ) {
LPTSTR pathSrc, pathDst; LPTSTR pathSrc, pathDst;
HANDLE hFindFile; HANDLE hFindFile;
BOOL fFind; BOOL fFind;
BOOL retVal; BOOL retVal = FALSE;
DIR_RESPONSE response; DIR_RESPONSE response;
DWORD level; DWORD level;
@ -1043,16 +1043,14 @@ retry:
if ( pFD -> dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) { if ( pFD -> dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) {
if ( !( retVal = MoveDirectory ( pFullNameSrc, pFullNameDst ) ) ) break; retVal = MoveDirectory ( pFullNameSrc, pFullNameDst );
if (!retVal) break;
} else { } else {
retry_1: retry_1:
if ( !( retVal = MoveFileEx ( retVal = MoveFileEx (pFullNameSrc, pFullNameDst,
pFullNameSrc, pFullNameDst, MOVEFILE_REPLACE_EXISTING | MOVEFILE_COPY_ALLOWED);
MOVEFILE_REPLACE_EXISTING | MOVEFILE_COPY_ALLOWED if (! retVal) {
)
)
) {
if ( _response_dir_proc != NULL ) { if ( _response_dir_proc != NULL ) {
@ -1142,7 +1140,7 @@ retry_2:
/***/ /***/
BOOL CopyDirectory ( LPCTSTR dirSrc, LPCTSTR dirDst ) { BOOL CopyDirectory ( LPCTSTR dirSrc, LPCTSTR dirDst ) {
PWIN32_FIND_DATA pFD; PWIN32_FIND_DATA pFD = NULL;
LPTSTR pName = NULL; LPTSTR pName = NULL;
LPTSTR pFullNameSrc = NULL; LPTSTR pFullNameSrc = NULL;
LPTSTR pFullNameDst = NULL; LPTSTR pFullNameDst = NULL;
@ -1203,11 +1201,13 @@ BOOL CopyDirectory ( LPCTSTR dirSrc, LPCTSTR dirDst ) {
if ( pFD -> dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) { if ( pFD -> dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) {
if ( !( retVal = CopyDirectory ( pFullNameSrc, pFullNameDst ) ) ) break; retVal = CopyDirectory ( pFullNameSrc, pFullNameDst );
if ( ! retVal ) break;
} else { } else {
retry: retry:
if ( !( retVal = CopyFile ( pFullNameSrc, pFullNameDst, FALSE ) ) ) { retVal = CopyFile ( pFullNameSrc, pFullNameDst, FALSE );
if ( ! retVal ) {
if ( _response_dir_proc != NULL ) { if ( _response_dir_proc != NULL ) {

View File

@ -403,7 +403,8 @@ void OSD::SetSignal (const Standard_Boolean theFloatingSignal)
SetConsoleCtrlHandler (&_osd_ctrl_break_handler, TRUE); SetConsoleCtrlHandler (&_osd_ctrl_break_handler, TRUE);
#ifdef _MSC_VER #ifdef _MSC_VER
_se_translator_function pOldSeFunc = _set_se_translator (TranslateSE); // _se_translator_function pOldSeFunc =
_set_se_translator (TranslateSE);
#endif #endif
fFltExceptions = theFloatingSignal; fFltExceptions = theFloatingSignal;
@ -533,7 +534,7 @@ LONG _osd_debug ( void ) {
if ( !fDbgLoaded ) { if ( !fDbgLoaded ) {
HKEY hKey; HKEY hKey = NULL;
HANDLE hEvent = INVALID_HANDLE_VALUE; HANDLE hEvent = INVALID_HANDLE_VALUE;
DWORD dwKeyType; DWORD dwKeyType;
DWORD dwValueLen; DWORD dwValueLen;
@ -620,12 +621,12 @@ LONG _osd_debug ( void ) {
//void OSD::Handler(const OSD_Signals aSig, //void OSD::Handler(const OSD_Signals aSig,
// const OSD_Signals aCode){} // const OSD_Signals aCode){}
void OSD::Handler(const OSD_Signals theSignal, void OSD::Handler(const OSD_Signals /*theSignal*/,
const Standard_Address theSigInfo, const Standard_Address /*theSigInfo*/,
const Standard_Address theContext) {} const Standard_Address /*theContext*/) {}
void OSD::SegvHandler(const OSD_Signals aSig, void OSD::SegvHandler(const OSD_Signals /*aSig*/,
const Standard_Address code, const Standard_Address /*code*/,
const Standard_Address scp){} const Standard_Address /*scp*/){}
#endif // WNT #endif // WNT

View File

@ -222,7 +222,6 @@ void OpenGl_LayerList::ChangeLayer (const OpenGl_Structure *theStructure,
OpenGl_SequenceOfLayers::Iterator anIts; OpenGl_SequenceOfLayers::Iterator anIts;
for (anIts.Init (myLayers); anIts.More (); anIts.Next (), aSeqId++) for (anIts.Init (myLayers); anIts.More (); anIts.Next (), aSeqId++)
{ {
OpenGl_PriorityList& aScanList = anIts.ChangeValue ();
if (aSeqPos == aSeqId) if (aSeqPos == aSeqId)
continue; continue;

View File

@ -158,7 +158,6 @@ void OpenGl_Trihedron::redraw (const Handle(OpenGl_Workspace)& theWorkspace) con
/* /*
* Creation du triedre * Creation du triedre
*/ */
const OpenGl_AspectLine *AspectLine = theWorkspace->AspectLine( Standard_True );
/* Fotis Sioutis 2007-11-14 15:06 /* Fotis Sioutis 2007-11-14 15:06
I have also seen in previous posts that the view trihedron in V3d_WIREFRAME mode I have also seen in previous posts that the view trihedron in V3d_WIREFRAME mode

View File

@ -1179,8 +1179,6 @@ void OpenGl_View::RenderStructs (const Handle(OpenGl_Workspace) &AWorkspace)
glPushAttrib ( GL_DEPTH_BUFFER_BIT ); glPushAttrib ( GL_DEPTH_BUFFER_BIT );
const OpenGl_AspectLine *aspect_line = AWorkspace->AspectLine( Standard_True );
//TsmPushAttri(); /* save previous graphics context */ //TsmPushAttri(); /* save previous graphics context */
if ( (AWorkspace->NamedStatus & OPENGL_NS_2NDPASSNEED) == 0 ) if ( (AWorkspace->NamedStatus & OPENGL_NS_2NDPASSNEED) == 0 )

View File

@ -18,7 +18,7 @@
#include <Prs3d_RadiusAspect.ixx> #include <Prs3d_RadiusAspect.ixx>
Prs3d_RadiusAspect::Prs3d_RadiusAspect(const Quantity_NameOfColor aColor, Prs3d_RadiusAspect::Prs3d_RadiusAspect(const Quantity_NameOfColor /*aColor*/,
const Aspect_TypeOfLine aType, const Aspect_TypeOfLine aType,
const Standard_Real aWidth) { const Standard_Real aWidth) {
} }

View File

@ -448,8 +448,6 @@ static Standard_Integer OCC74bug_get (Draw_Interpretor& di, Standard_Integer arg
return 1; return 1;
} }
Standard_Boolean updateviewer = Standard_True, PutInCollector = Standard_True;
ViewerTest_DoubleMapOfInteractiveAndName& aMap = GetMapOfAIS(); ViewerTest_DoubleMapOfInteractiveAndName& aMap = GetMapOfAIS();
TCollection_AsciiString aName(argv[1]); TCollection_AsciiString aName(argv[1]);

View File

@ -2694,8 +2694,7 @@ static Standard_Integer OCC7141 (Draw_Interpretor& di, Standard_Integer argc, co
try { try {
OCC_CATCH_SIGNALS OCC_CATCH_SIGNALS
if( writer.Transfer(document, mode)) { if( writer.Transfer(document, mode)) {
IFSelect_ReturnStatus stat = writer.Write(aFilePath.ToCString());
writer.Write(aFilePath.ToCString());
} }
} }
catch(OSD_Exception_STACK_OVERFLOW) { catch(OSD_Exception_STACK_OVERFLOW) {

View File

@ -62,7 +62,6 @@ static Standard_Integer OCC332bug (Draw_Interpretor& di, Standard_Integer argc,
{ {
// Used to Display Geometry or Topolgy // Used to Display Geometry or Topolgy
char name[255]; char name[255];
char *pname = name;
Standard_Boolean check = Standard_True; Standard_Boolean check = Standard_True;
// Set default arguments // Set default arguments
@ -426,8 +425,6 @@ static Standard_Integer OCC544 (Draw_Interpretor& di, Standard_Integer argc, con
// Used to Display Geometry or Topolgy // Used to Display Geometry or Topolgy
char name[255]; char name[255];
char *pname = name;
//bool check = true;
Standard_Boolean check = Standard_True; Standard_Boolean check = Standard_True;
// Set default arguments // Set default arguments

View File

@ -135,7 +135,6 @@ static Standard_Integer OCC527(Draw_Interpretor& di, Standard_Integer argc, cons
if (!aResult.IsNull()) if (!aResult.IsNull())
{ {
double lmaxdist = 0.0; double lmaxdist = 0.0;
double lmaxtoler = 0.0;
TopExp_Explorer aExp2; TopExp_Explorer aExp2;
for (aExp2.Init(aResult,TopAbs_VERTEX); aExp2.More(); aExp2.Next()) for (aExp2.Init(aResult,TopAbs_VERTEX); aExp2.More(); aExp2.Next())
{ {

View File

@ -1348,7 +1348,7 @@ static Standard_Integer BUC60856(Draw_Interpretor& di, Standard_Integer /*argc*/
} }
gp_Ax2 Cone_Ax; gp_Ax2 Cone_Ax;
double R1=8, R2=16, H1=20, H2=40, angle; double R1=8, R2=16, angle;
gp_Pnt P0(0,0,0), gp_Pnt P0(0,0,0),
P1(0,0,20), P2(0,0,45); P1(0,0,20), P2(0,0,45);
angle = 2*M_PI; angle = 2*M_PI;
@ -1583,7 +1583,7 @@ static Standard_Integer statface (Draw_Interpretor& di,Standard_Integer /*argc*/
Handle(Dico_DictionaryOfInteger) aDico = new Dico_DictionaryOfInteger(); Handle(Dico_DictionaryOfInteger) aDico = new Dico_DictionaryOfInteger();
Handle(TColStd_HSequenceOfAsciiString) aSequence = new TColStd_HSequenceOfAsciiString; Handle(TColStd_HSequenceOfAsciiString) aSequence = new TColStd_HSequenceOfAsciiString;
Standard_CString aString; Standard_CString aString;
Standard_Integer i=1,j=1,k=1,l=1,aa=1; Standard_Integer i=1,j=1,l=1,aa=1;
TopExp_Explorer expl; TopExp_Explorer expl;
Standard_Real f3d,l3d; Standard_Real f3d,l3d;
for(expl.Init(aShape,TopAbs_FACE);expl.More();expl.Next()) for(expl.Init(aShape,TopAbs_FACE);expl.More();expl.Next())

View File

@ -37,7 +37,7 @@
static Standard_Integer BUC60857 (Draw_Interpretor& di, Standard_Integer /*argc*/,const char ** argv) static Standard_Integer BUC60857 (Draw_Interpretor& di, Standard_Integer /*argc*/,const char ** argv)
{ {
gp_Ax2 Cone_Ax; gp_Ax2 Cone_Ax;
double R1=8, R2=16, H1=20, H2=40, angle; double R1=8, R2=16, angle;
gp_Pnt P0(0,0,0), P1(0,0,20), P2(0,0,45); gp_Pnt P0(0,0,0), P1(0,0,20), P2(0,0,45);
angle = 2*M_PI; angle = 2*M_PI;

View File

@ -89,8 +89,6 @@ void QANewBRepNaming_Gluing::Init(const TDF_Label& ResultLabel) {
void QANewBRepNaming_Gluing::Load(QANewModTopOpe_Glue& theMkGluing) { void QANewBRepNaming_Gluing::Load(QANewModTopOpe_Glue& theMkGluing) {
TopoDS_Shape aResShape = theMkGluing.Shape(); TopoDS_Shape aResShape = theMkGluing.Shape();
const TopoDS_Shape& anObjShape = theMkGluing.Shape1(); const TopoDS_Shape& anObjShape = theMkGluing.Shape1();
const TopoDS_Shape& aToolShape = theMkGluing.Shape2();
const TopAbs_ShapeEnum& anObjectType = ShapeType(anObjShape);
if (aResShape.IsNull()) { if (aResShape.IsNull()) {
#ifdef MDTV_DEB #ifdef MDTV_DEB

View File

@ -59,7 +59,6 @@ void QANewBRepNaming_Limitation::Load(QANewModTopOpe_Limitation& MS) const {
TopoDS_Shape ResSh = MS.Shape(); TopoDS_Shape ResSh = MS.Shape();
const TopoDS_Shape& ObjSh = MS.Shape1(); const TopoDS_Shape& ObjSh = MS.Shape1();
const TopoDS_Shape& ToolSh = MS.Shape2();
const TopAbs_ShapeEnum& ObjType = ShapeType(ObjSh); const TopAbs_ShapeEnum& ObjType = ShapeType(ObjSh);
if (ResSh.IsNull()) { if (ResSh.IsNull()) {

View File

@ -148,10 +148,8 @@ static Standard_Integer QANewDBRepNaming_CheckNaming(Draw_Interpretor& di,Standa
TopTools_IndexedMapOfShape allSubShapes; TopTools_IndexedMapOfShape allSubShapes;
TopExp::MapShapes(aSelectedShape, allSubShapes); TopExp::MapShapes(aSelectedShape, allSubShapes);
// cout<<"SELECTION ..."<<endl;
// cout << "i = " << allSubShapes.Extent() << endl; Standard_Integer i;
Standard_Integer count = 0, i;
char aDrawName[80] = "Select";
for (i = 1; i <= allSubShapes.Extent(); i++) { for (i = 1; i <= allSubShapes.Extent(); i++) {
const TDF_Label& aSubLabel = L.FindChild(i); const TDF_Label& aSubLabel = L.FindChild(i);
@ -237,7 +235,6 @@ static Standard_Integer QANewDBRepNaming_CheckNaming(Draw_Interpretor& di,Standa
// cout<<"Wrong selection ..."<<endl; // cout<<"Wrong selection ..."<<endl;
return 1; return 1;
} }
const TopAbs_ShapeEnum TypeOfNaming = aNS->Get().ShapeType();
// cout<<i<<" ";TopAbs::Print(TypeOfNaming, cout); cout<<" "; // cout<<i<<" ";TopAbs::Print(TypeOfNaming, cout); cout<<" ";
// DBRep::Set("Solved", aNS->Get()); // DBRep::Set("Solved", aNS->Get());
TNaming_Selector SLSolving(itr.Value()); TNaming_Selector SLSolving(itr.Value());

View File

@ -578,7 +578,6 @@ Standard_Boolean QANewModTopOpe::IsConnected(const TopoDS_Shape& TheS)
if(nbs <= 1) return aRes; if(nbs <= 1) return aRes;
math_Matrix aMat(1, nbs, 1, nbs, 0); math_Matrix aMat(1, nbs, 1, nbs, 0);
Standard_Integer aMax=nbs*nbs;
TopTools_MapIteratorOfMapOfShape anMIter(aSMap); TopTools_MapIteratorOfMapOfShape anMIter(aSMap);
Standard_Integer n = 1; Standard_Integer n = 1;
@ -616,7 +615,7 @@ Standard_Boolean QANewModTopOpe::IsConnected(const TopoDS_Shape& TheS)
} }
//cout << "QANewModTopOpe::IsConnected(3)Lnbs=" <<nbs<< endl; //cout << "QANewModTopOpe::IsConnected(3)Lnbs=" <<nbs<< endl;
Standard_Integer k,i,ncount=0; Standard_Integer k,i;
Standard_Real p; Standard_Real p;
Standard_Boolean aNotChanged; Standard_Boolean aNotChanged;

View File

@ -333,7 +333,6 @@ Standard_Boolean QANewModTopOpe_Intersection::IsDeleted(const TopoDS_Shape& aS)
//======================================================================= //=======================================================================
Standard_Boolean QANewModTopOpe_Intersection::HasDeleted() const Standard_Boolean QANewModTopOpe_Intersection::HasDeleted() const
{ {
Standard_Real aresult = Standard_False;
TopExp_Explorer anExp; TopExp_Explorer anExp;
for(Standard_Integer argit = 0; argit < 2; argit++) { for(Standard_Integer argit = 0; argit < 2; argit++) {

View File

@ -547,7 +547,7 @@ Standard_Boolean QANewModTopOpe_Tools::BoolOpe(const TopoDS_Shape& theFace1,
const BOPDS_PDS& pDS = aDSFiller.PDS(); const BOPDS_PDS& pDS = aDSFiller.PDS();
Standard_Integer aNb = 0, aNbSps; Standard_Integer aNb = 0, aNbSps;
Standard_Integer i = 0, j = 0; Standard_Integer i = 0;
TopTools_IndexedMapOfShape aMapV; TopTools_IndexedMapOfShape aMapV;
{ {

View File

@ -55,7 +55,7 @@ void RWHeaderSection_GeneralModule::FillSharedCase(const Standard_Integer CN, co
void RWHeaderSection_GeneralModule::CheckCase(const Standard_Integer CN, void RWHeaderSection_GeneralModule::CheckCase(const Standard_Integer CN,
const Handle(Standard_Transient)& ent, const Handle(Standard_Transient)& ent,
const Interface_ShareTool& shares, const Interface_ShareTool& shares,
Handle(Interface_Check)& ach) const Handle(Interface_Check)& /*ach*/) const
{ {
} }

Some files were not shown because too many files have changed in this diff Show More