0022922: Clean up warnings on uninitialized / unused variables
authordbv@opencascade.com <dbv@opencascade.com>
Wed, 7 Mar 2012 13:00:48 +0000 (17:00 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 15 Mar 2012 07:57:41 +0000 (11:57 +0400)
226 files changed:
src/AIS2D/AIS2D_InteractiveContext.cxx
src/AIS2D/AIS2D_LocalContext.cxx
src/AlienImage/AlienImage_X11XWDAlienData.cxx
src/Approx/Approx_ComputeLine.gxx
src/ApproxInt/ApproxInt_PrmPrmSvSurfaces.gxx
src/BOPTools/BOPTools_PaveFiller_2.cxx
src/BOPTools/BOPTools_Tools3D.cxx
src/BRepAlgo/BRepAlgo_BooleanOperation.cxx
src/BRepBlend/BRepBlend_RstRstConstRad.cxx
src/BRepBlend/BRepBlend_RstRstEvolRad.cxx
src/BRepBlend/BRepBlend_SurfCurvConstRadInv.cxx
src/BRepBlend/BRepBlend_SurfCurvEvolRadInv.cxx
src/BRepBlend/BRepBlend_SurfRstConstRad.cxx
src/BRepBlend/BRepBlend_SurfRstEvolRad.cxx
src/BRepBlend/BRepBlend_SurfRstLineBuilder.cxx
src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx
src/BRepCheck/BRepCheck_Edge.cxx
src/BRepCheck/BRepCheck_Face.cxx
src/BRepCheck/BRepCheck_Shell.cxx
src/BRepCheck/BRepCheck_Wire.cxx
src/BRepClass3d/BRepClass3d_SolidExplorer.cxx
src/BRepExtrema/BRepExtrema_DistanceSS.cxx
src/BRepFeat/BRepFeat_MakeLinearForm.cxx
src/BRepFeat/BRepFeat_MakeRevolutionForm.cxx
src/BRepFill/BRepFill_CompatibleWires.cxx
src/BRepFill/BRepFill_Draft.cxx
src/BRepFill/BRepFill_Evolved.cxx
src/BRepFill/BRepFill_OffsetWire.cxx
src/BRepFill/BRepFill_PipeShell.cxx
src/BRepGProp/BRepGProp_Face.cxx
src/BRepMesh/BRepMesh_FastDiscret.cxx
src/BRepMesh/BRepMesh_FastDiscretFace.cxx
src/BRepOffset/BRepOffset_Inter2d.cxx
src/BRepOffset/BRepOffset_MakeOffset.cxx
src/BRepOffset/BRepOffset_Tool.cxx
src/BRepTest/BRepTest_CurveCommands.cxx
src/BRepTest/BRepTest_FillingCommands.cxx
src/BRepTools/BRepTools_Quilt.cxx
src/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx
src/BinMDataStd/BinMDataStd_ExtStringArrayDriver.cxx
src/BinMDataStd/BinMDataStd_ExtStringListDriver.cxx
src/Blend/Blend_CSWalking_4.gxx
src/BlendFunc/BlendFunc_CSConstRad.cxx
src/BlendFunc/BlendFunc_RuledInv.cxx
src/ChFi2d/ChFi2d_Builder.cxx
src/DDocStd/DDocStd.cxx
src/DNaming/DNaming_ModelingCommands.cxx
src/DNaming/DNaming_ToolsCommands.cxx
src/Draw/Draw_Main.cxx
src/Draw/Draw_Viewer.cxx
src/DrawDim/DrawDim_Angle.cxx
src/DrawFairCurve/DrawFairCurve_Batten.cxx
src/DsgPrs/DsgPrs_ShapeDirPresentation.cxx
src/DsgPrs/DsgPrs_XYZAxisPresentation.cxx
src/ExprIntrp/ExprIntrp_yaccintrf.cxx
src/Extrema/Extrema_ExtCS.cxx
src/Extrema/Extrema_ExtElC.cxx
src/Extrema/Extrema_ExtPElC.cxx
src/Extrema/Extrema_ExtPElC2d.cxx
src/Extrema/Extrema_ExtPElS.cxx
src/FEmTool/FEmTool_Assembly.cxx
src/GCPnts/GCPnts_UniformAbscissa.gxx
src/GProp/GProp_TFunction.gxx
src/GccAna/GccAna_Circ2d2TanOn.cxx
src/GccAna/GccAna_Circ2d2TanOn_10.cxx
src/GccAna/GccAna_Circ2d2TanOn_6.cxx
src/GccAna/GccAna_Circ2d2TanOn_9.cxx
src/GccAna/GccAna_Circ2d2TanRad_4.cxx
src/GccAna/GccAna_Circ2d3Tan_3.cxx
src/GccAna/GccAna_Circ2d3Tan_8.cxx
src/GccAna/GccAna_Circ2dTanOnRad_1.cxx
src/GccGeo/GccGeo_Circ2dTanOnRad.gxx
src/GccIter/GccIter_Circ2d2TanOn.gxx
src/GccIter/GccIter_Circ2d3Tan.gxx
src/GccIter/GccIter_FunctionTanCirCu.gxx
src/GccIter/GccIter_FunctionTanCuCuOnCu.gxx
src/GccIter/GccIter_Lin2d2Tan.gxx
src/Geom/Geom_CylindricalSurface.cxx
src/Geom/Geom_OffsetCurve.cxx
src/Geom2d/Geom2d_OffsetCurve.cxx
src/GeomFill/GeomFill_CorrectedFrenet.cxx
src/GeomFill/GeomFill_Curved.cxx
src/GeomFill/GeomFill_DraftTrihedron.cxx
src/GeomFill/GeomFill_GuideTrihedronAC.cxx
src/GeomFill/GeomFill_LocationGuide.cxx
src/GeomFill/GeomFill_PolynomialConvertor.cxx
src/GeomFill/GeomFill_QuasiAngularConvertor.cxx
src/GeomFill/GeomFill_SweepSectionGenerator.cxx
src/GeomPlate/GeomPlate_BuildPlateSurface.cxx
src/GeomPlate/GeomPlate_PlateG0Criterion.cxx
src/GeomPlate/GeomPlate_PlateG1Criterion.cxx
src/GeomProjLib/GeomProjLib.cxx
src/GeomToIGES/GeomToIGES_GeomSurface.cxx
src/GeometryTest/GeometryTest_ConstraintCommands.cxx
src/GeometryTest/GeometryTest_CurveCommands.cxx
src/GeomliteTest/GeomliteTest_ApproxCommands.cxx
src/Graphic2d/Graphic2d_Paragraph.cxx
src/Graphic3d/Graphic3d_ArrayOfPrimitives.cxx
src/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx
src/HatchGen/HatchGen_Hatcher.gxx
src/IFSelect/IFSelect_WorkSession.cxx
src/IntCurve/IntCurve_IntConicConic_1.cxx
src/IntCurve/IntCurve_IntPolyPolyGen.gxx
src/IntCurveSurface/IntCurveSurface_Inter.gxx
src/IntCurveSurface/IntCurveSurface_Polygon.gxx
src/IntCurveSurface/IntCurveSurface_Polyhedron.gxx
src/IntPatch/IntPatch_ALine.cxx
src/IntPatch/IntPatch_ImpImpIntersection_0.gxx
src/IntPatch/IntPatch_ImpPrmIntersection.cxx
src/IntPatch/IntPatch_LineConstructor.cxx
src/IntPatch/IntPatch_Polyhedron.cxx
src/IntPatch/IntPatch_PrmPrmIntersection_T3Bits.cxx
src/IntPolyh/IntPolyh_Intersection.cxx
src/IntPolyh/IntPolyh_MaillageAffinage.cxx
src/IntRes2d/IntRes2d_Intersection.cxx
src/IntStart/IntStart_SearchOnBoundaries_1.gxx
src/IntTools/IntTools_EdgeFace.cxx
src/IntTools/IntTools_FaceFace.cxx
src/IntWalk/IntWalk_IWalking_1.gxx
src/IntWalk/IntWalk_IWalking_2.gxx
src/IntWalk/IntWalk_IWalking_3.gxx
src/IntWalk/IntWalk_IWalking_6.gxx
src/IntWalk/IntWalk_PWalking_1.gxx
src/Interface/Interface_Graph.cxx
src/Intf/Intf_InterferencePolygonPolyhedron.gxx
src/Law/Law_Interpol.cxx
src/LocOpe/LocOpe_CSIntersector.cxx
src/LocOpe/LocOpe_Generator.cxx
src/LocOpe/LocOpe_SplitDrafts.cxx
src/LocOpe/LocOpe_SplitShape.cxx
src/MAT2d/MAT2d_Tool2d.cxx
src/MXCAFDoc/MXCAFDoc_AreaRetrievalDriver.cxx
src/MXCAFDoc/MXCAFDoc_AreaStorageDriver.cxx
src/MXCAFDoc/MXCAFDoc_CentroidRetrievalDriver.cxx
src/MXCAFDoc/MXCAFDoc_CentroidStorageDriver.cxx
src/MXCAFDoc/MXCAFDoc_DatumRetrievalDriver.cxx
src/MXCAFDoc/MXCAFDoc_DatumStorageDriver.cxx
src/MXCAFDoc/MXCAFDoc_DimTolRetrievalDriver.cxx
src/MXCAFDoc/MXCAFDoc_DimTolStorageDriver.cxx
src/MXCAFDoc/MXCAFDoc_MaterialRetrievalDriver.cxx
src/MXCAFDoc/MXCAFDoc_MaterialStorageDriver.cxx
src/MXCAFDoc/MXCAFDoc_VolumeRetrievalDriver.cxx
src/MXCAFDoc/MXCAFDoc_VolumeStorageDriver.cxx
src/MeshVS/MeshVS_TextPrsBuilder.cxx
src/OpenGl/OpenGl_QuadrangleStrip.cxx
src/OpenGl/OpenGl_TriangleStrip.cxx
src/OpenGl/OpenGl_Workspace_2.cxx
src/ProjLib/ProjLib_PrjResolve.cxx
src/RWStepShape/RWStepShape_RWFaceBound.cxx
src/Select2D/Select2D_SensitivePoint.cxx
src/Select3D/Select3D_SensitiveTriangle.cxx
src/Select3D/Select3D_SensitiveTriangulation.cxx
src/SelectBasics/SelectBasics_BasicTool.cxx
src/ShapeAnalysis/ShapeAnalysis.cxx
src/ShapeBuild/ShapeBuild_ReShape.cxx
src/ShapeUpgrade/ShapeUpgrade_RemoveInternalWires.cxx
src/StlTransfer/StlTransfer.cxx
src/TDF/TDF_ComparisonTool.cxx
src/TFunction/TFunction_Iterator.cxx
src/TNaming/TNaming_Naming.cxx
src/TPrsStd/TPrsStd_ConstraintTools.cxx
src/TestTopOpe/TestTopOpe_BOOPCommands.cxx
src/TestTopOpe/TestTopOpe_CORCommands.cxx
src/TestTopOpe/TestTopOpe_DSACommands.cxx
src/TestTopOpe/TestTopOpe_HDSCommands.cxx
src/TestTopOpeDraw/TestTopOpeDraw_Displayer.cxx
src/TestTopOpeDraw/TestTopOpeDraw_DrawableMesure.cxx
src/TopOpeBRep/TopOpeBRep_DSFiller.cxx
src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx
src/TopOpeBRep/TopOpeBRep_EdgesIntersector.cxx
src/TopOpeBRep/TopOpeBRep_FaceEdgeFiller.cxx
src/TopOpeBRep/TopOpeBRep_FaceEdgeFiller_DEB.cxx
src/TopOpeBRep/TopOpeBRep_FacesFiller.cxx
src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx
src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx
src/TopOpeBRep/TopOpeBRep_Hctxee2d.cxx
src/TopOpeBRep/TopOpeBRep_Point2d.cxx
src/TopOpeBRep/TopOpeBRep_ProcessGR.cxx
src/TopOpeBRep/TopOpeBRep_ProcessSectionEdges.cxx
src/TopOpeBRep/TopOpeBRep_ShapeIntersector.cxx
src/TopOpeBRep/TopOpeBRep_ShapeIntersector2d.cxx
src/TopOpeBRep/TopOpeBRep_VPointInterClassifier.cxx
src/TopOpeBRep/TopOpeBRep_kpart.cxx
src/TopOpeBRep/TopOpeBRep_vpr.cxx
src/TopOpeBRep/TopOpeBRep_vprclo.cxx
src/TopOpeBRep/TopOpeBRep_vprdeg.cxx
src/TopOpeBRepTool/TopOpeBRepTool_2d.cxx
src/TopOpeBRepTool/TopOpeBRepTool_BoxSort.cxx
src/TopOpeBRepTool/TopOpeBRepTool_CORRISO.cxx
src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx
src/TopOpeBRepTool/TopOpeBRepTool_HBoxTool.cxx
src/TopOpeBRepTool/TopOpeBRepTool_PURGE.cxx
src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx
src/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx
src/TopOpeBRepTool/TopOpeBRepTool_RegularizeW.cxx
src/TopOpeBRepTool/TopOpeBRepTool_ShapeClassifier.cxx
src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.cxx
src/TopOpeBRepTool/TopOpeBRepTool_TOOL.cxx
src/TopOpeBRepTool/TopOpeBRepTool_TOPOLOGY.cxx
src/TopOpeBRepTool/TopOpeBRepTool_closing.cxx
src/TopOpeBRepTool/TopOpeBRepTool_connexity.cxx
src/TopOpeBRepTool/TopOpeBRepTool_mkTondgE.cxx
src/Viewer2dTest/Viewer2dTest_DisplayCommands.cxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_FilletCommands.cxx
src/Visual3d/Visual3d_ViewManager.cxx
src/VrmlData/VrmlData_Scene.cxx
src/WNT/WNT_Allocator.cxx
src/WNT/WNT_FontMapEntry.cxx
src/WNT/WNT_WDriver.cxx
src/XDEDRAW/XDEDRAW_Props.cxx
src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
src/XmlLDrivers/XmlLDrivers_DocumentRetrievalDriver.cxx
src/XmlMDataStd/XmlMDataStd_BooleanArrayDriver.cxx
src/XmlMDataStd/XmlMDataStd_NamedDataDriver.cxx
src/XmlMFunction/XmlMFunction_ScopeDriver.cxx
src/gp/gp_Mat.cxx
src/math/math_BFGS.cxx
src/math/math_BrentMinimum.cxx
src/math/math_DoubleTab.gxx
src/math/math_FunctionRoot.cxx
src/math/math_FunctionRoots.cxx
src/math/math_IntegerVector.cxx
src/math/math_KronrodSingleIntegration.cxx
src/math/math_TrigonometricFunctionRoots.cxx
src/math/math_Vector.cxx

index be28903..08913b2 100755 (executable)
@@ -466,10 +466,6 @@ Standard_Integer AIS2D_InteractiveContext::OpenLocalContext( const Standard_Bool
                                                              const Standard_Boolean AcceptEraseOfObj ) {
   if ( !IsCurrent( myLastPicked ) ) 
     if ( !myLastPicked.IsNull() ) {
-#ifdef DEB
-      AIS2D_TypeOfDetection HiMod = myLastPicked -> HasHighlightMode() ? 
-                             myLastPicked->HighlightMode() : myLastPicked->DefaultHighlightMode();
-#endif
       myLastPicked->Unhighlight();
         }
   
@@ -528,9 +524,6 @@ void AIS2D_InteractiveContext::CloseLocalContext( const Standard_Integer ind,
    
    if ( GoodIndex == myCurLocalIndex ) {
      myCurLocalIndex = HighestIndex();
-#ifdef DEB
-     const Handle(AIS2D_LocalContext)& LocCtx = myLocalContexts(myCurLocalIndex);
-#endif
    }
    
  }
@@ -1755,10 +1748,6 @@ void AIS2D_InteractiveContext::Highlight( const Handle(AIS2D_InteractiveObject)&
         break;
    }
    case AIS2D_DS_Erased:       {
-#ifdef DEB
-     Standard_Integer HiMode = anIObj->HasHighlightMode() ? 
-                      anIObj->HighlightMode() : anIObj->DefaultHighlightMode();
-#endif
      anIObj->Highlight(myCollectorVwr->InitializeColor( mySelectionColor ));
      if ( updateVwr ) myCollectorVwr->Update();
      break;
@@ -1804,7 +1793,6 @@ void AIS2D_InteractiveContext::HighlightWithColor( const Handle(AIS2D_Interactiv
       }
       case AIS2D_DS_Erased: {
 #ifdef DEB
-           Standard_Integer HiMode = anIObj->HasHighlightMode()? anIObj->HighlightMode():0;
            Standard_Integer indCol = myCollectorVwr->InitializeColor( aCol );
 #endif
                if ( updateVwr) myCollectorVwr->Update();
@@ -2148,10 +2136,7 @@ AIS2D_StatusOfPick AIS2D_InteractiveContext::Select( const Standard_Boolean Upda
          myLocalContexts( myCurLocalIndex )->SetSelected( myLastPicked, UpdateVwr );
          return AIS2D_SOP_OneSelected;
   }
-#ifdef DEB
-  AIS2D_StatusOfPick PS( AIS2D_SOP_NothingSelected );
-#endif
-  
+
  if ( ! mySeqOfDetIO->IsEmpty() ) {
     Handle(AIS2D_InteractiveObject) theIO;
     Handle(AIS2D_HSequenceOfPrimArchit) thePA;
index 65067e0..3bc7e6a 100755 (executable)
@@ -322,11 +322,7 @@ AIS2D_StatusOfDetection AIS2D_LocalContext::MoveTo(
    }
    if ( !myLastPicked.IsNull() )
     if ( !myLastPicked->State() ) {
-#ifdef DEB
-        AIS2D_TypeOfDetection HiMod = myLastPicked->HasHighlightMode() ? 
-             myLastPicked->HighlightMode() : myLastPicked->DefaultHighlightMode();
-#endif
-        myLastPicked->Unhighlight();
+      myLastPicked->Unhighlight();
            UpdVwr = Standard_True;
     } // end if the last picked object isn't selected one
  
@@ -379,9 +375,6 @@ AIS2D_StatusOfDetection AIS2D_LocalContext::MoveTo(
         }
         case AIS2D_TOD_VERTEX: {
             myLastPickPrim = myLastPicked->Primitive(myLastPicked->PickedIndex());
-#ifdef DEB
-         Standard_Integer pInd = myLastPicked->PickedIndex();
-#endif
          if ( myLastPickPrim != myLastSelPrim ||
             ( myLastPickPrim == myLastSelPrim && 
               myLastPickPrim->PickedIndex() != myLastSelElInd ) ||
index 5d27c71..56a2fed 100755 (executable)
@@ -340,10 +340,6 @@ Standard_Boolean AlienImage_X11XWDAlienData::Read( OSD_File& file )
                }
        }
 
-#ifdef DEB
-       AlienImage_X11XColor *p  = ( AlienImage_X11XColor * )myColors ;
-#endif
-
 #ifdef TRACE
        if ( Verbose )  { 
          AlienImage_X11XColor *p = ( AlienImage_X11XColor * )myColors;
index 0788363..896386a 100755 (executable)
@@ -75,7 +75,6 @@ static void DUMP(const AppParCurves_MultiCurve& C) {
   static Standard_Integer nbappel = 0;
   Standard_Integer i;
   Standard_Integer nbpoles = C.NbPoles();
-  Standard_Integer deg = C.Degree();
 
   Handle(Geom_BezierCurve) BSp;
   Handle(Geom2d_BezierCurve) BSp2d;
index 5d51647..37d021d 100755 (executable)
@@ -92,11 +92,7 @@ Standard_Boolean ApproxInt_PrmPrmSvSurfaces::Compute( Standard_Real& u1
   Param(1) = u1; Param(2) = v1;
   Param(3) = u2; Param(4) = v2;
   math_FunctionSetRoot  Rsnld(MyIntersectionOn2S.Function());
-#ifdef DEB
-  IntImp_ConstIsoparametric ChoixIso = MyIntersectionOn2S.Perform(Param,Rsnld);
-#else
   MyIntersectionOn2S.Perform(Param,Rsnld);
-#endif
   if (!MyIntersectionOn2S.IsDone())  { 
     MyHasBeenComputed = MyHasBeenComputedbis = Standard_False;
     return(Standard_False);
index b64a2fc..9e129c2 100755 (executable)
   BOPTools_ListIteratorOfListOfCommonBlock anItCB(aLCB);
   for (; anItCB.More(); anItCB.Next()) {
     BOPTools_CommonBlock& aCB=anItCB.Value();
-    BOPTools_PaveBlock& aPB1=aCB.PaveBlock1(nE1);
+    //BOPTools_PaveBlock& aPB1=aCB.PaveBlock1(nE1);
     BOPTools_PaveBlock& aPB2=aCB.PaveBlock2(nE1);
     nE=aPB2.OriginalEdge();
     if (nE==nE2) {
index 80b0aa7..2e3f0c8 100755 (executable)
@@ -1129,7 +1129,7 @@ static void GetApproxNormalToFaceOnEdgeEx(const TopoDS_Edge& aE,
        for( iKey = 1; iKey <= nbKeys; iKey++ ) {
          const TopoDS_Vertex& iV = TopoDS::Vertex(mapVE.FindKey(iKey));
          if( iV.IsNull() ) continue;
-         Standard_Real TolV = BRep_Tool::Tolerance(iV);
+         //Standard_Real TolV = BRep_Tool::Tolerance(iV);
          const TopTools_ListOfShape& iLE = mapVE.FindFromIndex(iKey);
          Standard_Integer nbE = iLE.Extent();
          if( nbE != 2 ) {
@@ -1251,7 +1251,7 @@ static Standard_Boolean PseudoSDFaces(const BRepAdaptor_Surface& BS1,
 
 
   const TopoDS_Face& aF1 = BS1.Face();
-  Standard_Real maxTolE1 = 1.e-7, maxTolV1 = 1.e-7;
+  Standard_Real maxTolE1 = 1.e-7;
   Standard_Integer nbE1 = 0, nbOnE1 = 0;
   for(anExpE.Init(aF1, TopAbs_EDGE); anExpE.More(); anExpE.Next()) {
     const TopoDS_Edge& aE = TopoDS::Edge(anExpE.Current());
@@ -1307,7 +1307,7 @@ static Standard_Boolean PseudoSDFaces(const BRepAdaptor_Surface& BS1,
     return Standard_False;
 
   const TopoDS_Face& aF2 = BS1.Face();
-  Standard_Real maxTolE2 = 1.e-7, maxTolV2 = 1.e-7;
+  Standard_Real maxTolE2 = 1.e-7;
   Standard_Integer nbE2 = 0, nbOnE2 = 0;
   for(anExpE.Init(aF2, TopAbs_EDGE); anExpE.More(); anExpE.Next()) {
     const TopoDS_Edge& aE = TopoDS::Edge(anExpE.Current());
index b1e2aaf..e388fc8 100755 (executable)
@@ -116,11 +116,7 @@ Standard_IMPORT void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
   // define face/face intersection tolerances
   Standard_Boolean forcetoli = Standard_False;
   if (forcetoli) {
-#ifndef DEB
     Standard_Real tolarc=0,toltang=0;
-#else
-    Standard_Real tolarc,toltang;
-#endif
     TopOpeBRep_ShapeIntersector& tobsi = DSFiller.ChangeShapeIntersector();
     TopOpeBRep_FacesIntersector& tobfi = tobsi.ChangeFacesIntersector();
     tobfi.ForceTolerances(tolarc,toltang);
index 6915264..e1ea2e2 100755 (executable)
@@ -812,9 +812,6 @@ Standard_Boolean BRepBlend_RstRstConstRad::Section(const Blend_Point& P,
   math_Matrix gradsol(1, 2, 1, 2);
   
   Standard_Real prm       = P.Parameter();
-#ifdef DEB
-  Standard_Integer NbSpan = (Poles.Length() - 1) / 2;
-#endif
   Standard_Integer low    = Poles.Lower();
   Standard_Integer upp    = Poles.Upper();
   Standard_Boolean istgt;
index 1c928ff..b277397 100755 (executable)
@@ -915,9 +915,6 @@ Standard_Boolean BRepBlend_RstRstEvolRad::Section(const Blend_Point& P,
   math_Matrix gradsol(1, 2, 1, 2);
   
   Standard_Real prm       = P.Parameter();
-#ifdef DEB
-  Standard_Integer NbSpan = (Poles.Length() - 1) / 2;
-#endif
   Standard_Integer low    = Poles.Lower();
   Standard_Integer upp    = Poles.Upper();
   Standard_Boolean istgt;
index 8a03cca..f98f598 100755 (executable)
@@ -102,9 +102,6 @@ Standard_Boolean BRepBlend_SurfCurvConstRadInv::Derivatives(const math_Vector& X
   Standard_Real normd1gui = d1gui.Magnitude();
   Standard_Real unsurnormd1gui = 1./normd1gui;
   gp_Vec nplan = d1gui.Multiplied(unsurnormd1gui);
-#ifdef DEB
-  Standard_Real theD = -(nplan.XYZ().Dot(ptgui.XYZ()));
-#endif
   gp_Vec dnplan;
   dnplan.SetLinearForm(-nplan.Dot(d2gui),nplan,d2gui);
   dnplan.Multiply(unsurnormd1gui);
index cc4b2de..e4a41fa 100755 (executable)
@@ -100,9 +100,6 @@ const Handle(Adaptor3d_HCurve)& Cg,
   ray=sg1*ray;
   dray=sg1*dray;
   gp_Vec nplan = d1gui.Multiplied(unsurnormd1gui);
-#ifdef DEB
-  Standard_Real theD = -(nplan.XYZ().Dot(ptgui.XYZ()));
-#endif
   gp_Vec dnplan;
   dnplan.SetLinearForm(-nplan.Dot(d2gui),nplan,d2gui);
   dnplan.Multiply(unsurnormd1gui);
index db4e9e5..b289d0d 100755 (executable)
@@ -869,9 +869,6 @@ Standard_Boolean BRepBlend_SurfRstConstRad::Section
   math_Matrix gradsol(1,3,1,3);
   
   Standard_Real prm = P.Parameter();
-#ifdef DEB
-  Standard_Integer NbSpan=(Poles.Length()-1)/2;
-#endif
   Standard_Integer low = Poles.Lower();
   Standard_Integer upp = Poles.Upper();
   Standard_Boolean istgt;
index dc4ce52..c6b43c6 100755 (executable)
@@ -877,9 +877,6 @@ TColStd_Array1OfReal& DWeigths)
   math_Matrix gradsol(1,3,1,3);
   
   Standard_Real prm = P.Parameter(),rayprim;
-#ifdef DEB
-  Standard_Integer NbSpan=(Poles.Length()-1)/2;
-#endif
   Standard_Integer low = Poles.Lower();
   Standard_Integer upp = Poles.Upper();
   Standard_Boolean istgt;
index 7a0db28..15a3880 100755 (executable)
@@ -909,9 +909,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
                                                       Handle(Adaptor3d_HVertex)&  Vtx) 
 {
   Standard_Boolean recadre = Standard_False;
-#ifdef DEB
-  Standard_Boolean byinter = (line->NbPoints() != 0);
-#endif
+
   gp_Pnt2d pt2d, lastpt2d;
   Standard_Integer IndexSol, nbarc;
   Standard_Real pmin;
index 9f41bcf..cb0d21d 100755 (executable)
@@ -1479,7 +1479,6 @@ Standard_Boolean BRepBuilderAPI_Sewing::FindCandidates(TopTools_SequenceOfShape&
         Standard_Boolean isInserted = Standard_False;
         Standard_Integer j, ori = (arrForward(i)? 1 : 0);
         for (j = 1; (j <= seqCandidates.Length()) && !isInserted; j++) {
-          Standard_Integer aInd = seqCandidates.Value(j);//debug
           Standard_Real aDelta = arrDistance(i) - arrDistance(seqCandidates.Value(j));
           //if (arrDistance(i) <= arrDistance(seqCandidates.Value(j))) {
           if( aDelta < Precision::Confusion()) {
index 9243600..3b5cec0 100755 (executable)
@@ -562,7 +562,7 @@ Standard_Boolean Validate(const Adaptor3d_Curve& CRef,
          fabs( Other.LastParameter()-Last) > aPC);
   if (!proj) {
     Standard_Integer i;
-    Standard_Real Tol2, prm, aD2, dD;
+    Standard_Real Tol2, prm, dD;
     gp_Pnt pref, pother;
     //modified by NIZNHY-PKV Thu May 05 09:06:41 2011f
     //OCC22428
index 0ba73dd..7866385 100755 (executable)
@@ -266,10 +266,7 @@ BRepCheck_Status BRepCheck_Face::ClassifyWires(const Standard_Boolean Update)
     TopoDS_Shape aLocalShape = myShape.EmptyCopied();
     TopoDS_Face newFace = TopoDS::Face(aLocalShape);
 //    TopoDS_Face newFace = TopoDS::Face(myShape.EmptyCopied());
-#ifdef DEB
-    TopAbs_Orientation orWire = 
-#endif
-      wir1.Orientation();
+
     newFace.Orientation(TopAbs_FORWARD);
     B.Add(newFace,wir1);
 
index a45c86e..34c42b2 100755 (executable)
@@ -433,7 +433,6 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
   if (BRepCheck_Trace(0) > 1) {
     TopTools_DataMapIteratorOfDataMapOfShapeInteger itt(MapOfShapeOrientation);
     Standard_Integer upper = MapOfShapeOrientation.NbBuckets();
-    Standard_Integer code = 0;
     cout << "La map shape Orientation :" << endl;
     for (; itt.More(); itt.Next()) {
       PrintShape(itt.Key(), upper);
index 1a49185..9e5384b 100755 (executable)
@@ -887,7 +887,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
     //
     if(Inter.IsDone()) { 
       Standard_Integer nbp = Inter.NbPoints();
-      Standard_Integer nbs = Inter.NbSegments();
+      //Standard_Integer nbs = Inter.NbSegments();
       //
       for(Standard_Integer p=1;p<=nbp;p++) {
        const IntRes2d_IntersectionPoint& IP=Inter.Point(p);
index 5f9ec0a..cf0ae95 100755 (executable)
@@ -102,10 +102,6 @@ Standard_Boolean BRepClass3d_SolidExplorer::FindAPointInTheFace
   {
     TopoDS_Edge Edge = TopoDS::Edge (faceexplorer.Current());
     c.Initialize (Edge, face);
-#ifdef DEB
-    Standard_Integer nbinterval = 
-#endif
-    c.NbIntervals(GeomAbs_C1); 
     c.D1((c.LastParameter() - c.FirstParameter()) * param_ + c.FirstParameter(),P,T);
 
     Standard_Real x = T.X();
index cb4eb36..74d439b 100755 (executable)
@@ -773,7 +773,6 @@ void BRepExtrema_DistanceSS::Perform(const TopoDS_Vertex& S1, const TopoDS_Face&
         gp_Pnt Pt,P1=BRep_Tool::Pnt(S1);
         BRepClass_FaceClassifier classifier;
         const Standard_Real tol = BRep_Tool::Tolerance(S2);
-        const Standard_Real epsP = Precision::PConfusion();
  
         for (i = 1; i <= NbExtrema; i++)
         {
@@ -830,7 +829,6 @@ void BRepExtrema_DistanceSS::Perform(const TopoDS_Face& S1, const TopoDS_Vertex&
         gp_Pnt Pt,P1=BRep_Tool::Pnt(S2);
         BRepClass_FaceClassifier classifier;
         const Standard_Real tol = BRep_Tool::Tolerance(S1);
-        const Standard_Real epsP = Precision::PConfusion();
  
         for (i = 1; i <= NbExtrema; i++)
         {
@@ -1079,7 +1077,6 @@ void BRepExtrema_DistanceSS::Perform(const TopoDS_Edge& S1, const TopoDS_Face& S
 
       BRepExtrema_SeqOfSolution seqSol1;
       BRepExtrema_SeqOfSolution seqSol2;
-      Standard_Boolean bIsMini = Standard_False;
       if (SeqSolution1.Length() > 0 && SeqSolution2.Length() > 0)
         MIN_SOLUTION(SeqSolution1, SeqSolution2, myDstRef, myEps, seqSol1, seqSol2);
            
@@ -1225,7 +1222,6 @@ void BRepExtrema_DistanceSS::Perform(const TopoDS_Face& S1, const TopoDS_Edge& S
 
       BRepExtrema_SeqOfSolution seqSol1;
       BRepExtrema_SeqOfSolution seqSol2;
-      Standard_Boolean bIsMini = Standard_False;
       if (SeqSolution1.Length() > 0 && SeqSolution2.Length() > 0)
         MIN_SOLUTION(SeqSolution1, SeqSolution2, myDstRef, myEps, seqSol1, seqSol2);
            
@@ -1269,7 +1265,6 @@ void BRepExtrema_DistanceSS::Perform(const TopoDS_Face& S1, const TopoDS_Face& S
         gp_Pnt2d PUV;
         Standard_Real U1,V1,U2,V2;
         BRepClass_FaceClassifier classifier;
-        const Standard_Real epsP=Precision::PConfusion();
  
         for (i = 1; i <= NbExtrema; i++)
         {
index a5e932d..2d82aeb 100755 (executable)
@@ -622,10 +622,6 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
        counter1++;
        NewListOfEdges.Append(edg);
        theEdge = eeee;
-#ifdef DEB
-       Standard_Real dist1 = 
-#endif
-         theLastPnt.Distance(myLastPnt);
 
        if(dist <= myTol) 
          theFEdge = edg;
@@ -1148,13 +1144,7 @@ void BRepFeat_MakeLinearForm::Perform()
       // end by chaining the section
       return Standard_False;
     }
-// #ifdef DEB
-//     Standard_Boolean isnb=
-// #endif
     TopTools_ListOfShape thelist1;
-#ifdef DEB
-     Standard_Boolean isnb=
-#endif
     mySlface.Bind(CurrentFace, thelist1);
     mySlface(CurrentFace).Append(edg1);
     myListOfEdges.Append(edg1);
index 8ee1198..cd03f8b 100755 (executable)
@@ -437,14 +437,6 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
     
     if(Sliding && !PtOnFirstEdge) {
       BRepExtrema_ExtCF ext1(TopoDS::Edge(ee1.Shape()), FirstFace);
-#ifdef DEB
-      Standard_Integer nb = 
-#endif
-                            ext1.NbExt();
-#ifdef DEB
-      Standard_Real dist =
-#endif
-                            ext1.SquareDistance(1);
       if(ext1.NbExt() < 1 || ext1.SquareDistance(1) > Precision::Confusion() * Precision::Confusion()) 
        Sliding = Standard_False;
     }
@@ -754,10 +746,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
        counter1++;
        NewListOfEdges.Append(edg);
        theEdge = eeee;
-#ifdef DEB
-       Standard_Real dist1 = 
-#endif
-         theLastPnt.Distance(myLastPnt);
+
        if(dist <= myTol) 
          theFEdge = edg;
        theLastPnt = BRep_Tool::Pnt(TopExp::LastVertex(theEdge,Standard_True));
index 812e5b6..24f4678 100755 (executable)
@@ -475,10 +475,6 @@ static Standard_Boolean EdgeIntersectOnWire (const gp_Pnt& P1,
       TopoDS_Shape aLocalShape = DSS.SupportOnShape2(isol);
       TopoDS_Edge E = TopoDS::Edge(aLocalShape);
 //      TopoDS_Edge E = TopoDS::Edge(DSS.SupportOnShape2(isol));
-#ifdef DEB
-      Standard_Real tol = 
-#endif
-       Precision::PConfusion();
       Standard_Real first,last,param;
       DSS.ParOnEdgeS2(isol,param);
       BRep_Tool::Range(E,first,last);
index 44c30f8..eda0d81 100755 (executable)
@@ -387,9 +387,6 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
 // bounding box of the stop shape
   Bnd_Box BSurf;//, TheBox;
   Standard_Real Umin, Umax, Vmin, Vmax;
-#ifdef DEB
-  Standard_Real Tol = Precision::Confusion()/10;
-#endif
 //  BRepTools B;
 //  BRep_Tool BT;
   Handle(Geom_Surface) Surf;
index 019d80b..0fc0b78 100755 (executable)
@@ -327,10 +327,6 @@ static Standard_Boolean IsPlanar(const TopoDS_Edge& E)
 static Standard_Integer Side(const TopoDS_Wire&  Profil,
                             const Standard_Real Tol)
 {
-#ifdef DEB
-  Standard_Boolean OnLeft  = Standard_False;
-  Standard_Boolean OnRight = Standard_False;
-#endif
   TopoDS_Vertex    V1,V2;
   // Rem : it is enough to test the first edge of the Wire.
   //       ( Correctly cut in PrepareProfil)
@@ -1834,15 +1830,8 @@ void BRepFill_Evolved::Add(      BRepFill_Evolved& Vevo,
     //          if one remains on the same edge.
     //          if one passes from left to the right they are inverted.
     //------------------------------------------------- -------------
-#ifndef DEB
     Standard_Boolean   Commun = Standard_False;
-#else
-    Standard_Boolean   Commun;
-#endif
-#ifdef DEB
-    TopAbs_Orientation OriSide = 
-#endif
-      Relative(myProfile,Prof,
+    Relative(myProfile,Prof,
               TopoDS::Vertex(VV),
               Commun);
 
@@ -2933,11 +2922,6 @@ TopAbs_Orientation OriEdgeInFace (const TopoDS_Edge& E,
                                  const TopoDS_Face& F )
 
 {
-#ifdef DEB
-  TopAbs_Orientation O = 
-#endif
-    F.Orientation();
-
   TopExp_Explorer Exp(F.Oriented(TopAbs_FORWARD),TopAbs_EDGE);
 
   for (; Exp.More() ;Exp.Next()) {
index 079bf7e..0e9de17 100755 (executable)
@@ -1827,10 +1827,6 @@ void MakeOffset (const TopoDS_Edge&        E,
     // if the offset is greater otr equal to the radius and the side of the  
     // concavity of the circle => edge null.
     gp_Circ2d C1(AC.Circle());
-#ifdef DEB
-    Standard_Real radius = 
-#endif
-                           C1.Radius();
     gp_Ax22d axes( C1.Axis());
     gp_Dir2d Xd = axes.XDirection();
     gp_Dir2d Yd = axes.YDirection();
index c2a92cf..bbf0f11 100755 (executable)
@@ -1043,7 +1043,6 @@ void BRepFill_PipeShell::BuildHistory(const BRepFill_Sweep& theSweep)
   }
 
   for(j = myLocation->NbLaw(); j >= 1; j--) {
-    Standard_Boolean ismodified = Standard_False;
     TopTools_ListOfShape aListOfFace;
 
     if(bPrevModified) {
index 9c48f44..946e91b 100755 (executable)
@@ -365,8 +365,8 @@ void BRepGProp_Face::VKnots(TColStd_Array1OfReal& Knots) const
 Standard_Integer BRepGProp_Face::LIntOrder(const Standard_Real Eps) const
 {
   Bnd_Box2d aBox;
-  BndLib_Add2dCurve aB;
-  aB.Add(myCurve, 1.e-7, aBox);
+
+  BndLib_Add2dCurve::Add(myCurve, 1.e-7, aBox);
   Standard_Real aXmin, aXmax, aYmin, aYmax;
   aBox.Get(aXmin, aYmin, aXmax, aYmax);
   Standard_Real aVmin = mySurface.FirstVParameter();
index 15f1c4d..3c306dc 100755 (executable)
@@ -318,7 +318,6 @@ void BRepMesh_FastDiscret::Add(const TopoDS_Face& theface,
 
   gp_Pnt2d uvFirst, uvLast;
 
-  TopAbs_Orientation orFace = face.Orientation();
   Handle(Poly_Triangulation) T;
   TopLoc_Location loc;
 
index 27bf026..2dbb5e4 100755 (executable)
@@ -1186,7 +1186,6 @@ Standard_Real BRepMesh_FastDiscretFace::Control(const Handle(BRepAdaptor_HSurfac
   //IMPORTANT: Constants used in calculations
   const Standard_Real MinimalArea2d = 1.e-9;
   const Standard_Real MinimalSqLength3d = 1.e-12;
-  const Standard_Real aDef2 = theDefFace*theDefFace;
 
   // Define the number of iterations
   Standard_Integer myNbIterations = 11;
@@ -1212,8 +1211,6 @@ Standard_Real BRepMesh_FastDiscretFace::Control(const Handle(BRepAdaptor_HSurfac
   Standard_Boolean caninsert;
 
   Standard_Real sqdefface = theDefFace * theDefFace;
-  Standard_Real ddu = theCaro->UResolution(theDefFace);
-  Standard_Real ddv = theCaro->VResolution(theDefFace);
 
   GeomAbs_SurfaceType thetype = theCaro->GetType();
   Handle(Geom_Surface) BSpl;
@@ -1551,7 +1548,6 @@ void BRepMesh_FastDiscretFace::AddInShape(const TopoDS_Face&  theFace,
       
       const BRepMesh_Edge& ve1=myStructure->GetLink(e1);
       const BRepMesh_Edge& ve2=myStructure->GetLink(e2);
-      const BRepMesh_Edge& ve3=myStructure->GetLink(e3);
       
       if (o1) {
         v1=ve1.FirstNode();
index b50ba74..d09e151 100755 (executable)
@@ -1117,8 +1117,6 @@ static void ExtentEdge(const TopoDS_Edge& E,TopoDS_Edge& NE, const Standard_Real
       MinLoc = E.Location() * MinLoc;
       if (!C3d.IsNull())
        {
-         Standard_Real FirstPar = C3d->FirstParameter();
-         Standard_Real LastPar  = C3d->LastParameter();
          if (MinPC->IsClosed())
            {
              f = FirstParOnPC;
index cf2c262..b29d900 100755 (executable)
@@ -1020,9 +1020,6 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
   TopoDS_Shape    NE;
   TopoDS_Edge     TNE;
   TopoDS_Face     NF;
-#ifdef DEB
-  TopAbs_Orientation Or;
-#endif
   
   for (Exp.Init(myShape,TopAbs_FACE) ; Exp.More(); Exp.Next()) {
     const TopoDS_Face& FI = TopoDS::Face(Exp.Current());
@@ -1549,9 +1546,6 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
   BRepOffset_Type    RT = BRepOffset_Concave;
   if (myOffset < 0.) RT = BRepOffset_Convex;
   BRepOffset_DataMapIteratorOfDataMapOfShapeOffset It(MapSF);
-#ifdef DEB
-  Standard_Integer MapSFNb = MapSF.Extent();
-#endif
   for ( ; It.More(); It.Next()) {
     const TopoDS_Shape& SI = It.Key(); 
     const BRepOffset_Offset& SF = It.Value();
index 2541296..97060d8 100755 (executable)
@@ -185,10 +185,6 @@ TopAbs_Orientation BRepOffset_Tool::OriEdgeInFace (const TopoDS_Edge& E,
                                                   const TopoDS_Face& F )
 
 {
-#ifdef DEB
-  TopAbs_Orientation O = 
-#endif
-    F.Orientation();
   TopExp_Explorer Exp;
   Exp.Init(F.Oriented(TopAbs_FORWARD),TopAbs_EDGE);
 
index c9e2336..6b684b0 100755 (executable)
@@ -1128,7 +1128,6 @@ static Standard_Integer bsplineprof(Draw_Interpretor& di,
   return 0;
 
 #ifdef DEB  
- badargs:
   di << "profile : bad number of arguments";
   return 1;
 #endif
index f81b4ce..67ee87e 100755 (executable)
@@ -193,10 +193,6 @@ static Standard_Integer plate (Draw_Interpretor & di,Standard_Integer n,const ch
     DBRep::Set(name, E);
     MW.Add(E);
     if (MW.IsDone()==Standard_False) {
-#if DEB
-      BRepBuilderAPI_WireError err =
-#endif
-                                     MW.Error();
       Standard_Failure::Raise("mkWire is over ");
     }
       
@@ -429,10 +425,6 @@ static Standard_Integer approxplate (Draw_Interpretor & di,Standard_Integer n,co
     BRepLib::BuildCurve3d(E);
     MW.Add(E);
     if (MW.IsDone()==Standard_False) {
-#ifdef DEB
-      BRepBuilderAPI_WireError err =
-#endif
-                                     MW.Error();
       Standard_Failure::Raise("mkWire is over ");
     }
   }
index 29b5803..5ded198 100755 (executable)
@@ -194,11 +194,6 @@ void BRepTools_Quilt::Add(const TopoDS_Shape& S)
          TopoDS_Wire NW;
          B.MakeWire(NW);
          TopoDS_Iterator ite(W,Standard_False);
-#ifdef DEB
-         Standard_Real   Tol = BRep_Tool::Tolerance(F);
-#else
-          BRep_Tool::Tolerance(F);
-#endif
          Standard_Real   UFirst,ULast;
          
          // Reconstruction des wires.
@@ -444,8 +439,6 @@ TopoDS_Shape BRepTools_Quilt::Shells() const
               TopoDS_Shape arefShape = SH.Oriented(TopAbs_FORWARD) ;
              B.Add  ( arefShape ,Fo.Oriented(NewO));
            }
-            Standard_Integer kk =1;
-            Standard_Integer p =0;
            // Rebind the free edges of the old shell to the new shell
             //gka BUG 6491
             TopExp_Explorer aexp(SH,TopAbs_EDGE);
index 639604e..fbc0c77 100755 (executable)
@@ -269,7 +269,7 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
        {
          //Standard_Real anglep=0,anglem=0;
          TColgp_Array1OfPnt2d PClass(1,nbpnts);
-         Standard_Real angle = 0.0, square = 0.0;
+         Standard_Real square = 0.0;
 
          //-------------------------------------------------------------------
          //-- ** The mode of calculation was somewhat changed 
index fbab7f6..5ce06c0 100755 (executable)
@@ -95,7 +95,6 @@ void BinMDataStd_ExtStringArrayDriver::Paste
   const TColStd_Array1OfExtendedString& aSourceArray = anAtt->Array()->Array1();
   const Standard_Integer aFirstInd = aSourceArray.Lower();
   const Standard_Integer aLastInd  = aSourceArray.Upper();
-  const Standard_Integer aLength   = aLastInd - aFirstInd + 1;
   theTarget << aFirstInd << aLastInd;
   for (Standard_Integer i = aFirstInd; i <= aLastInd; i ++)
     theTarget << anAtt->Value( i );
index f41effb..937fe33 100755 (executable)
@@ -68,7 +68,6 @@ void BinMDataStd_ExtStringListDriver::Paste(const Handle(TDF_Attribute)& theSour
   Handle(TDataStd_ExtStringList) anAtt = Handle(TDataStd_ExtStringList)::DownCast(theSource);
   const Standard_Integer aFirstInd = 1;
   const Standard_Integer aLastInd  = anAtt->Extent();
-  const Standard_Integer aLength   = aLastInd - aFirstInd + 1;
   theTarget << aFirstInd << aLastInd;
   TDataStd_ListIteratorOfListOfExtendedString itr(anAtt->List());
   for (; itr.More(); itr.Next())
index 32c3e0f..e2c7e12 100755 (executable)
@@ -11,13 +11,8 @@ void Blend_CSWalking::InternalPerform(Blend_CSFunction& Func,
   TopAbs_State situ;
   Standard_Real w,U,V;
   Standard_Integer nbarc;
-#ifndef DEB
   Standard_Integer  Index = 0;
   Standard_Boolean Isvtx = Standard_False;
-#else
-  Standard_Integer  Index;
-  Standard_Boolean Isvtx;
-#endif
   Standard_Integer Nbvar = Func.NbVariables();
   Standard_Boolean Arrive,recad,echecrecad;
   gp_Pnt2d p2d;
index f706712..cc3c3f2 100755 (executable)
@@ -871,9 +871,6 @@ Standard_Boolean BlendFunc_CSConstRad::Section
   math_Matrix gradsol(1,3,1,3);
 
   Standard_Real prm = P.Parameter();
-#ifdef DEB
-  Standard_Integer NbSpan=(Poles.Length()-1)/2;
-#endif
   Standard_Integer low = Poles.Lower();
   Standard_Integer upp = Poles.Upper();
   Standard_Boolean istgt;
index 6ade769..6f2f2b1 100755 (executable)
@@ -152,7 +152,6 @@ Standard_Boolean BlendFunc_RuledInv::Derivatives(const math_Vector& X,
 
   const Standard_Real normtgcur = d1cur.Magnitude();
   const gp_Vec nplan = d1cur.Normalized();
-  const Standard_Real theD = -(nplan.XYZ().Dot(ptcur.XYZ()));
 
   gp_Vec dnplan;
   dnplan.SetLinearForm(-nplan.Dot(d2cur),nplan,d2cur);
index c57a6cc..185ba4c 100755 (executable)
@@ -623,10 +623,6 @@ TopoDS_Edge ChFi2d_Builder::BuildNewEdge(const TopoDS_Edge& E1,
   TopoDS_Edge anEdge = makeEdge;
   anEdge.Orientation(E1.Orientation());
 //  anEdge.Location(E1.Location());
-#ifdef DEB
-  BRepLib_EdgeError error = 
-#endif
-    makeEdge.Error();
   return anEdge;
 }
 
index 11a9e12..ffd62b6 100755 (executable)
@@ -77,9 +77,6 @@ Standard_Boolean DDocStd::Find (const Handle(TDocStd_Document)& D,
                                const Standard_Boolean  Complain)
 {
   Label.Nullify();
-#ifdef DEB
-  Standard_Boolean Found;
-#endif
   TDF_Tool::Label(D->GetData(),Entry,Label,Standard_False);
   if (Label.IsNull() && Complain) cout<<"No label for entry "<<Entry<<endl;
   return !Label.IsNull();
@@ -96,9 +93,6 @@ Standard_Boolean DDocStd::Find (const Handle(TDocStd_Document)& D,
                                Handle(TDF_Attribute)&  A,
                                const Standard_Boolean  Complain) 
 {
-#ifdef DEB
-  Standard_Boolean found;
-#endif
   TDF_Label L;
   if (Find(D,Entry,L,Complain)) {
     if (L.FindAttribute(ID,A)) return Standard_True;
index 6fa4b54..28dd007 100644 (file)
@@ -976,8 +976,6 @@ static Standard_Integer DNaming_AddFillet (Draw_Interpretor& theDI,
 
   TDF_Reference::Set(anObject->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
 
-  Standard_Integer aSurfaceType = 0;
-
   Standard_Real aRadius = atof(theArg[3]);
   DNaming::GetReal(aFun,FILLET_RADIUS)->Set(aRadius);  
 
@@ -1373,7 +1371,7 @@ static Standard_Integer DNaming_SphereRadius (Draw_Interpretor& theDI,
       return 0;
     }
   }
- ERR:
+
   cout << "DNaming_SphRadius : Error" << endl;
   return 1;  
 }
@@ -1644,7 +1642,6 @@ static Standard_Boolean MakeSelection (const Handle(TDataStd_UAttribute)& Obj,
        TDF_Label aResultLabel =  aFun->Label().FindChild(FUNCTION_RESULT_LABEL, Standard_True); 
        TDF_Reference::Set(Obj->Label(), aResultLabel ); //result of the object
        aResultLabel.ForgetAllAttributes(Standard_True);
-       Standard_Boolean aKeepOrientation(Standard_False);
        Handle(TNaming_NamedShape) aNS = DNaming::GetObjectValue( ContextObj);  
        try{
          const TopoDS_Shape& aContext = aNS->Get();
@@ -1703,7 +1700,6 @@ static Standard_Boolean MakeXSelection (const Handle(TDataStd_UAttribute)& Obj,
        TDF_Reference::Set(Obj->Label(), aResultLabel ); //result of the object
        aResultLabel.ForgetAllAttributes(Standard_True);
 
-       Standard_Boolean aKeepOrientation(Standard_False);
        Handle(TNaming_NamedShape) aNS = DNaming::GetObjectValue( ContextObj);  
        try{
          const TopoDS_Shape& aContext = aNS->Get();
@@ -1867,7 +1863,6 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
 
     if(!aNS.IsNull() && !aNS->IsEmpty()) {
       const TopoDS_Shape&  aRootShape = aNS->Get();
-      TopAbs_ShapeEnum aType = aRootShape.ShapeType();
       //TopTools_MapOfOrientedShape aMap0;
       //MapOfOrientedShapes(aRootShape, aMap0);
       TopTools_ListOfShape aList, aFailedList;
@@ -1971,7 +1966,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
       return 0;
     }
   }
- ERR:
+
   cout << "DNaming_TestSingle : Error" << endl;
   return 1;  
 }
@@ -2007,7 +2002,6 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
 
     if(!aNS.IsNull() && !aNS->IsEmpty()) {
       const TopoDS_Shape&  aRootShape = aNS->Get();
-      TopAbs_ShapeEnum aType = aRootShape.ShapeType();
       TopTools_MapOfOrientedShape aMap0;
       MapOfOrientedShapes(aRootShape, aMap0);
       TopTools_ListOfShape aList, aFailedList;
@@ -2102,7 +2096,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
       return 0;
     }
   }
- ERR:
+
   cout << "DNaming_TestMultiple : Error" << endl;
   return 1;  
 }
index aec0875..862fe45 100755 (executable)
@@ -142,7 +142,6 @@ void DNaming::ToolsCommands (Draw_Interpretor& theCommands)
   if (done) return;
   done = Standard_True;
   const char* g = "Naming data commands " ;
-  const char* g2 = "Naming modeling commands" ;
 
   theCommands.Add ("CopyShape", 
                    "CopyShape (Shape1 [Shape2] ...)",
index 7a7021a..2fafd34 100755 (executable)
@@ -107,7 +107,6 @@ Standard_Integer _main_ (int argc, char* argv[], char* envp[], const FDraw_InitA
   Draw_IsConsoleSubsystem = Standard_True;
   //return _WinMain_(::GetModuleHandle(NULL), NULL, GetCommandLine(), SW_SHOW, fDraw_InitAppli);
   theDraw_InitAppli = fDraw_InitAppli;
-  Standard_Boolean CONSOLE = Standard_True;
   //ParseCommandLine(GetCommandLine());
 
   // MKV 01.02.05
index d272705..93aaca0 100755 (executable)
@@ -498,9 +498,6 @@ void   Draw_Viewer::RotateView  (const Standard_Integer id,
   if (Draw_Batch) return;
   if (myViews[id]) {
     gp_Trsf T = myViews[id]->Matrix;
-#ifdef DEB
-    Standard_Real z = myViews[id]->Zoom;
-#endif
 
     T.Invert();
     gp_Pnt PP(0,0,0);
index c2f3d16..a52fc9a 100755 (executable)
@@ -168,10 +168,7 @@ void DrawDim_Angle::DrawOn(Draw_Display& ) const
       gp_Vec curvec (AxePosition, curpt);
       gp_XYZ curXYZ = curvec.XYZ();
       gp_XYZ Norm (curXYZ.Crossed(AxeXYZ));
-#ifdef DEB
-      Standard_Real NormMod =
-#endif
-                              Norm.Modulus();
+
       if (Norm.Modulus() > gp::Resolution()) {
        Standard_Real curdist = curpos.Distance (curpt);
        if (curdist < dist) {
index 58a310e..448ddb5 100755 (executable)
@@ -22,10 +22,7 @@ DrawFairCurve_Batten::DrawFairCurve_Batten(const Standard_Address TheBatten)
 void DrawFairCurve_Batten::Compute()
 {
   FairCurve_AnalysisCode Iana;
-#ifdef DEB
-  Standard_Boolean Ok =
-#endif
-                        ((FairCurve_Batten*)MyBatten)->Compute(Iana, 50, 1.0e-2);
+  ((FairCurve_Batten*)MyBatten)->Compute(Iana, 50, 1.0e-2);
   curv = ((FairCurve_Batten*)MyBatten)->Curve();
 }
 void DrawFairCurve_Batten::SetPoint(const Standard_Integer Side, const gp_Pnt2d& Point)
index dbce5f5..a4d53e5 100755 (executable)
@@ -118,10 +118,7 @@ static Standard_Boolean FindPointOnFace(const TopoDS_Face& face, gp_Pnt2d& pt2d)
   // verify that (upar vpar) is a point on the face
 
   BRepClass_FaceClassifier fClass(face, pt2d, gp::Resolution());
-#ifdef DEB
-  TopAbs_State state =
-#endif
-                       fClass.State();
+
   if ((fClass.State() == TopAbs_OUT) || (fClass.State() == TopAbs_UNKNOWN)) {
     // try to find a point on face
     pt2d=points(1);
index 004c227..1244aed 100755 (executable)
@@ -71,11 +71,6 @@ void DsgPrs_XYZAxisPresentation::Add(const Handle(Prs3d_Presentation)& aPresenta
   A(1).SetCoord(xo,yo,zo);
   A(2).SetCoord(x,y,z);
  
-#ifdef DEB
-  Quantity_Length arrowAngle = anArrowAspect->Angle();
-  Quantity_Length textHeight = aTextAspect->Height();
-#endif
-
   G->SetPrimitivesAspect(aLineAspect->Aspect());
   G->Polyline(A);
   G->SetPrimitivesAspect( anArrowAspect->Aspect() );
index 3926ead..93a4112 100755 (executable)
@@ -84,10 +84,7 @@ extern "C" void ExprIntrp_Derivation()
 {
   ExprIntrp_Recept.PushValue(1);
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
-    ExprIntrp_GetResult(name);
+  ExprIntrp_GetResult(name);
   TCollection_AsciiString thename(name);
   Handle(Expr_NamedExpression) namexp = ExprIntrp_Recept.GetNamed(thename);
   if (namexp.IsNull()) {
@@ -127,10 +124,7 @@ extern "C" void ExprIntrp_StartDifferential()
 extern "C" void ExprIntrp_DiffDegreeVar()
 {
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
-    ExprIntrp_GetResult(name);
+  ExprIntrp_GetResult(name);
 #ifndef WNT 
   if (strncasecmp(name,"X",1)) {
 #else
@@ -154,10 +148,7 @@ extern "C" void ExprIntrp_DiffVar()
 extern "C" void ExprIntrp_DiffDegree()
 {
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
-    ExprIntrp_GetResult(name);
+  ExprIntrp_GetResult(name);
   Standard_Integer deg = atoi(name);
   ExprIntrp_Recept.PushValue(deg);
 }
@@ -165,10 +156,7 @@ extern "C" void ExprIntrp_DiffDegree()
 extern "C" void ExprIntrp_VerDiffDegree()
 {
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
-    ExprIntrp_GetResult(name);
+  ExprIntrp_GetResult(name);
   Standard_Integer deg = atoi(name);
   Standard_Integer thedeg = ExprIntrp_Recept.PopValue();
   if (deg != thedeg) {
@@ -604,10 +592,7 @@ extern "C" void ExprIntrp_EndOfFuncDef()
 extern "C" void ExprIntrp_ConstantIdentifier()
 {
   char name[100];
-#ifdef DEB
-  Standard_Integer nbcar = 
-#endif
-    ExprIntrp_GetResult(name);
+  ExprIntrp_GetResult(name);
   TCollection_AsciiString thename(name);
   ExprIntrp_Recept.PushName(thename);
 }
index 7c17e03..36974f8 100755 (executable)
@@ -126,8 +126,7 @@ void Extrema_ExtCS::Perform(const Adaptor3d_Curve& C,
          if(Precision::IsInfinite(Abs(cfirst)) || Precision::IsInfinite(Abs(clast))) {
 
            Bnd_Box aSurfBox;
-           BndLib_AddSurface anAddSurf;
-           anAddSurf.Add(*myS, ufirst, ulast, vfirst, vlast, Precision::Confusion(), aSurfBox);
+      BndLib_AddSurface::Add(*myS, ufirst, ulast, vfirst, vlast, Precision::Confusion(), aSurfBox);
            Standard_Real xmin, ymin, zmin, xmax, ymax, zmax;
            aSurfBox.Get(xmin, ymin, zmin, xmax, ymax, zmax);
            Standard_Real tmin = Precision::Infinite(), tmax = -tmin;
index 1e29282..6fc764c 100755 (executable)
@@ -53,7 +53,6 @@ class ExtremaExtElC_TrigonometricRoots {
   }
   //
   Standard_Boolean IsARoot(Standard_Real u) {
-    Standard_Integer i;
     Standard_Real PIpPI, aEps;
     //
     aEps=RealEpsilon();
index e7fb74c..a81a9a2 100755 (executable)
@@ -278,11 +278,6 @@ Method:
   Standard_Real R = C.MajorRadius();
   Standard_Real r = C.MinorRadius();
   gp_Vec OPp (O,Pp);
-#ifdef DEB
-  Standard_Real OPpMagn = OPp.Magnitude();
-#else
-  OPp.Magnitude();
-#endif
   Standard_Real X = OPp.Dot(gp_Vec(C.XAxis().Direction()));
   Standard_Real Y = OPp.Dot(gp_Vec(C.YAxis().Direction()));
 
@@ -371,11 +366,6 @@ Method:
 
   Standard_Real F = C.Focal();
   gp_Vec OPp (O,Pp);
-#ifdef DEB
-  Standard_Real OPpMagn = OPp.Magnitude();
-#else
-  OPp.Magnitude();
-#endif
   Standard_Real X = OPp.Dot(gp_Vec(C.XAxis().Direction()));
 //  Standard_Real Y = Sqrt(OPpMagn*OPpMagn-X*X);
   Standard_Real Y = OPp.Dot(gp_Vec(C.YAxis().Direction()));
index abff2fb..496e2f0 100755 (executable)
@@ -144,11 +144,6 @@ void Extrema_ExtPElC2d::Perform (const gp_Pnt2d&     P,
     myDone = Standard_False;
   }
   else {
-#ifdef DEB
-    Standard_Real VMagn = V.Magnitude();
-#else
-    V.Magnitude();
-#endif
     Standard_Real X = V.Dot(gp_Vec2d(E.XAxis().Direction()));
     Standard_Real Y = V.Dot(gp_Vec2d(E.YAxis().Direction()));
 
@@ -195,11 +190,6 @@ void Extrema_ExtPElC2d::Perform(const gp_Pnt2d&     P,
   Standard_Real R = H.MajorRadius();
   Standard_Real r = H.MinorRadius();
   gp_Vec2d OPp(O,P);
-#ifdef DEB
-  Standard_Real OPpMagn = OPp.Magnitude();
-#else
-  OPp.Magnitude();
-#endif
   Standard_Real Tol2 = Tol * Tol;
   Standard_Real X = OPp.Dot(gp_Vec2d(H.XAxis().Direction()));
   Standard_Real Y = OPp.Dot(gp_Vec2d(H.YAxis().Direction()));
@@ -263,11 +253,6 @@ void Extrema_ExtPElC2d::Perform(const gp_Pnt2d&     P,
   Standard_Real Tol2 = Tol * Tol;
   Standard_Real F = C.Focal();
   gp_Vec2d OPp (O,P);
-#ifdef DEB
-  Standard_Real OPpMagn = OPp.Magnitude();
-#else
-  OPp.Magnitude();
-#endif
   Standard_Real X = OPp.Dot(gp_Vec2d(C.MirrorAxis().Direction()));
   Standard_Real Y = OPp.Dot(gp_Vec2d(C.Axis().YAxis().Direction()));
 
index 49b4828..0b1c445 100755 (executable)
@@ -121,11 +121,6 @@ void Extrema_ExtPElS::Perform(const gp_Pnt&       P,
 
   Standard_Real L2 = MP.SquareMagnitude();
   Standard_Real Vm = -(S.RefRadius() / Sin(A));
-#ifdef DEB
-  Standard_Real Zm = gp_Vec(O, M).Dot(OZ);
-#else
-  gp_Vec(O, M).Dot(OZ);
-#endif
 
 // Case when P is mixed with S ...
   if (L2 < Tol * Tol) {
index 1e7d4f3..dc66e68 100755 (executable)
@@ -80,11 +80,8 @@ FEmTool_Assembly::FEmTool_Assembly(const TColStd_Array2OfInteger& Dependence,
 
   TColStd_Array1OfInteger FirstIndexes(1, B.Length()); FirstIndexes.Init(B.Length());
 
-#ifdef DEB
-  Standard_Integer dim, el, nvar, Imax, Imin, I0 = 1 - B.Lower(), i;
-#else
   Standard_Integer dim, el, nvar, Imin, I0 = 1 - B.Lower(), i;
-#endif
+
   Standard_Integer diml = Table->LowerRow(), dimu = Table->UpperRow(),
                    ell = Table->LowerCol(), elu = Table->UpperCol(), nvarl, nvaru;
 
@@ -137,11 +134,9 @@ void FEmTool_Assembly::AddMatrix(const Standard_Integer Element,
 
   Standard_Integer nvarl = T1.Lower(), nvaru = Min(T1.Upper(), nvarl + Mat.RowNumber() - 1);
 
-#ifdef DEB
-  Standard_Integer I, J, I0 = 1 - B.Lower(), i, ii, j, jj, 
-#else
+
   Standard_Integer I, J, I0 = 1 - B.Lower(), i, ii, j,
-#endif
+
                    i0 = Mat.LowerRow() - nvarl, j0 = Mat.LowerCol() - nvarl;
 
   for(i = nvarl; i <= nvaru; i++) {
index 7cda2b4..8f63a17 100755 (executable)
@@ -161,10 +161,6 @@ PerformLengthParametrized( Handle(TColStd_HArray1OfReal)& HParameters,
 //  Standard_Real UCurrent;
   Standard_Real Delta, Ui;
   Standard_Real UU2 = Max(U1, U2);
-#ifdef DEB
-  Standard_Real L = 
-#endif
-    CPnts_AbscissaPoint::Length(C, UU1, UU2);
   Standard_Integer   Index ;
 
 // Ratio is defined as dl = Ratio * du
index 237f3ae..2b1014b 100755 (executable)
@@ -75,7 +75,7 @@ Standard_Boolean GProp_TFunction::Value(const Standard_Real  X,
   // Compute the integral from myUMin to aUMax of myUFunction.
   Standard_Integer i;
   Standard_Real    aCoeff        = aV2d.Y();
-  Standard_Integer aNbUIntervals = anUKnots->Length() - 1;
+  //Standard_Integer aNbUIntervals = anUKnots->Length() - 1;
   //Standard_Real    aTol          = myTolerance/aNbUIntervals;
   Standard_Real    aTol          = myTolerance;
 
index 5873a35..4799c57 100755 (executable)
@@ -71,11 +71,7 @@ GccAna_Circ2d2TanOn::
   gp_Pnt2d center1(C1.Location());
   gp_Pnt2d center2(C2.Location());
   TColStd_Array1OfReal Radius(1,2);
-#ifdef DEB
-  Standard_Real distance = center1.Distance(center2);
-#else
-  center1.Distance(center2);
-#endif
+
   Standard_Real dist1 = OnLine.Distance(center1);
   Standard_Real dist2 = OnLine.Distance(center2);
   Standard_Real d1 = dist1+R1;
index 28e17f2..77d7437 100755 (executable)
   gp_Dir2d dir(OnCirc.Location().XY()-Point2.XY());
   gp_Pnt2d pinterm(Point2.XY()+(distpc+Ron)*dir.XY());
   Standard_Real dist1 = L1.Distance(pinterm);
-  if (Abs(dist1-distpc-Ron) > Tol) {
-#ifdef DEB
-    gp_Pnt2d pinterm(Point2.XY()+(distpc-Ron)*dir.XY()); // Unused ! BUG ???
-    Standard_Real dist1 = L1.Distance(pinterm); // Unused ! BUG ???
-#endif
-  }
+
   if (Abs(dist1-distpc+Ron) <= Tol) {
     dir = gp_Dir2d(-dirL1.Y(),dirL1.X());
     gp_Dir2d direc(originL1.XY()-pinterm.XY());
index ca2d35a..a3f2a17 100755 (executable)
@@ -70,11 +70,7 @@ GccAna_Circ2d2TanOn::
   TColStd_Array1OfReal Rradius(1,2);
   gp_Pnt2d center1(C1.Location());
   gp_Pnt2d center2(C2.Location());
-#ifdef DEB
-  Standard_Real distance = center1.Distance(center2);
-#else
-  center1.Distance(center2);
-#endif
+
   Standard_Real R1 = C1.Radius();
   Standard_Real R2 = C2.Radius();
 
index bfffb57..8c363c5 100755 (executable)
@@ -43,9 +43,6 @@ GccAna_Circ2d2TanOn::
   NbrSol = 0;
   
   gp_Dir2d dirx(1.,0.);
-#ifdef DEB
-  Standard_Real Tol = Abs(Tolerance);
-#endif
   if (!(Qualified1.IsEnclosed() ||
        Qualified1.IsOutside() || Qualified1.IsUnqualified()) ||
       !(Qualified2.IsEnclosed() ||
index 3ca3eab..c95d30f 100755 (executable)
@@ -53,9 +53,6 @@ GccAna_Circ2d2TanRad::
 {
 
   gp_Dir2d dirx(1.0,0.0);
-#ifdef DEB
-  Standard_Real Tol = Abs(Tolerance);
-#endif
   TColStd_Array1OfReal cote1(1,2);
   TColStd_Array1OfReal cote2(1,2);
   Standard_Integer nbrcote1=0;
index a1b26ae..bdf3fd8 100755 (executable)
@@ -57,9 +57,6 @@ GccAna_Circ2d3Tan::
    TheSame2.Init(0);
    TheSame3.Init(0);
    gp_Dir2d dirx(1.0,0.0);
-#ifdef DEB
-   Standard_Real Tol = Abs(Tolerance);
-#endif
    WellDone = Standard_False;
    NbrSol = 0;
    if (!(Qualified1.IsEnclosed() ||
index ff5ea6d..f4e0c17 100755 (executable)
@@ -95,11 +95,7 @@ GccAna_Circ2d3Tan::
           gp_Pnt2d Center(Intp.Point(j).Value());
           Standard_Real dist1 = L1.Distance(Center);
           Standard_Real dist2 = Center.Distance(Point2);
-#ifdef DEB
-          Standard_Real dist3 = Center.Distance(Point3);
-#else
-           Center.Distance(Point3);
-#endif
+
           Standard_Real Radius=0;
           Standard_Integer nbsol1 = 0;
 //        Standard_Integer nbsol2 = 0;
index 8d7a99f..0b6f82d 100755 (executable)
@@ -94,11 +94,6 @@ GccAna_Circ2dTanOnRad::
              cirsol(NbrSol)=gp_Circ2d(gp_Ax2d(Center,dirx),Radius);
 //           =====================================================
             gp_Dir2d dc1(origin1.XY()-Center.XY());
-#ifdef DEB
-            Standard_Real sign = dc1.Dot(normL1);
-#else
-             dc1.Dot(normL1);
-#endif
             if (!Qualified1.IsUnqualified()) { 
               qualifier1(NbrSol) = Qualified1.Qualifier();
             }
index a37b959..82a108b 100755 (executable)
@@ -447,13 +447,6 @@ GccGeo_Circ2dTanOnRad::
        cote1(1) = Radius;
        cote1(2) = -Radius;
      }
-#ifdef DEB
-     Standard_Real x1dir = dir1.X();
-     Standard_Real y1dir = dir1.Y();
-#else
-     dir1.X();
-     dir1.Y();
-#endif
      TheIntConicCurve Intp;
      for (Standard_Integer jcote1 = 1 ; jcote1 <= nbrcote1 ; jcote1++) {
        gp_Pnt2d Point(dir1.XY()+cote1(jcote1)*norm1.XY());
@@ -472,11 +465,6 @@ GccGeo_Circ2dTanOnRad::
             cirsol(NbrSol) = gp_Circ2d(gp_Ax2d(Center,dirx),Radius);
 //           =======================================================
             gp_Dir2d dc1(origin1.XY()-Center.XY());
-#ifdef DEB
-            Standard_Real sign = dc1.Dot(norm1);
-#else
-             dc1.Dot(norm1);
-#endif
             if (!Qualified1.IsUnqualified()) { 
               qualifier1(NbrSol) = Qualified1.Qualifier();
             }
index 1ce82f9..d1f3d4a 100755 (executable)
@@ -76,11 +76,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(L1,Cu2,OnLine,Ufirst(4));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
 //     gp_Vec2d Tan1,Tan2,Nor1,Nor2;
@@ -187,11 +183,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(Cu1,Cu2,OnLine,Ufirst(4));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
      gp_Vec2d Tan1,Tan2;
@@ -287,11 +279,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(3) = (point3.Distance(Point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(Cu1,Point2,OnLine,Ufirst(3));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
      gp_Pnt2d point1,point3;
@@ -384,11 +372,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(C1,Cu2,OnLine,Ufirst(4));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
 //     gp_Vec2d Tan1,Tan2,Nor1,Nor2;
@@ -501,11 +485,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(C1,Cu2,OnCirc,Ufirst(4));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
 //     gp_Vec2d Tan1,Tan2,Nor1;
@@ -615,11 +595,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(L1,Cu2,OnCirc,Ufirst(4));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
      gp_Pnt2d point1,point2;
@@ -729,11 +705,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(Cu1,Cu2,OnCirc,Ufirst(4));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
 //     gp_Vec2d Tan1,Tan2,Nor1;
@@ -833,11 +805,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(3) = (point3.Distance(Point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(Cu1,Point2,OnCirc,Ufirst(3));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
      gp_Pnt2d point1,point3;
@@ -930,11 +898,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(Cu1,Cu2,OnCurv,Ufirst(4));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
      gp_Vec2d Tan1,Tan2,Tan3;
@@ -1039,11 +1003,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(C1,Cu2,OnCurv,Ufirst(4));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
      gp_Vec2d Tan1,Tan2,Tan3;
@@ -1150,11 +1110,7 @@ GccIter_Circ2d2TanOn::
    Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
    GccIter_FuncTCuCuOnCu Func(L1,Cu2,OnCurv,Ufirst(4));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-   Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
    Func.Value(Ufirst,Umin);
-#endif
    if (Root.IsDone()) {
      Root.Root(Ufirst);
      gp_Vec2d Tan1,Tan2,Tan3;
@@ -1251,11 +1207,7 @@ GccIter_Circ2d2TanOn::
   Ufirst(3) = (point3.Distance(Point2)+point3.Distance(point1))/2.;
   GccIter_FuncTCuCuOnCu Func(Cu1,Point2,OnCurv,Ufirst(3));
   math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
-#ifdef DEB
-  Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
   Func.Value(Ufirst,Umin);
-#endif
   if (Root.IsDone()) {
     Root.Root(Ufirst);
 //    gp_Vec2d Tan1,Tan2,Tan3;
index 54c3fbc..ed7d1cd 100755 (executable)
@@ -76,11 +76,7 @@ GccIter_Circ2d3Tan::
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
      Root.Root(Ufirst);
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      gp_Pnt2d point1,point2,point3;
      gp_Vec2d Tan1,Tan2,Tan3;
      TheCurveTool::D1(Cu1,Ufirst(1),point1,Tan1);
@@ -203,11 +199,7 @@ GccIter_Circ2d3Tan::
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
      Root.Root(Ufirst);
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      gp_Pnt2d centre1(C1.Location());
      Standard_Real R1 = C1.Radius();
      gp_Pnt2d point1(centre1.XY()+R1*gp_XY(Cos(Ufirst(1)),Sin(Ufirst(1))));
@@ -335,11 +327,7 @@ GccIter_Circ2d3Tan::
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
      Root.Root(Ufirst);
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      gp_Pnt2d centre1(C1.Location());
      Standard_Real R1 = C1.Radius();
      gp_Pnt2d point1(centre1.XY()+R1*gp_XY(Cos(Ufirst(1)),Sin(Ufirst(1))));
@@ -470,11 +458,7 @@ GccIter_Circ2d3Tan::
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
      Root.Root(Ufirst);
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      gp_Pnt2d centre1(L1.Location());
      gp_Pnt2d point1(centre1.XY()+Ufirst(1)*L1.Direction().XY());
      gp_Pnt2d point2,point3;
@@ -605,11 +589,7 @@ GccIter_Circ2d3Tan::
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
      Root.Root(Ufirst);
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      gp_Pnt2d centre1(L1.Location());
      gp_Pnt2d point1(centre1.XY()+Ufirst(1)*L1.Direction().XY());
      gp_Pnt2d centre2(L2.Location());
@@ -733,11 +713,7 @@ GccIter_Circ2d3Tan::
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
      Root.Root(Ufirst);
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      gp_Pnt2d point1,point2;
 //     gp_Vec2d Tan1,Tan2,Nor1,Nor2;
      gp_Vec2d Tan1,Tan2;
@@ -850,11 +826,7 @@ GccIter_Circ2d3Tan::
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
      Root.Root(Ufirst);
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      gp_Pnt2d point3;
 //     gp_Vec2d Tan3,Nor3;
      gp_Vec2d Tan3;
@@ -964,11 +936,7 @@ GccIter_Circ2d3Tan::
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
      Root.Root(Ufirst);
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      gp_Pnt2d centre1(L1.Location());
      gp_Pnt2d point1(centre1.XY()+Ufirst(2)*L1.Direction().XY());
      gp_Pnt2d point2;
@@ -1086,11 +1054,7 @@ GccIter_Circ2d3Tan::
    tol(3) = TheCurveTool::EpsX(Cu3,Abs(Tolerance));
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      Root.Root(Ufirst);
      gp_Pnt2d centre1(C1.Location());
      Standard_Real R1 = C1.Radius();
@@ -1218,11 +1182,7 @@ GccIter_Circ2d3Tan::
    math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
    if (Root.IsDone()) {
      Root.Root(Ufirst);
-#ifdef DEB
-     Standard_Boolean Ok = Func.Value(Ufirst,Umin);
-#else
      Func.Value(Ufirst,Umin);
-#endif
      gp_Pnt2d centre1(C1.Location());
      Standard_Real R1 = C1.Radius();
      gp_Pnt2d point1(centre1.XY()+R1*gp_XY(Cos(Ufirst(1)),Sin(Ufirst(1))));
index 5d7e53a..9d380e5 100755 (executable)
@@ -87,11 +87,6 @@ Standard_Boolean GccIter_FunctionTanCirCu::
   TheCurveTool::D2(Curve,X,Point,Vect1,Vect2);
   Standard_Real NormeD1 = Vect1.SquareMagnitude();
   gp_Vec2d TheDirection(TheCirc.Location(),Point);
-#ifdef DEB
-  Standard_Real squaredir = TheDirection.SquareMagnitude();
-#else
-  TheDirection.SquareMagnitude();
-#endif
   Standard_Real cp1dott = TheDirection.Dot(Vect1);
   Deriv = -2.*(cp1dott/NormeD1)*
     ((TheDirection.Dot(Vect2))-cp1dott*Vect1.Dot(Vect2)/NormeD1);
index 544fc24..e7f24e2 100755 (executable)
@@ -290,11 +290,6 @@ Standard_Boolean GccIter_FunctionTanCuCuOnCu::
 //norme des Tani.
   Standard_Real nnor1 = Tan1.Magnitude();
   Standard_Real nnor2 = Tan2.Magnitude();
-#ifdef DEB
-  Standard_Real nnor3 = Tan3.Magnitude();
-#else
-  Tan3.Magnitude();
-#endif
 // Fonctions Fui.
 // ==============
   Fval(1) = (P3P1.Dot(P3P1)-X(4)*X(4))/(FirstRad*FirstRad);
@@ -323,11 +318,6 @@ Standard_Boolean GccIter_FunctionTanCuCuOnCu::
 //normales au courbes normees Nori et non nromees nori et norme des nori.
   Standard_Real nnor1 = Tan1.Magnitude();
   Standard_Real nnor2 = Tan2.Magnitude();
-#ifdef DEB
-  Standard_Real nnor3 = Tan3.Magnitude();
-#else
-  Tan3.Magnitude();
-#endif
 // Derivees dFui/uj  1 <= ui <= 3 , 1 <= uj <= 3
 // =============================================
   Deriv(1,1) = 2.*Tan1.Dot(P3P1)/(FirstRad*FirstRad);
@@ -374,11 +364,6 @@ Standard_Boolean GccIter_FunctionTanCuCuOnCu::
 //normales au courbes normees Nori et non nromees nori et norme des nori.
   Standard_Real nnor1 = Tan1.Magnitude();
   Standard_Real nnor2 = Tan2.Magnitude();
-#ifdef DEB
-  Standard_Real nnor3 = Tan3.Magnitude();
-#else
-  Tan3.Magnitude();
-#endif
 // Fonctions Fui.
 // ==============
   Fval(1) = (P3P1.Dot(P3P1)-X(4)*X(4))/(FirstRad*FirstRad);
index 18deb35..dd4ccaf 100755 (executable)
@@ -26,9 +26,9 @@ GccIter_Lin2d2Tan::
      
    par1sol = 0.;
    pararg1 = 0.;
-#ifdef DEB
-   Standard_Real Tol = Abs(Tolang);
-#endif
+
+   //Standard_Real Tol = Abs(Tolang);
+
    WellDone = Standard_False;
    if (Qualified1.IsEnclosed()) { GccEnt_BadQualifier::Raise(); }
    gp_Circ2d C1 = Qualified1.Qualified();
index 7bc5311..fd76a38 100755 (executable)
@@ -191,17 +191,6 @@ void Geom_CylindricalSurface::Coefficients (Standard_Real& A1, Standard_Real& A2
   Standard_Real T22 = T.Value (2, 2);
   Standard_Real T23 = T.Value (2, 3);
   Standard_Real T24 = T.Value (2, 4);
-#ifdef DEB
-  Standard_Real T31 = T.Value (3, 1);
-  Standard_Real T32 = T.Value (3, 2);
-  Standard_Real T33 = T.Value (3, 3);
-  Standard_Real T34 = T.Value (3, 4);
-#else
-  T.Value (3, 1);
-  T.Value (3, 2);
-  T.Value (3, 3);
-  T.Value (3, 4);
-#endif
   A1 = T11 * T11 + T21 * T21;
   A2 = T12 * T12 + T22 * T22;
   A3 = T13 * T13 + T23 * T23;
index 01217fc..d10e784 100755 (executable)
@@ -529,12 +529,6 @@ void Geom_OffsetCurve::D1 ( const Standard_Real U,
 
    // P'(u) = p'(u) + (Offset / R**2) * (DNdir/DU * R -  Ndir * (DR/R))
 
-
-#ifdef DEB
-  GeomAbs_Shape Continuity = basisCurve->Continuity();
-#else
-  basisCurve->Continuity();
-#endif
   basisCurve->D2 (U, PBasis, V1basis, V2basis);
   V1 = V1basis;
   Vec V2 = V2basis;
@@ -590,12 +584,6 @@ void Geom_OffsetCurve::D2 (const Standard_Real U,
    // P"(u) = p"(u) + (Offset / R) * (D2Ndir/DU - DNdir * (2.0 * Dr/ R**2) +
    //         Ndir * ( (3.0 * Dr**2 / R**4) - (D2r / R**2)))
 
-#ifdef DEB
-  GeomAbs_Shape Continuity = basisCurve->Continuity();
-#else
-  basisCurve->Continuity();
-#endif
-
   basisCurve->D3 (U, PBasis, V1basis, V2basis, V3basis);
   Standard_Integer Index = 2;
   V1     = V1basis;
index cbc7d89..806e122 100755 (executable)
@@ -191,12 +191,6 @@ void Geom2d_OffsetCurve::D1 (const Standard_Real U, Pnt2d& P, Vec2d& V1) const {
 
    // P'(u) = p'(u) + (Offset / R**2) * (DNdir/DU * R -  Ndir * (DR/R))
 
-
-#ifdef DEB
-  GeomAbs_Shape Continuity = basisCurve->Continuity();
-#else
-  basisCurve->Continuity();
-#endif
   Vec2d V2;
   basisCurve->D2 (U, P, V1, V2);
   Standard_Integer Index = 2;
@@ -248,11 +242,6 @@ void Geom2d_OffsetCurve::D2 (const Standard_Real U,
    // P"(u) = p"(u) + (Offset / R) * (D2Ndir/DU - DNdir * (2.0 * Dr/ R**2) +
    //         Ndir * ( (3.0 * Dr**2 / R**4) - (D2r / R**2)))
 
-#ifdef DEB
-  GeomAbs_Shape Continuity = basisCurve->Continuity();
-#else
-  basisCurve->Continuity();
-#endif
   Vec2d V3;
   basisCurve->D3 (U, P, V1, V2, V3);
   Standard_Integer Index = 2;
@@ -483,12 +472,6 @@ void Geom2d_OffsetCurve::D1 (const Standard_Real U,
 
    // P'(u) = p'(u) + (Offset / R**2) * (DNdir/DU * R -  Ndir * (DR/R))
 
-#ifdef DEB
-   GeomAbs_Shape Continuity = basisCurve->Continuity();
-#else
-   basisCurve->Continuity();
-#endif
-
    basisCurve->D2 (U, Pbasis, V1basis, V2basis);
    V1 = V1basis;
    Vec2d V2 = V2basis;
@@ -546,12 +529,6 @@ void Geom2d_OffsetCurve::D2 (const Standard_Real U,
    // P"(u) = p"(u) + (Offset / R) * (D2Ndir/DU - DNdir * (2.0 * Dr/ R**2) +
    //         Ndir * ( (3.0 * Dr**2 / R**4) - (D2r / R**2)))
 
-#ifdef DEB
-  GeomAbs_Shape Continuity = basisCurve->Continuity();
-#else
-  basisCurve->Continuity();
-#endif
-
   basisCurve->D3 (U, Pbasis, V1basis, V2basis, V3basis);
   Standard_Integer Index = 2;
   V1 = V1basis;
index 3636945..6cf6835 100755 (executable)
@@ -592,10 +592,6 @@ Standard_Real GeomFill_CorrectedFrenet::GetAngleAT(const Standard_Real Param) co
     };
     if(HArrPoles->Value(iC) == Param || Param == HArrPoles->Value(iC+1)) return TLaw->Value(Param);
   };
-#ifdef DEB
-  Standard_Real Po = 
-#endif
-    HArrPoles->Value(iC);
   //  Calculate differenciation between apporoximated and local values of AngleAT
   Standard_Real AngP = TLaw->Value(Param), AngPo = HArrAngle->Value(iC), dAng = AngP - AngPo;
   gp_Vec Tangent, Normal, BN;
index 6a8690f..1db8178 100755 (executable)
@@ -268,10 +268,6 @@ void  GeomFill_Curved::Init(const TColgp_Array1OfPnt& P1,
   
   IsRational = Standard_False;
   
-#ifdef DEB
-  Standard_Real NU = NPolU - 1;
-  Standard_Real NV = NPolV - 1;
-#endif
   myPoles = new TColgp_HArray2OfPnt( 1, NPolU, 1, NPolV);
   
   Standard_Integer i,j;
index f8bff6a..80e0cce 100755 (executable)
 static gp_Vec DDeriv(const gp_Vec& F, const gp_Vec& DF, const gp_Vec& D2F)
 {
   Standard_Real Norma = F.Magnitude();
-#ifdef DEB
-  Standard_Real dot = F.Dot(DF);
-#else
-  F.Dot(DF);
-#endif
+
   gp_Vec Result = (D2F - 2*DF*(F*DF)/(Norma*Norma))/Norma - 
      F*((DF.SquareMagnitude() + F*D2F 
         - 3*(F*DF)*(F*DF)/(Norma*Norma))/(Norma*Norma*Norma));
index 2189544..7f819ad 100755 (executable)
 
   gp_Vec n(P, PG); // vecteur definissant la normale
   Standard_Real Norm = n.Magnitude(), ndn;
-#ifdef DEB
-  Standard_Real Norm2 = n.SquareMagnitude();
-#else
-  n.SquareMagnitude();
-#endif
   //derivee de n par rapport a Param
   gp_Vec dn, d2n;
   dn.SetLinearForm(dtg_dt, TG, -1, To);
index 607b38e..9d9b786 100755 (executable)
@@ -629,12 +629,6 @@ static void InGoodPeriod(const Standard_Real Prec,
   gp_Vec T, N, B;
   gp_Pnt P;
   Standard_Boolean Ok;
-#ifdef DEB
-  Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
-#else
-  myCurve->FirstParameter() ;
-#endif
-    
 
   myCurve->D0(Param, P);
   V.SetXYZ(P.XYZ());
@@ -650,12 +644,6 @@ static void InGoodPeriod(const Standard_Real Prec,
   }
   
   if (rotation) {
-#ifdef DEB
-    Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
-#else
-    myCurve->FirstParameter() ;
-#endif
-      
     //initialisation du germe
     InitX(Param);    
     Standard_Integer Iter = 100;
@@ -689,6 +677,7 @@ static void InGoodPeriod(const Standard_Real Prec,
     }
     else {
 #if DEB
+      Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
       cout << "LocationGuide::D0 : No Result !"<<endl;
       TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
 #endif
index e7cb081..b5d6161 100755 (executable)
@@ -110,11 +110,6 @@ void GeomFill_PolynomialConvertor::Section(const gp_Pnt& FirstPnt,
   gp_Mat M(V1.X(), V2.X(), 0, 
           V1.Y(), V2.Y(), 0,
           V1.Z(), V2.Z(), 0);
-#ifdef DEB
-  Standard_Real r = FirstPnt.Distance(Center);          
-#else
-  FirstPnt.Distance(Center);
-#endif
 
   // Calcul des contraintes  -----------
   Vx(1) = 1;                   Vy(1) = 0;
index dd31696..482cc4f 100755 (executable)
@@ -131,11 +131,6 @@ void GeomFill_QuasiAngularConvertor::Section(const gp_Pnt& FirstPnt,
   gp_Mat M(V1.X(), V2.X(), 0, 
           V1.Y(), V2.Y(), 0,
           V1.Z(), V2.Z(), 0);
-#ifdef DEB
-  Standard_Real r = FirstPnt.Distance(Center);
-#else
-  FirstPnt.Distance(Center);
-#endif
 
   // Calcul des coeffs  -----------
   beta = Angle/4;
index 25892e3..7aa7984 100755 (executable)
@@ -256,11 +256,6 @@ void GeomFill_SweepSectionGenerator::Perform(const Standard_Boolean Polynomial)
   myPolynomial = Polynomial;
 
   // eval myNbSections.
-#ifdef DEB
-  Standard_Integer Deg = myPath->Degree();
-#else
-  myPath->Degree();
-#endif
   Standard_Integer NSpans = myPath->NbKnots()-1;
 
   myNbSections = 21 * NSpans;
index 6c55b42..ae8a49d 100755 (executable)
@@ -2353,11 +2353,6 @@ VerifSurface(const Standard_Integer NbBoucle)
        new TColStd_HArray1OfReal(1,NbPts_i-1);
       Handle(TColStd_HArray1OfReal) tcourb = 
        new TColStd_HArray1OfReal(1,NbPts_i-1);
-#ifdef DEB
-      Standard_Integer Cont_i=myLinCont->Value(i)->Order();
-#else
-      myLinCont->Value(i)->Order();
-#endif
 
       EcartContraintesMil (i,tdist,tang,tcourb);
 
index 8f3ffcd..2fadabc 100755 (executable)
@@ -71,10 +71,6 @@ void GeomPlate_PlateG0Criterion::Value(AdvApp2Var_Patch& P,
   TColStd_Array1OfReal Curve(1, dimension);
   TColStd_Array1OfReal Point(1, 3); 
   Standard_Real * Coeffs =  (Standard_Real *) &Patch.ChangeValue(1);
-#ifdef DEB
-  Standard_Real * Result =  
-#endif
-    (Standard_Real *) &Curve.ChangeValue(1);
   Standard_Real * Digit  =  (Standard_Real *) &Point.ChangeValue(1);
   
   Standard_Integer k1, k2, pos, ll=1;
index 2743297..498ea75 100755 (executable)
@@ -68,11 +68,6 @@ void GeomPlate_PlateG1Criterion::Value(AdvApp2Var_Patch& P,
   TColStd_Array1OfReal Curve(1, 2*dimension);
   TColStd_Array1OfReal Point(1, 3); 
   Standard_Real * Coeffs =  (Standard_Real *) &Patch.ChangeValue(1);
-#ifdef DEB
-  Standard_Real * Result =  (Standard_Real *) &Curve.ChangeValue(1);
-#else
-  Curve.ChangeValue(1);
-#endif
   Standard_Real * Digit  =  (Standard_Real *) &Point.ChangeValue(1);
   
   Standard_Integer k1, k2, pos, ll=1;
index fee78aa..77b8ca8 100755 (executable)
@@ -327,11 +327,6 @@ Handle(Geom_Curve) GeomProjLib::Project( const Handle(Geom_Curve)& C,
     Standard_Real TolV = Pow(Tol, 2./3);
     ProjLib_CompProjectedCurve Proj(HS,HC,TolU,TolV,-1.);
     
-#ifdef DEB
-    Standard_Integer NbCurves = Proj.NbCurves();
-#else
-    Proj.NbCurves();
-#endif
     Standard_Real f,l;
     Proj.Bounds(1,f,l);
     Handle(Adaptor2d_HCurve2d) HC2d = Proj.Trim(f,l,TolU);
index 6bc7849..6a12b5b 100755 (executable)
@@ -785,12 +785,6 @@ Handle(IGESData_IGESEntity) GeomToIGES_GeomSurface::TransferSurface
   Standard_Real V1 = Vdeb;
   Standard_Real V2 = Vfin;
 
-  // debug mjm du 28/03/96
-#ifdef DEB
-  Standard_Boolean IsDirect = 
-#endif
-    start->Torus().Direct();
-
   // creation de la generatrice : Generatrix (cercle)
   gp_Ax2 Axe = gp_Ax2(gp_Pnt((start->Torus().MajorRadius()), 0., 0.),
                      -gp::DY(), gp::DX());
index d537aa9..9dd57b7 100755 (executable)
@@ -757,10 +757,7 @@ static Standard_Integer gcarc (Draw_Interpretor& di,Standard_Integer n, const ch
          if (DrawTrSurf::GetPoint(a[5], P3)) {
 //         if (DrawTrSurf::GetPoint(a[6], P4)) {
            if (n>6) {
-#ifdef DEB
-             Standard_Boolean ip4 =
-#endif
-                                     DrawTrSurf::GetPoint(a[6], P4);
+        DrawTrSurf::GetPoint(a[6], P4);
              gp_Vec V1 = gp_Vec(P2,P3);                                                    
              Handle(Geom_Curve)thearc = GC_MakeArcOfCircle(P1,V1,P4).Value();
              DrawTrSurf::Set(a[1], thearc);
index 4888092..2e88d3c 100755 (executable)
@@ -831,8 +831,7 @@ static void ComputeDeviation(const Handle(Geom_Curve)& theCurve,
   theUfMax = 0.;
   theUlMax = 0.;
   theImax = 0;
-  Standard_Real dmax = 0., ufmax = 0., ulmax = 0.;
-  Standard_Integer imax = 0;
+  Standard_Real ufmax = 0., ulmax = 0.;
 
   //take knots
   Standard_Integer nbp = thePnts->NbKnots();
@@ -1234,7 +1233,7 @@ static Standard_Integer mypoints (Draw_Interpretor& di, Standard_Integer /*n*/,
 
   Draw::Set(a[1], aDrCrv);
 
-  Standard_Real dmax = 0., ufmax = 0., ulmax = 0., uf, ul;
+  Standard_Real dmax = 0., ufmax = 0., ulmax = 0.;
   Standard_Integer imax = 0;
 
   ComputeDeviation(C,aPnts,dmax,ufmax,ulmax,imax);
index 679cd12..81d285d 100755 (executable)
@@ -585,11 +585,6 @@ static Standard_Integer smoothingbybezier (Draw_Interpretor& di,
       Standard_Boolean mySquare = (methode == 2);
       Standard_Integer degmin = 4;
       Standard_Integer NbIteration = 5;
-#ifdef DEB
-      Standard_Integer NbConst =
-#endif
-                                 NbConstraint(TABofCC->Value(1).Constraint(),
-                                             TABofCC->Value(NbPoints).Constraint());
       
       if (Degree < 4) degmin = Max(1, Degree -1);
       degmin = Max(degmin, NbConstraint(TABofCC->Value(1).Constraint(),  
index d55991d..fa1ede4 100755 (executable)
@@ -298,10 +298,7 @@ void Graphic2d_Paragraph::ChangeText (const TCollection_ExtendedString &aText,
                                    const Standard_Integer aRow,
                                    const Standard_Integer aColumn) {
 Standard_Integer i,length = myTextDescriptorList.Length() ;
-#ifdef DEB
-Standard_Integer row = (aRow > 0) ? Min(aRow,MAXROW-1) : MAXROW-1 ;
-Standard_Integer column = (aColumn > 0) ? Min(aColumn,MAXCOLUMN-1) : MAXCOLUMN-1 ;
-#endif
+
 Standard_Integer descriptor = TEXT_DESCRIPTOR(aRow,aColumn,0,0,0,0) ;
 Standard_Integer the_position = TEXT_POSITION(descriptor) ;
 
@@ -533,10 +530,6 @@ Standard_Boolean Graphic2d_Paragraph::Pick (const Standard_ShortReal X,
                                        const Handle(Graphic2d_Drawer)& aDrawer) 
 {
 Standard_Boolean theStatus = Standard_False;
-#ifdef DEB
-Standard_ShortReal scale = 
-#endif
-  (myIsZoomable) ? myScale*aDrawer->Scale() : myScale;
 Standard_ShortReal TX = X, TY = Y;
 
   if (IsInMinMax (X, Y, aPrecision)) {
index cec6f29..603451a 100755 (executable)
@@ -796,7 +796,7 @@ Standard_Boolean Graphic3d_ArrayOfPrimitives::IsValid() {
   Standard_Integer nvertexs = myPrimitiveArray->num_vertexs;
   Standard_Integer nbounds = myPrimitiveArray->num_bounds;
   Standard_Integer nedges = myPrimitiveArray->num_edges;
-  Standard_Integer i,j,k,n;
+  Standard_Integer i,n;
 
 #if TRACE > 0
   Standard_CString name = StringType();
index d3ec0c8..f0cf6a0 100755 (executable)
@@ -91,7 +91,7 @@ void HLRTopoBRep_OutLiner::ProcessFace(const TopoDS_Face& F,
 {
   BRep_Builder B;
   TopExp_Explorer exE, exW;
-  Standard_Boolean splitted = Standard_False;
+  //Standard_Boolean splitted = Standard_False;
 
   TopTools_IndexedDataMapOfShapeListOfShape aVEMap;
   TopExp::MapShapesAndAncestors(F, TopAbs_VERTEX, TopAbs_EDGE, aVEMap);
index a0b257d..e8e3127 100755 (executable)
@@ -753,10 +753,6 @@ Standard_Boolean HatchGen_Hatcher::GlobalTransition (HatchGen_PointOnHatching& P
   printf("\n       P:%+10.5g  Tg2d:%+10.5g , %+10.5g  N2d:%+10.5g , %+10.5g  Crv:%+10.5g\n\n",
         Point.Parameter(),Tangente.X(),Tangente.Y(),Normale.X(),Normale.Y(),Courbure);
 #endif
-#ifdef DEB
-  Standard_Real ParamAtIntersection = 
-#endif
-    Point.Parameter();
   for (Standard_Integer IPntE = 1 ; IPntE <= Point.NbPoints() ; IPntE++) {
 
     const HatchGen_PointOnElement& PntE = Point.Point (IPntE) ;
index 4bd6ec8..119cb57 100755 (executable)
@@ -958,10 +958,7 @@ Standard_Boolean IFSelect_WorkSession::RemoveName
 {
   Handle(Standard_Transient) item = NamedItem(name);
   if (item.IsNull()) return Standard_False;
-#ifdef DEB
-  Standard_Integer bid = 
-#endif
-    theitems.Add(item,item);    // reste mais sans nom
+  theitems.Add(item,item);    // reste mais sans nom
   return thenames->RemoveItem(name);
 }
 
index 1128f27..b02bb85 100755 (executable)
@@ -1193,8 +1193,6 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
 
       ProdVectTan=Tan1.Crossed(Tan2);
       
-      Standard_Boolean IsInDomain=Standard_True;
-
       //#####################################################################
       //##  Longueur Minimale d un segment    Sur Courbe 1 
       //##################################################################### 
index 12ae042..cdc1d09 100755 (executable)
@@ -247,8 +247,6 @@ void IntCurve_IntPolyPolyGen::Perform( const TheCurve& C1
                                      ,const Standard_Real TheTol)
 {
 
-  Standard_Boolean AnErrorOccurred = Standard_False;
-
   this->ResetFields();
   DomainOnCurve1=D1;
   DomainOnCurve2=D1; 
index b28faa4..29d02ec 100755 (executable)
@@ -1069,11 +1069,6 @@ void IntCurveSurface_Inter::InternalPerformCurveQuadric(const TheCurve&
   IntCurveSurface_TheQuadCurvExactInter QuadCurv(surface,curve);  
   if(QuadCurv.IsDone()) { 
     Standard_Integer NbRoots = QuadCurv.NbRoots();
-#ifdef DEB
-    Standard_Integer NbInter = QuadCurv.NbIntervals();
-#else
-    QuadCurv.NbIntervals();
-#endif
     Standard_Real u,v,w;
     for(Standard_Integer i = 1; i<= NbRoots; i++) { 
       w = QuadCurv.Root(i); 
@@ -1127,11 +1122,6 @@ void IntCurveSurface_Inter::InternalPerform(const TheCurve&       curve,
     IntCurveSurface_TheQuadCurvExactInter QuadCurv(surface,curve);  
     if(QuadCurv.IsDone()) { 
       Standard_Integer NbRoots = QuadCurv.NbRoots();
-#ifdef DEB
-      Standard_Integer NbInter = QuadCurv.NbIntervals();
-#else
-      QuadCurv.NbIntervals();
-#endif
       Standard_Real u,v,w;
       for(Standard_Integer i = 1; i<= NbRoots; i++) { 
        w = QuadCurv.Root(i); 
index 1f2b961..fdc1830 100755 (executable)
@@ -126,7 +126,6 @@ void IntCurveSurface_Polygon::Init(const TheCurve&        C,
 
   //ddout << "IntCurveSurface_Polygon::Init" << endl;
   Standard_Real u=Binf; 
-  Standard_Real u1=Bsup;
   Standard_Integer i=1, i0 = Upars.Lower()-1;
   gp_Pnt P;
 
index d77403f..f3c6eff 100755 (executable)
@@ -420,10 +420,6 @@ Standard_Integer IntCurveSurface_Polyhedron::TriConnex
    Standard_Integer&      TriCon,
    Standard_Integer&      OtherP) const
 {
-#ifdef DEB
-  Standard_Integer nbdeltaUp1 = nbdeltaU + 1;
-  Standard_Integer nbdeltaUm2 = nbdeltaU + nbdeltaU;
-#endif
   Standard_Integer Pivotm1    = Pivot-1;
   Standard_Integer nbdeltaVp1 = nbdeltaV+1;
   Standard_Integer nbdeltaVm2 = nbdeltaV + nbdeltaV;
index 35da104..8642550 100755 (executable)
@@ -488,11 +488,6 @@ void IntPatch_ALine::ComputeVertexParameters(const Standard_Real Tol) {
   nbvtx     = NbVertex();
   if(nbvtx>1) { 
     IntPatch_Point& VTX0   = svtx.ChangeValue(1);
-#ifdef DEB
-    //Standard_Real d;
-    IntPatch_Point& VTX1   = 
-#endif
-      svtx.ChangeValue(2);
     if(   (VTX0.IsOnDomS1() == Standard_False)
        && (VTX0.IsOnDomS2() == Standard_False)) { 
       svtx.Remove(1);
@@ -504,10 +499,6 @@ void IntPatch_ALine::ComputeVertexParameters(const Standard_Real Tol) {
   }
   if(nbvtx>1) { 
     IntPatch_Point& VTX0   = svtx.ChangeValue(nbvtx);
-#ifdef DEB
-    IntPatch_Point& VTX1   = 
-#endif
-      svtx.ChangeValue(nbvtx-1);
     if(   (VTX0.IsOnDomS1() == Standard_False)
        && (VTX0.IsOnDomS2() == Standard_False)) { 
       svtx.Remove(nbvtx);
index 3270594..fd4946b 100755 (executable)
@@ -1075,9 +1075,9 @@ Standard_Boolean FindLine (gp_Pnt& Psurf,
          //-- le point n a pas ete trouve par bete projection.
          //-- on essaie l intersection avec la restriction en 2d
          Standard_Real theparamonarc = theparameteronarc;
-#ifdef DEB
-         Standard_Real anpara=para;
-#endif
+//#ifdef DEB
+//       Standard_Real anpara=para;
+//#endif
          gp_Pnt CopiePsurf=Psurf;
          Standard_Boolean ok=IntersectionWithAnArc(CopiePsurf,alin,para,thearc,theparamonarc,thepointonarc,QuadSurf,lower,upper,dist);
 
index 3d2e28b..f6b8393 100755 (executable)
@@ -2337,7 +2337,7 @@ void DecomposeResult(Handle(IntPatch_Line)&   Line,
   Standard_Real BSEAM = 1.5*M_PI; // delta U crossing seam
   Standard_Real BAPEX = M_PI/16.;  // delta U crossing apex
   
-  Standard_Integer i = 0, k = 0;
+  Standard_Integer k = 0;
   Standard_Real U1 = 0., U2 = 0., V1 = 0., V2 = 0., AnU1 = 0., AnV1 = 0., DU1 = 0., DV1 = 0.;
   Standard_Integer Findex = 1, Lindex = NbPnts, Bindex = 0;
 
index b24e020..1b4d000 100755 (executable)
@@ -1395,10 +1395,6 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
   }
   else if (typl != IntPatch_Restriction) { // JAG 01.07.96
     Standard_Real u1,v1,u2,v2;
-#ifdef DEB
-    Standard_Real paramminonvtx=RealLast();
-    Standard_Real parammaxonvtx=-paramminonvtx;
-#endif
     Handle(IntPatch_GLine)& GLine 
       =  *((Handle(IntPatch_GLine) *)&L);
     slin.Clear();
index 36c5014..27a2c88 100755 (executable)
@@ -194,9 +194,6 @@ Standard_Real IntPatch_Polyhedron::DeflectionOnTriangle
   gp_XYZ XYZ3=P1.XYZ()-P3.XYZ();
   gp_Vec NormalVector((XYZ1^XYZ2)+(XYZ2^XYZ3)+(XYZ3^XYZ1));
   NormalVector.Normalize();
-#ifdef DEB
-  Standard_Real PolarDistance = NormalVector * P1.XYZ();
-#endif
   //-- Calcul du point u,v  au centre du triangle
   Standard_Real u = (u1+u2+u3)/3.0;
   Standard_Real v = (v1+v2+v3)/3.0;
@@ -317,10 +314,6 @@ Standard_Integer IntPatch_Polyhedron::TriConnex (const Standard_Integer Triang,
                                                 Standard_Integer&      TriCon,
                                                 Standard_Integer&      OtherP)   const {
 
-#ifdef DEB
-  Standard_Integer nbdeltaUp1 = nbdeltaU + 1;
-  Standard_Integer nbdeltaUm2 = nbdeltaU + nbdeltaU;
-#endif
   Standard_Integer Pivotm1    = Pivot-1;
   Standard_Integer nbdeltaVp1 = nbdeltaV+1;
   Standard_Integer nbdeltaVm2 = nbdeltaV + nbdeltaV;
index 2662d15..ec18e3f 100755 (executable)
@@ -28,7 +28,6 @@ Standard_Integer IntPatch_PrmPrmIntersection_T3Bits::And(IntPatch_PrmPrmIntersec
                                                          Standard_Integer& indice)
 {
   int k=indice>>5;
-  Standard_Integer r=0;
   while(k<Isize)
   {
     Standard_Integer r=((Standard_Integer *) p)[k] & ((Standard_Integer *) Oth.p)[k];
index 9fa87a5..3b93b0b 100755 (executable)
@@ -70,8 +70,8 @@ void IntPolyh_Intersection::Perform() {
   Standard_Integer nbCouplesStd = 0;
   Standard_Integer nbCouplesAdv = 0;
   
-  GeomAbs_SurfaceType ST1 = mySurf1->GetType();
-  GeomAbs_SurfaceType ST2 = mySurf2->GetType();
+  //GeomAbs_SurfaceType ST1 = mySurf1->GetType();
+  //GeomAbs_SurfaceType ST2 = mySurf2->GetType();
 
 //   if(ST1 == GeomAbs_Torus || ST2 == GeomAbs_Torus)
 //     startFromAdvanced = Standard_True;
index 2fb23f9..24e0a98 100755 (executable)
@@ -373,7 +373,7 @@ void IntPolyh_MaillageAffinage::FillArrayOfPnt
   Standard_Boolean bDegI, bDeg;
   Standard_Integer aNbU, aNbV, iCnt, i, j;
   Standard_Integer aID1, aID2, aJD1, aJD2;
-  Standard_Real aTol, aU, aV, aX, aY, aZ, aDegX, aTol2;
+  Standard_Real aTol, aU, aV, aX, aY, aZ;
   gp_Pnt aP;
   //
   aNbU=(SurfID==1)? NbSamplesU1 : NbSamplesU2;
index 0aa00cf..b54931a 100755 (executable)
@@ -233,41 +233,10 @@ void IntRes2d_Intersection::Append( const IntRes2d_Intersection& Other
        const IntRes2d_IntersectionPoint& AnP1=lseg(j).FirstPoint();
        Standard_Real AnP1PParamOnFirst=AnP1.ParamOnFirst();
        Standard_Real AnP1PParamOnSecond=AnP1.ParamOnSecond();
-#if DEB
-       const IntRes2d_Transition& AnP1T1=AnP1.TransitionOfFirst();
-#else
-        AnP1.TransitionOfFirst();
-#endif
-#if DEB
-       const IntRes2d_Transition& AnP1T2=AnP1.TransitionOfSecond();
-#else
-        AnP1.TransitionOfSecond();
-#endif
-#if DEB
-       const gp_Pnt2d& AnPt1=AnP1.Value();
-#else
-        AnP1.Value();
-#endif
        
        const IntRes2d_IntersectionPoint& AnP2=lseg(j).LastPoint();
        Standard_Real AnP2PParamOnFirst=AnP2.ParamOnFirst();
        Standard_Real AnP2PParamOnSecond=AnP2.ParamOnSecond();
-#if DEB
-       const IntRes2d_Transition& AnP2T1=AnP2.TransitionOfFirst();
-#else
-        AnP2.TransitionOfFirst();
-#endif
-#if DEB
-       const IntRes2d_Transition& AnP2T2=AnP2.TransitionOfSecond();
-#else
-        AnP2.TransitionOfSecond();
-#endif
-#if DEB
-       const gp_Pnt2d& AnPt2=AnP2.Value();
-#else
-        AnP2.Value();
-#endif
-
 
        if(Opposite == lseg(j).IsOpposite()) {
          //---------------------------------------------------------------
index 5fc0cd4..88bc1d3 100755 (executable)
@@ -304,7 +304,6 @@ void BoundedArc (const TheArc& A,
              //Standard_Integer aNbNodes = 23;
              Standard_Real    aDelta   = (parap1 - para)/(aNbNodes + 1.);
              Standard_Integer ii;
-             Standard_Real    aMinPar  = Pdeb - 1.;
              Standard_Real    aCurPar;
              Standard_Real    aCurVal;
 
index e6f6eb3..4e924c0 100755 (executable)
@@ -404,7 +404,6 @@ void IntTools_EdgeFace::CheckData()
   Standard_Boolean bFlag;
   Standard_Real Umin, Usup, Vmin, Vsup;
 
-  const Handle(Geom_Surface)& GS=BRep_Tool::Surface(myFace);
   Umin=myS.FirstUParameter();
   Usup=myS.LastUParameter();
   Vmin=myS.FirstVParameter();
@@ -460,8 +459,6 @@ void IntTools_EdgeFace::CheckData()
     aD=aD-myCriteria;
     return aD; 
   }
-  //
-  const Handle(Geom_Surface)& GS=BRep_Tool::Surface(myFace);
   
   Umin=myS.FirstUParameter();
   Usup=myS.LastUParameter();
index 3156a2c..20c331b 100755 (executable)
@@ -751,7 +751,6 @@ void IntTools_FaceFace::SetList(IntSurf_ListOfPntOn2S& aListOfPnts)
     //ZZ
     
     {// Check the distances
-      Standard_Boolean bIsDone;
       Standard_Integer i, j, aNbP;
       Standard_Real aT, aT1, aT2, dT, aD2, aD2Max;
       //
index 5e70f9d..e3cbc24 100755 (executable)
@@ -79,9 +79,6 @@ void IntWalk_IWalking::Perform(const ThePOPIterator& Pnts1,
       etat1(I) = etat1(I) + 1;
 
     Standard_Integer etat1I=etat1(I);
-#ifdef DEB
-    Standard_Integer multi=0;
-#endif
     //-- cout<<" \n Etat1("<<I<<") = "<<etat1I<<endl;
     if(etat1I==2) {  //-- lbr le 15 fev 99 
       etat1(I)=11;      
index 48289fc..269e6c7 100755 (executable)
@@ -221,9 +221,6 @@ Standard_Boolean IntWalk_IWalking::TestArretPassage
 
       //IFV for OCC20285
 
-
-      Standard_Real tolustolv=tolu/tolv;
       if ((Abs(Du) < tolu2 && Abs(Dv) < tolv2) ||
          (Abs(Dup) < tolu2 && Abs(Dvp) < tolv2)) { 
            
@@ -315,10 +312,7 @@ Standard_Boolean IntWalk_IWalking::TestArretPassage
          if (Arrive) {
            static math_Vector bidF(1,1);
            static math_Matrix bidD(1,1,1,2);
-#ifdef DEB
-           Standard_Boolean bidB = 
-#endif
-             sp.Values(UV,bidF,bidD);
+        sp.Values(UV,bidF,bidD);
            break;
          }
        }
@@ -560,10 +554,7 @@ Standard_Boolean IntWalk_IWalking::TestArretAjout
        UV(2) = V1;
        static math_Vector bidF(1,1);
        static math_Matrix bidD(1,1,1,2);
-#ifdef DEB
-       Standard_Boolean bidB = 
-#endif
-         sp.Values(UV,bidF,bidD);
+    sp.Values(UV,bidF,bidD);
        break;
       }
     }
@@ -660,10 +651,7 @@ void IntWalk_IWalking::TestArretCadre
        if (Found) {
          static math_Vector bidF(1,1);
          static math_Matrix bidD(1,1,1,2);
-#ifdef DEB
-         Standard_Boolean bidB = 
-#endif
-           sp.Values(UV,bidF,bidD);
+      sp.Values(UV,bidF,bidD);
          Standard_Integer NBP =  Line->NbPoints();
          Standard_Integer Indextg;       
          Line->TangentVector(Indextg);
@@ -738,10 +726,7 @@ void IntWalk_IWalking::TestArretCadre
        Irang = -Irang; // jag 941017
        static math_Vector bidF(1,1);
        static math_Matrix bidD(1,1,1,2);
-#ifdef DEB
-       Standard_Boolean bidB = 
-#endif
-         sp.Values(UV,bidF,bidD);
+    sp.Values(UV,bidF,bidD);
        return;
       }
     }
index f986a1f..6c4236c 100755 (executable)
@@ -484,10 +484,7 @@ static Standard_Boolean TestPassedSolutionWithNegativeState(const TColStd_Sequen
        if (Arrive) {
          static math_Vector bidF(1,1);
          static math_Matrix bidD(1,1,1,2);
-#ifdef DEB
-         Standard_Boolean bidB = 
-#endif
-           sp.Values(UV,bidF,bidD);
+      sp.Values(UV,bidF,bidD);
          break;
        }
       }
index 6a2f2a8..16e581a 100755 (executable)
@@ -38,9 +38,6 @@ void IntWalk_IWalking::MakeWalkingPoint
   if (Case == 1) 
     Psol.SetValue(sp.Point(),reversed, U, V);
   else if (Case == 2) {
-#ifdef DEB
-    Standard_Boolean foo = sp.IsTangent(); 
-#endif
     Psol.SetValue(sp.Point(),reversed, U, V);
   }
   else if (Case == 11 || Case == 12 ) {
index 8cb1a63..ef71c69 100755 (executable)
@@ -400,7 +400,6 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
                               const Standard_Real v2max)
 {
   //xf
-  Standard_Integer iCnt=0;
   Standard_Integer i, NbPasOKConseq;
   Standard_Real UFirst1, VFirst1, ULast1, VLast1, UFirst2, VFirst2, ULast2, VLast2;
   Standard_Real pasMaxSV[4], aTmp;
index d8b5cc9..310e758 100755 (executable)
@@ -100,7 +100,7 @@ void Interface_Graph::Evaluate()
 {
   //  Evaluation d un Graphe de dependances : sur chaque Entite, on prend sa
   //  liste "Shared". On en deduit les "Sharing"  directement
-  Standard_Integer n = Size(), total = 0;
+  Standard_Integer n = Size();
   thesharings = new TColStd_HArray1OfListOfInteger(1,n);//TColStd_HArray1OfTransient(1,n);//Clear();
   if(themodel->GTool().IsNull())
     return;
index 7bcd55f..ab54172 100755 (executable)
@@ -578,7 +578,6 @@ void Intf_InterferencePolygonPolyhedron::Interference
     while (clt.More()) {
       indTri=clt.Value();
       //  Modified by MKK - Thu Oct  25 12:40:11 2007 Begin
-      Standard_Integer prevSize = mySPoins.Length();
 
       Standard_Integer pTri[3];
       ToolPolyh::Triangle(thePolyh, indTri, pTri[0], pTri[1], pTri[2]);
@@ -1039,7 +1038,7 @@ void Intf_InterferencePolygonPolyhedron::Intersect
   Standard_Integer pTri[3];
   ToolPolyh::Triangle(thePolyh, TTri, pTri[0], pTri[1], pTri[2]);
   gp_XYZ triNor = TriNormal;                                   // Vecteur normal.
-  Standard_Real triDp = TriDp;                             // Distance polaire.
+  //Standard_Real triDp = TriDp;                             // Distance polaire.
 
 
 //   Standard_Real dBegTri=(triNor*BegO.XYZ())-triDp; // Distance <BegO> plan
index 672dd6d..f66d283 100755 (executable)
@@ -91,10 +91,6 @@ void Law_Interpol::Set(const TColgp_Array1OfPnt2d& ParAndRad,
                       const Standard_Boolean Periodic)
 {
   Standard_Integer l = ParAndRad.Lower();
-#ifdef DEB
-  Standard_Integer u = 
-#endif
-    ParAndRad.Upper();
   Standard_Integer nbp = ParAndRad.Length();
 
   Handle(TColStd_HArray1OfReal) par = new TColStd_HArray1OfReal(1,nbp);
@@ -169,10 +165,6 @@ void Law_Interpol::Set(const TColgp_Array1OfPnt2d& ParAndRad,
                       const Standard_Boolean Periodic)
 {
   Standard_Integer l = ParAndRad.Lower();
-#ifdef DEB
-  Standard_Integer u = 
-#endif
-    ParAndRad.Upper();
   Standard_Integer nbp = ParAndRad.Length();
 
   Handle(TColStd_HArray1OfReal) par = new TColStd_HArray1OfReal(1,nbp);
index 3b3e8e9..7f0748c 100755 (executable)
@@ -137,10 +137,6 @@ void LocOpe_CSIntersector::Perform(const LocOpe_SequenceOfCirc& Scir)
   for (; exp.More(); exp.Next()) {
     const TopoDS_Face& theface = TopoDS::Face(exp.Current());
     IntCurvesFace_Intersector theInt(theface,0.);
-#ifdef DEB
-    TopAbs_Orientation orface =
-#endif
-                                theface.Orientation();
     for (Standard_Integer i = 1; i<=myNbelem; i++) {
 
       HC->ChangeCurve().Load(new Geom_Circle(Scir(i)));
@@ -179,10 +175,6 @@ void LocOpe_CSIntersector::Perform(const TColGeom_SequenceOfCurve& Scur)
   for (; exp.More(); exp.Next()) {
     const TopoDS_Face& theface = TopoDS::Face(exp.Current());
     IntCurvesFace_Intersector theInt(theface,0.);
-#ifdef DEB
-    TopAbs_Orientation orface =
-#endif
-                                theface.Orientation();
     for (Standard_Integer i = 1; i<=myNbelem; i++) {
       if (Scur(i).IsNull()) {
        continue;
@@ -599,10 +591,6 @@ static void AddPoints(IntCurvesFace_Intersector& theInt,
   Standard_Integer nbpoints = theSeq.Length();
   Standard_Integer newpnt = theInt.NbPnt();
   Standard_Real param,paramu,paramv;
-#ifdef DEB
-  TopAbs_Orientation orface =
-#endif
-                              theface.Orientation();
   for (Standard_Integer j = 1; j<=newpnt; j++) {
     const gp_Pnt& thept = theInt.Pnt(j);
     param = theInt.WParameter(j);
index 6838b8a..8c3eeda 100755 (executable)
@@ -910,10 +910,6 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
       L.AddConstEdges(listofedg);
       L.Perform();
       L.WiresToFaces();
-#ifdef DEB
-      const TopTools_ListOfShape& listofwires =
-#endif
-                                                L.NewWires();
       const TopTools_ListOfShape& listoffaces = L.NewFaces();
       toRemove.Add(fac);
       //      if (!HasWire) {
index 0369b26..01d1043 100755 (executable)
@@ -1139,10 +1139,8 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
 
                  TopoDS_Vertex Vf2,Vl2;
                  TopExp::Vertices(TopoDS::Edge(Gvf),Vf2,Vl2);
-#ifdef DEB
-                 TopAbs_Orientation ornw =
-#endif
-                                            NewEdg.Orientation();
+
+                 //TopAbs_Orientation ornw = NewEdg.Orientation();
 
                  // ici bug orientation : voir tspdrft6
 
@@ -1170,10 +1168,8 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
 
                  TopoDS_Vertex Vf2,Vl2;
                  TopExp::Vertices(TopoDS::Edge(Gvl),Vf2,Vl2);
-#ifdef DEB
-                 TopAbs_Orientation ornw =
-#endif
-                                            NewEdg.Orientation();
+
+                 //TopAbs_Orientation ornw = NewEdg.Orientation();
 
                  // ici bug orientation : voir tspdrft6
 
index bfec585..a553263 100755 (executable)
@@ -948,10 +948,9 @@ static Standard_Boolean IsInside(const TopoDS_Face& F,
   TopoDS_Shape aLocalShape = F.EmptyCopied();
   TopoDS_Face newFace = TopoDS::Face(aLocalShape);
   //  TopoDS_Face newFace = TopoDS::Face(F.EmptyCopied());
-#ifdef DEB
-  TopAbs_Orientation orWire =
-#endif
-    W2.Orientation();
+
+  //TopAbs_Orientation orWire = W2.Orientation();
+    
   newFace.Orientation(TopAbs_FORWARD);
   B.Add(newFace,W2);
   //  GProp_GProps GP;
index 85ed625..69cbd02 100755 (executable)
@@ -397,9 +397,6 @@ void MAT2d_Tool2d::TrimBisec (      Bisector_Bisec&  B1,
   //gp_Vec2d             Tan1,Tan2;
   gp_Pnt2d             Ori; //PEdge;
   Standard_Integer     IPrec,INext;
-#ifdef DEB
-  Standard_Real        Tolerance = MAT2d_TOLCONF;
-#endif
   IPrec = (IndexEdge == 1)  ? theCircuit->NumberOfItems() : (IndexEdge - 1);
   INext = (IndexEdge == theCircuit->NumberOfItems()) ? 1  : (IndexEdge + 1);
   
index 2666a53..a2c8272 100755 (executable)
@@ -57,9 +57,5 @@ Standard_Integer MXCAFDoc_AreaRetrievalDriver::VersionNumber() const
   Handle(PXCAFDoc_Area) S = Handle(PXCAFDoc_Area)::DownCast (Source);
   Handle(XCAFDoc_Area) T = Handle(XCAFDoc_Area)::DownCast (Target);
   
-#ifdef DEB
-  PTColStd_PersistentTransientMap& PTMap = 
-#endif
-    RelocTable->OtherTable();
   T->Set(S->Get());
 }
index af5361b..b666e19 100755 (executable)
@@ -57,9 +57,5 @@ Standard_Integer MXCAFDoc_AreaStorageDriver::VersionNumber() const
   Handle(XCAFDoc_Area) S = Handle(XCAFDoc_Area)::DownCast (Source);
   Handle(PXCAFDoc_Area) T = Handle(PXCAFDoc_Area)::DownCast (Target);
   
-#ifdef DEB
-  PTColStd_TransientPersistentMap& TPMap = 
-#endif
-    RelocTable->OtherTable();
   T->Set(S->Get());
 }
index efc9e98..dd3bfc1 100755 (executable)
@@ -62,9 +62,5 @@ MXCAFDoc_CentroidRetrievalDriver::MXCAFDoc_CentroidRetrievalDriver(const Handle(
   Handle(PXCAFDoc_Centroid) S = Handle(PXCAFDoc_Centroid)::DownCast (Source);
   Handle(XCAFDoc_Centroid) T = Handle(XCAFDoc_Centroid)::DownCast (Target);
 
-#ifdef DEB  
-  PTColStd_PersistentTransientMap& PTMap = 
-#endif
-    RelocTable->OtherTable();
   T->Set(S->Get());
 }
index a04b22b..cd925dd 100755 (executable)
@@ -60,9 +60,5 @@ MXCAFDoc_CentroidStorageDriver::MXCAFDoc_CentroidStorageDriver(const Handle(CDM_
   Handle(XCAFDoc_Centroid) S = Handle(XCAFDoc_Centroid)::DownCast (Source);
   Handle(PXCAFDoc_Centroid) T = Handle(PXCAFDoc_Centroid)::DownCast (Target);
   
-#ifdef DEB
-  PTColStd_TransientPersistentMap& TPMap = 
-#endif
-    RelocTable->OtherTable();
   T->Set(S->Get());
 }
index 4195b84..98ceb58 100755 (executable)
@@ -61,10 +61,6 @@ void MXCAFDoc_DatumRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
   Handle(PXCAFDoc_Datum) S = Handle(PXCAFDoc_Datum)::DownCast (Source);
   Handle(XCAFDoc_Datum) T = Handle(XCAFDoc_Datum)::DownCast (Target);
   
-#ifdef DEB
-  PTColStd_PersistentTransientMap& PTMap = 
-#endif
-    RelocTable->OtherTable();
   Handle(TCollection_HAsciiString) aName, aDescr, anId;
   if ( !S->GetName().IsNull() )
     aName = new TCollection_HAsciiString( (S->GetName())->Convert() );
index 14fda2c..ecb2d5e 100755 (executable)
@@ -59,10 +59,6 @@ void MXCAFDoc_DatumStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
 {
   Handle(XCAFDoc_Datum) S = Handle(XCAFDoc_Datum)::DownCast (Source);
   Handle(PXCAFDoc_Datum) T = Handle(PXCAFDoc_Datum)::DownCast (Target);
-#ifdef DEB
-  PTColStd_TransientPersistentMap& TPMap = 
-#endif
-    RelocTable->OtherTable();
   Handle(TCollection_HAsciiString) aNameStr = S->GetName();
   Handle(TCollection_HAsciiString) aDescrStr = S->GetDescription();
   Handle(TCollection_HAsciiString) anIdStr = S->GetIdentification();
index 133a0b9..6838fc5 100755 (executable)
@@ -63,10 +63,6 @@ void MXCAFDoc_DimTolRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
   Handle(PXCAFDoc_DimTol) S = Handle(PXCAFDoc_DimTol)::DownCast (Source);
   Handle(XCAFDoc_DimTol) T = Handle(XCAFDoc_DimTol)::DownCast (Target);
   
-#ifdef DEB
-  PTColStd_PersistentTransientMap& PTMap = 
-#endif
-    RelocTable->OtherTable();
   Handle(TColStd_HArray1OfReal) aVals;
   Handle(PColStd_HArray1OfReal) aPArr = S->GetVal();
   if ( !aPArr.IsNull() )
index 14dac6e..bb9d3bf 100755 (executable)
@@ -61,10 +61,6 @@ void MXCAFDoc_DimTolStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
 {
   Handle(XCAFDoc_DimTol) S = Handle(XCAFDoc_DimTol)::DownCast (Source);
   Handle(PXCAFDoc_DimTol) T = Handle(PXCAFDoc_DimTol)::DownCast (Target);
-#ifdef DEB
-  PTColStd_TransientPersistentMap& TPMap = 
-#endif
-    RelocTable->OtherTable();
   Handle(TColStd_HArray1OfReal) aHArr = S->GetVal();
   Handle(PColStd_HArray1OfReal) aVals;
   if ( !aHArr.IsNull() )
index be95d94..ffcfb80 100755 (executable)
@@ -61,10 +61,6 @@ void MXCAFDoc_MaterialRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source
   Handle(PXCAFDoc_Material) S = Handle(PXCAFDoc_Material)::DownCast (Source);
   Handle(XCAFDoc_Material) T = Handle(XCAFDoc_Material)::DownCast (Target);
   
-#ifdef DEB
-  PTColStd_PersistentTransientMap& PTMap = 
-#endif
-    RelocTable->OtherTable();
   Handle(TCollection_HAsciiString) aName, aDescr, aDensName, aDensValType;
   if ( !S->GetName().IsNull() )
     aName = new TCollection_HAsciiString( (S->GetName())->Convert() );
index 7be8daf..7ea408b 100755 (executable)
@@ -61,10 +61,6 @@ void MXCAFDoc_MaterialStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
 {
   Handle(XCAFDoc_Material) S = Handle(XCAFDoc_Material)::DownCast (Source);
   Handle(PXCAFDoc_Material) T = Handle(PXCAFDoc_Material)::DownCast (Target);
-#ifdef DEB
-  PTColStd_TransientPersistentMap& TPMap = 
-#endif
-    RelocTable->OtherTable();
   Handle(TCollection_HAsciiString) aNameStr = S->GetName();
   Handle(TCollection_HAsciiString) aDescrStr = S->GetDescription();
   Handle(TCollection_HAsciiString) aDensNameStr = S->GetDensName();
index 6979a20..a2cdfbd 100755 (executable)
@@ -56,9 +56,5 @@ Standard_Integer MXCAFDoc_VolumeRetrievalDriver::VersionNumber() const
   Handle(PXCAFDoc_Volume) S = Handle(PXCAFDoc_Volume)::DownCast (Source);
   Handle(XCAFDoc_Volume) T = Handle(XCAFDoc_Volume)::DownCast (Target);
   
-#ifdef DEB
-  PTColStd_PersistentTransientMap& PTMap = 
-#endif
-    RelocTable->OtherTable();
   T->Set(S->Get());
 }
index c33c300..ae4183c 100755 (executable)
@@ -57,9 +57,5 @@ Standard_Integer MXCAFDoc_VolumeStorageDriver::VersionNumber() const
   Handle(XCAFDoc_Volume) S = Handle(XCAFDoc_Volume)::DownCast (Source);
   Handle(PXCAFDoc_Volume) T = Handle(PXCAFDoc_Volume)::DownCast (Target);
   
-#ifdef DEB
-  PTColStd_TransientPersistentMap& TPMap = 
-#endif
-    RelocTable->OtherTable();
   T->Set(S->Get());
 }
index fa7629c..e97bf17 100755 (executable)
@@ -162,7 +162,6 @@ void MeshVS_TextPrsBuilder::Build ( const Handle(Prs3d_Presentation)& Prs,
   Aspect_TypeOfDisplayText ADisplayType     = Aspect_TODT_NORMAL;
   TCollection_AsciiString  AFontString;
   Standard_Integer         ADispInt;
-  Standard_Boolean         ATexFont;
   // Bold font is used by default for better text readability
   OSD_FontAspect           AFontAspectType  = OSD_FA_Bold;
   Standard_Integer         AAspect; 
index 6e76451..0f44300 100644 (file)
@@ -35,7 +35,6 @@ void OpenGl_QuadrangleStrip::draw_qstrip (const Tint front_lighting_model,
   Tint              nf, nv, nr, nc;
   Tint              lighting_model;
 
-  tel_point pfn = myData.fnormals;
   tel_colour pfc = myData.fcolours;
   tel_point pv  = myData.vertices;
   tel_colour pvc = myData.vcolours;
@@ -374,7 +373,6 @@ void OpenGl_QuadrangleStrip::draw_edges (const TEL_COLOUR *edge_colour, const As
   const OpenGl_AspectLine *aspect_line_old = AWorkspace->SetAspectLine( aspect_face->AspectEdge() );
   AWorkspace->AspectLine( Standard_True );
 
-  tel_point pv = myData.vertices;
   Tint nc = myData.num_columns;
   Tint nf = myData.num_rows * myData.num_columns;
 
index 45996c9..12d6d3f 100644 (file)
@@ -29,7 +29,6 @@ void OpenGl_TriangleStrip::draw_tmesh (const Tint front_lighting_model,
 {
   Tint              i, newList = 0;
 
-  tel_point pfn = myData.fnormals;
   tel_colour pfc = myData.fcolours;
   tel_point pv  = myData.vertices;
   tel_colour pvc = myData.vcolours;
index c3a49e8..9baa5cd 100644 (file)
@@ -517,7 +517,6 @@ Standard_Boolean OpenGl_Workspace::Print
 
   // setup printing context and viewport
   GLint aViewPortBack[4]; 
-  GLint aReadBufferPrev = GL_BACK;
   GLint anAlignBack     = 1;
 
   OpenGl_PrinterContext aPrinterContext (myGContext);
index 18bfb74..d51e99e 100755 (executable)
@@ -97,9 +97,6 @@
 
     
     F.Value(X, FVal);   
-#ifdef DEB
-    Standard_Real FuncVal= FVal(1)*FVal(1) + FVal(2)*FVal(2);
-#endif
 
     if ((FVal(1)*FVal(1) + FVal(2)*FVal(2)) > FuncTol) myDone = Standard_False;
   }
index 9d8475b..2b900f3 100755 (executable)
@@ -131,10 +131,6 @@ void RWStepShape_RWFaceBound::Check
          else {
            myShRef = aShto.Sharings(theEL2);
            myShRef.SelectType (STANDARD_TYPE(StepShape_FaceBound),Standard_True);
-#ifdef DEB
-           Standard_Integer nbRef = 
-#endif
-             myShRef.NbEntities();     
            myShRef.Start();
            Handle(StepShape_FaceBound) theFB2 =
              Handle(StepShape_FaceBound)::DownCast(myShRef.Value());
index 115b6d2..36a98f2 100755 (executable)
@@ -62,9 +62,6 @@ Matches (const Standard_Real XMin,
         const Standard_Real YMax,
         const Standard_Real aTol)
 {//distance point-Line....
-#ifdef DEB
-  Standard_Real TheTol = HasOwnTolerance()? myOwnTolerance : aTol;
-#endif
   Standard_Real MinDist = gp_Lin2d(gp_Pnt2d(XMin,YMin),
                     gp_Vec2d(gp_Pnt2d(XMin,YMin),
                              gp_Pnt2d(XMax,YMax))
index 6d9dd94..a2c1cf5 100755 (executable)
@@ -218,8 +218,6 @@ Standard_Integer  Select3D_SensitiveTriangle::Status(const gp_XY& p0,
   gp_XY V02(p2);V02-=p0;
   gp_XY V12(p2);V12-=p1;
 
-  Standard_Real TolTol = aTol*aTol;
-
   // check these particular cases...
   // if one of vectors is almost null (2 points are mixed),
   // leave at once (it is already in the bounding box, which is good...)
index 3be96f0..9326d76 100755 (executable)
@@ -623,7 +623,6 @@ DetectedTriangle2d(gp_Pnt2d& P1,
   if(myDetectedTr==-1) 
     return Standard_False; //  currently not implemented...
   const Poly_Array1OfTriangle& triangles = myTriangul->Triangles();
-  const TColgp_Array1OfPnt& Nodes = myTriangul->Nodes();
   Standard_Integer n1,n2,n3;
   triangles( myDetectedTr ).Get(n1,n2,n3);
 
index 9b55d4c..296bbec 100755 (executable)
@@ -57,7 +57,6 @@ Standard_Boolean SelectBasics_BasicTool::MatchSegment(const gp_Pnt2d& pBegin,con
                                                      const Standard_Real aTol,
                                                      Standard_Real& DMin)
 {
-  Standard_Boolean Found= Standard_False;
   const Standard_Real SqTol = aTol * aTol;     
   gp_Vec2d AB, AC, BC; 
   const gp_Pnt2d apoint(X,Y);
index 0020bb5..c5c8fd7 100755 (executable)
@@ -172,7 +172,7 @@ Standard_Real ShapeAnalysis::ContourArea(const TopoDS_Wire& theWire)
                                          //const Handle(ShapeExtend_WireData)& sewd)
                                         
 {
-  Standard_Integer i =1, nbc = 0;
+  Standard_Integer nbc = 0;
   gp_Pnt fuv,luv, uv0;
   //Standard_Real totcross=0;
   gp_XYZ aTotal(0.,0.,0.);
index b082340..79f7b19 100755 (executable)
@@ -63,7 +63,7 @@ TopoDS_Shape ShapeBuild_ReShape::Apply (const TopoDS_Shape& shape,
     return res;
   }
 
-  TopAbs_ShapeEnum st = shape.ShapeType(), subt;
+  TopAbs_ShapeEnum st = shape.ShapeType();
   if ( st >= until ) return newsh;    // critere d arret
   if(st == TopAbs_VERTEX || st == TopAbs_SHAPE)
     return shape;
index 3260044..dd38392 100755 (executable)
@@ -229,7 +229,6 @@ void ShapeUpgrade_RemoveInternalWires::removeSmallFaces ()
         if(!myRemoveEdges.IsBound(aE) ) {
           const TopTools_ListOfShape& aLface3 = myEdgeFaces.FindFromKey(aE);
           TopTools_ListIteratorOfListOfShape aliter3(aLface3);
-          Standard_Boolean isRemoved = Standard_True;
           for( ; aliter3.More();aliter3.Next()) {
             TopoDS_Shape aF2 = Context()->Apply(aliter3.Value());
             if(aF2.IsNull())
index 92d503a..cc26427 100755 (executable)
@@ -116,11 +116,6 @@ void StlTransfer::BuildIncrementalMesh (const TopoDS_Shape&  Shape,
     theTriangles.Assign(theTriangulation->Triangles());
     Mesh->AddDomain (Deflection);
     
-#ifdef DEB
-    TopAbs_Orientation orientation = 
-#endif
-      face.Orientation();
-    
     TColgp_Array1OfPnt thePoints(1, theTriangulation->NbNodes());
     thePoints.Assign(theTriangulation->Nodes());
     //compute normal of face
index 5976963..865730d 100755 (executable)
@@ -224,10 +224,6 @@ void TDF_ComparisonTool::Cut
 {
   if (aDataSet->IsEmpty()) return;
 
-#ifdef DEB
-  TDF_LabelMap&           refLabs =
-#endif
-                                    aDataSet->Labels();
   const TDF_AttributeMap& refAtts = aDataSet->Attributes();
 
   // Removes the attributes.
index 13eedbe..2e6c990 100755 (executable)
@@ -174,7 +174,6 @@ void TFunction_Iterator::Next()
     TFunction_IFunction iFunction(L);
 
     Handle(TFunction_GraphNode) graphNode = iFunction.GetGraphNode();
-    const TColStd_MapOfInteger& prev      = graphNode->GetPrevious();
     const TColStd_MapOfInteger& next      = graphNode->GetNext();
     TFunction_ExecutionStatus   status    = graphNode->GetStatus();
 
index 867c54d..546bdfb 100755 (executable)
@@ -632,7 +632,6 @@ static Standard_Boolean IsMultipleCase(const TopoDS_Shape&        S,
     isCommon = Standard_True; // statement: this shape (itm.Key()) is common (to be checked below)
     TNaming_DataMapIteratorOfDataMapOfShapeMapOfShape itdm(aDMM);
     for (;itdm.More();itdm.Next()) {
-      const TopoDS_Shape& aKey1 = itdm.Key();
       const TNaming_MapOfShape& aMap = itdm.Value();
       if(!aMap.Contains(itm.Key())) {
        isCommon = Standard_False;
index 058728a..d807176 100755 (executable)
@@ -753,11 +753,6 @@ void TPrsStd_ConstraintTools::ComputeAngleForOneFace (const Handle(TDataXtd_Cons
   TCollection_ExtendedString txt;
   TPrsStd_ConstraintTools::ComputeTextAndValue (aConst,val1,txt,Standard_True);  
   
-// Unused :
-#ifdef DEB
-  Standard_Boolean isface(shape.ShapeType()==TopAbs_FACE);
-#endif
-  
   Handle(AIS_AngleDimension) ais;
   TopoDS_Face face;
   if (!anAIS.IsNull()) {
@@ -777,11 +772,6 @@ void TPrsStd_ConstraintTools::ComputeAngleForOneFace (const Handle(TDataXtd_Cons
     ais =  new AIS_AngleDimension ( face, val1, txt);
   } 
 
-// Unused :
-#ifdef DEB
-  Standard_Integer ExtShape(0);
-#endif
-
   anAIS = ais;
 }
 
@@ -1149,10 +1139,6 @@ void TPrsStd_ConstraintTools::ComputeRadius (const Handle(TDataXtd_Constraint)&
   ComputeTextAndValue(aConst,val1,txt,Standard_False);
 
   //  Update de l'AIS
-// Unused :
-#ifdef DEB
-  Standard_Boolean tocreate = Standard_True;
-#endif
   Standard_Boolean isplanar(aConst->IsPlanar());
   if (isplanar) GetGoodShape(shape1);
 
@@ -1233,10 +1219,6 @@ void TPrsStd_ConstraintTools::ComputeMinRadius (const Handle(TDataXtd_Constraint
   ComputeTextAndValue(aConst,val1,txt,Standard_False);
 
   //  Update de l'AIS
-// Unused :
-#ifdef DEB
-  Standard_Boolean tocreate = Standard_True;
-#endif
   Standard_Boolean isplanar(aConst->IsPlanar());
   if (isplanar) GetGoodShape(shape1);
 
@@ -1316,10 +1298,6 @@ void TPrsStd_ConstraintTools::ComputeMaxRadius (const Handle(TDataXtd_Constraint
   ComputeTextAndValue(aConst,val1,txt,Standard_False);
 
   //  Update de l'AIS
-// Unused :
-#ifdef DEB
-  Standard_Boolean tocreate = Standard_True;
-#endif
   Standard_Boolean isplanar(aConst->IsPlanar());
   if (isplanar) GetGoodShape(shape1);
 
index d473404..1c634c6 100755 (executable)
@@ -194,14 +194,7 @@ Standard_Integer TOPOC(Draw_Interpretor& interpretor,Standard_Integer na,const c
       DBRep::Set(namie.ToCString(),es);
       if (eca) {
        TCollection_AsciiString s;
-#ifdef DEB
-       Standard_Integer i1 =
-#endif
-                              BDS.Shape(F1);
-#ifdef DEB
-        Standard_Integer i2 =
-#endif
-                              BDS.Shape(F2);
+
        if (outdraw) {
          if (outclear) s = s + "clear; ";
          ::CATSHA(s,F1,BDS,"tsee f ","; ");
index 35a5891..cf8c423 100755 (executable)
@@ -256,10 +256,6 @@ Standard_Integer reguso(Draw_Interpretor& di, Standard_Integer n, const char** a
     TopOpeBRepBuild_ShellToSolid SheToSo;      
     for (; itm.More(); itm.Next()) {
       const TopTools_ListOfShape& lns = itm.Value();
-#ifdef DEB
-      Standard_Integer nlns =
-#endif
-                              lns.Extent();
       TopTools_ListIteratorOfListOfShape itsh(lns);
       for (; itsh.More(); itsh.Next()) {
        const TopoDS_Shell& she = TopoDS::Shell(itsh.Value());
@@ -602,9 +598,6 @@ static Standard_Integer classifBnd2d(Draw_Interpretor& di, Standard_Integer n, c
   TopoDS_Shape W1 = DBRep::Get(a[1]);
   TopoDS_Shape W2 = DBRep::Get(a[2]);
   TopoDS_Shape F = DBRep::Get(a[3]);
-#ifdef DEB
-  Standard_Integer i = atoi(a[4]);
-#endif
   
   TopoDS_Wire w1 = TopoDS::Wire(W1);
   TopoDS_Wire w2 = TopoDS::Wire(W2);
index a91094b..fd19ce6 100755 (executable)
@@ -103,14 +103,7 @@ Standard_Integer DSACCESSCOMMANDS(Draw_Interpretor& interpretor,Standard_Integer
       for(i = 1;i<=nbsh;i++) {
        TopTools_ListOfShape& los = DS.ChangeShapeSameDomain(i);
        j = los.Extent();
-#ifdef DEB
-       Standard_Integer iref =
-#endif
-                                DS.SameDomainRef(i);
-#ifdef DEB
-       Standard_Integer iind =
-#endif
-                                DS.SameDomainInd(i);
+
        TopTools_ListIteratorOfListOfShape li(los);
        for(; li.More(); li.Next()) {
 #ifdef DEB
index b5e0cb2..44a26e6 100755 (executable)
@@ -364,10 +364,6 @@ static Standard_Integer SeeSectionEdge(const Standard_Integer ISE)
   if ( ISE < 1 || ISE > nse ) return 0;
   const TopoDS_Shape& SE  = PHDSD->CurrentBDS().SectionEdge(ISE);
   if (SE.IsNull()) return 0;
-#ifdef DEB
-  Standard_Integer ids =
-#endif
-                         PHDSD->CurrentBDS().Shape(SE,SFindKeep);
   
   TCollection_AsciiString namedbrep; PHDSD->SectionEdgeName(ISE,SE,namedbrep); 
   TCollection_AsciiString namedisp; PHDSD->SectionEdgeDisplayName(ISE,SE,namedisp);
@@ -534,9 +530,6 @@ static Standard_Integer SeeGeometry(const TopOpeBRepDS_Kind TK)
   
   const TopOpeBRepDS_DataStructure& BDS = PHDSD->CurrentBDS();
 
-#ifdef DEB  
-  Standard_Integer ig,ng = 0;
-#endif
   if      (TK == TopOpeBRepDS_POINT) {
     TopOpeBRepDS_PointExplorer pex(BDS,GFindKeep);
     for (; pex.More(); pex.Next()) {
@@ -1133,10 +1126,7 @@ Standard_Integer tds(Draw_Interpretor& di,Standard_Integer na,const char** a)
   if (PHDSD == NULL) return 0;
   const Handle(TopOpeBRepDS_HDataStructure)& HDS = PHDSD->CurrentHDS();
   if (HDS.IsNull()) {COUTNOHDS(di);return 0;}
-#ifdef DEB
-  const TopOpeBRepDS_DataStructure& BDS =
-#endif
-                                          PHDSD->CurrentBDS();
+  PHDSD->CurrentBDS();
   
   TopOpeBRepDS_Dumper Dumper(HDS);
   if ( na == 1 ) { Dumper.Dump(cout,TDSkeep,TDScompact); return 0; }
index 51f2b30..2eaa503 100755 (executable)
@@ -467,10 +467,6 @@ void TestTopOpeDraw_SurfaceDisplayer::InitSurfaceDisplayer()
 void TestTopOpeDraw_SurfaceDisplayer::DisplaySurface(const Handle(Geom_Surface& S))
 {
   if (S.IsNull()) return;
-#ifdef DEB
-  Draw_ColorKind isocol =
-#endif
-                          TestTopOpeDraw_TTOT::GeometryColor(TopOpeBRepDS_SURFACE);
   Handle(TestTopOpeDraw_DrawableSUR) D;
   D = new TestTopOpeDraw_DrawableSUR
     (S,mySDIsoColor,mySDBoundColor,mySDNormalColor,
index e412deb..594f393 100755 (executable)
@@ -109,10 +109,6 @@ static Standard_CString makename2(const gp_Pnt& P)
 
   C = "";C = C + P.Coord(2);
   TCollection_AsciiString S1 = C.Token(".",1);
-#ifdef DEB
-  Standard_Integer l =
-#endif
-                       S1.Length();
   S1.RightJustify(15, ' ');
   TCollection_AsciiString S2 = C.Token(".",2);
   S2.Trunc(2);
index 225e88a..89e5d96 100755 (executable)
@@ -159,10 +159,6 @@ void BREP_correctgbound(const Handle(TopOpeBRepDS_HDataStructure)& HDS)
       if ( GK != TopOpeBRepDS_VERTEX ) continue;
       
       const TopoDS_Shape& v = BDS.Shape(GI);
-#ifdef DEB
-      Standard_Boolean isb =
-#endif
-                SSI->GBound();      
       Standard_Boolean vofe = imev.Contains(v);
       SSI->SetGBound(vofe);
     } // it.More()   
@@ -274,10 +270,7 @@ static
       const TopoDS_Edge& e2 = TopoDS::Edge(BDS.Shape(S1));
       if (!map2.Contains(e2)) continue;
 
-#ifdef DEB
-      Standard_Integer G1 =
-#endif
-               I1->Geometry(); TopOpeBRepDS_Kind GT1 = I1->GeometryType();
+  TopOpeBRepDS_Kind GT1 = I1->GeometryType();
       if (GT1 == TopOpeBRepDS_POINT) {
        Handle(TopOpeBRepDS_CurvePointInterference) CPI1 = Handle(TopOpeBRepDS_CurvePointInterference)::DownCast(I1); 
        Standard_Real par1 = CPI1->Parameter();
@@ -450,14 +443,6 @@ void TopOpeBRep_DSFiller::InsertIntersection(const TopoDS_Shape& aS1,
     const TopoDS_Shape& gs2 = myShapeIntersector.CurrentGeomShape(2);
     TopAbs_ShapeEnum t1 = gs1.ShapeType();
     TopAbs_ShapeEnum t2 = gs2.ShapeType();
-#ifdef DEB
-    TopAbs_Orientation o1 =
-#endif
-              gs1.Orientation();
-#ifdef DEB
-    TopAbs_Orientation o2 = 
-#endif
-              gs2.Orientation();
     
     // si le couple courant apres un couple facefacesamedomain n'est
     // pas un couple edgeedge ==> facefacesamedomain est deconnecte 
@@ -689,10 +674,6 @@ void TopOpeBRep_DSFiller::RemoveUnsharedGeometry(const Handle(TopOpeBRepDS_HData
     TopTools_ListIteratorOfListOfShape itsd(lSsd);
     for (; itsd.More(); itsd.Next()){
       TopoDS_Shape Ssd = itsd.Value(); //xpuxpu
-#ifdef DEB
-      Standard_Integer iSsd =
-#endif
-                 BDS.Shape(Ssd);
       Standard_Integer rkSsd = BDS.AncestorRank(Ssd);
       if (rkSsd == 1) continue;
       
@@ -768,14 +749,6 @@ void TopOpeBRep_DSFiller::InsertIntersection2d
     const TopoDS_Shape& gs2 = myShapeIntersector2d.CurrentGeomShape(2);
     TopAbs_ShapeEnum t1 = gs1.ShapeType();
     TopAbs_ShapeEnum t2 = gs2.ShapeType();
-#ifdef DEB
-    TopAbs_Orientation o1 =
-#endif
-              gs1.Orientation();
-#ifdef DEB
-    TopAbs_Orientation o2 =
-#endif
-              gs2.Orientation();
     
     // si le couple courant apres un couple facefacesamedomain n'est
     // pas un couple edgeedge ==> facefacesamedomain est deconnecte 
@@ -814,10 +787,6 @@ void TopOpeBRep_DSFiller::InsertIntersection2d
     else if ((t1 == TopAbs_EDGE) && (t2 == TopAbs_EDGE)) {
       TopOpeBRep_EdgesIntersector& EE = myShapeIntersector2d.ChangeEdgesIntersector();
       EE.Dimension(2);
-#ifdef DEB
-      Standard_Boolean EEsamedomain =
-#endif
-                         EE.SameDomain();
       myEdgesFiller.Face(1,lFF1);
       myEdgesFiller.Face(2,lFF2);
       myEdgesFiller.Insert(gs1,gs2,EE,HDS);
index f31f127..69d57f3 100755 (executable)
@@ -83,25 +83,12 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
   Standard_Boolean reducesegment = (hs && !esd);
 #endif
 
-#ifdef DEB
-  TopAbs_Orientation E1ori =
-#endif
-               E1.Orientation();
-#ifdef DEB
-  TopAbs_Orientation E2ori =
-#endif
-               E2.Orientation();
-  
   // --- Add <E1,E2> in BDS
   Standard_Integer E1index = myPDS->AddShape(E1,1);
   Standard_Integer E2index = myPDS->AddShape(E2,2);
   
   // --- get list of interferences connected to edges <E1>,<E2>
   TopOpeBRepDS_ListOfInterference& EIL1 = myPDS->ChangeShapeInterferences(E1);
-#ifdef DEB
-  TopOpeBRepDS_ListOfInterference& EIL2 =
-#endif
-                 myPDS->ChangeShapeInterferences(E2);
   
   Handle(TopOpeBRepDS_Interference) EPI;  //edge/point interference
   Handle(TopOpeBRepDS_Interference) EVI;  //edge/vertex interference
@@ -119,9 +106,6 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
     Standard_Boolean pointofsegment =
 #endif
                          P2D.IsPointOfSegment();
-#ifdef DEB
-    Standard_Boolean reducesegmentpoint = (reducesegment && pointofsegment);
-#endif
 
 #ifdef DEB
     if (trc) {
@@ -377,10 +361,7 @@ Standard_Boolean TopOpeBRep_EdgesFiller::MakeGeometry(const TopOpeBRep_Point2d&
   Standard_Boolean isvertex2 = P2D.IsVertex(2);
   if (isvertex1 && isvertex2) {
     Standard_Integer G1 = myPDS->AddShape(P2D.Vertex(1),1);
-#ifdef DEB
-    Standard_Integer G2 =
-#endif
-              myPDS->AddShape(P2D.Vertex(2),2);
+    myPDS->AddShape(P2D.Vertex(2),2);
     G = G1;
     K = TopOpeBRepDS_VERTEX;
   }
@@ -466,15 +447,6 @@ Handle(TopOpeBRepDS_Interference) TopOpeBRep_EdgesFiller::StoreVI(const TopOpeBR
 Standard_Boolean TopOpeBRep_EdgesFiller::ToRecompute(const TopOpeBRep_Point2d& P2D,const Handle(TopOpeBRepDS_Interference)& I,const Standard_Integer IEmother)
 {
   Standard_Boolean b = Standard_True;
-  const TopOpeBRepDS_Transition& T = I->Transition();
-#ifdef DEB
-  TopAbs_State sb =
-#endif
-            T.Before();
-#ifdef DEB
-  TopAbs_State sa =
-#endif
-            T.After();
   Standard_Boolean pointofsegment = P2D.IsPointOfSegment();
   Standard_Boolean esd = myPEI->SameDomain();
   b = b && (pointofsegment && !esd);
index 4951ebd..55edd2e 100755 (executable)
@@ -108,9 +108,6 @@ void TopOpeBRep_EdgesIntersector::SetFaces(const TopoDS_Shape& F1,const TopoDS_S
 //=======================================================================
 void TopOpeBRep_EdgesIntersector::SetFaces(const TopoDS_Shape& F1,const TopoDS_Shape& F2,const Bnd_Box& B1,const Bnd_Box& B2)
 {
-#ifdef DEB
-  Standard_Boolean memesfaces = F1.IsSame(F2);
-#endif
   Standard_Boolean computerestriction = Standard_False;
   
   Standard_Boolean so11 = Standard_True;
@@ -282,14 +279,7 @@ Standard_Boolean EdgesIntersector_checkT1D(const TopoDS_Edge& E1,const TopoDS_Ed
 {
   mysp2d.Clear();
   myip2d = 1; mynp2d = 0;
-#ifdef DEB
-  TopAbs_Orientation E1ori =
-#endif
-               E1.Orientation();
-#ifdef DEB
-  TopAbs_Orientation E2ori =
-#endif
-               E2.Orientation();
+
   myEdge1 = TopoDS::Edge(E1);
   myEdge2 = TopoDS::Edge(E2);
   
@@ -374,13 +364,7 @@ Standard_Boolean EdgesIntersector_checkT1D(const TopoDS_Edge& E1,const TopoDS_Ed
         Standard_Real toll =
 #endif
                    BRep_Tool::Tolerance(vl);
-#ifdef DEB
-       Standard_Real tol = Max (tolf,toll);
-#endif
        Standard_Boolean onf = (df < tolf);
-#ifdef DEB
-        Standard_Boolean onl = (dl < toll);
-#endif
        TopoDS_Vertex v1 = onf ? vf : vl;
        TopTools_IndexedDataMapOfShapeListOfShape mapVE; TopExp::MapShapesAndAncestors(myFace1,TopAbs_VERTEX,TopAbs_EDGE,mapVE);
        const TopTools_ListOfShape& Edsanc = mapVE.FindFromKey(v1);
@@ -559,7 +543,6 @@ Standard_Boolean EdgesIntersector_checkT1D(const TopoDS_Edge& E1,const TopoDS_Ed
       Standard_Boolean T1INT = (T1.Orientation(TopAbs_IN) == TopAbs_INTERNAL);
 #ifdef DEB
       Standard_Boolean T1EXT = (T1.Orientation(TopAbs_IN) == TopAbs_EXTERNAL);
-      Standard_Boolean INTEXT1 = T1INT || T1EXT;
 #endif
       if (T1INT && isvertex2 && !isvertex1) {
        const TopoDS_Vertex& V2 = P2D.Vertex(2);        
@@ -656,15 +639,6 @@ Standard_Boolean TopOpeBRep_EdgesIntersector::ComputeSameDomain()
   Standard_Boolean rr = (Abs(r1-r2) < Precision::Confusion()); //xpu281098 (cto019D2) tolerance a revoir
   if (!rr) return SetSameDomain(Standard_False);
 
-#ifdef DEB
-  const gp_Ax22d& pos1 =
-#endif
-                         c1.Position();
-#ifdef DEB
-  const gp_Ax22d& pos2 =
-#endif
-                         c2.Position();
-
   const gp_Pnt2d& p1 = c1.Location();
   const gp_Pnt2d& p2 = c2.Location();
 
@@ -739,10 +713,6 @@ Standard_Boolean TopOpeBRep_EdgesIntersector::ReduceSegment(TopOpeBRep_Point2d&
   
   Standard_Boolean pospsa = psa.IsPointOfSegment();
   TopOpeBRep_P2Dstatus stspsa = psa.Status();
-#ifdef DEB
-  const gp_Pnt& Ppsa =
-#endif
-                       psa.Value();
   Standard_Real tpsa1 = psa.Parameter(1);
   Standard_Real tpsa2 = psa.Parameter(2);
   const TopOpeBRepDS_Transition& Tpsa1 = psa.Transition(1);
@@ -750,10 +720,6 @@ Standard_Boolean TopOpeBRep_EdgesIntersector::ReduceSegment(TopOpeBRep_Point2d&
   
   Standard_Boolean pospsb = psb.IsPointOfSegment();
   TopOpeBRep_P2Dstatus stspsb = psb.Status();
-#ifdef DEB
-  const gp_Pnt& Ppsb =
-#endif
-                       psb.Value();
   Standard_Real tpsb1 = psb.Parameter(1);
   Standard_Real tpsb2 = psb.Parameter(2);
   const TopOpeBRepDS_Transition& Tpsb1 = psb.Transition(1);
@@ -801,10 +767,7 @@ Standard_Boolean TopOpeBRep_EdgesIntersector::ReduceSegment(TopOpeBRep_Point2d&
     psb.SetKeep(Standard_False);
     
     TopOpeBRepDS_Config cpsa = psa.EdgesConfig();
-#ifdef DEB
-    TopOpeBRepDS_Config cpsb =
-#endif
-                               psb.EdgesConfig();
+
     Pn.SetEdgesConfig(cpsa);
     
     Standard_Boolean isvpsa1 = psa.IsVertex(1);if (isvpsa1) Pn.SetVertex(1,psa.Vertex(1));
index 6636e54..c13f5ab 100755 (executable)
@@ -77,10 +77,6 @@ void TopOpeBRep_FaceEdgeFiller::Insert
 
   for (; FEINT.MorePoint(); FEINT.NextPoint() ) {
     gp_Pnt2d      pUV; FEINT.UVPoint(pUV);
-#ifdef DEB
-    TopAbs_State  sta =
-#endif
-                        FEINT.State();
     Standard_Real parE = FEINT.Parameter();
 
 #ifdef DEB
index 00b00dc..2194186 100755 (executable)
@@ -55,7 +55,6 @@ void FEINT_DUMPPOINTS(TopOpeBRep_FaceEdgeIntersector& FEINT,
     Standard_Boolean isvertexF = FEINT.IsVertex(1,V1);
     TopoDS_Vertex V2;
     Standard_Boolean isvertexE = FEINT.IsVertex(2,V2);
-    Standard_Boolean isvertex = isvertexF || isvertexE;
     
     cout<<endl;
     cout<<"P"<<ip<<" : "; 
index a817568..fe2dec0 100755 (executable)
@@ -467,9 +467,6 @@ void TopOpeBRep_FacesFiller::VP_PositionOnR(TopOpeBRep_LineInter& L)
   
   for (; VPI.More(); VPI.Next()) {
     TopOpeBRep_VPointInter& VP = VPI.ChangeCurrentVP();
-#ifdef DEB
-    Standard_Integer VPsi = VP.ShapeIndex();
-#endif
     
     Standard_Boolean isvertex = VP.IsVertex(Esi);
     if ( isvertex ) {
index 4f95836..f064eb7 100755 (executable)
@@ -734,10 +734,7 @@ void TopOpeBRep_FacesFiller::ProcessRLine()
     Standard_Integer iOO = myDS->AddShape(OOE,OOrank);
 
     Standard_Real OOpar; 
-#ifdef DEB
-    Standard_Boolean okOO =
-#endif
-               VP.ParonE(OOE,OOpar);
+    VP.ParonE(OOE,OOpar);
  
     // xpu091198 : 1d interf done in EdgesFiller processing (cto cylcong *)     
     Standard_Boolean sdmeds = FUN_ds_sdm((*myDS),Erest,OOE);
@@ -1187,10 +1184,6 @@ void TopOpeBRep_FacesFiller::StoreCurveInterference(const Handle(TopOpeBRepDS_In
     TopOpeBRepDS_Curve DSC;
     myDSCIndex = myDS->AddCurve(DSC);
     
-#ifdef DEB
-    const TopOpeBRepDS_Curve& CCC = myDS->Curve(myDSCIndex);
-#endif
-    
 #ifdef DEB
     if (TopOpeBRepDS_GettraceDSF() || TopOpeBRepDS_GettraceDSNC()) 
       cout<<"new DSC "<<myDSCIndex<<endl;
index fcbbeb7..b2dff60 100755 (executable)
@@ -219,10 +219,6 @@ void TopOpeBRep_FacesIntersector::Perform(const TopoDS_Shape& F1,const TopoDS_Sh
   for (InitLine(); MoreLine(); NextLine()) {
     TopOpeBRep_LineInter& L = CurrentLine();
     if (L.TypeLineCurve() == TopOpeBRep_RESTRICTION) {
-#ifdef DEB
-      Standard_Boolean isedge1 = L.ArcIsEdge(1); //DEB
-      Standard_Boolean isedge2 = L.ArcIsEdge(2); //DEB
-#endif
       const TopoDS_Shape& E = L.Arc();
       myEdgeRestrictionMap.Add(E);
     }
@@ -289,9 +285,9 @@ Standard_Boolean TopOpeBRep_FacesIntersector::SameDomain () const
     Standard_ProgramError::Raise("FacesIntersector : bad SameDomain");
 
   Standard_Boolean sd = myIntersector.TangentFaces();
-#ifdef DEB
-  Standard_Boolean plpl = (mySurfaceType1 == GeomAbs_Plane) && (mySurfaceType2 == GeomAbs_Plane);
-#endif
+
+  //Standard_Boolean plpl = (mySurfaceType1 == GeomAbs_Plane) && (mySurfaceType2 == GeomAbs_Plane);
+
 //  if (!plpl) return Standard_False;
   return sd;
 }
@@ -730,14 +726,6 @@ Handle(IntPatch_RLine) BuildRLineBasedOnWLine(const Handle(IntPatch_WLine)& theW
     return anRLine;
 
   Standard_Boolean IsOnFirst = (theRank == 1);
-#ifdef DEB
-  Standard_Integer ParamMinOnLine = (Standard_Integer) 
-#endif
-    Vtx1.ParameterOnLine();
-#ifdef DEB
-  Standard_Integer ParamMaxOnLine = (Standard_Integer) 
-#endif
-    Vtx2.ParameterOnLine();
 
   Handle(IntSurf_LineOn2S) aLineOn2S = new IntSurf_LineOn2S();
   const Handle(IntSurf_LineOn2S)& Lori = theWLine->Curve();
index 7f47ed3..a4d3880 100755 (executable)
@@ -113,13 +113,7 @@ void TopOpeBRep_Hctxee2d::SetEdges(const TopoDS_Edge& E1,const TopoDS_Edge& E2,
         Standard_Real toll =
 #endif
                    BRep_Tool::Tolerance(vl);
-#ifdef DEB
-       Standard_Real tol = Max (tolf,toll);
-#endif
        Standard_Boolean onf = (df < tolf);
-#ifdef DEB
-        Standard_Boolean onl = (dl < toll);
-#endif
        TopoDS_Vertex v1 = onf ? vf : vl;
        TopTools_IndexedDataMapOfShapeListOfShape mapVE; TopExp::MapShapesAndAncestors(F1,TopAbs_VERTEX,TopAbs_EDGE,mapVE);
        const TopTools_ListOfShape& Edsanc = mapVE.FindFromKey(v1);
@@ -161,11 +155,6 @@ void TopOpeBRep_Hctxee2d::SetEdges(const TopoDS_Edge& E1,const TopoDS_Edge& E2,
     }
   }
   
-#ifdef DEB
-  GeomAbs_CurveType myCurveType1 = myCurve1.GetType();
-  GeomAbs_CurveType myCurveType2 = myCurve2.GetType();
-#endif
-
 } // SetEdges
 
 //=======================================================================
index 96fcfb7..cb0804a 100755 (executable)
@@ -90,7 +90,6 @@ void TopOpeBRep_Point2d::Dump(const Standard_Integer E1index,const Standard_Inte
   
   Standard_Boolean isvertex1 = IsVertex(1); TopoDS_Vertex V1; if (isvertex1) V1 = Vertex(1);
   Standard_Boolean isvertex2 = IsVertex(2); TopoDS_Vertex V2; if (isvertex2) V2 = Vertex(2);
-  Standard_Boolean isvertex = isvertex1 || isvertex2;
 
   Standard_Integer ia1,ia2; SegmentAncestors(ia1,ia2);
   cout<<endl<<"p2d "<<index<<"  k="<<keep<<" pos="<<pos;
index 426d286..b7d2ede 100755 (executable)
@@ -315,10 +315,6 @@ Standard_Real TopOpeBRep_FacesFiller::VPParamOnER(const TopOpeBRep_VPointInter&
   // If vp(index) is an edge boundary returns the point's parameter.
 
   const TopoDS_Edge& E = TopoDS::Edge(Lrest.Arc());
-#ifdef DEB
-  Standard_Boolean isdg =
-#endif
-             BRep_Tool::Degenerated(E);
   Standard_Boolean isedge1 =  Lrest.ArcIsEdge(1);
   Standard_Boolean isedge2 =  Lrest.ArcIsEdge(2);
   if (isedge1 && vp.IsVertexOnS1()) {
index 8a425c6..46bef22 100755 (executable)
@@ -58,10 +58,6 @@ void TopOpeBRep_FacesFiller::GetESL(TopTools_ListOfShape& LES)
     
     if (isrest) {
       const TopoDS_Edge& E = TopoDS::Edge(L.Arc());
-#ifdef DEB
-      Standard_Boolean FIisrest =
-#endif
-                     myFacesIntersector->IsRestriction(E);
       
 #ifdef DEB
       if (trRL) {
@@ -101,7 +97,7 @@ Standard_Boolean TopOpeBRep_FacesFiller::KeepRLine
 (const TopOpeBRep_LineInter& L,const Standard_Boolean checkkeep) const
 { 
 #ifdef DEB
-  Standard_Boolean trc = (TopOpeBRepDS_GettraceDSF() || TopOpeBRepDS_GettraceDSNC());
+  //Standard_Boolean trc = (TopOpeBRepDS_GettraceDSF() || TopOpeBRepDS_GettraceDSNC());
 #endif
 
   TopOpeBRep_TypeLineCurve t = L.TypeLineCurve();
@@ -340,10 +336,7 @@ void TopOpeBRep_FacesFiller::ProcessSectionEdges()
        itLES.Next(),itLOI.Next()) {
     const TopoDS_Shape& E1 = itLES.Value();
     Standard_Integer rE1 = itLOI.Value();
-#ifdef DEB
-    Standard_Integer iE1 =
-#endif
-              myDS->AddShape(E1,rE1);
+    myDS->AddShape(E1,rE1);
   }
   
   // determination des aretes SameDomain en 3d pur
index a46397b..93502ce 100755 (executable)
@@ -377,8 +377,6 @@ Standard_Boolean TopOpeBRep_ShapeIntersector::MoreIntersection() const
   Standard_Boolean res = myIntersectionDone;
 
 #ifdef DEB
-  Standard_Integer i1 = Index(1);
-  Standard_Integer i2 = Index(2);
   if (TopOpeBRep_GettraceSI() && res) {
     if      ( myFFDone )   cout<<"FF : ";
     else if ( myEEFFDone ) cout<<"    EE : ";
@@ -581,8 +579,6 @@ void TopOpeBRep_ShapeIntersector::FindFFIntersection()
 #ifdef DEB
     SAVFFi1 = myFaceScanner.Index(); SAVFFi2 = myFaceExplorer.Index(); 
     if (TopOpeBRep_GettraceSI()) {
-      Standard_Integer i1 = myFaceScanner.Index();
-      Standard_Integer i2 = myFaceExplorer.Index();
       cout<<"?? FF : ";
       myFaceScanner.DumpCurrent(cout); myFaceExplorer.DumpCurrent(cout);
       cout<<endl;
@@ -716,8 +712,6 @@ void TopOpeBRep_ShapeIntersector::FindEEFFIntersection()
     myEEIntersector.Perform(GS1,GS2);
 
 #ifdef DEB
-    Standard_Integer i1 = Index(1);
-    Standard_Integer i2 = Index(2);
     if (TopOpeBRep_GettraceSI() && myEEIntersector.IsEmpty()) {
       cout<<"    EE : ";
       myEdgeScanner.DumpCurrent(cout);
index 14e6a02..8d0d1d9 100755 (executable)
@@ -119,8 +119,6 @@ Standard_Boolean TopOpeBRep_ShapeIntersector2d::MoreIntersection() const
   Standard_Boolean res = myIntersectionDone;
   
 #ifdef DEB
-  Standard_Integer i1 = Index(1);
-  Standard_Integer i2 = Index(2);
   if (TopOpeBRep_GettraceSI() && res) {
     if      ( myFFDone )   cout<<"FF : ";
     else if ( myEEFFDone ) cout<<"    EE : ";
@@ -252,8 +250,6 @@ void TopOpeBRep_ShapeIntersector2d::FindFFIntersection()
     
 #ifdef DEB
     if (TopOpeBRep_GettraceSI()) {
-      Standard_Integer i1 = myFaceScanner.Index();
-      Standard_Integer i2 = myFaceExplorer.Index();
       cout<<"?? FF : ";
       myFaceScanner.DumpCurrent(cout); 
       myFaceExplorer.DumpCurrent(cout);
@@ -262,14 +258,8 @@ void TopOpeBRep_ShapeIntersector2d::FindFFIntersection()
 #endif
 
     const TopOpeBRepTool_BoxSort& BS = myFaceScanner.BoxSort();
-#ifdef DEB
-    const Bnd_Box& B1 =
-#endif
-                        BS.Box(GS1);
-#ifdef DEB
-    const Bnd_Box& B2 =
-#endif
-                        BS.Box(GS2);
+    BS.Box(GS1);
+    BS.Box(GS2);
     myFFDone = Standard_True;
     break;
     NextFFCouple();
@@ -365,8 +355,6 @@ void TopOpeBRep_ShapeIntersector2d::FindEEFFIntersection()
     myEEIntersector.Perform(GS1,GS2);
     
 #ifdef DEB
-    Standard_Integer i1 = Index(1);
-    Standard_Integer i2 = Index(2);
     if (TopOpeBRep_GettraceSI() && myEEIntersector.IsEmpty()) {
       cout<<"    EE : ";
       myEdgeScanner.DumpCurrent(cout);
index a9e24cd..f101a47 100755 (executable)
@@ -85,10 +85,6 @@ TopAbs_State TopOpeBRep_VPointInterClassifier::VPointPosition
     return myState;
   }
 
-#ifdef DEB
-  const gp_Pnt& P3D = VP.Value();
-#endif
   TopoDS_Face FF = TopoDS::Face(F);
   TopOpeBRepTool_ShapeTool::AdjustOnPeriodic(FF,u,v);
   gp_Pnt2d p2d(u,v);
index 9599311..bf622f5 100755 (executable)
@@ -467,9 +467,6 @@ Standard_Boolean FUNBREP_topogline_new
     Standard_ProgramError::Raise("FUNBREP_topogline_new : line is not a GLine");
     return Standard_False;
   }
-#ifdef DEB
-  Standard_Boolean trc = TopOpeBRepDS_GettraceDSF();
-#endif     
 
   Standard_Integer iVP = VP.Index();
   Standard_Integer iINON1,iINONn,nINON; L.VPBounds(iINON1,iINONn,nINON);
@@ -583,10 +580,6 @@ Standard_Boolean FUNBREP_topogline
  Standard_Real& parline,TopOpeBRepDS_Transition& transLine)
 //----------------------------------------------------------------------
 {
-#ifdef DEB
-  Standard_Boolean trc = TopOpeBRepDS_GettraceDSF();
-#endif     
-
   if (L.TypeLineCurve() == TopOpeBRep_WALKING) {
     Standard_ProgramError::Raise("FUNBREP_topogline : line is not a GLine");
     return Standard_False;
index e04e16e..0f06886 100755 (executable)
@@ -184,10 +184,6 @@ static void FUN_VPgeometryfound
   
   const TopOpeBRepDS_DataStructure& BDS = HDS->DS();
   if (BDS.HasShape(edge)) {
-#ifdef DEB
-    Standard_Integer iedge =
-#endif
-                BDS.Shape(edge);
     const TopOpeBRepDS_ListOfInterference& EPIL = BDS.ShapeInterferences(edge);
     TopOpeBRepDS_ListIteratorOfListOfInterference itEPIL(EPIL);
     EPIfound = FF.GetGeometry(itEPIL,VP,PVIndex,PVKind);
@@ -233,10 +229,6 @@ static void FUN_VPgeometryfound
     Standard_Real tolOOe = FUN_tool_maxtol(OOedge);
     Standard_Real OOtolp = Precision::Parametric(tolOOe);
     if (BDS.HasShape(OOedge)) {
-#ifdef DEB
-      Standard_Integer iooedge =
-#endif
-                    BDS.Shape(OOedge);
       const TopOpeBRepDS_ListOfInterference& OOEPIL = BDS.ShapeInterferences(OOedge);
       TopOpeBRepDS_ListIteratorOfListOfInterference OOitEPIL(OOEPIL);
       OOEPIfound = FF.GetGeometry(OOitEPIL,VP,PVIndex,PVKind);
@@ -412,9 +404,6 @@ Standard_EXPORT Standard_Boolean FUN_newtransEdge
   Standard_Boolean rest = inERL || isse;
   Standard_Boolean interf2d = EtgOOF && Lonrest && rest;
   Standard_Boolean interf3dtg = EtgOOF && rest && !interf2d; // xpu260898 :cto902D6,(e15,p3,f9)
-#ifdef DEB
-  Standard_Boolean interf3d = !interf2d && !interf3dtg;
-#endif
 
   Standard_Real factor = 1.e-2; 
   TopOpeBRepTool_makeTransition MKT; 
@@ -546,9 +535,6 @@ static void FUN_processCPI
  Standard_Integer& keptVPnbr)
 //-----------------------------------------------------------------------
 {    
-#ifdef DEB
-  Standard_Boolean CPIfound = !Ifound.IsNull();
-#endif
   Standard_Integer OOShapeIndex = (ShapeIndex == 1) ? 2 : 1;
 
   TopOpeBRepDS_Transition ttransLine = transLine;
@@ -990,13 +976,7 @@ void TopOpeBRep_FacesFiller::ProcessVPonR
     }
   }//myLineINL
 
-#ifdef DEB
-  Standard_Integer SEPI = (EPIfound) ? IEPI->Support() : 0;
-#endif
   TopOpeBRepDS_Kind SKEPI; if(EPIfound) SKEPI=IEPI->SupportType();
-#ifdef DEB
-  Standard_Integer SCPI = (CPIfound) ? ICPI->Support() : 0;
-#endif
   TopOpeBRepDS_Kind SKCPI; if(CPIfound) SKCPI=ICPI->SupportType();
 
   // Gfound = VP corresponds with an existing geometry of ShapeIndex
index bdc3093..7cfbb5c 100755 (executable)
@@ -151,20 +151,12 @@ void TopOpeBRep_FacesFiller::ProcessVPonclosingR(const TopOpeBRep_VPointInter& V
 //  Standard_Boolean isvertex = VP.IsVertex(ShapeIndex);
   Standard_Boolean isvertex = (PVKind == TopOpeBRepDS_VERTEX);
   Standard_Integer absindex = VP.ShapeIndex(); // 0,1,2,3
-#ifdef DEB
-  Standard_Integer iVP =
-#endif
-            VP.Index();
   Standard_Boolean OOShapeIndex = (ShapeIndex == 1) ? 2 : 1;
   Standard_Boolean on2edges = (absindex == 3);
   Standard_Boolean hasONedge = (VP.State(OOShapeIndex) == TopAbs_ON);
   Standard_Boolean hasOOedge = (on2edges) ? Standard_True : hasONedge;
 
   TopoDS_Face Face = (*this).Face(ShapeIndex);
-#ifdef DEB
-  Standard_Integer iSIFace =
-#endif
-                myDS->Shape(Face);
   TopoDS_Face OOFace = (*this).Face(OOShapeIndex);
   Standard_Integer iOOFace = myDS->Shape(OOFace);
   if (iOOFace == 0) iOOFace = myDS->AddShape(OOFace,OOShapeIndex);
@@ -174,14 +166,7 @@ void TopOpeBRep_FacesFiller::ProcessVPonclosingR(const TopOpeBRep_VPointInter& V
   const TopoDS_Edge& edge = TopoDS::Edge(VP.Edge(ShapeIndex));
   if (myDS->HasShape(edge)) SIedgeIndex = myDS->Shape(edge);
   else                      myDS->AddShape(edge,ShapeIndex);
-#ifdef DEB
-  Standard_Boolean isrest =
-#endif
-               myDS->IsSectionEdge(edge);
-#ifdef DEB
-  Standard_Boolean closing =
-#endif
-                TopOpeBRepTool_ShapeTool::Closed(edge,Face);
+
   Standard_Real paredge = VP.EdgeParameter(ShapeIndex);
   
   // dummy if !<hasOOedge>
index 3f9b583..4bfaa95 100755 (executable)
@@ -947,11 +947,6 @@ static Standard_Integer FUN_putInterfonDegenEd
  TopoDS_Edge& OOEi, Standard_Real& paronOOEi, Standard_Boolean hasOOEi,
  Standard_Boolean& isT2d)
 {  
-#ifdef DEB
-  Standard_Boolean traceDSF = TopOpeBRepDS_GettraceDSF();
-  Standard_Boolean traceDEGEN = TopOpeBRepDS_GettraceDEGEN();
-  Standard_Boolean trace = traceDSF || traceDEGEN;
-#endif
   OOEi.Nullify();
 
   Standard_Boolean on3 = (VP.ShapeIndex() == 3);// <VP> is shared by edge of 1 and edge of 2.
index dd0199a..4d3d2dd 100755 (executable)
@@ -282,9 +282,6 @@ static void FC2D_translate(Handle(Geom2d_Curve) C2D,
   
   if (isperio && uviso && !EFnull) {
     // C2D prend comme origine dans F l'origine de la pcurve de EF dans F
-#ifdef DEB
-    Standard_Real period = S1->IsUPeriodic() ? S1->UPeriod() : S1->IsVPeriodic() ? S1->VPeriod() : 0.;
-#endif
     TopoDS_Face FFOR = F;
     FFOR.Orientation(TopAbs_FORWARD);
     gp_Pnt2d p1,p2; BRep_Tool::UVPoints(EF,FFOR,p1,p2);
index f277d3d..3be6de7 100755 (executable)
@@ -290,10 +290,6 @@ const Bnd_Box& TopOpeBRepTool_BoxSort::Box(const TopoDS_Shape& S) const
   }
 
   if ( myHBT->HasBox(S) ) {
-#ifdef DEB
-    Standard_Integer i =
-#endif
-            myHBT->Index(S);
     const Bnd_Box& B = myHBT->Box(S);
     return B;
   }
index a4e4367..3f03372 100755 (executable)
@@ -72,10 +72,8 @@ TopOpeBRepTool_CORRISO::TopOpeBRepTool_CORRISO()
 TopOpeBRepTool_CORRISO::TopOpeBRepTool_CORRISO(const TopoDS_Face& Fref)
 {
   myFref = Fref;
-#ifdef DEB
-  Standard_Boolean closed =
-#endif
-               FUN_tool_closedS(myFref,myUclosed,myUper,myVclosed,myVper);
+
+  FUN_tool_closedS(myFref,myUclosed,myUper,myVclosed,myVper);
 
   const Handle(Geom_Surface)& SU = BRep_Tool::Surface(myFref);
   myGAS = GeomAdaptor_Surface(SU);
@@ -153,10 +151,6 @@ Standard_Boolean TopOpeBRepTool_CORRISO::Init(const TopoDS_Shape& S)
 //    Standard_Real f,l,tol; Handle(Geom2d_Curve) PC = FC2D_CurveOnSurface(E,myFref,f,l,tol);
     Handle(Geom2d_Curve) PC; Standard_Real f,l,tol;
     Standard_Boolean hasold = FC2D_HasOldCurveOnSurface(E,myFref,PC);
-#ifdef DEB
-    Standard_Boolean hasnew =
-#endif
-                 FC2D_HasNewCurveOnSurface(E,myFref,PC);
     PC = FC2D_EditableCurveOnSurface(E,myFref,f,l,tol);
     if (!hasold) FC2D_AddNewCurveOnSurface(PC,E,myFref,f,l,tol);
     if (PC.IsNull()) return Standard_False;
@@ -380,10 +374,8 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
 
   if      (fyceds.Extent() == 1) {// ivf == 3 : cto016G*
     TopTools_DataMapOfOrientedShapeInteger fyeds;
-#ifdef DEB
-    Standard_Boolean found =
-#endif
-                EdgesWithFaultyUV(myEds,3,fyeds);
+
+    EdgesWithFaultyUV(myEds,3,fyeds);
     Standard_Integer nfy = fyeds.Extent();
 
     TopTools_DataMapIteratorOfDataMapOfOrientedShapeInteger itm(fyceds);
@@ -547,10 +539,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
       // <vce> (boundary of <cE>):   
       const TopoDS_Vertex& vce = TopoDS::Vertex(vcE(ivce)); 
       TopTools_ListOfShape loe; isb = Connexity(vce,loe);
-#ifdef DEB
-      Standard_Integer nloe =
-#endif
-                 loe.Extent(); // DEB
+
       if (!isb) return Standard_False; // NYIRAISE
 
       Standard_Real parvce = TopOpeBRepTool_TOOL::ParE(ivce,cE); gp_Pnt2d UVvce = TopOpeBRepTool_TOOL::UVF(parvce,cE2d);
@@ -684,9 +673,6 @@ Standard_Integer TopOpeBRepTool_CORRISO::EdgeOUTofBoundsUV(const TopoDS_Edge& E,
   Standard_Real xlast   = onU ? myGAS.LastUParameter() : myGAS.LastVParameter(); // xlast=xfirst+xperiod
   Standard_Real xperiod = onU ? myUper : myVper;
 
-#ifdef DEB
-  Standard_Boolean inbounds=Standard_False;  
-#endif
   Standard_Boolean isou,isov; gp_Pnt2d o2d; gp_Dir2d d2d; 
   Standard_Boolean iso = TopOpeBRepTool_TOOL::UVISO(PC,isou,isov,d2d,o2d);
 
@@ -834,10 +820,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgeWithFaultyUV(const TopoDS_Edge& E,
     // <vEok> :
     Standard_Boolean vEok = Standard_False;
     const TopTools_ListOfShape& loe = myVEds.Find(vE);
-#ifdef DEB
-    Standard_Integer nloe =
-#endif
-               loe.Extent(); //DEB
+
     for (TopTools_ListIteratorOfListOfShape ite(loe); ite.More(); ite.Next()) {
       const TopoDS_Edge& e = TopoDS::Edge(ite.Value());
       TopAbs_Orientation oe = e.Orientation();
@@ -852,9 +835,6 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgeWithFaultyUV(const TopoDS_Edge& E,
       Standard_Real tttole =
 #endif
                    BRep_Tool::Tolerance(e);
-#ifdef DEB
-      Standard_Real tttuve = Max(Tol(1,tttole),Tol(2,tttole));
-#endif
       
       Standard_Boolean isb = myERep2d.IsBound(e);
       if (!isb) {FUN_RaiseError(); return Standard_False;}
@@ -979,16 +959,10 @@ Standard_Boolean TopOpeBRepTool_CORRISO::TrslUV(const Standard_Boolean onU, cons
 {
   gp_Vec2d tt2d; 
   if (onU) {Standard_Real uper;
-#ifdef DEB
-            Standard_Boolean ok =
-#endif
                      Refclosed(1,uper);
             if (!uper) return Standard_False;
            tt2d = gp_Vec2d(uper,0.);}
   else     {Standard_Real vper;
-#ifdef DEB
-            Standard_Boolean ok =
-#endif
                      Refclosed(2,vper);
             if (!vper) return Standard_False;
            tt2d = gp_Vec2d(0.,vper);}
@@ -1079,10 +1053,6 @@ Standard_Boolean TopOpeBRepTool_CORRISO::AddNewConnexity(const TopoDS_Vertex& ,
   if (!isb) {
     Handle(Geom2d_Curve) PC; Standard_Real f,l,tol;
     Standard_Boolean hasold = FC2D_HasOldCurveOnSurface(E,myFref,PC);
-#ifdef DEB
-    Standard_Boolean hasnew =
-#endif
-                 FC2D_HasNewCurveOnSurface(E,myFref,PC);
     PC = FC2D_EditableCurveOnSurface(E,myFref,f,l,tol);
     if (!hasold) FC2D_AddNewCurveOnSurface(PC,E,myFref,f,l,tol);
     if (PC.IsNull()) return Standard_False;
index d7d5278..e98f660 100755 (executable)
@@ -79,10 +79,6 @@ Standard_EXPORT Standard_Boolean FUN_tool_onapex(const gp_Pnt2d& p2d,const Handl
   }
   if (ST == GeomAbs_Sphere) {
     Standard_Real pisur2 = M_PI*.5;
-#ifdef DEB
-    Standard_Real u =
-#endif
-            p2d.X();
     Standard_Real v = p2d.Y();
     Standard_Boolean vpisur2 = (Abs(v-pisur2) < toluv);
     Standard_Boolean vmoinspisur2 = (Abs(v+pisur2) < toluv);
@@ -118,10 +114,6 @@ Standard_EXPORT gp_Dir FUN_tool_ngS(const gp_Pnt2d& p2d,const Handle(Geom_Surfac
       }
       else if (du < tol) {
        Standard_Real vf = GS.FirstVParameter();
-#ifdef DEB
-        Standard_Real vl =
-#endif
-                 GS.LastVParameter();
        Standard_Boolean onvf = Abs(p2d.Y()-vf)<toluv;
 
        Standard_Real x = p2d.X(); Standard_Real y = p2d.Y();
@@ -217,9 +209,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_line(const Handle(Geom2d_Curve)& pc)
   if (pcb.IsNull()) return Standard_False;
   Geom2dAdaptor_Curve GC2d(pcb);
   GeomAbs_CurveType typ = GC2d.GetType();
-#ifdef DEB
-  Standard_Boolean isquad = Standard_False;
-#endif
+
   if (typ == GeomAbs_Line) return Standard_True;
 
   return Standard_False ;
index 9987c9e..ea3a2f2 100755 (executable)
@@ -126,10 +126,6 @@ const Bnd_Box& TopOpeBRepTool_HBoxTool::Box(const TopoDS_Shape& S)
     Standard_ProgramError::Raise("HBT::Box1");
   }
 
-#ifdef DEB
-  Standard_Integer im =
-#endif
-           Index(S);
   const Bnd_Box& B = myIMS.FindFromKey(S);
   return B;
 }
index ca817bc..ff8ea31 100755 (executable)
@@ -138,10 +138,6 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClosedW(const TopoDS_Wire& W)
   TopTools_DataMapIteratorOfDataMapOfShapeListOfShape itvFine(mapvFine);
   for (; itvFine.More(); itvFine.Next()){
     const TopoDS_Shape& vFine = itvFine.Key();
-#ifdef DEB
-    const TopTools_ListOfShape& edsvFine =
-#endif
-                             itvFine.Value();
     Standard_Boolean vIine = mapvIine.IsBound(vFine);
     if (vIine) {mapvok.Add(vFine); continue;}
     Standard_Boolean vRine = mapvRine.IsBound(vFine);
@@ -153,10 +149,6 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClosedW(const TopoDS_Wire& W)
   TopTools_DataMapIteratorOfDataMapOfShapeListOfShape itvRine(mapvRine);
   for (; itvRine.More(); itvRine.Next()){
     const TopoDS_Shape& vRine = itvRine.Key();
-#ifdef DEB
-    const TopTools_ListOfShape& edsvRine =
-#endif
-                             itvRine.Value();
     Standard_Boolean vok = mapvok.Contains(vRine);
     if (vok) continue;
     Standard_Boolean vIine = mapvIine.IsBound(vRine);
index d97e888..3788ca0 100755 (executable)
@@ -340,10 +340,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::SplitFaces()
     // splitting face :
     const TopoDS_Face& f = TopoDS::Face(exf.Current()); 
     TopTools_ListOfShape lfsp; Standard_Boolean issp = TopOpeBRepTool_REGUS::SplitF(f,lfsp);
-#ifdef DEB
-    Standard_Integer nf =
-#endif
-             lfsp.Extent();
+
     if (!issp) continue;
 
     myFsplits.Bind(f,lfsp);
@@ -599,10 +596,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NextinBlock()
        // lofc : the list of faces connexed to e in <myS>
        // lof  : the list of untouched faces connexed to e in <myS>    
        const TopTools_ListOfShape& lofc = mymapeFsstatic.Find(e);
-#ifdef DEB
-        Standard_Integer nfc =
-#endif
-                  lofc.Extent();
+
        itff.Initialize(lofc);
        TopoDS_Face fref;
        for (; itff.More(); itff.Next()) {
@@ -689,10 +683,6 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
 #endif
   ffound.Nullify();
   TopoDS_Face fref = TopoDS::Face(myf);
-#ifdef DEB
-  Standard_Integer nf =
-#endif
-           lof.Extent();//deb
 
   // Give us egde <e>, and a reference face <fref> (= <myf>)
   // - parameter on <e> = <pare>.
index 9328d57..bf2805b 100755 (executable)
@@ -298,10 +298,6 @@ Standard_Boolean TopOpeBRepTool_REGUW::MapS()
   TopExp_Explorer exe(CS, TopAbs_EDGE);
   for (; exe.More(); exe.Next()){
     const TopoDS_Edge& ed = TopoDS::Edge(exe.Current());
-#ifdef DEB
-    TopAbs_Orientation oed =
-#endif
-               ed.Orientation();
 
     Standard_Boolean isdgE = BRep_Tool::Degenerated(ed); 
     Standard_Boolean iscE = TopOpeBRepTool_TOOL::IsClosingE(ed,myCORRISO.S(),Fref()); 
@@ -482,9 +478,9 @@ Standard_Boolean TopOpeBRepTool_REGUW::InitBlock()
   for (; exv.More(); exv.Next()){
     const TopoDS_Shape& vcur = exv.Current();
     TopOpeBRepTool_connexity& cco = mymapvEds.ChangeFromKey(vcur);
-#ifdef DEB
-    Standard_Boolean ok =
-#endif
+//#ifdef DEB
+//    Standard_Boolean ok =
+//#endif
              cco.RemoveItem(myed);
 //    if (!ok) return Standard_False; see for closing vertices
   }
@@ -525,9 +521,6 @@ Standard_Boolean TopOpeBRepTool_REGUW::NearestE(const TopTools_ListOfShape& loe,
   Standard_Real fac = 0.45678;
   Standard_Real tola = Precision::Angular();
   Standard_Integer iv0e1 = (iStep == 1) ? REVERSED : FORWARD;
-#ifdef DEB
-  Standard_Integer iv1e1 = (iStep == 1) ? FORWARD : REVERSED;
-#endif
 
   // initializing 
   TopTools_ListIteratorOfListOfShape ite(loe);
@@ -570,9 +563,6 @@ Standard_Boolean TopOpeBRepTool_REGUW::NearestE(const TopTools_ListOfShape& loe,
     if (trc) cout<<"ang(e"<<FUN_adds(myed)<<",e"<<FUN_adds(ei)<<")="<<angi<<endl;
 #endif
     if (eq) {
-#ifdef DEB
-      Standard_Boolean dummy=Standard_True;//DEB
-#endif
       FUN_Raise(); 
       return Standard_False;
     }
@@ -645,16 +635,12 @@ Standard_Boolean TopOpeBRepTool_REGUW::NextinBlock()
     myed = efound;
   }
 
-#ifdef DEB
-  TopOpeBRepTool_connexity& newco =
-#endif
-                mymapvEds.ChangeFromKey(myv);
   TopExp_Explorer exv(myed, TopAbs_VERTEX);
   for (; exv.More(); exv.Next()){
     TopOpeBRepTool_connexity& cco = mymapvEds.ChangeFromKey(exv.Current());
-#ifdef DEB
-    Standard_Boolean ok =
-#endif
+//#ifdef DEB
+//    Standard_Boolean ok =
+//#endif
              cco.RemoveItem(myed);
 //    if (!ok) {FUN_Raise(); return Standard_False;} closed edges
   }
index 1db72f7..9bd4074 100755 (executable)
@@ -626,10 +626,6 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
   // noldW = 1
   // ---------
   if (noldW == 1) {
-#ifdef DEB
-    const TopoDS_Shape& owi =
-#endif  
-                     itm.Key(); // DEB
     const TopTools_ListOfShape& low = itm.Value();
     Standard_Boolean ok = CLASSI.Classilist(low,mapWlow);
     if (!ok) return Standard_False;
@@ -662,10 +658,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
     if (!isb1) continue; 
 
     const TopTools_ListOfShape& lw1 = mapOwNw.Find(Ow1);
-#ifdef DEB
-    Standard_Integer nw1 =
-#endif
-              lw1.Extent();
+
     if (nOw == 1) { 
       // all wires of <mapWs> have been treated, except the last one
       // if (nw1 == 0) mapWlow binds already (Ow1,null); 
@@ -706,10 +699,6 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
                cout<<endl;}
 #endif
       const TopTools_ListOfShape& lw2 = mapOwNw.Find(Ow2);
-#ifdef DEB
-      Standard_Integer nw2 =
-#endif
-                lw2.Extent();
      
       TopTools_ListOfShape lw1r; FUN_addOwlw(Ow1,lw1,lw1r);
       TopTools_ListOfShape lw2r; FUN_addOwlw(Ow2,lw2,lw2r);
index 52e8aaf..e3e44d9 100755 (executable)
@@ -556,10 +556,6 @@ void TopOpeBRepTool_ShapeClassifier::StateP2DReference
       myP2Ddef = Standard_True;
       TopoDS_Face F = TopoDS::Face(myRef);
       F.Orientation(TopAbs_FORWARD);
-#ifdef DEB
-      Standard_Real tol2d =
-#endif
-                  Precision::PConfusion();
       Standard_Real  TolClass  = 1e-8;
       BRepTopAdaptor_FClass2d FClass2d(F,TolClass);
       myState = FClass2d.Perform(P2D);
index de19431..52cab9a 100755 (executable)
@@ -192,18 +192,18 @@ void TopOpeBRepTool_ShapeTool::AdjustOnPeriodic(const TopoDS_Shape& F,
 
   if (isUperio) {
     Standard_Real Uperiod = Surf->UPeriod();
-#ifdef DEB
-    Standard_Real ubid = UFfirst;
-#endif
+
+//    Standard_Real ubid = UFfirst;
+
 //    ElCLib::AdjustPeriodic(UFfirst,UFfirst + Uperiod,tol,ubid,u);
     if (Abs(u - UFfirst-Uperiod) > tol)
       u = ElCLib::InPeriod(u,UFfirst,UFfirst + Uperiod);
   }
   if (isVperio) {
     Standard_Real Vperiod = Surf->VPeriod();
-#ifdef DEB
-    Standard_Real vbid = VFfirst;
-#endif
+
+//    Standard_Real vbid = VFfirst;
+
 //    ElCLib::AdjustPeriodic(VFfirst,VFfirst + Vperiod,tol,vbid,v);
     if (Abs(v - VFfirst-Vperiod) > tol)
       v = ElCLib::InPeriod(v,VFfirst,VFfirst + Vperiod);
index c64236a..e8007e7 100755 (executable)
@@ -494,13 +494,13 @@ Standard_Boolean TopOpeBRepTool_TOOL::TgINSIDE(const TopoDS_Vertex& v, const Top
 Standard_Boolean TopOpeBRepTool_TOOL::TggeomE(const Standard_Real par, const BRepAdaptor_Curve& BC, 
                                 gp_Vec& Tg)
 {
-#ifdef DEB
-  GeomAbs_CurveType ct =
-#endif
-                         BC.GetType();
-#ifdef DEB
-  Standard_Boolean apoles = (ct == GeomAbs_BezierCurve)||(ct == GeomAbs_BSplineCurve);
-#endif
+//#ifdef DEB
+//  GeomAbs_CurveType ct =
+//#endif
+//                         BC.GetType();
+//#ifdef DEB
+//  Standard_Boolean apoles = (ct == GeomAbs_BezierCurve)||(ct == GeomAbs_BSplineCurve);
+//#endif
   
   Standard_Real f = BC.FirstParameter(), l = BC.LastParameter();
   Standard_Real tolE = BC.Tolerance(); Standard_Real tolp = BC.Resolution(tolE);
@@ -948,10 +948,6 @@ Standard_Boolean TopOpeBRepTool_TOOL::UVISO(const TopoDS_Edge& E, const TopoDS_F
   //  Standard_Real f,l,tol; Handle(Geom2d_Curve) PC = FC2D_CurveOnSurface(E,F,f,l,tol);
   Handle(Geom2d_Curve) PC; Standard_Real f,l,tol;
   Standard_Boolean hasold = FC2D_HasOldCurveOnSurface(E,F,PC);
-#ifdef DEB
-  Standard_Boolean hasnew =
-#endif
-               FC2D_HasNewCurveOnSurface(E,F,PC);
   PC = FC2D_EditableCurveOnSurface(E,F,f,l,tol);
   if (!hasold) FC2D_AddNewCurveOnSurface(PC,E,F,f,l,tol);
   
@@ -1117,17 +1113,10 @@ Standard_Boolean TopOpeBRepTool_TOOL::Getduv(const TopoDS_Face& f,const gp_Pnt2d
   Bnd_Box bndf; BRepBndLib::AddClose(f,bndf);
   Standard_Real f1,f2,f3,l1,l2,l3; bndf.Get(f1,f2,f3,l1,l2,l3);
   gp_Vec d123(f1-l1, f2-l2, f3-l3);
-#ifdef DEB
-  Standard_Real dmax =
-#endif
-             d123.Dot(dir);
 
   gp_Pnt p; FUN_tool_value(uv,f,p); p.Translate(dir.Multiplied(factor));
   Standard_Real d; gp_Pnt2d uvtr;
-#ifdef DEB
-  Standard_Boolean ok =
-#endif
-           FUN_tool_projPonF(p,f, uvtr,d);
+  FUN_tool_projPonF(p,f, uvtr,d);
   Standard_Real tolf = BRep_Tool::Tolerance(f); tolf *= 1.e2; //NYIXPUTOL
   if (d > tolf) return Standard_False;
 
@@ -1340,9 +1329,8 @@ Standard_Boolean TopOpeBRepTool_TOOL::MatterKPtg(const TopoDS_Face& f1,const Top
   Standard_Real x = 0.45678; Standard_Real pare = (1-x)*f+x*l;
 
   Standard_Real eps = 0.123; //NYIXPU190199
-#ifdef DEB
-  Standard_Real tola = Precision::Angular()*1.e3;
-#endif
+
+  //Standard_Real tola = Precision::Angular()*1.e3;
 
   gp_Pnt2d uv1; FUN_tool_paronEF(e,pare,f1,uv1);
   gp_Dir nt1; Standard_Boolean ok1 = TopOpeBRepTool_TOOL::Nt(uv1,f1,nt1);
index 01830c3..ee31f0f 100755 (executable)
@@ -129,10 +129,10 @@ Standard_EXPORT Standard_Boolean FUN_tool_isobounds(const TopoDS_Shape& Sh,
   if (S.IsNull()) return Standard_False;
 
   Standard_Boolean uclosed,vclosed; Standard_Real uperiod,vperiod; 
-#ifdef DEB
-  Standard_Boolean uvclosed =
-#endif
-                 FUN_tool_closedS(F,uclosed,uperiod,vclosed,vperiod);
+
+//  Standard_Boolean uvclosed =
+
+  FUN_tool_closedS(F,uclosed,uperiod,vclosed,vperiod);
 
 //  Standard_Real uf,ul,vf,vl; S->Bounds(uf,ul,vf,vl);
 
@@ -174,10 +174,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_outbounds(const TopoDS_Shape& Sh,
 
   const TopoDS_Face& F = TopoDS::Face(Sh);
   Standard_Boolean uclosed,vclosed; Standard_Real uperiod,vperiod; 
-#ifdef DEB
-  Standard_Boolean uvclosed =
-#endif
-                 FUN_tool_closedS(F,uclosed,uperiod,vclosed,vperiod);
+  FUN_tool_closedS(F,uclosed,uperiod,vclosed,vperiod);
   Standard_Real tolp = 1.e-6;
   
   if (uclosed) {
@@ -302,9 +299,6 @@ Standard_EXPORT Standard_Boolean FUN_tool_orientEinF(const TopoDS_Edge& E,const
   TopExp_Explorer e(F,TopAbs_EDGE);
   for (;e.More();e.Next()) {
     const TopoDS_Shape& EF = e.Current(); 
-#ifdef DEB
-    Standard_Boolean b = EF.IsSame(E);
-#endif
     if (EF.IsSame(E)) { 
       oriEinF=EF.Orientation();
       break;
@@ -882,12 +876,10 @@ Standard_EXPORT Standard_Real FUN_tool_maxtol(const TopoDS_Shape& S)
       Standard_Boolean hasedge = FUN_tool_maxtol(ff,TopAbs_EDGE,maxtol);
       if (hasedge) {   
        TopExp_Explorer exe(S,TopAbs_FACE);
-       for (; exe.More(); exe.Next()){
+       for (; exe.More(); exe.Next())
+  {
          const TopoDS_Shape& ee = exe.Current();
-#ifdef DEB
-         Standard_Boolean hasvertex =
-#endif
-                          FUN_tool_maxtol(ee,TopAbs_VERTEX,maxtol);
+    FUN_tool_maxtol(ee,TopAbs_VERTEX,maxtol);
        }
       }
     }
@@ -896,19 +888,14 @@ Standard_EXPORT Standard_Real FUN_tool_maxtol(const TopoDS_Shape& S)
     Standard_Boolean hasedge = FUN_tool_maxtol(S,TopAbs_EDGE,maxtol);
     if (hasedge) {     
       TopExp_Explorer exe(S,TopAbs_FACE);
-      for (; exe.More(); exe.Next()){
-       const TopoDS_Shape& ee = exe.Current();
-#ifdef DEB
-       Standard_Boolean hasvertex =
-#endif
-                        FUN_tool_maxtol(ee,TopAbs_VERTEX,maxtol);
+      for (; exe.More(); exe.Next())
+      {
+        const TopoDS_Shape& ee = exe.Current();
+        FUN_tool_maxtol(ee,TopAbs_VERTEX,maxtol);
       }
     }
     if (!hasedge) {
-#ifdef DEB
-      Standard_Boolean hasvertex =
-#endif
-                      FUN_tool_maxtol(S,TopAbs_VERTEX,maxtol);
+      FUN_tool_maxtol(S,TopAbs_VERTEX,maxtol);
     }
   }
   return maxtol;
@@ -1232,10 +1219,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_getEclo(const TopoDS_Face& F, const St
     if (clo) {
       Standard_Boolean isou,isov; gp_Pnt2d o2d; gp_Dir2d d2d; 
       Standard_Real f,l,tol; Handle(Geom2d_Curve) PC = FC2D_CurveOnSurface(E,F,f,l,tol);
-#ifdef DEB
-      Standard_Boolean isouv =
-#endif
-                  TopOpeBRepTool_TOOL::UVISO(PC,isou,isov,d2d,o2d); 
+      TopOpeBRepTool_TOOL::UVISO(PC,isou,isov,d2d,o2d); 
       if (UISO && isou) {
        Eclo=E; 
        return Standard_True;
index 4672ca3..b751fb1 100755 (executable)
@@ -76,28 +76,15 @@ Standard_EXPORT Standard_Boolean FUN_tool_correctCLO(TopoDS_Edge& E, const TopoD
 //  Standard_Real f,l,tolpc; Standard_Boolean trim3d = Standard_True; 
 //  Handle(Geom2d_Curve) PC = FC2D_CurveOnSurface(E,F,f,l,tolpc,trim3d);  
   Standard_Real f,l,tol; Handle(Geom2d_Curve) PC;
-#ifdef DEB
-  Standard_Boolean hasold =
-#endif
-               FC2D_HasOldCurveOnSurface(E,FFOR,PC);
-#ifdef DEB
-  Standard_Boolean hasnew =
-#endif
-               FC2D_HasNewCurveOnSurface(E,FFOR,PC);
   PC = FC2D_EditableCurveOnSurface(E,FFOR,f,l,tol);  
 
   Standard_Boolean isoU,isoV; gp_Pnt2d o2d; gp_Dir2d d2d; 
-#ifdef DEB
-  Standard_Boolean ISO =
-#endif
-            TopOpeBRepTool_TOOL::UVISO(PC,isoU,isoV,d2d,o2d);
+  TopOpeBRepTool_TOOL::UVISO(PC,isoU,isoV,d2d,o2d);
   Standard_Boolean xiso = (inU && isoU)||((!inU) && isoV);
   if (!xiso) return Standard_False;      
   Standard_Real par = dx*f + (1-dx)*l; gp_Vec2d dxx;
-#ifdef DEB
-  Standard_Boolean ok =
-#endif
-           FUN_tool_getdxx(FFOR,E,par,dxx);
+
+  FUN_tool_getdxx(FFOR,E,par,dxx);
 
   TopExp_Explorer ex(FFOR, TopAbs_EDGE);
   for (; ex.More(); ex.Next()){    
@@ -107,28 +94,14 @@ Standard_EXPORT Standard_Boolean FUN_tool_correctCLO(TopoDS_Edge& E, const TopoD
 
 //    Standard_Real f1,l1; Handle(Geom2d_Curve) PC1 = BRep_Tool::CurveOnSurface(e1,F,f1,l1);  
     Standard_Real f1,l1,tol1; Handle(Geom2d_Curve) PC1;
-#ifdef DEB
-    Standard_Boolean hasold1 =
-#endif
-                  FC2D_HasOldCurveOnSurface(e1,FFOR,PC1);
-#ifdef DEB
-    Standard_Boolean hasnew1 =
-#endif
-                  FC2D_HasNewCurveOnSurface(e1,FFOR,PC1);
     PC1 = FC2D_EditableCurveOnSurface(e1,FFOR,f1,l1,tol1);
 
     Standard_Boolean isoU1,isoV1; gp_Pnt2d o2d1; gp_Dir2d d2d1; 
-#ifdef DEB
-    Standard_Boolean ISO1 =
-#endif
-               TopOpeBRepTool_TOOL::UVISO(PC1,isoU1,isoV1,d2d1,o2d1);
+    TopOpeBRepTool_TOOL::UVISO(PC1,isoU1,isoV1,d2d1,o2d1);
 
     // 2d(e1,FFOR) and 2d(E,FFOR) describe the same side of matter 
     Standard_Real par1 = dx*f1 + (1-dx)*l1; gp_Vec2d dxx1;
-#ifdef DEB
-    Standard_Boolean ok1 =
-#endif
-              FUN_tool_getdxx(FFOR,e1,par1,dxx1);
+    FUN_tool_getdxx(FFOR,e1,par1,dxx1);
     Standard_Real dot = dxx.Dot(dxx1);
     if (dot < 0.) continue;
 
index 5311543..c402adf 100755 (executable)
@@ -198,10 +198,6 @@ Standard_Integer TopOpeBRepTool_connexity::IsInternal(TopTools_ListOfShape& Item
 
   // all subshapes of INTERNAL(EXTERNAL) are oriented INTERNAL(EXTERNAL)
   TopTools_ListOfShape lINT; lINT.Assign(theItems.Value(INTERNAL));
-#ifdef DEB
-  Standard_Integer n1 =
-#endif
-           lINT.Extent();
   TopTools_ListIteratorOfListOfShape it1(lINT);
   while (it1.More()) {
     const TopoDS_Shape& item1 = it1.Value();
@@ -213,10 +209,6 @@ Standard_Integer TopOpeBRepTool_connexity::IsInternal(TopTools_ListOfShape& Item
   }
 
   TopTools_ListOfShape lEXT; lEXT.Assign(theItems.Value(EXTERNAL));
-#ifdef DEB
-  Standard_Integer n2 =
-#endif
-           lEXT.Extent();
   TopTools_ListIteratorOfListOfShape it2(lEXT);
   while (it2.More()) {
     const TopoDS_Shape& item2 = it2.Value();
index 1df0d0c..5203aef 100755 (executable)
@@ -149,10 +149,7 @@ Standard_Integer TopOpeBRepTool_mkTondgE::GetAllRest(TopTools_ListOfShape& lEi)
     if (!ok) continue;
 
     Standard_Real parei;
-#ifdef DEB
-    Standard_Boolean oki =
-#endif
-              TopOpeBRepTool_TOOL::ParISO(myuvi,ei,myFi, parei);
+    TopOpeBRepTool_TOOL::ParISO(myuvi,ei,myFi, parei);
     myEpari.Bind(ei,parei);
     lEi.Append(ei);
   }
index 2756aba..e083922 100755 (executable)
@@ -2122,8 +2122,6 @@ static int v2dtable (Draw_Interpretor& , Standard_Integer argc, const char** arg
   
   Standard_Real x1 = 24, y1 = 24;
   Standard_Integer numberOfColumn = 1, numberOfRows = 1;
-  Quantity_PlaneAngle anAngle = 0.0;
-  Quantity_Factor     aScale = 1.0;
    
   if( argc >= 3 )
     x1 = atof( argv[2] );
@@ -2297,11 +2295,11 @@ static int drawLengthDim1( Draw_Interpretor& , Standard_Integer argc, const char
   
   double text_scale = 15;
   double length = 0; 
-  int distance_type = 0; 
-  double arrow_angle = 24;
-  double arrow_length = 24;
-  int arrow_type = 2;
-  int arrow_side = 3;
+  //int distance_type = 0; 
+  //double arrow_angle = 24;
+  //double arrow_length = 24;
+  //int arrow_type = 2;
+  //int arrow_side = 3;
   
   double distance = FirstPt.Distance(LastPt);
   
@@ -2400,7 +2398,6 @@ static int drawRadiusDim( Draw_Interpretor& , Standard_Integer argc, const char*
   gp_Pnt2d anAp2(240, 240);
   gp_Circ2d aCirc(gp_Ax2d(anAp2,gp_Dir2d(0,1)),100.);
   
-  Quantity_Length aRadius = 100;
   TCollection_ExtendedString aText("Rad = 10%");
   
   Handle(Prs2d_Radius) theRadius;                      
@@ -2434,7 +2431,6 @@ static int drawSymbDim( Draw_Interpretor& , Standard_Integer argc, const char**
   gp_Pnt2d anAp2(240, 240);
   gp_Circ2d aCirc(gp_Ax2d(anAp2,gp_Dir2d(0,1)),100.);
   
-  Quantity_Length aRadius = 100;
   TCollection_ExtendedString aText("Rad = 10%");
   
   Handle(AIS2D_InteractiveObject) aIO = new AIS2D_InteractiveObject();
index f518baa..6d63e65 100755 (executable)
@@ -671,12 +671,6 @@ Handle(AIS_InteractiveObject) DetectedFromContext(
       Handle(AIS_InteractiveObject) aisPickedShape =
        Handle(AIS_InteractiveObject)::DownCast(aContext->DetectedInteractive());
       ret = aisPickedShape;
-#ifdef DEB
-      const char *name =
-#endif
-                   (  GetMapOfAIS().IsBound1(aisPickedShape) )?
-       GetMapOfAIS().Find1(aisPickedShape).ToCString() :
-        (char *)  "????";
     }
   }
   return ret;
@@ -3184,7 +3178,6 @@ static int VSetTransMode ( Draw_Interpretor& di, Standard_Integer argc, const ch
   }
 
   Standard_Boolean IsBound = GetMapOfAIS().IsBound2(shapeName);
-  Standard_Boolean IsDatum = Standard_False;
   Handle(Standard_Transient) anObj;
   if ( IsBound ) {
     anObj = GetMapOfAIS().Find2(shapeName);
@@ -3241,7 +3234,7 @@ Standard_Integer hlrtest(Draw_Interpretor&,   Standard_Integer n,   const char**
   /////////////////////
   TopoDS_Shape aShape =  DBRep::Get(a[1]);
   aContext2D->EraseAll(Standard_True);
-  Standard_Integer aPolyAlgo = 0;
+  //Standard_Integer aPolyAlgo = 0;
   Standard_Boolean IsPoly = Standard_False;
   gp_Ax2 anAx2 = gp::XOY();
 
@@ -3301,7 +3294,7 @@ Standard_Integer phlrtest(Draw_Interpretor&,   Standard_Integer n,   const char*
   /////////////////////
   TopoDS_Shape aShape =  DBRep::Get(a[1]);
   aContext2D->EraseAll(Standard_True);
-  Standard_Integer aPolyAlgo = 0;
+  //Standard_Integer aPolyAlgo = 0;
   Standard_Boolean IsPoly = Standard_True;
   gp_Ax2 anAx2 = gp::XOY();
 
index 26df044..985aa7a 100755 (executable)
@@ -105,9 +105,6 @@ static Standard_Integer VBLEND(Draw_Interpretor& di, Standard_Integer narg, cons
   if (narg<5) return 1;
   
   Standard_Integer NbToPick = (narg -4)/2;
-#ifdef DEB
-  Standard_Boolean autonaming = !strcasecmp(a[3],".");
-#endif
   Handle(TopTools_HArray1OfShape) arr = new TopTools_HArray1OfShape(1,NbToPick);
   if(ViewerTest::PickShapes(TopAbs_EDGE,arr)){
     for(Standard_Integer i=1;i<=NbToPick;i++){
index e94d330..0279b09 100755 (executable)
@@ -114,11 +114,6 @@ void Visual3d_ViewManager::Remove () {
        //
        // Destroy all defined views
        //
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
 
 #ifdef DESTROY
        cout << "The Manager " << MyId << " have " << Length << " defined views\n";
@@ -141,11 +136,6 @@ void Visual3d_ViewManager::ChangeDisplayPriority (const Handle(Graphic3d_Structu
        //
        // Change structure priority in all defined views
        //
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
        while (MyIterator.More ()) {
@@ -196,8 +186,6 @@ void Visual3d_ViewManager::ReCompute (const Handle(Graphic3d_Structure)& AStruct
 #endif
   Standard_Integer ViewId = theView->Identification ();
 
-  Standard_Integer indexD = 0;
-
   // Even if physically the structure cannot
   // be displayed (pb of visualisation type)
   // it has status Displayed.
@@ -221,11 +209,6 @@ void Visual3d_ViewManager::ReCompute (const Handle(Graphic3d_Structure)& AStruct
 
 void Visual3d_ViewManager::Clear (const Handle(Graphic3d_Structure)& AStructure, const Standard_Boolean WithDestruction) {
 
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
        while (MyIterator.More ()) {
@@ -239,11 +222,6 @@ void Visual3d_ViewManager::Clear (const Handle(Graphic3d_Structure)& AStructure,
 
 void Visual3d_ViewManager::Connect (const Handle(Graphic3d_Structure)& AMother, const Handle(Graphic3d_Structure)& ADaughter) {
 
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
        while (MyIterator.More ()) {
@@ -257,11 +235,6 @@ void Visual3d_ViewManager::Connect (const Handle(Graphic3d_Structure)& AMother,
 
 void Visual3d_ViewManager::Disconnect (const Handle(Graphic3d_Structure)& AMother, const Handle(Graphic3d_Structure)& ADaughter) {
 
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
        while (MyIterator.More ()) {
@@ -310,11 +283,6 @@ void Visual3d_ViewManager::Erase (const Handle(Graphic3d_Structure)& AStructure)
        //
        // Erase structure in all defined views
        //
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
        while (MyIterator.More ()) {
@@ -348,11 +316,6 @@ void Visual3d_ViewManager::Highlight (const Handle(Graphic3d_Structure)& AStruct
        //
        // Highlight in all activated views
        //
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
        while (MyIterator.More ()) {
@@ -366,11 +329,6 @@ void Visual3d_ViewManager::Highlight (const Handle(Graphic3d_Structure)& AStruct
 
 void Visual3d_ViewManager::SetTransform (const Handle(Graphic3d_Structure)& AStructure, const TColStd_Array2OfReal& ATrsf) {
 
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
        while (MyIterator.More ()) {
@@ -402,11 +360,6 @@ void Visual3d_ViewManager::UnHighlight (const Handle(Graphic3d_Structure)& AStru
        //
        // UnHighlight in all activated views
        //
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
        while (MyIterator.More ()) {
@@ -479,11 +432,6 @@ Handle(Visual3d_HSetOfView) Visual3d_ViewManager::ActivatedView () const {
 
 Handle (Visual3d_HSetOfView) SG = new Visual3d_HSetOfView ();
 
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
 Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
 
        while (MyIterator.More ()) {
@@ -577,11 +525,6 @@ Standard_Real Dx, Dy, Ratio;
       Standard_Real APT;
 
       Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
-#ifdef DEB
-      Standard_Integer Length = MyDefinedView.Extent ();
-#else
-      MyDefinedView.Extent ();
-#endif
 
       Standard_Integer stop = 0;
 
@@ -1037,12 +980,6 @@ void Visual3d_ViewManager::Activate () {
        //
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
-
        while (MyIterator.More ()) {
                if (! (MyIterator.Value ())->IsActive ())
                        (MyIterator.Value ())->Activate ();
@@ -1058,11 +995,6 @@ void Visual3d_ViewManager::Deactivate () {
        //
        // Deactivates all activated views
        //
-#ifdef DEB
-       Standard_Integer Length = MyDefinedView.Extent ();
-#else
-        MyDefinedView.Extent ();
-#endif
        Visual3d_SetIteratorOfSetOfView MyIterator(MyDefinedView);
  
        while (MyIterator.More ()) {
index d419a28..6c47928 100755 (executable)
@@ -433,7 +433,6 @@ VrmlData_ErrorStatus VrmlData_Scene::createNode
   VrmlData_ErrorStatus    aStatus;
   Handle(VrmlData_Node)   aNode;
   TCollection_AsciiString aName;
-  Standard_Boolean        isReused (Standard_False);
 
   // Read the DEF token to assign the node name
   if (VrmlData_Node::OK(aStatus, ReadLine(theBuffer)))
index 0f7b898..021611d 100755 (executable)
@@ -594,7 +594,6 @@ WNT_ArcNote :: WNT_ArcNote (
 void WNT_ArcNote :: Play ( BOOL fDummy )
 {
   Xform ();
-  HDC hdc = ALLOCATOR -> myHDC;
   SetArcDirection ( ALLOCATOR -> myHDC, myDirect );
   Arc ( ALLOCATOR -> myHDC, myTX - myTXr, myTY - myTYr,
                             myTX + myTXr, myTY + myTYr,
@@ -941,7 +940,6 @@ void WNT_TextNote :: Play ( BOOL fDummy )
 
 void WNT_TextNote :: Xform ( void )
 {
-  HDC hdc = ALLOCATOR -> myHDC;
   WNT_PointNote :: Xform ();
   RMatrix.eDx  =  float ( myTX ); 
   RMatrix.eDy  =  float ( myTY );
index 0cc860e..a19ca9b 100755 (executable)
@@ -14,7 +14,6 @@ WNT_FontMapEntry :: WNT_FontMapEntry ( const Standard_CString aFontName )
 {
   int   i;
   char* p;
-  BOOL  fUseDefault = FALSE;
 
   char* fName = new char[ strlen ( aFontName ) + 1 ];
 
index 69090b9..73d863d 100755 (executable)
@@ -1258,7 +1258,6 @@ Standard_Address WNT_WDriver :: InternalOpenBuffer (
                                 ) {
 
  PW32_Allocator        aNew     = NULL;
- Aspect_TypeOfDrawMode DrawMode = Aspect_TODM_REPLACE;
 
  MyDrawMode = aDrawMode;
  aNew       = _FindAllocator ( myAllocators, aRetainBuffer );
index 185b4d0..5f4053d 100755 (executable)
@@ -781,7 +781,6 @@ static Standard_Boolean GetMassProps(const TDF_Label& aLabel, gp_XYZ& theCenterG
       TColStd_Array1OfReal anArrMass(1,comp.Length());
       anArrMass.Init(0.0);
       Standard_Real aTotalMass =0.0;
-      Standard_Boolean isFind = Standard_True;
       Standard_Integer k=1;
       for ( ; k <= comp.Length(); k++ ) {
         TDF_Label lab = comp(k);
index c8385f8..fb9682b 100755 (executable)
@@ -198,7 +198,6 @@ static Standard_Integer storevrml
     di << "use: storevrml shape file defl type_of_conversion (0, 1, 2)"    << "\n";
   }
   else {
-    TopAbs_ShapeEnum Types[3] = {TopAbs_FACE, TopAbs_WIRE, TopAbs_EDGE};
     TopoDS_Shape shape = DBRep::Get(argv[1]);
     Standard_Real defl = atof(argv[3]);
     Standard_Integer type = 1;
index 05dc332..d541497 100755 (executable)
@@ -266,7 +266,7 @@ void XmlLDrivers_DocumentRetrievalDriver::ReadFromDomDocument
       try {
         OCC_CATCH_SIGNALS
         TCollection_AsciiString anInf(anInfo,'?');
-        Standard_Integer aRefCounter = anInf.Token(" ",2).IntegerValue();
+        //Standard_Integer aRefCounter = anInf.Token(" ",2).IntegerValue();
         //theNewDocument->SetReferenceCounter(aRefCounter);
       }
       catch (Standard_Failure) { 
index 05f6ff2..63f1a91 100755 (executable)
@@ -39,7 +39,7 @@ Standard_Boolean XmlMDataStd_BooleanArrayDriver::Paste(const XmlObjMgt_Persisten
                                                       const Handle(TDF_Attribute)& theTarget,
                                                       XmlObjMgt_RRelocationTable&  ) const
 {
-  Standard_Integer aFirstInd, aLastInd, aValue, ind;
+  Standard_Integer aFirstInd, aLastInd, aValue;
   const XmlObjMgt_Element& anElement = theSource;
 
   // Read the FirstIndex; if the attribute is absent initialize to 1
index c20af2c..aec2a0c 100755 (executable)
@@ -125,7 +125,7 @@ Standard_Boolean XmlMDataStd_NamedDataDriver::Paste(const XmlObjMgt_Persistent&
                                                      const Handle(TDF_Attribute)& theTarget,
                                                      XmlObjMgt_RRelocationTable&  ) const
 {
-  Standard_Integer aFirstInd, aLastInd, aValue, ind;
+  Standard_Integer aFirstInd, aLastInd, ind;
   const XmlObjMgt_Element& anElement = theSource;
 
   //DataMapOfStringInteger: Read the FirstIndex; if the attribute is absent initialize to 1
index 6ee47ed..4fbe97e 100755 (executable)
@@ -136,7 +136,6 @@ Standard_Boolean XmlMFunction_ScopeDriver::Paste(const XmlObjMgt_Persistent&  th
   LDOM_Node aCurNode = anElement.getFirstChild()/*.getNextSibling().getNextSibling()*/;
   LDOM_Element* aCurElement = (LDOM_Element*)&aCurNode;
   XmlObjMgt_DOMString aValueStr;
-  Standard_Integer i = aFirstInd;
   while (*aCurElement != anElement.getLastChild())
   {
     aValueStr = XmlObjMgt::GetStringValue( *aCurElement );
index 1350732..27fa688 100755 (executable)
@@ -58,7 +58,6 @@ void gp_Mat::SetCols (const gp_XYZ& Col1,
                      const gp_XYZ& Col2,
                      const gp_XYZ& Col3)
 {
-  const Standard_Address M = (Standard_Address)&(matrix[0][0]);
   Mat00 = Col1.X(); Mat10 = Col1.Y(); Mat20 = Col1.Z();
   Mat01 = Col2.X(); Mat11 = Col2.Y(); Mat21 = Col2.Z();
   Mat02 = Col3.X(); Mat12 = Col3.Y(); Mat22 = Col3.Z();
index eac4897..dac64b0 100755 (executable)
@@ -121,10 +121,6 @@ static Standard_Boolean MinimizeDirection(math_Vector&   P,
      F.Initialize(P, Dir);
 
      Standard_Real dy1, Hnr1, lambda, alfa=0;
-#ifdef DEB
-     Standard_Integer n = 
-#endif
-       Dir.Length();
      dy1 = Gr*Dir;
      if (dy1 != 0) {
        Hnr1 = Dir.Norm2();
index e51e339..200b85b 100755 (executable)
@@ -130,7 +130,7 @@ math_BrentMinimum::math_BrentMinimum(const Standard_Real    TolX,
 //    Standard_Boolean math_BrentMinimum::IsSolutionReached(math_Function& F) {
     Standard_Boolean math_BrentMinimum::IsSolutionReached(math_Function& ) {
 
-       Standard_Real xm = 0.5 * (a + b);
+//       Standard_Real xm = 0.5 * (a + b);
        // modified by NIZHNY-MKK  Mon Oct  3 17:45:57 2005.BEGIN
 //        Standard_Real tol = XTol * fabs(x) + EPSZ;
 //        return fabs(x - xm) <= 2.0 * tol - 0.5 * (b - a);
index 70fa841..be1bb36 100755 (executable)
@@ -89,9 +89,6 @@ math_DoubleTab::math_DoubleTab(const math_DoubleTab& Other) :
 
 void math_DoubleTab::Free()
 {
-  Standard_Integer RowNumber = UppR - LowR + 1;
-  Standard_Integer ColNumber = UppC - LowC + 1;
-
   // free the data
   if(isAllocated) {
     Standard_Address it = (Standard_Address)&Value(LowR,LowC);
index d6940e2..3124039 100755 (executable)
@@ -66,11 +66,7 @@ class math_MyFunctionSetWithDerivatives : public math_FunctionSetWithDerivatives
      math_FunctionSetRoot Sol(Ff,V,Tol,NbIterations);
      Done = Sol.IsDone(); 
      if (Done) {
-#ifdef DEB
-       Standard_Integer Ier=F.GetStateNumber();
-#else
        F.GetStateNumber();
-#endif
        TheRoot = Sol.Root()(1);
        TheDerivative = Sol.Derivative()(1,1);
        Ok = F.Value(TheRoot,TheError);
@@ -93,11 +89,7 @@ class math_MyFunctionSetWithDerivatives : public math_FunctionSetWithDerivatives
      math_FunctionSetRoot Sol(Ff,V,Tol,Aa,Bb,NbIterations);
      Done = Sol.IsDone();
      if (Done) {
-#ifdef DEB
-       Standard_Integer Ier =F.GetStateNumber();
-#else
        F.GetStateNumber();
-#endif
        TheRoot = Sol.Root()(1);
        TheDerivative = Sol.Derivative()(1,1);
        Ok = F.Value(TheRoot,TheError);
index 7610829..5c0e741 100755 (executable)
@@ -980,16 +980,6 @@ math_FunctionRoots::math_FunctionRoots(math_FunctionWithDerivative& F,
     if(n1>n2) n=n2;
     for(Standard_Integer i=1;i<=n;i++) { 
       Standard_Real t = Sol(i)-StaticSol(i);
-#ifdef NEWSEQ
-# ifdef DEB
-      Standard_Real t1=
-# endif
-                       Sol(i);
-# ifdef DEB
-      Standard_Real t2=
-# endif
-                       StaticSol(i);
-#endif
       if(Abs(t)>NEpsX) { 
        printf("\n mathFunctionRoots : i:%d/%d  delta: %g",i,n,t);
       }
index 6d47227..5ab38cf 100755 (executable)
@@ -328,9 +328,6 @@ math_IntegerVector& math_IntegerVector::Initialized (const math_IntegerVector& O
 
   Standard_DimensionError_Raise_if(Length() != Other.Length(), " ");
 
-#ifdef DEB
-  Standard_Integer I = Other.FirstIndex;
-#endif
   (Other.Array).Copy(Array);
   return *this;
 }
index bcdcdf7..84d9101 100755 (executable)
@@ -74,7 +74,7 @@ void math_KronrodSingleIntegration::Perform
                               const Standard_Real     theUpper,
                               const Standard_Integer  theNbPnts)
 {
-  const Standard_Real aMinVol = Epsilon(1.);
+  //const Standard_Real aMinVol = Epsilon(1.);
   const Standard_Real aPtol = 1.e-9;
   myNbIterReached = 0;
 
@@ -110,7 +110,7 @@ void math_KronrodSingleIntegration::Perform
 
   if(!myIsDone) return;
 
-  Standard_Real anAbsVal = Abs(myValue);
+  //Standard_Real anAbsVal = Abs(myValue);
 
   myAbsolutError = myErrorReached;
 
@@ -267,7 +267,6 @@ Standard_Boolean math_KronrodSingleIntegration::GKRule(
 
   Standard_Boolean IsDone;
   
-  Standard_Integer aNGauss = theGaussP.Length();
   Standard_Integer aNKronrod = theKronrodP.Length();
 
   Standard_Real    aGaussVal;
index e06a8b6..ed72236 100755 (executable)
@@ -63,9 +63,6 @@ class MyTrigoFunction: public math_FunctionWithDerivative {
    //-- F= AA*CN*CN+2*BB*CN*SN+CC*CN+DD*SN+EE;
    //-- D = -2*AA*CN*SN+2*BB*(CN*CN-SN*SN)-CC*SN+DD*CN;
    Standard_Real AACN = AA*CN;
-#ifdef DEB
-   Standard_Real BBCN = BB*CN;
-#endif
    Standard_Real BBSN = BB*SN;
 
    F = AACN*CN + BBSN*(CN+CN) + CC*CN + DD*SN + EE;
index 193f976..5a2fe9f 100755 (executable)
@@ -429,9 +429,6 @@ math_Vector math_Vector::Multiplied(const math_Matrix& Right)const {
   Standard_DimensionError_Raise_if(Length() != Right.RowNumber(), "");
 
   math_Vector Result(Right.LowerColIndex, Right.UpperColIndex);
-#ifdef DEB
-  Standard_Integer Index = LowerIndex;
-#endif
   for(Standard_Integer J2 = Right.LowerColIndex; 
       J2 <= Right.UpperColIndex; J2++) {
     Array(J2) = 0.0;