]> OCCT Git - occt-copy.git/commitdiff
0025266: Debug statements in the source are getting flushed on to the console
authordbv <dbv@opencascade.com>
Wed, 8 Oct 2014 15:00:20 +0000 (19:00 +0400)
committerabv <abv@opencascade.com>
Thu, 16 Oct 2014 12:44:56 +0000 (16:44 +0400)
Output to cout activated previously in Debug mode by #ifdef DEB is suppressed by using macro <PACKAGE>_DEB instead of DEB

370 files changed:
src/AIS/AIS_InteractiveContext.cxx
src/AIS/AIS_InteractiveContext_1.cxx
src/AIS/AIS_InteractiveContext_2.cxx
src/AIS/AIS_InteractiveObject.cxx
src/AIS/AIS_LocalContext_1.cxx
src/AIS/AIS_Shape.cxx
src/AIS/AIS_TexturedShape.cxx
src/AdvApp2Var/AdvApp2Var_Context.cxx
src/AppBlend/AppBlend_AppSurf.gxx
src/Approx/Approx_CurvilinearParameter.cxx
src/Approx/Approx_SameParameter.cxx
src/BRepAlgo/BRepAlgo_BooleanOperation.cxx
src/BRepAlgo/BRepAlgo_DSAccess.cxx
src/BRepAlgo/BRepAlgo_NormalProjection.cxx
src/BRepAlgo/BRepAlgo_Tool.cxx
src/BRepBlend/BRepBlend_AppFuncRoot.cxx
src/BRepBlend/BRepBlend_SurfRstConstRad.cxx
src/BRepBlend/BRepBlend_SurfRstEvolRad.cxx
src/BRepBlend/BRepBlend_SurfRstLineBuilder.cxx
src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx
src/BRepCheck/BRepCheck_Analyzer.cxx
src/BRepCheck/BRepCheck_Wire.cxx
src/BRepClass3d/BRepClass3d_SClassifier.cxx
src/BRepClass3d/BRepClass3d_SolidExplorer.cxx
src/BRepFeat/BRepFeat_MakeDPrism.cxx
src/BRepFeat/BRepFeat_MakeLinearForm.cxx
src/BRepFeat/BRepFeat_MakeRevolutionForm.cxx
src/BRepFeat/BRepFeat_RibSlot.cxx
src/BRepFill/BRepFill.cxx
src/BRepFill/BRepFill_Draft.cxx
src/BRepFill/BRepFill_LocationLaw.cxx
src/BRepFill/BRepFill_MultiLine.cxx
src/BRepFill/BRepFill_OffsetWire.cxx
src/BRepFill/BRepFill_ShapeLaw.cxx
src/BRepFill/BRepFill_Sweep.cxx
src/BRepFill/BRepFill_TrimEdgeTool.cxx
src/BRepFill/BRepFill_TrimSurfaceTool.cxx
src/BRepLib/BRepLib_FuseEdges.cxx
src/BRepLib/BRepLib_MakeWire.cxx
src/BRepOffset/BRepOffset_Analyse.cxx
src/BRepOffset/BRepOffset_Inter2d.cxx
src/BRepOffset/BRepOffset_MakeOffset.cxx
src/BRepOffset/BRepOffset_Offset.cxx
src/BRepOffset/BRepOffset_Tool.cxx
src/BRepOffsetAPI/BRepOffsetAPI_MakeOffset.cxx
src/BRepTools/BRepTools_ReShape.cxx
src/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx
src/BRepTopAdaptor/BRepTopAdaptor_Tool.cxx
src/BSplCLib/BSplCLib.cxx
src/BiTgte/BiTgte_Blend.cxx
src/BinDrivers/BinDrivers.cxx
src/BinLDrivers/BinLDrivers.cxx
src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx
src/BinMDataStd/BinMDataStd_ByteArrayDriver.cxx
src/BinMDataStd/BinMDataStd_ExtStringArrayDriver.cxx
src/BinMDataStd/BinMDataStd_IntPackedMapDriver.cxx
src/BinMDataStd/BinMDataStd_IntegerArrayDriver.cxx
src/BinMDataStd/BinMDataStd_RealArrayDriver.cxx
src/BinMNaming/BinMNaming_NamingDriver.cxx
src/BinMXCAFDoc/BinMXCAFDoc_LocationDriver.cxx
src/BinTObjDrivers/BinTObjDrivers.cxx
src/BinTools/BinTools_Curve2dSet.cxx
src/BinTools/BinTools_CurveSet.cxx
src/BinTools/BinTools_ShapeSet.cxx
src/BinTools/BinTools_SurfaceSet.cxx
src/BinXCAFDrivers/BinXCAFDrivers.cxx
src/Blend/Blend_Walking_1.gxx
src/Blend/Blend_Walking_3.gxx
src/Blend/Blend_Walking_4.gxx
src/BlendFunc/BlendFunc_CSCircular.cxx
src/BlendFunc/BlendFunc_ConstRad.cxx
src/BlendFunc/BlendFunc_ConstRadInv.cxx
src/BlendFunc/BlendFunc_EvolRad.cxx
src/BlendFunc/BlendFunc_EvolRadInv.cxx
src/CSLib/CSLib_Class2d.cxx
src/ChFi3d/ChFi3d.cxx
src/ChFi3d/ChFi3d_Builder.cxx
src/ChFi3d/ChFi3d_Builder_1.cxx
src/ChFi3d/ChFi3d_Builder_2.cxx
src/ChFi3d/ChFi3d_Builder_6.cxx
src/ChFi3d/ChFi3d_Builder_C1.cxx
src/ChFi3d/ChFi3d_Builder_C2.cxx
src/ChFi3d/ChFi3d_Builder_CnCrn.cxx
src/ChFi3d/ChFi3d_Builder_SpKP.cxx
src/ChFi3d/ChFi3d_ChBuilder_C3.cxx
src/ChFi3d/ChFi3d_FilBuilder.cxx
src/ChFi3d/ChFi3d_FilBuilder_C3.cxx
src/ChFiDS/ChFiDS_Spine.cxx
src/ChFiKPart/ChFiKPart_ComputeData_ChAsymPlnCon.cxx
src/ChFiKPart/ChFiKPart_ComputeData_ChAsymPlnCyl.cxx
src/ChFiKPart/ChFiKPart_ComputeData_ChPlnCyl.cxx
src/ChFiKPart/ChFiKPart_ComputeData_FilPlnCon.cxx
src/ChFiKPart/ChFiKPart_ComputeData_FilPlnCyl.cxx
src/ChFiKPart/ChFiKPart_ComputeData_Sphere.cxx
src/DBRep/DBRep.cxx
src/DBRep/DBRep_IsoBuilder.cxx
src/DDF/DDF_BrowserCommands.cxx
src/DDF/DDF_IOStream.cxx
src/DDataStd/DDataStd_BasicCommands.cxx
src/DNaming/DNaming.cxx
src/DNaming/DNaming_BooleanOperationDriver.cxx
src/DNaming/DNaming_CylinderDriver.cxx
src/DNaming/DNaming_FilletDriver.cxx
src/DNaming/DNaming_ModelingCommands.cxx
src/DNaming/DNaming_PointDriver.cxx
src/DNaming/DNaming_SphereDriver.cxx
src/DNaming/DNaming_TransformationDriver.cxx
src/DPrsStd/DPrsStd.cxx
src/DPrsStd/DPrsStd_AISPresentationCommands.cxx
src/Draft/Draft_Modification_1.cxx
src/Draw/Draw.cxx
src/Draw/Draw_Interpretor.cxx
src/Draw/Draw_PloadCommands.cxx
src/DrawDim/DrawDim_PlanarDiameter.cxx
src/DrawDim/DrawDim_PlanarDistance.cxx
src/DrawDim/DrawDim_PlanarRadius.cxx
src/DrawDim/DrawDim_Radius.cxx
src/FEmTool/FEmTool_Assembly.cxx
src/FSD/FSD_CmpFile.cxx
src/Font/Font_FTFont.cxx
src/GeomFill/GeomFill_ConstrainedFilling.cxx
src/GeomFill/GeomFill_CorrectedFrenet.cxx
src/GeomFill/GeomFill_Darboux.cxx
src/GeomFill/GeomFill_Frenet.cxx
src/GeomFill/GeomFill_GuideTrihedronAC.cxx
src/GeomFill/GeomFill_GuideTrihedronPlan.cxx
src/GeomFill/GeomFill_LocationGuide.cxx
src/GeomFill/GeomFill_NSections.cxx
src/GeomFill/GeomFill_Pipe.cxx
src/GeomFill/GeomFill_SectionPlacement.cxx
src/GeomFill/GeomFill_Sweep.cxx
src/GeomFill/GeomFill_SweepSectionGenerator.cxx
src/GeomLib/GeomLib.cxx
src/GeomToIGES/GeomToIGES_GeomCurve.cxx
src/GeomToStep/GeomToStep_MakeBoundedCurve.cxx
src/GeomToStep/GeomToStep_MakeConic.cxx
src/GeomToStep/GeomToStep_MakeCurve.cxx
src/GeomToStep/GeomToStep_MakeSurface.cxx
src/GeomTools/GeomTools_Curve2dSet.cxx
src/GeomTools/GeomTools_CurveSet.cxx
src/GeomTools/GeomTools_SurfaceSet.cxx
src/GeomliteTest/GeomliteTest_API2dCommands.cxx
src/GeomliteTest/GeomliteTest_ApproxCommands.cxx
src/Graphic3d/Graphic3d_TextureRoot.cxx
src/HLRBRep/HLRBRep_Data.cxx
src/HLRBRep/HLRBRep_PolyAlgo.cxx
src/IFSelect/IFSelect_Activator.cxx
src/IGESCAFControl/IGESCAFControl_Reader.cxx
src/IGESCAFControl/IGESCAFControl_Writer.cxx
src/IGESControl/IGESControl_IGESBoundary.cxx
src/IGESControl/IGESControl_Writer.cxx
src/IGESData/IGESData_ReadWriteModule.cxx
src/IGESSelect/IGESSelect_SplineToBSpline.cxx
src/IGESToBRep/IGESToBRep.cxx
src/IGESToBRep/IGESToBRep_BasicCurve.cxx
src/IGESToBRep/IGESToBRep_BasicSurface.cxx
src/IGESToBRep/IGESToBRep_TopoSurface.cxx
src/Image/Image_AlienPixMap.cxx
src/Image/Image_Diff.cxx
src/IntCurveSurface/IntCurveSurface_Inter.gxx
src/IntCurveSurface/IntCurveSurface_Polygon.gxx
src/IntPatch/IntPatch_LineConstructor.cxx
src/IntPatch/IntPatch_RstInt.cxx
src/IntWalk/IntWalk_IWalking_2.gxx
src/Interface/Interface_Static.cxx
src/LDOM/LDOM_MemManager.cxx
src/LocOpe/LocOpe_BuildShape.cxx
src/LocOpe/LocOpe_FindEdges.cxx
src/LocOpe/LocOpe_SplitDrafts.cxx
src/LocOpe/LocOpe_SplitShape.cxx
src/LocOpe/LocOpe_Spliter.cxx
src/MDF/MDF_Tool.cxx
src/MDocStd/MDocStd.cxx
src/MPrsStd/MPrsStd_AISPresentationRetrievalDriver.cxx
src/MPrsStd/MPrsStd_AISPresentationRetrievalDriver_1.cxx
src/MPrsStd/MPrsStd_AISPresentationStorageDriver.cxx
src/MeshTest/MeshTest_CheckTopology.cxx
src/Message/Message_PrinterOStream.cxx
src/MgtGeom/MgtGeom.cxx
src/MgtGeom2d/MgtGeom2d.cxx
src/OSD/OSD_File.cxx
src/OSD/OSD_FileIterator.cxx
src/OSD/OSD_Path.cxx
src/OSD/OSD_signal.cxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_telem_util.cxx
src/Poly/Poly.cxx
src/ProjLib/ProjLib_CompProjectedCurve.cxx
src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx
src/QANewBRepNaming/QANewBRepNaming_BooleanOperationFeat.cxx
src/QANewBRepNaming/QANewBRepNaming_Cut.cxx
src/QANewBRepNaming/QANewBRepNaming_Cylinder.cxx
src/QANewBRepNaming/QANewBRepNaming_Fillet.cxx
src/QANewModTopOpe/QANewModTopOpe_Glue_shell.cxx
src/RWStepAP214/RWStepAP214_ReadWriteModule.cxx
src/RWStepShape/RWStepShape_RWEdgeCurve.cxx
src/RWStepShape/RWStepShape_RWFaceBound.cxx
src/RWStl/RWStl.cxx
src/STEPCAFControl/STEPCAFControl_Reader.cxx
src/STEPCAFControl/STEPCAFControl_Writer.cxx
src/STEPConstruct/STEPConstruct.cxx
src/STEPConstruct/STEPConstruct_Assembly.cxx
src/STEPConstruct/STEPConstruct_ExternRefs.cxx
src/STEPConstruct/STEPConstruct_Styles.cxx
src/STEPConstruct/STEPConstruct_UnitContext.cxx
src/STEPConstruct/STEPConstruct_ValidationProps.cxx
src/STEPControl/STEPControl_ActorRead.cxx
src/STEPControl/STEPControl_ActorWrite.cxx
src/STEPControl/STEPControl_Reader.cxx
src/ShapeAnalysis/ShapeAnalysis_Curve.cxx
src/ShapeAnalysis/ShapeAnalysis_Surface.cxx
src/ShapeBuild/ShapeBuild_Edge.cxx
src/ShapeConstruct/ShapeConstruct.cxx
src/ShapeConstruct/ShapeConstruct_Curve.cxx
src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.cxx
src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx
src/ShapeCustom/ShapeCustom_Curve.cxx
src/ShapeCustom/ShapeCustom_Surface.cxx
src/ShapeExtend/ShapeExtend_ComplexCurve.cxx
src/ShapeExtend/ShapeExtend_CompositeSurface.cxx
src/ShapeExtend/ShapeExtend_MsgRegistrator.cxx
src/ShapeFix/ShapeFix.cxx
src/ShapeFix/ShapeFix_ComposeShell.cxx
src/ShapeFix/ShapeFix_Edge.cxx
src/ShapeFix/ShapeFix_EdgeProjAux.cxx
src/ShapeFix/ShapeFix_Face.cxx
src/ShapeFix/ShapeFix_FaceConnect.cxx
src/ShapeFix/ShapeFix_FixSmallFace.cxx
src/ShapeFix/ShapeFix_Solid.cxx
src/ShapeFix/ShapeFix_Wire.cxx
src/ShapeFix/ShapeFix_WireSegment.cxx
src/ShapeFix/ShapeFix_Wire_1.cxx
src/ShapeFix/ShapeFix_Wireframe.cxx
src/ShapeProcess/ShapeProcess.cxx
src/ShapeProcess/ShapeProcess_Context.cxx
src/ShapeProcess/ShapeProcess_OperLibrary.cxx
src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.cxx
src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx
src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.cxx
src/ShapeUpgrade/ShapeUpgrade_ConvertSurfaceToBezierBasis.cxx
src/ShapeUpgrade/ShapeUpgrade_FixSmallBezierCurves.cxx
src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve2d.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve2dContinuity.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve3d.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitSurface.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitSurfaceContinuity.cxx
src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx
src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx
src/Standard/Standard_Real.cxx
src/StdDrivers/StdDrivers.cxx
src/StdLDrivers/StdLDrivers.cxx
src/StdPrs/StdPrs_WFDeflectionRestrictedFace.cxx
src/StdSelect/StdSelect_BRepSelectionTool.cxx
src/StepAP209/StepAP209_Construct.cxx
src/StepBasic/StepBasic_SiUnit.cxx
src/StepData/StepData_StepWriter.cxx
src/StepToGeom/StepToGeom_MakeBSplineCurve.pxx
src/StepToGeom/StepToGeom_MakeBoundedCurve.cxx
src/StepToGeom/StepToGeom_MakeBoundedSurface.cxx
src/StepToGeom/StepToGeom_MakeSurface.cxx
src/StepToGeom/StepToGeom_MakeTrimmedCurve.cxx
src/StepToGeom/StepToGeom_MakeTrimmedCurve2d.cxx
src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx
src/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx
src/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx
src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx
src/StepToTopoDS/StepToTopoDS_TranslateFace.cxx
src/StepToTopoDS/StepToTopoDS_TranslateShell.cxx
src/StlTransfer/StlTransfer.cxx
src/Storage/Storage_Schema.cxx
src/TDF/TDF_CopyLabel.cxx
src/TDF/TDF_Delta.cxx
src/TDF/TDF_DeltaOnForget.cxx
src/TDF/TDF_DeltaOnResume.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfByteArray.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfExtStringArray.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfIntArray.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfIntPackedMap.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfRealArray.cxx
src/TDocStd/TDocStd_Application.cxx
src/TDocStd/TDocStd_MultiTransactionManager.cxx
src/TNaming/TNaming.cxx
src/TNaming/TNaming_Identifier.cxx
src/TNaming/TNaming_Localizer.cxx
src/TNaming/TNaming_Name.cxx
src/TNaming/TNaming_NamedShape.cxx
src/TNaming/TNaming_Naming.cxx
src/TPrsStd/TPrsStd_ConstraintTools.cxx
src/TPrsStd/TPrsStd_DriverTable.cxx
src/TestTopOpe/TestTopOpe.cxx
src/TestTopOpe/TestTopOpe_HDSDisplayer.cxx
src/TopClass/TopClass_Classifier3d.gxx
src/TopClass/TopClass_SolidClassifier.gxx
src/TopCnx/TopCnx_EdgeFaceTransition.cxx
src/TopOpeBRep/TopOpeBRep_DSFiller.cxx
src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx
src/TopOpeBRep/TopOpeBRep_FacesFiller.cxx
src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx
src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx
src/TopOpeBRep/TopOpeBRep_ShapeIntersector.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_End.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_HBuilder.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Merge.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Pave.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_fctwes.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_makefaces.cxx
src/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx
src/TopOpeBRepDS/TopOpeBRepDS_Check.cxx
src/TopOpeBRepDS/TopOpeBRepDS_DataStructure.cxx
src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx
src/TopOpeBRepDS/TopOpeBRepDS_Edge3dInterferenceTool.cxx
src/TopOpeBRepDS/TopOpeBRepDS_EdgeInterferenceTool.cxx
src/TopOpeBRepDS/TopOpeBRepDS_TOOL.cxx
src/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx
src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx
src/TopOpeBRepTool/TopOpeBRepTool_HBoxTool.cxx
src/TopOpeBRepTool/TopOpeBRepTool_ShapeClassifier.cxx
src/TopOpeBRepTool/TopOpeBRepTool_TOOL.cxx
src/TopoDSToStep/TopoDSToStep_MakeBrepWithVoids.cxx
src/TopoDSToStep/TopoDSToStep_MakeStepEdge.cxx
src/TopoDSToStep/TopoDSToStep_MakeStepFace.cxx
src/TopoDSToStep/TopoDSToStep_Tool.cxx
src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx
src/Units/Units.cxx
src/Units/Units_Explorer.cxx
src/Units/Units_Lexicon.cxx
src/Units/Units_Measurement.cxx
src/Units/Units_Sentence.cxx
src/Units/Units_Token.cxx
src/Units/Units_UnitsDictionary.cxx
src/Units/Units_UnitsSystem.cxx
src/UnitsAPI/UnitsAPI.cxx
src/UnitsMethods/UnitsMethods.cxx
src/ViewerTest/ViewerTest.cxx
src/Visual3d/Visual3d_Layer.cxx
src/XCAFDoc/XCAFDoc_ShapeTool.cxx
src/XCAFDrivers/XCAFDrivers.cxx
src/XCAFPrs/XCAFPrs.cxx
src/XSAlgo/XSAlgo_AlgoContainer.cxx
src/XmlDrivers/XmlDrivers.cxx
src/XmlDrivers/XmlDrivers_DocumentRetrievalDriver.cxx
src/XmlLDrivers/XmlLDrivers.cxx
src/XmlLDrivers/XmlLDrivers_DocumentRetrievalDriver.cxx
src/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx
src/XmlMDF/XmlMDF.cxx
src/XmlMDataStd/XmlMDataStd_ByteArrayDriver.cxx
src/XmlMDataStd/XmlMDataStd_ExtStringArrayDriver.cxx
src/XmlMDataStd/XmlMDataStd_IntPackedMapDriver.cxx
src/XmlMDataStd/XmlMDataStd_IntegerArrayDriver.cxx
src/XmlMDataStd/XmlMDataStd_NamedDataDriver.cxx
src/XmlMDataStd/XmlMDataStd_RealArrayDriver.cxx
src/XmlMNaming/XmlMNaming_NamingDriver.cxx
src/XmlMXCAFDoc/XmlMXCAFDoc_LocationDriver.cxx
src/XmlTObjDrivers/XmlTObjDrivers.cxx
src/XmlXCAFDrivers/XmlXCAFDrivers.cxx
src/math/math_FunctionRoots.cxx
tests/bugs/fclasses/bug24533
tests/bugs/modalg_5/bug23884
tests/bugs/modalg_5/bug24612
tests/bugs/vis/bug137_4
tests/bugs/vis/bug137_5
tests/bugs/vis/bug24901
tests/bugs/vis/bug25229

index 8dc78cea558011a933542703bd8e27607c103875..b71d12d9b3c0de47a0af7559bb9d9587b871b59b 100644 (file)
@@ -215,7 +215,7 @@ Standard_CString AIS_InteractiveContext::DomainOfMainViewer() const
 void AIS_InteractiveContext::DisplayedObjects(AIS_ListOfInteractive& aListOfIO,
                                               const Standard_Boolean OnlyFromNeutral) const 
 {
-#ifdef DEBUG
+#ifdef AIS_DEB
   cout<<"AIS_IC::DisplayedObjects"<<endl;
 #endif
 
@@ -233,12 +233,12 @@ void AIS_InteractiveContext::DisplayedObjects(AIS_ListOfInteractive& aListOfIO,
       if(It.Value()->GraphicStatus()==AIS_DS_Displayed)
         theMap.Add(It.Key());
     }
-#ifdef DEBUG
+#ifdef AIS_DEB
     cout<<"\tFrom Neutral Point : "<<theMap.Extent()<<endl;
 #endif
 
     //parse all local contexts...
-#ifdef DEBUG
+#ifdef AIS_DEB
     Standard_Integer NbDisp;
     for(AIS_DataMapIteratorOfDataMapOfILC it1(myLocalContexts);it1.More();it1.Next()){
       const Handle(AIS_LocalContext)& LC = it1.Value();
@@ -1670,7 +1670,7 @@ void AIS_InteractiveContext::SetColor(const Handle(AIS_InteractiveObject)& anIOb
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -1745,7 +1745,7 @@ void AIS_InteractiveContext::SetDeviationCoefficient(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -1789,7 +1789,7 @@ void AIS_InteractiveContext::SetHLRDeviationCoefficient(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -1832,7 +1832,7 @@ void AIS_InteractiveContext::SetDeviationAngle(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -1903,7 +1903,7 @@ void AIS_InteractiveContext::SetHLRAngleAndDeviation(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -1945,7 +1945,7 @@ void AIS_InteractiveContext::SetHLRDeviationAngle(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -1973,7 +1973,7 @@ void AIS_InteractiveContext::UnsetColor(const Handle(AIS_InteractiveObject)& anI
           anIObj->Update(ITI.Value(),Standard_False);
           NbDisp++;
         }
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
       anIObj->SetRecomputeOk();
@@ -2044,7 +2044,7 @@ void AIS_InteractiveContext::SetWidth(const Handle(AIS_InteractiveObject)& anIOb
           anIObj->Update(ITI.Value(),Standard_False);
           NbDisp++;
         }
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
       anIObj->SetRecomputeOk();
index 79b3463ef5ca1738c94d9b5634437c1537a0de73..d77ff1b1d28c8470d18c3c3a36a1f9888090b76b 100644 (file)
@@ -653,7 +653,7 @@ void AIS_InteractiveContext::SetCurrentObject(const Handle(AIS_InteractiveObject
       UpdateCurrentViewer();
   }
   else{
-#ifdef DEB
+#ifdef AIS_DEB
     cout<<"Nothing Done : Opened Local Context"<<endl;
 #endif
   }
@@ -693,7 +693,7 @@ AddOrRemoveCurrentObject(const Handle(AIS_InteractiveObject)& anIObj,
       UpdateCurrentViewer();
   }
   else{
-#ifdef DEB
+#ifdef AIS_DEB
     cout<<"Nothing Done : Opened Local Context"<<endl;
 #endif
   }
@@ -954,7 +954,7 @@ void AIS_InteractiveContext::SetSelectedCurrent()
 {
 
 
-#ifdef DEB
+#ifdef AIS_DEB
   cout<<"Not Yet Implemented"<<endl;
 #endif
 }
@@ -1011,7 +1011,7 @@ void AIS_InteractiveContext::AddOrRemoveSelected(const TopoDS_Shape& aShap,
                                            const Standard_Boolean updateviewer)
 { 
   if(!HasOpenedContext()) {
-#ifdef DEB
+#ifdef AIS_DEB
     cout<<" Attempt to remove a selected shape with no opened local context"<<endl;
 #endif
     return;
@@ -1030,7 +1030,7 @@ void AIS_InteractiveContext::AddOrRemoveSelected(const Handle(SelectMgr_EntityOw
                                                 const Standard_Boolean updateviewer)
 { 
   if(!HasOpenedContext()) {
-#ifdef DEB
+#ifdef AIS_DEB
     cout<<" Attempt to remove a selected ownr with no opened local context"<<endl;
 #endif
     return;
index aa8936950b6da3563cb3c607d6a55173e1020dd7..908e0cea77b6311c5074f69eafc1d865283300f2 100644 (file)
@@ -81,7 +81,7 @@ OpenLocalContext(const Standard_Boolean UseDisplayedObjects,
 
   NewLocal->MainSelector()->UpdateConversion();
 
-#ifdef DEB
+#ifdef AIS_DEB
   cout<<"\tOpen Local Context No "<<myCurLocalIndex<<endl;
   if(UseDisplayedObjects){
     cout<<"\t\tObjects from Neutral Point loaded"<<endl;
@@ -106,7 +106,7 @@ void AIS_InteractiveContext::CloseLocalContext(const Standard_Integer Index,
 {
 
  Standard_Boolean debugmode(Standard_False);
-#ifdef DEB 
+#ifdef AIS_DEB 
  debugmode = Standard_True;
 #endif
  
index 3e97b9c3aee0bf4a51ae02800aa427f190d66532..3e8f0c59631721629179067bbbba2247857cdaba 100644 (file)
@@ -146,7 +146,7 @@ void AIS_InteractiveObject::SetContext(const Handle(AIS_InteractiveContext)& aCt
     return;
   if (myDrawer.IsNull()) {
     myDrawer = new AIS_Drawer;
-#ifdef DEB
+#ifdef AIS_DEB
     cout << "AIS_InteractiveObject::SetContext DRAWER NUL!" << endl;
 #endif
   }
index 6ef35856104ce01d93cb47377288891eadd98ca5..cc826ecf70f6fbf0c76f6d6b88cee0327efb2f54 100644 (file)
@@ -1431,7 +1431,7 @@ Handle(SelectMgr_EntityOwner) AIS_LocalContext::FindSelectedOwnerFromIO
   
   Handle(AIS_Selection) Sel = AIS_Selection::Selection(mySelName.ToCString());
   if(Sel.IsNull()) {
-#ifdef DEB
+#ifdef AIS_DEB
     cout<<"\t\tAIS_LocalCOntext::FindSelectedOwnerFromShape : Selection "
         <<mySelName<<" Nulle "<<endl;
 #endif
@@ -1480,7 +1480,7 @@ Handle(SelectMgr_EntityOwner) AIS_LocalContext::FindSelectedOwnerFromShape(const
   
   Handle(AIS_Selection) Sel = AIS_Selection::Selection(mySelName.ToCString());
   if(Sel.IsNull()) {
-#ifdef DEB
+#ifdef AIS_DEB
     cout<<"\t\tAIS_LocalCOntext::FindSelectedOwnerFromShape : Selection "<<mySelName<<" Nulle "<<endl;
 #endif
     return EO;
index 780349ee3f84a0c9a0e35473010a4dca2825f7c5..3e87f536f2b65b41ca6f0a6f273f37c7806be844 100644 (file)
@@ -156,10 +156,10 @@ void AIS_Shape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentat
   case 0:{
     try { OCC_CATCH_SIGNALS  StdPrs_WFDeflectionShape::Add(aPrs,myshape,myDrawer); }
     catch (Standard_Failure) { 
-#ifdef DEB
+#ifdef AIS_DEB
       cout << "AIS_Shape::Compute()  failed"<< endl;
-#endif
       cout << "a Shape should be incorrect : No Compute can be maked on it  "<< endl;     
+#endif
 // presentation of the bounding box is calculated
 //      Compute(aPresentationManager,aPrs,2);
     }
@@ -189,7 +189,7 @@ void AIS_Shape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentat
               StdPrs_ShadedShape::Add(aPrs,myshape,myDrawer);
             }
             catch (Standard_Failure) {
-#ifdef DEB
+#ifdef AIS_DEB
               cout << "AIS_Shape::Compute() in ShadingMode failed"<< endl;
 #endif
               StdPrs_WFShape::Add(aPrs,myshape,myDrawer);
@@ -268,7 +268,7 @@ void AIS_Shape::Compute(const Handle(Prs3d_Projector)& aProjector,
   Standard_Boolean isOwnHLRDeviationCoefficient = OwnHLRDeviationCoefficient(newcoeff,prevcoeff);
   if (((Abs (newangle - prevangle) > Precision::Angular()) && isOwnHLRDeviationAngle) ||
       ((Abs (newcoeff - prevcoeff) > Precision::Confusion()) && isOwnHLRDeviationCoefficient)) {
-#ifdef DEB
+#ifdef AIS_DEB
       cout << "AIS_Shape : compute"<<endl;
       cout << "newangle  : " << newangle << " # de " << "prevangl  : " << prevangle << " OU "<<endl;
       cout << "newcoeff  : " << newcoeff << " # de " << "prevcoeff : " << prevcoeff << endl;
@@ -290,7 +290,7 @@ void AIS_Shape::Compute(const Handle(Prs3d_Projector)& aProjector,
       }
     }
     catch (Standard_Failure) {
-#ifdef DEB
+#ifdef AIS_DEB
       cout <<"AIS_Shape::Compute(Proj) HLR Algorithm failed" << endl;
 #endif
       StdPrs_WFShape::Add(aPresentation,SH,myDrawer);
index 49d7af13361472322b888e492bb44f4377a49ff3..93cd3618f8c84c99b78692dd954cce06a3fdc8da 100644 (file)
@@ -78,8 +78,10 @@ void AIS_TexturedShape::SetTextureFileName (const TCollection_AsciiString& theTe
     }
     else
     {
+#ifdef AIS_DEB
       std::cout << "Texture " << theTextureFileName << " doesn't exist\n";
       std::cout << "Using Texture 0 instead ...\n";
+#endif
       myPredefTexture = Graphic3d_NameOfTexture2D (0);
     }
     myTextureFile = "";
@@ -342,7 +344,9 @@ void AIS_TexturedShape::updateAttributes (const Handle(Prs3d_Presentation)& theP
   myAspect->SetTextureMap (myTexture);
   if (!myTexture->IsDone())
   {
+#ifdef AIS_DEB
     std::cout << "An error occurred while building texture\n";
+#endif
     myAspect->SetTextureMapOff();
     return;
   }
@@ -468,7 +472,9 @@ void AIS_TexturedShape::Compute (const Handle(PrsMgr_PresentationManager3d)& /*t
       }
       catch (Standard_Failure)
       {
+#ifdef AIS_DEB
         std::cout << "AIS_TexturedShape::Compute() in ShadingMode failed \n";
+#endif
         StdPrs_WFShape::Add (thePrs, myshape, myDrawer);
       }
       break;
index 3047394ac5fffb6b601e81e3ab42696a097a9b15..17cb017eaedc8dc5a9a95572df6f32175078dca3 100644 (file)
@@ -44,7 +44,7 @@ static Standard_Boolean lesparam(const Standard_Integer iordre,
   //  else if (*ndgjac < 61) { nbpnt = 61;} Bug Uneven number
   else {
     nbpnts = 50;
-#if DEB
+#if ADVAPP2VAR_DEB
     cout << "F(U, V) : Not enough points of discretization" << endl; 
 #endif
   }
index 56700b5972e95eab0f9d95b4fc68a005728e36b9..3b9e951ea62812d0e850ad1fb3945ed4ea02609e 100644 (file)
@@ -399,7 +399,7 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
       mytol3d = Max(TheTol3d, mytol3d);
       mytol2d = Max(TheTol2d, mytol2d);
     }
-#ifdef DEB
+#ifdef APPBLEND_DEB
     cout << " Tolerances obtenues  --> 3d : "<< mytol3d << endl;
     cout << "                      --> 2d : "<< mytol2d << endl;
 #endif
@@ -444,7 +444,7 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
       }
       theapprox.Perform(multL);
       theapprox.Error(mytol3d,mytol2d);
-#ifdef DEB
+#ifdef APPBLEND_DEB
       cout << " Tolerances obtenues  --> 3d : "<< mytol3d << endl;
       cout << "                      --> 2d : "<< mytol2d << endl;
 #endif    
@@ -506,7 +506,7 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
 
       mytol3d = Variation.MaxError();
       mytol2d = 0.;
-#ifdef DEB
+#ifdef APPBLEND_DEB
       cout << " Tolerances obtenues  --> 3d : "<< mytol3d << endl;
       cout << "                      --> 2d : "<< mytol2d << endl;
 #endif    
@@ -826,7 +826,7 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
     }
 //  modified by EAP Thu Jan  3 15:45:27 2002 ___END___
   }
-#ifdef DEB
+#ifdef APPBLEND_DEB
   cout << "   Tolerances obtenues  --> 3d : "<< mytol3d << endl;
   cout << "                        --> 2d : "<< mytol2d << endl;
 #endif
@@ -851,7 +851,7 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
                              F.Parameter(Lin->Point(Lin->NbPoints())),
                              tabVKnots->ChangeArray1()
                              );
-#ifdef DEB
+#ifdef APPBLEND_DEB
       cout << "Warning: AppBlend_AppSurf::Perform(), bad length of aParamSeq: " <<
        aParamSeq.Length() << " instead of " << tabVKnots->Length() << endl;
 #endif
index 0ae1e4341e0d11340e29b6e206b0d8b0ed905582..18a7018187bd735175a3d0248ca1c24f23ca06cb 100644 (file)
@@ -659,7 +659,7 @@ void Approx_CurvilinearParameter::ToleranceComputation(const Handle(Adaptor2d_HC
   TolV = Tol / (4.*Max_dS_dv);
   TolW = Tol / (4.*Max_dS_dw);
 
-#ifdef DEB
+#ifdef APPROX_DEB
   cout << "TolV = " << TolV << endl;
   cout << "TolW = " << TolW << endl;
 #endif
index 3589ae0fc8cd9994e420815132e78ca71a5c2cf0..d0a57bdfd8e1b644aba5c01dc3eec44d9330ace5 100644 (file)
@@ -563,7 +563,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
       if(!projok)
       {
         //Projector
-#ifdef DEB
+#ifdef APPROX_DEB
         // JAG
         cout << "Projection not done" << endl;
 #endif
@@ -578,7 +578,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
 
   if(!extrok) { // If not already SameP and tangent to mill, abandon.
     mySameParameter = Standard_False;
-#ifdef DEB
+#ifdef APPROX_DEB
     cout<<"SameParameter problem  : zero tangent to extremities"<<endl;
 #endif
     return;
@@ -739,7 +739,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
           }
         }
         else {
-#ifdef DEB 
+#ifdef APPROX_DEB 
           // JAG
           cout << "Projection not done" << endl;
 #endif
@@ -769,7 +769,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
 
     if (Precision::IsInfinite(algtol)) {
       mySameParameter = Standard_False;
-#ifdef DEB
+#ifdef APPROX_DEB
       cout<<"SameParameter problem  : function of interpolation of parametration at mills !!"<<endl;
 #endif
       return;
@@ -869,7 +869,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
           }
         }
         else {
-#ifdef DEB 
+#ifdef APPROX_DEB 
           // JAG
           cout << "Projection not done" << endl;
 #endif
index b6e52fa85209df3c59d3d12341eafefa093d379e..673faab3a9c182e659fa24d7abb4bfe1f5c3e813 100644 (file)
@@ -154,7 +154,7 @@ extern void FDSSDM_Close();// see TopOpeBRepDS_samdom.cxx
     }
   }
   myBuilderCanWork = (esp || tede) ;
-#ifdef DEB
+#ifdef BREPALGO_DEB
   if (!esp) cout<<"BRepAlgo_BooleanOperation(DEB) some edges not SameParameter"<<endl;
 #endif  
   if (!myBuilderCanWork) return;
index 48fe388e9362dbd8970be2c3e8bcfebeb1bea915..144da26319444f698c1399c575b39275e01b60ff 100644 (file)
@@ -546,7 +546,7 @@ void BRepAlgo_DSAccess::ChangeEdgeSet
       // It is necessary to change Interferences => take the complement
       iC = myHB->GetDSCurveFromSectEdge(Edge);
       if (!iC) {
-#if DEB
+#if BREPALGO_DEB
        cout << "Warning DSAccess: Modifications of Edge are not implemented" << endl;
 #endif
       }
index ba70d09d4ed839c3aab477a87896810e60318506..a9a93e41d5066d88789cd080ecfdd66c5fc33b6e 100644 (file)
@@ -290,7 +290,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
       
       for(k = 1; k <= Projector.NbCurves(); k++){
        if(Projector.IsSinglePnt(k, P2d)){
-#ifdef DEBUG
+#ifdef BREPALGO_DEB
          cout << "Projection of edge "<<i<<" on face "<<j;
          cout << " is punctual"<<endl<<endl;
 #endif
@@ -308,7 +308,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
          
          /**************************************************************/
          if (Projector.IsUIso(k, UIso)) {
-#ifdef DEBUG
+#ifdef BREPALGO_DEB
            cout << "Projection of edge "<<i<<" on face "<<j;
            cout << " is U-isoparametric"<<endl<<endl;
 #endif
@@ -325,7 +325,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
            Only3d = Standard_True;
          }
          else if (Projector.IsVIso(k, VIso)) {
-#ifdef DEBUG
+#ifdef BREPALGO_DEB
            cout << "Projection of edge "<<i<<" on face "<<j;
            cout << " is V-isoparametric"<<endl<<endl;
 #endif
@@ -438,7 +438,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
                  }             
               }
              if (Degenerated) {
-#ifdef DEBUG
+#ifdef BREPALGO_DEB
                  cout << "Projection of edge "<<i<<" on face "<<j;
                  cout << " is degenerated "<<endl<<endl;
 #endif
@@ -487,7 +487,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
                 LS = HB->Splits(prj, TopAbs_IN);
               Iter.Initialize(LS);
               if(Iter.More()) {
-#ifdef DEBUG
+#ifdef BREPALGO_DEB
                   cout << " BooleanOperations :"  << Iter.More()<<" solutions " << endl; 
 #endif
                  for(; Iter.More(); Iter.Next()) {
@@ -517,7 +517,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
               }
             }
             else {
-#ifdef DEB
+#ifdef BREPALGO_DEB
                  cout << " BooleanOperations : no solution " << endl;
 #endif
 
index e147bf624c5b9e7e8c7bd6bd65859351abce536b..9d172e000bc7c1c1a789ff06c52d708dc62278b5 100644 (file)
@@ -86,7 +86,7 @@ TopoDS_Shape BRepAlgo_Tool::Deboucle3D(const TopoDS_Shape& S,
       }
       if (NbSub == 0)
         {
-#ifdef DEB
+#ifdef BREPALGO_DEB
         cout << "No subhape in shape!" << endl;
 #endif
         SS = TopoDS_Shape();
index 5b629c9b9de55677fca88634d275229e222d03aa..995bad311f014ea7f6c994809043d1a534085172 100644 (file)
@@ -328,7 +328,7 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
   rsnld.Perform(Func, XInit, X1, X2);
   
   if (!rsnld.IsDone()) {
-# ifdef DEB
+# ifdef BREPBLEND_DEB
     cout << "AppFunc : RNLD Not done en t = " <<  Param  << endl;
 # endif 
     return Standard_False;
@@ -340,7 +340,7 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
 
   // (4) Insertion of the point if the calculation seems long.
   if ((!Trouve)&&(rsnld.NbIterations()>3)) {
-#ifdef DEB
+#ifdef BREPBLEND_DEB
     cout << "Evaluation in t = " <<  Param << "given" << endl;
     rsnld.Dump(cout);
 #endif
index 20cc54100a2fe8cf8c27bc7beda016584902b628..6ff40cc1798fc83d62e6af9933a63ad51bced0dd 100644 (file)
@@ -910,7 +910,7 @@ Standard_Boolean BRepBlend_SurfRstConstRad::Section
   norm = ncrossns.Magnitude();
   if (norm < Eps)  {
     norm = 1; // Not enough, but it is not necessary to stop
-#if DEB
+#if BREPBLEND_DEB
     cout << " SurfRstConstRad : Singular Surface " << endl;
 #endif
   }  
index 09f87dda493602670446c4e5c9a11bb1943e10b2..feea45f1c40dac7bb2bd39362a0510e004fd9b97 100644 (file)
@@ -922,7 +922,7 @@ TColStd_Array1OfReal& DWeigths)
   norm = ncrossns.Magnitude();
   if (norm < Eps)  {
     norm = 1; // Not enough, but it is not necessary to stop
-#if DEB
+#if BREPBLEND_DEB
     cout << " SurfRstEvolRad : Surface single " << endl;
 #endif
   }
index ff2e9a9100bf23d34ee1af17450886baf87e96f2..28635882b945c3a879ce603babe953c1c9a4afa0 100644 (file)
@@ -704,7 +704,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction&  Func,
       }
       else{
        // Failed reframing. Leave with PointsConfondus
-#if DEB
+#if BREPBLEND_DEB
        cout<<"SurfRstLineBuilder : failed reframing"<<endl;
 #endif
        State = Blend_SamePoints;
@@ -759,7 +759,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction&  Func,
          Arrive = Standard_True;
          if (line->NbPoints()>=2) {
            // Indicate that one stops during the processing
-#if DEB
+#if BREPBLEND_DEB
            cout<<"SurfRstLineBuilder : No advancement in the processing"<<endl;
 #endif
          }
@@ -865,7 +865,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction&  Func,
     case Blend_SamePoints :
       {
        // Stop
-#if DEB
+#if BREPBLEND_DEB
        cout << "SurfRstLineBuilder Points mixed in the processing" << endl;
 #endif
        previousP.ParametersOnS(U,V);
@@ -938,7 +938,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
   rsnld.Perform(FinvC,Solinv,infb,supb);
 
   if (!rsnld.IsDone()) {
-#if DEB
+#if BREPBLEND_DEB
     cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
 #endif
   }
@@ -977,7 +977,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
     rsnld.Perform(FinvC,Solinv,infb,supb);
 
     if (!rsnld.IsDone()) {
-#if DEB
+#if BREPBLEND_DEB
       cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
 #endif
     }
@@ -1038,7 +1038,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfRstFunction&
   math_FunctionSetRoot rsnld(Finv,toler,30);
   rsnld.Perform(Finv,Solinv,infb,supb);
   if (!rsnld.IsDone()) {
-#if DEB
+#if BREPBLEND_DEB
     cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
 #endif
     return Standard_False;
@@ -1122,7 +1122,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfPointFuncInv&
   math_FunctionSetRoot rsnld(FinvP,toler,30);
   rsnld.Perform(FinvP,Solinv,infb,supb);
   if (!rsnld.IsDone()) {
-#if DEB
+#if BREPBLEND_DEB
     cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
 #endif
     return Standard_False;
index e2787e06c3cd27d630b1a58e98891ea9e227b465..1323bfac13b63955cd83e57da95af671b6a53ccc 100644 (file)
@@ -1775,7 +1775,7 @@ void BRepBuilderAPI_Sewing::Add(const TopoDS_Shape& aShape)
 //purpose  : 
 //=======================================================================
 
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
 #include <OSD_Timer.hxx>
 #endif
 
@@ -1783,7 +1783,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
 {
   const Standard_Integer aNumberOfStages = myAnalysis + myCutting + mySewing + 2;
   Message_ProgressSentry aPS (thePI, "Sewing", 0, aNumberOfStages, 1);
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
   Standard_Real t_total = 0., t_analysis = 0., t_assembling = 0., t_cutting = 0., t_merging = 0.;
   OSD_Chronometer chr_total, chr_local;
   chr_total.Reset();
@@ -1793,7 +1793,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
   // face analysis
   if (myAnalysis)
   {
-#if DEB
+#if BREPBUILDERAPI_DEB
     cout << "Begin face analysis..." << endl;
     chr_local.Reset();
     chr_local.Start();
@@ -1802,7 +1802,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
     if (!aPS.More())
       return;
     aPS.Next();
-#if DEB
+#if BREPBUILDERAPI_DEB
     chr_local.Stop();
     chr_local.Show(t_analysis);
     cout << "Face analysis finished after " << t_analysis << " s" << endl;
@@ -1817,7 +1817,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
     if (myBoundFaces.Extent())
     {
 
-#if DEB
+#if BREPBUILDERAPI_DEB
       cout << "Begin vertices assembling..." << endl;
       chr_local.Reset();
       chr_local.Start();
@@ -1826,14 +1826,14 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
       if (!aPS.More())
         return;
       aPS.Next();
-#if DEB
+#if BREPBUILDERAPI_DEB
       chr_local.Stop();
       chr_local.Show(t_assembling);
       cout << "Vertices assembling finished after " << t_assembling << " s" << endl;
 #endif
       if (myCutting)
       {
-#if DEB
+#if BREPBUILDERAPI_DEB
         cout << "Begin cutting..." << endl;
         chr_local.Reset();
         chr_local.Start();
@@ -1842,13 +1842,13 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
         if (!aPS.More())
           return;
         aPS.Next();
-#if DEB
+#if BREPBUILDERAPI_DEB
         chr_local.Stop();
         chr_local.Show(t_cutting);
         cout << "Cutting finished after " << t_cutting << " s" << endl;
 #endif
       }
-#if DEB
+#if BREPBUILDERAPI_DEB
       cout << "Begin merging..." << endl;
       chr_local.Reset();
       chr_local.Start();
@@ -1857,7 +1857,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
       if (!aPS.More())
         return;
       aPS.Next();
-#if DEB
+#if BREPBUILDERAPI_DEB
       chr_local.Stop();
       chr_local.Show(t_merging);
       cout << "Merging finished after " << t_merging << " s" << endl;
@@ -1876,7 +1876,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
     if (mySewing)
     {
 
-#if DEB
+#if BREPBUILDERAPI_DEB
       cout << "Creating sewed shape..." << endl;
 #endif
       // examine the multiple edges if any and process sameparameter for edges if necessary
@@ -1896,7 +1896,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
         mySewedShape.Nullify();
         return;
       }
-#if DEB
+#if BREPBUILDERAPI_DEB
       cout << "Sewed shape created" << endl;
 #endif
     }
@@ -1909,7 +1909,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
       return;
     }
   }
-#if DEB
+#if BREPBUILDERAPI_DEB
   chr_total.Stop();
   chr_total.Show(t_total);
   cout << "Sewing finished!" << endl;
index 80578e8285d60ccfcffe349adacbd558b6f7b4ed..1b0eb2499ed3ce83d5110e536dfadedbeb1c433e 100644 (file)
@@ -169,7 +169,7 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
         }
         catch(Standard_Failure)
         {
-#ifdef DEB
+#ifdef BREPCHECK_DEB
           cout<<"BRepCheck_Analyzer : ";
           Standard_Failure::Caught()->Print(cout);  
           cout<<endl;
@@ -207,7 +207,7 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
         }
         catch(Standard_Failure)
         {
-#ifdef DEB
+#ifdef BREPCHECK_DEB
           cout<<"BRepCheck_Analyzer : ";
           Standard_Failure::Caught()->Print(cout);  
           cout<<endl;
@@ -267,7 +267,7 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
         }
         catch(Standard_Failure)
         {
-#ifdef DEB
+#ifdef BREPCHECK_DEB
           cout<<"BRepCheck_Analyzer : ";
           Standard_Failure::Caught()->Print(cout);  
           cout<<endl;
@@ -320,7 +320,7 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
         }
         catch(Standard_Failure)
         {
-#ifdef DEB
+#ifdef BREPCHECK_DEB
           cout<<"BRepCheck_Analyzer : ";
           Standard_Failure::Caught()->Print(cout);  
           cout<<endl;
@@ -367,7 +367,7 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
       }
       catch(Standard_Failure)
       {
-#ifdef DEB
+#ifdef BREPCHECK_DEB
         cout<<"BRepCheck_Analyzer : ";
         Standard_Failure::Caught()->Print(cout);  
         cout<<endl;
@@ -410,7 +410,7 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
       }
         catch(Standard_Failure)
         {
-#ifdef DEB
+#ifdef BREPCHECK_DEB
        cout<<"BRepCheck_Analyzer : ";
        Standard_Failure::Caught()->Print(cout);  
        cout<<endl;
index 872fab44c608891bb8c09ec7348fdb444414b706..e10c0929bb173feb5eaf66dfc723ea4df2fd091b 100644 (file)
@@ -1320,7 +1320,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
                    localok = Standard_False;
                  }
                }
-#ifdef DEB
+#ifdef BREPCHECK_DEB
                if(localok) { 
                  printf("--- BRepCheck Wire: AutoIntersection Phase2 -> Bon \n");
                  printf("--- distance Point Vertex : %10.7g (tol %10.7g)\n",distauvtxleplusproche,tolvtt);
index 8b33d0a0443466eac1226817f0d388620daed2a7..04a2d3b792937b00425956d6ce492418e11680a0 100644 (file)
@@ -330,7 +330,7 @@ void BRepClass3d_SClassifier::Perform(BRepClass3d_SolidExplorer& SolidExplorer,
 
                      IntCurveSurface_TransitionOnCurve tran = Intersector3d.Transition(i);
                      if (tran == IntCurveSurface_Tangent) {
-#ifdef DEB
+#ifdef BREPCLASS3D_DEB
                        cout<<"*Problem ds BRepClass3d_SClassifier.cxx"<<endl;
 #endif
                        continue; // ignore this point
index ba7655b6c6d483fcfca6eca2e461655f3b5b998c..2e08085b8236578dd444b831a6cb8da01f082ada 100644 (file)
@@ -575,7 +575,7 @@ Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P,
     if(NbFacesInSolid==0) { 
       _Par=0.0;
       myReject=Standard_True;
-#if DEB
+#if BREPCLASS3D_DEB
       cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx  (Solid without face)"<<endl;
 #endif  
       return 0;
@@ -780,7 +780,7 @@ void BRepClass3d_SolidExplorer::InitShape(const TopoDS_Shape& S)
     myReject=Standard_False;  //-- at least one face in the solid 
   }
   
-#if DEB
+#if BREPCLASS3D_DEB
   if(myReject) { 
     cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx  (Solid without face)"<<endl;
   }
index 15c30e5d8f1e2a2e4d11019c819e4aac34c32dff..0c4fb8c9755f353d64a6e31ede66461a306dc2f4 100644 (file)
@@ -1191,7 +1191,7 @@ static Standard_Real HeightMax(const TopoDS_Shape& theSbase,  // shape initial
 //#else
 //  Standard_Real par = Max(  Max( abs(c[1] - c[0]), abs(c[3] - c[2]) ), abs(c[5] - c[4]) );
 //#endif
-#ifdef DEB
+#ifdef BREPFEAT_DEB
   cout << "Height = > " <<  par  << endl;
 #endif
   return par;
index a9366b8480dbe92cce423b5c4690b2dc33fb5a82..73cb2167032efde3d4e34d626e3e60fc2dd6cbee 100644 (file)
@@ -399,8 +399,11 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
     
     if (!ProfileOK) {
 #ifdef DEB
-      cout << "Not computable" << endl;
-      if (trc) cout << "Face profile not computable" << endl;
+      if (trc)
+      {
+        cout << "Not computable" << endl;
+        cout << "Face profile not computable" << endl;
+      }
 #endif
       myStatusError = BRepFeat_NoFaceProf;
       NotDone();
@@ -414,7 +417,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
     Sliding = Propagate(SliList, Prof, myFirstPnt, myLastPnt, falseside);
 // Control if there is everything required to have the material at the proper side
     if(falseside == Standard_False) {
-#ifdef DEB
+#ifdef BREPFEAT_DEB
       cout << "Verify plane and wire orientation" << endl;
 #endif
       myStatusError = BRepFeat_FalseSide;
@@ -733,8 +736,11 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
     
     if (!ProfileOK) {
 #ifdef DEB
-      cout << "Not computable" << endl;
-      if (trc) cout << " Face profile not computable" << endl;
+      if (trc)
+      {
+        cout << "Not computable" << endl;
+        cout << " Face profile not computable" << endl;
+      }
 #endif
       myStatusError = BRepFeat_NoFaceProf;
       NotDone();
@@ -748,7 +754,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
     Propagate(SliList, Prof, myFirstPnt, myLastPnt, falseside);
 // Control if there is everything required to have the material at the proper side
     if(falseside == Standard_False) {
-#ifdef DEB
+#ifdef BREPFEAT_DEB
       cout << "Verify plane and wire orientation" << endl;
 #endif
       myStatusError = BRepFeat_FalseSide;
@@ -894,8 +900,11 @@ void BRepFeat_MakeLinearForm::Perform()
 
   if(!myGluedF.IsEmpty() && !mySUntil.IsNull()) {
 #ifdef DEB
-    cout << "The case is not computable" << endl;
-    if (trc) cout << " Glued faces not empty and Until shape not null" << endl;
+    if (trc)
+    {
+      cout << "The case is not computable" << endl;
+      cout << " Glued faces not empty and Until shape not null" << endl;
+    }
 #endif
     myStatusError = BRepFeat_InvShape;
     NotDone();
@@ -1218,7 +1227,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
       for (it.Initialize(ledg); it.More(); it.Next()) {
        const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
        if (gfac.Extent() != 1) {
-#ifdef DEB
+#ifdef BREPFEAT_DEB
          cout << "Pb SetGluedFace" << endl;
 #endif
        }
index bee84acf156bb8baec0a57d207fc6953b0a530e4..7b8a9febeba730c1c4b4b449078d9185615e135a 100644 (file)
@@ -526,8 +526,11 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
 
     if (!ProfileOK) {
 #ifdef DEB
-      cout << "Not computable" << endl;
-      if (trc) cout << "Face profile not computable" << endl;
+      if (trc)
+      {
+        cout << "Not computable" << endl;
+        cout << "Face profile not computable" << endl;
+      }
 #endif
       myStatusError = BRepFeat_NoFaceProf;
       NotDone();
@@ -541,7 +544,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
     Sliding = Propagate(SliList, Prof, myFirstPnt, myLastPnt, falseside);
 // Control if there is everything required to have the material at the proper side
     if(falseside == Standard_False) {
-#ifdef DEB
+#ifdef BREPFEAT_DEB
       cout << " Verify plane and wire orientation" << endl;
 #endif
       myStatusError = BRepFeat_FalseSide;
@@ -939,7 +942,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
    
     
     if(!BRepAlgo::IsValid(NewBndFace)) {
-#ifdef DEB
+#ifdef BREPFEAT_DEB
       cout << "Invalid new bounding face" << endl;
 #endif
       myStatusError = BRepFeat_InvShape;
@@ -959,8 +962,11 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
 
     if (!ProfileOK) {
 #ifdef DEB
-      cout << "Not computable" << endl;
-      if (trc) cout << " Face profile not computable" << endl;
+      if (trc)
+      {
+        cout << "Not computable" << endl;
+        cout << " Face profile not computable" << endl;
+      }
 #endif
       myStatusError = BRepFeat_NoFaceProf;
       NotDone();
@@ -974,7 +980,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
     Propagate(SliList, Prof, myFirstPnt, myLastPnt, falseside);
 // Control if there is everything required to have the material at the proper side
     if(falseside == Standard_False) {
-#ifdef DEB
+#ifdef BREPFEAT_DEB
       cout << " Verify plane and wire orientation" << endl;
 #endif
       myStatusError = BRepFeat_FalseSide;
@@ -1279,8 +1285,11 @@ void BRepFeat_MakeRevolutionForm::Perform()
 
   if(!myGluedF.IsEmpty() && !mySUntil.IsNull()) {
 #ifdef DEB
-    cout << "The case is not computable" << endl;
-    if (trc) cout << " Glued faces not empty and Until shape not null" << endl;
+    if (trc)
+    {
+      cout << "The case is not computable" << endl;
+      cout << " Glued faces not empty and Until shape not null" << endl;
+    }
 #endif
     myStatusError = BRepFeat_InvShape;
     NotDone();
@@ -1760,7 +1769,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
       for (it.Initialize(ledg); it.More(); it.Next()) {
        const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
        if (gfac.Extent() != 1) {
-#ifdef DEB
+#ifdef BREPFEAT_DEB
          cout << "Pb SetGluedFace" << endl;
 #endif
        }
index 5d8609cd6f0cb570d394204f7c17a14a32497e3a..bdd75480c38ce05a8d440653c7da177e013d717c 100644 (file)
@@ -195,7 +195,7 @@ void BRepFeat_RibSlot::LFPerform()
         (!myFuse && ope != LocOpe_CUT) ||
         (!Collage)) {
       theOpe = 2;
-#ifdef DEB
+#ifdef BREPFEAT_DEB
       cout << "Passage to topological operations" << endl;
 #endif
     }
@@ -216,7 +216,7 @@ void BRepFeat_RibSlot::LFPerform()
     }
     else {
       theOpe = 2;
-#ifdef DEB
+#ifdef BREPFEAT_DEB
       cout << "Passage to topologic operation" << endl;
 #endif
     }
index e3055c9cf591217861db52148eca6a4ef48a75ec..2b7e27d32bf6a01dcbee440e940e6944698aa67a 100644 (file)
@@ -862,7 +862,7 @@ void BRepFill::SearchOrigin(TopoDS_Wire & W,
       }
     }
   } 
-#if DEB
+#if BREPFILL_DEB
   else {
     cout << "BRepFill::SearchOrigine : Echec Distance" << endl;
   }
index 35a90d4e9be5cf943451f42edd28755205326e99..009d795e05f1dbc76e562247f274d59255289c21 100644 (file)
@@ -269,14 +269,14 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
          myWire = MW.Wire();
        }
        else {
-#if DEB
+#if BREPFILL_DEB
          cout << "Error in MakeWire" << endl;
 #endif 
          Standard_ConstructionError::Raise("BRepFill_Draft");
        }
       }
       else {
-#if DEB
+#if BREPFILL_DEB
          cout << "No Free Borders !" << endl;
 #endif 
          Standard_ConstructionError::Raise("BRepFill_Draft");
@@ -828,7 +828,7 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
       myShape = solid;
     }    
   }
-#if DEB
+#if BREPFILL_DEB
   else cout << "Draft : No assembly !" << endl;
 #endif
   return Ok;
index 5a02d83b98a7e4f78d711a8d20116cc9162b55b1..3fa9a610a6aeb3597a274e625dfcd2ee37c5b588 100644 (file)
@@ -178,7 +178,7 @@ void BRepFill_LocationLaw::BiNormalIsMain()
       gp_Ax1 axe(gp::Origin(), cross.XYZ());
       N2.Rotate(axe, alpha); 
 
-#if DEB
+#if BREPFILL_DEB
       if (N2.Dot(T1) > 1.e-9) {
        cout << "Inprecision in TransformInCompatibleLaw" << endl;
         cout << "--- T1.R(N2) = " << N2.Dot(T1) << endl;
@@ -616,7 +616,7 @@ void BRepFill_LocationLaw::CurvilinearBounds(const Standard_Integer Index,
   }
   else {
     W.Nullify();
-#if DEB    
+#if BREPFILL_DEB    
     cout << "BRepFill_LocationLaw::D0 : Attention position out of limits" 
          << endl;
 #endif
index b3d785f490a47cd2e5ad1729d4edf032571f2d35..cb47792308ceb56fdc36a776b7e9e8ee0ef56134 100644 (file)
@@ -622,7 +622,7 @@ static gp_Pnt2d ValueOnFace(const Standard_Real        U,
        Dist = TheU.Circle().Radius();
       }
       else {
-#ifdef DEB
+#ifdef BREPFILL_DEB
        cout << "MultiLine : D1 = D2 and the Curve is not a circle" << endl;
        cout << "  ---> ValueOnFace failed at parameter U = " << U << endl;
 #endif
@@ -675,7 +675,7 @@ static gp_Pnt2d ValueOnFace(const Standard_Real        U,
     Geom2dInt_GInter Intersector(Cu1,Cu2,TolConf,Tol);
 
     if ( !Intersector.IsDone()) {
-#ifdef DEB
+#ifdef BREPFILL_DEB
       cout << "Intersector not done" << endl;
       cout << "  ---> ValueonFace failed at parameter U = " << U << endl;
 #endif
@@ -695,7 +695,7 @@ static gp_Pnt2d ValueOnFace(const Standard_Real        U,
        VV = Alp*(VS2 - VS1) + VS1;
       }
       else {
-#ifdef DEB
+#ifdef BREPFILL_DEB
        cout << "Intersector done, but no points found" << endl;
        cout << "  ---> ValueonFace failed at parameter U = " << U << endl;
 #endif
index 6d3af0ed0b2ab4773e3e23dd5a17cb44156f6194..1f63c8b22c10b822984b1e8e8d7c700b5ce5b5b9 100644 (file)
@@ -662,9 +662,11 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
   {
     myShape.Nullify();
     myIsDone = Standard_False;
+#ifdef BREPFILL_DEB
     cout<<"An exception was caught in BRepFill_OffsetWire::Perform : ";
     Standard_Failure::Caught()->Print(cout);
     cout<<endl;
+#endif
 
     return;
   }
index 71a9d0b0ddbfcf4f07d438459589a92db619f76d..51d53a3b21dda137fb10bd725d7273b471b87a4e 100644 (file)
@@ -373,7 +373,7 @@ void BRepFill_ShapeLaw::Init(const Standard_Boolean Build)
                         Standard_False, 20);
        if (!Bof) Bof = Concat.Add(TC, 200*epsV,
                                   Standard_True, Standard_False, 20);
-#if DEB
+#if BREPFILL_DEB
        if (!Bof) 
          cout << "BRepFill_ShapeLaw::ConcatenedLaw INCOMPLET !!!" 
          << endl;
index 617500ec3e399a7de905c0047e3a6221a59b513a..8ecc52a2f5ff4412ad6dc2b59f49512b822598ee 100644 (file)
@@ -352,7 +352,7 @@ static Standard_Boolean SameParameter(TopoDS_Edge&    E,
   Approx_SameParameter sp( HC3d, Pcurv, S, tol3d );
   if(sp.IsDone() && !sp.IsSameParameter()) Pcurv = sp.Curve2d();
   else if(!sp.IsDone() && !sp.IsSameParameter()){
-#ifdef DEB
+#ifdef BREPFILL_DEB
     cout<<"echec SameParameter"<<endl;
 #endif  
     return Standard_False;
@@ -360,7 +360,7 @@ static Standard_Boolean SameParameter(TopoDS_Edge&    E,
 
   ResTol = sp.TolReached();
   if(ResTol > tolreached ){
-#ifdef DEB
+#ifdef BREPFILL_DEB
     cout<<"SameParameter : Tolerance not reached!"<<endl;
     cout<<"tol visee : "<<tol3d<<" tol obtained : "<<ResTol<<endl;
 #endif  
@@ -2412,7 +2412,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
                                           Max(myTol3d, TabErr(isec,ipath)));
       }
       if (Degenerated(isec, ipath)) { 
-#if DEB
+#if BREPFILL_DEB
        cout << "Sweep : Degenerated case" << endl;
 #endif
        hasdegen = Standard_True;
@@ -2984,7 +2984,7 @@ void BRepFill_Sweep::Build(TopTools_MapOfShape& ReversedEdges,
     t2 = M.Column(3);
 
     if (t1.Angle(t2) < myAngMin) {
-#if DEB
+#if BREPFILL_DEB
       cout << "BRepFill_Sweep::PerformCorner : This is not a corner !" << endl;
 #endif
       return;
@@ -3077,7 +3077,7 @@ void BRepFill_Sweep::Build(TopTools_MapOfShape& ReversedEdges,
   }
   else if ((TheTransition == BRepFill_Right) ||
           aTrim.HasSection() ) { 
-#if DEB
+#if BREPFILL_DEB
     cout << "Fail of TrimCorner" << endl;
 #endif
     return; // Nothing is touched
@@ -3145,7 +3145,7 @@ void BRepFill_Sweep::Build(TopTools_MapOfShape& ReversedEdges,
          if (ii==1) BordFirst = Bord1;
        }
       }
-#if DEB
+#if BREPFILL_DEB
       else cout << "PerformCorner : Unsymmetry of free border" << endl;
 #endif
     }
index 378487c177008313061b6c75121b5e574a96e192..835ed540ca5c9f4e377eeaeb7b39dd8bb8b65548 100644 (file)
@@ -362,7 +362,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
         && ( Points2.Length() != Params.Length() || 
             (Points2.Length() == 0 && Params.Length() == 0) ) ) {
 
-#ifdef DEB
+#ifdef BREPFILL_DEB
     cout << "BRepFill_TrimEdgeTool: incoherent intersection. Try with a greater tolerance" << endl;
 #endif
 
@@ -376,7 +376,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
     SeanceDeRattrapage++;
   }
 
-#ifdef DEB
+#ifdef BREPFILL_DEB
   if(SeanceDeRattrapage != 0) cout << "SeanceDeRattrapage = " << SeanceDeRattrapage << endl;
   if(SeanceDeRattrapage == nn) { 
     cout << "BRepFill_TrimEdgeTool: incoherent intersection" << endl;
@@ -452,11 +452,11 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
     Standard_Real P1xP2x=Abs( P1.X() - P2.X());
 
     if ( P1xP2x > Tol ) {
-#ifdef DEB
+#ifdef BREPFILL_DEB
       cout << "BRepFill_TrimEdgeTool: no same parameter on the bissectrice" << endl;
 #endif
       if(P1xP2x>TolInit) { 
-#ifdef DEB
+#ifdef BREPFILL_DEB
       cout << "BRepFill_TrimEdgeTool: Continue somehow" << endl;
 #endif 
       i++;
@@ -523,7 +523,7 @@ const
   }
   
   if (ToProj) {
-#ifdef DEB
+#ifdef BREPFILL_DEB
     cout << " project extremity bissectrice on parallel."<<endl;
 #endif
 
@@ -537,25 +537,25 @@ const
     Geom2dAPI_ProjectPointOnCurve Projector2(PBis,C2,f2,l2);
 
     if (Projector1.NbPoints() == 0) {
-#ifdef DEB
+#ifdef BREPFILL_DEB
       cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
 #endif
       return;
     }
     if (!Projector1.NearestPoint().IsEqual(PBis,Tol)) {
-#ifdef DEB
+#ifdef BREPFILL_DEB
       cout <<"Incorrect solution in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
 #endif
       return;
     }
     if (Projector2.NbPoints() == 0) {
-#ifdef DEB
+#ifdef BREPFILL_DEB
       cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
 #endif
       return;
     }
     if (!Projector2.NearestPoint().IsEqual(PBis,Tol)) {
-#ifdef DEB
+#ifdef BREPFILL_DEB
       cout <<" Mauvaisesolution dans BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
 #endif
       return;
index ca9815f833a8081b147849a73adf62bed95ba39f..8319022630909d5105cf4ed936d99875ff83cdd9 100644 (file)
@@ -273,7 +273,7 @@ static void EvalParameters(const TopoDS_Edge&          Edge,
     NbSegments = Intersector.NbSegments();
     
     if (NbSegments > 0) {
-#ifdef DEB
+#ifdef BREPFILL_DEB
       cout << " IntersectWith : " << NbSegments  
           << " Segments of intersection" << endl;
 #endif
@@ -468,11 +468,8 @@ Standard_Real BRepFill_TrimSurfaceTool::ProjOn(const gp_Pnt2d& Point,
 
   // evaluate the projection of the point on the curve.
   Geom2dAPI_ProjectPointOnCurve Projector(Point, C2d);
-#ifdef DEB  
-  Standard_Real Dist = 
-#endif
-    Projector.LowerDistance();
-#ifdef DEB
+#ifdef BREPFILL_DEB  
+  Standard_Real Dist = Projector.LowerDistance();
   if ( Dist > Precision::Confusion() ) {
     cout << " *** WARNING  TrimSurfaceTool:  *** " << endl;
     cout << "      --> the point is not on the edge" <<endl;
index 6cd9cd316078606cce5d2533c8b72aaaea7817b5..c1137b6423a085f4bab98cb453abb1ef6147dd14 100644 (file)
@@ -377,10 +377,6 @@ void BRepLib_FuseEdges::BuildListEdges()
   //Standard_Boolean tFE = TopOpeBRepBuild_GettraceFE();
 //#endif
 
-//#ifdef DEB
-    //if (tFE) cout<<endl<<"FuseEdges : BuildListEdges  "<<endl;
-//#endif
-
   //--------------------------------------------------------
   // Step One : Build the map ancestors
   //--------------------------------------------------------
@@ -431,10 +427,6 @@ void BRepLib_FuseEdges::BuildListResultEdges()
   //Standard_Boolean tFE = TopOpeBRepBuild_GettraceFE();
 //#endif
 
-//#ifdef DEB
-    //if (tFE) cout<<endl<<"FuseEdges : BuildListResultEdges  "<<endl;
-//#endif
-
   // if we have edges to fuse
   if (myMapLstEdg.Extent() > 0) {
     TopTools_DataMapIteratorOfDataMapOfIntegerListOfShape itLstEdg;
@@ -493,10 +485,6 @@ void BRepLib_FuseEdges::BuildListResultEdges()
       }
 
   
-//#ifdef DEB
-    //if (tFE) cout<<endl<<"FuseEdges : Creating New Edge "<<endl;
-//#endif
-
       BRepLib_MakeEdge ME;
       
       Standard_Boolean isBSpline = C->DynamicType() == STANDARD_TYPE(Geom_BSplineCurve); 
@@ -530,9 +518,6 @@ void BRepLib_FuseEdges::BuildListResultEdges()
        // the curve which is not infinite and limited to old vertices
        // we try to use ExtendCurveToPoint, then rebuild the NewEdge
 
-//#ifdef DEB
-       //if (tFE) cout<<endl<<"FuseEdges : MakeEdge failed. Trying to Extend Curve "<<endl;
-//#endif
        Handle(Geom_BoundedCurve) ExtC = Handle(Geom_BoundedCurve)::DownCast(C->Copy());
        if (!ExtC.IsNull()) {
          gp_Pnt PF = BRep_Tool::Pnt(VF);
@@ -550,9 +535,6 @@ void BRepLib_FuseEdges::BuildListResultEdges()
 
       NewEdge = ME.Edge();
 
-//#ifdef DEB
-      //if (tFE) cout<<endl<<"FuseEdges : Updating pcurve "<<endl;
-//#endif
       if (UpdatePCurve(OldEdge,NewEdge,LmapEdg))
         myMapEdg.Bind(iLst,NewEdge);
     }
@@ -578,10 +560,6 @@ void BRepLib_FuseEdges::Perform()
     BuildListResultEdges();
   }
 
-//#ifdef DEB
-    //if (tFE) cout<<endl<<"FuseEdges : Perform  "<<endl;
-//#endif
-
   // if we have fused edges
   if (myMapEdg.Extent() > 0) {
     TopTools_DataMapIteratorOfDataMapOfIntegerListOfShape itLstEdg;
@@ -613,10 +591,6 @@ void BRepLib_FuseEdges::Perform()
       }      
     }
 
-//#ifdef DEB
-    //if (tFE) cout<<endl<<"FuseEdges : Building New Shape  "<<endl;
-//#endif
-
     // perform the effective substitution
     Bsub.Build(myShape);
 
@@ -634,11 +608,6 @@ void BRepLib_FuseEdges::Perform()
       myShape=(Bsub.Copy(myShape)).First();
     }
 
-//#ifdef DEB
-    //if (tFE) cout<<endl<<"FuseEdges : "<< NbVertices() <<" vertices removed"<<endl;
-//#endif
-
-
   }
 
 
@@ -841,7 +810,7 @@ Standard_Boolean BRepLib_FuseEdges::SameSupport(const TopoDS_Edge& E1,
       typC1 != STANDARD_TYPE(Geom_Ellipse) &&
       typC1 != STANDARD_TYPE(Geom_BSplineCurve) && 
       typC1 != STANDARD_TYPE(Geom_BezierCurve)) {
-#ifdef DEB
+#ifdef BREPLIB_DEB
     cout << " TopOpeBRepTool_FuseEdge : Type de Support non traite" << endl;
 #endif
     return Standard_False;
index dcdbedfb90ab79745f2e26e3476678f18bbb7096..42ea42e719a2164d6252a3edce000d503d571309 100644 (file)
@@ -351,7 +351,7 @@ void  BRepLib_MakeWire::Add(const TopoDS_Edge& E)
       if (V1.IsSame(myVertex)) VRef = V2;
       else if (V2.IsSame(myVertex)) VRef = V1;
       else {
-#if DEB
+#if BREPLIB_DEB
        cout << "MakeWire : There is a PROBLEM !!" << endl;
 #endif
        myError = BRepLib_NonManifoldWire;
@@ -359,7 +359,7 @@ void  BRepLib_MakeWire::Add(const TopoDS_Edge& E)
       
       if (VF.IsSame(VL)) {
        // Particular case: it is required to control the orientation
-#if DEB
+#if BREPLIB_DEB
        if (!VF.IsSame(myVertex))
          cout << "MakeWire : There is a PROBLEM !!" << endl;
 #endif
@@ -369,7 +369,7 @@ void  BRepLib_MakeWire::Add(const TopoDS_Edge& E)
        if (VF.IsSame(myVertex)) VF = VRef;
        else if (VL.IsSame(myVertex)) VL = VRef;
        else {
-#if DEB
+#if BREPLIB_DEB
          cout << "MakeWire : Y A UN PROBLEME !!" << endl;
 #endif
          myError = BRepLib_NonManifoldWire;
index 5fc6f1ca63b78f38f3cad519f8128474707f6ace..4e9441fd955568bfbda14894fa396c7e8e5d1e12 100644 (file)
@@ -159,7 +159,7 @@ static void EdgeAnalyse(const TopoDS_Edge&         E,
     }
     else  {                   
       //Mixed not finished!
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
       cout <<" faces locally mixed"<<endl;
 #endif
       I.Type(BRepOffset_Convex);
@@ -266,7 +266,7 @@ void BRepOffset_Analyse::Perform (const TopoDS_Shape& S,
        mapEdgeType(E).Append(Inter);
       }
       else {  
-#ifdef DEB                   
+#ifdef BREPOFFSET_DEB                   
        cout <<"edge shared by more than two faces"<<endl;
 #endif 
       }
index 6f96ef5305dbf34c961499afca70a5d9c7c9ccec..e670d8585090772a20ee06e8bd363fd99ae11aaf 100644 (file)
@@ -355,7 +355,7 @@ static void EdgeInter(const TopoDS_Face&              F,
          Standard_Real aT2 = ResParamsOnE2(i); //ponc2.Parameter();
          if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2))
            {
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
              cout << "Inter2d : Solution rejected due to infinite parameter"<<endl;
 #endif
              continue;
@@ -376,7 +376,7 @@ static void EdgeInter(const TopoDS_Face&              F,
          dist1 = Max( dist1, dist3 );
          B.UpdateVertex( aNewVertex, dist1 );
          
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
          if (aT1 < f[1]-Tol  || aT1 > l[1]+Tol)
            {
              cout << "out of limit"<<endl;
@@ -412,7 +412,7 @@ static void EdgeInter(const TopoDS_Face&              F,
              if (E1.Orientation() == TopAbs_REVERSED) V1or.Reverse();
              if (E2.Orientation() == TopAbs_REVERSED) V2or.Reverse();
              Standard_Real CrossProd = V2or ^ V1;
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
              if (Abs(CrossProd) <= gp::Resolution())
                cout<<endl<<"CrossProd = "<<CrossProd<<endl;
 #endif
@@ -623,7 +623,7 @@ static void RefEdgeInter(const TopoDS_Face&              F,
       Standard_Real aT2 = ResParamsOnE2(i); //ponc2.Parameter();
       if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2))
        {
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
          cout << "Inter2d : Solution rejected due to infinite parameter"<<endl;
 #endif
          continue;
@@ -644,7 +644,7 @@ static void RefEdgeInter(const TopoDS_Face&              F,
       dist1 = Max( dist1, dist3 );
       B.UpdateVertex( aNewVertex, dist1 );
       
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
       if (aT1 < f[1]-Tol  || aT1 > l[1]+Tol)
        {
          cout << "out of limit"<<endl;
@@ -680,7 +680,7 @@ static void RefEdgeInter(const TopoDS_Face&              F,
          if (E1.Orientation() == TopAbs_REVERSED) V1or.Reverse();
          if (E2.Orientation() == TopAbs_REVERSED) V2or.Reverse();
          Standard_Real CrossProd = V2or ^ V1;
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
          if (Abs(CrossProd) <= gp::Resolution())
            cout<<endl<<"CrossProd = "<<CrossProd<<endl;
 #endif
@@ -1146,7 +1146,7 @@ static void ExtentEdge(const TopoDS_Edge& E,TopoDS_Edge& NE, const Standard_Real
                  Projector.Init( P1, C3d );
                  if (Projector.NbPoints() > 0)
                    f = Projector.LowerDistanceParameter();
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
                  else
                    cout<<"ProjectPointOnCurve not done"<<endl;
 #endif
@@ -1159,7 +1159,7 @@ static void ExtentEdge(const TopoDS_Edge& E,TopoDS_Edge& NE, const Standard_Real
                  Projector.Init( P2, C3d );
                  if (Projector.NbPoints() > 0)
                    l = Projector.LowerDistanceParameter();
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
                  else
                    cout<<"ProjectPointOnCurve not done"<<endl;
 #endif
index 53d3fd45759012d6754c46db4f99094cf1d9d6ae..bed4c6a4cfd138a5c7dcd59dc0827ff65934096d 100644 (file)
@@ -796,14 +796,14 @@ void BRepOffset_MakeOffset::MakeThickSolid()
         YaResult = 1;
         Glue.Add (exp.Current().Reversed());
         }
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
       if(YaResult == 0)
         {
         cout << "OffsetShape does not contain a FACES." << endl;
         }
 #endif
       }
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
     else
       {
       cout << "OffsetShape is null!" << endl;
index 17e07088d792b4a387e69909cfa7625c538012a0..c572047932fb169c21ea8131dd780ca306b67824 100644 (file)
@@ -1140,7 +1140,7 @@ void BRepOffset_Offset::Init(const TopoDS_Edge&     Path,
     Edge3 = TopoDS::Edge(aLocalEdge);
 //    Edge3 = TopoDS::Edge(FirstEdge.Oriented(TopAbs_FORWARD));
     TopExp::Vertices(Edge3,VVf,VVl);
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
     // si firstedge n est pas nul, il faut que les vertex soient partages
     if ( !VVf.IsSame(V1f) && !VVf.IsSame(V2f) ) {
       cout << "Attention Vertex non partages !!!!!!" << endl;
@@ -1204,7 +1204,7 @@ void BRepOffset_Offset::Init(const TopoDS_Edge&     Path,
       Edge4 = TopoDS::Edge(aLocalEdge);
 //      Edge4 = TopoDS::Edge(LastEdge.Oriented(TopAbs_FORWARD));
       TopExp::Vertices(Edge4,VVf,VVl);
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
       // si lastedge n est pas nul, il faut que les vertex soient partages
       if ( !VVf.IsSame(V1l) && !VVf.IsSame(V2l) ) {
        cout << "Attention Vertex non partages !!!!!!" << endl;
index 691f6619ad4dbe62017dd88ee19f69130ef26563..c5dd7e3720dd38fcb15ca93294947afbb9867820 100644 (file)
@@ -1883,7 +1883,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
            TopoDS_Edge anEdge = TopoDS::Edge(eseq(i));
            BRepLib::SameParameter(anEdge, aSameParTol, Standard_True);
            Standard_Real EdgeTol = BRep_Tool::Tolerance(anEdge);
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
            cout<<"Tolerance of glued E =      "<<EdgeTol<<endl;
 #endif
            if (EdgeTol > 1.e-2)
@@ -1893,7 +1893,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
              {
                ReconstructPCurves(anEdge);
                BRepLib::SameParameter(anEdge, aSameParTol, Standard_True);
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
                cout<<"After projection tol of E = "<<BRep_Tool::Tolerance(anEdge)<<endl;
 #endif
              }
@@ -2428,7 +2428,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face&    F,
            Standard_Real U1on2 = IntP2.ParamOnFirst();
            Standard_Real U2on1 = IntP1.ParamOnSecond();
            Standard_Real U2on2 = IntP2.ParamOnSecond();
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
            cout << " BRepOffset_Tool::Inter2d SEGMENT d intersection" << endl;
            cout << "     ===> Parametres sur Curve1 : ";
            cout << U1on1 << " " << U1on2 << endl;
@@ -2486,7 +2486,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face&    F,
     LV.Clear();LV.Append(VF); LV.Append(VL);
   }
 
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
   if (!YaSol) {
     cout <<"Inter2d : Pas de solution"<<endl;
 #ifdef DRAW
index a47a7df3259cf2b3ccae0b35975328b4a8110a97..b8b6b30bab49686cf2fae595e2197a9a2abbd0b3 100644 (file)
@@ -335,9 +335,11 @@ void BRepOffsetAPI_MakeOffset::Perform(const Standard_Real Offset,
   }
   catch(...) //Every exception was caught.
   {
+#ifdef BREPOFFSETAPI_DEB
     cout<<"An exception was caught in BRepOffsetAPI_MakeOffset::Perform : ";
     Standard_ConstructionError::Caught()->Print(cout); 
     cout<<endl;
+#endif
     NotDone();
     myShape.Nullify();
   }
index 4e17db8896f29c4daa144bd11d517daa1df8bc1d..13c79363e89d57967c3580d01cb7e98837e16278 100644 (file)
@@ -150,7 +150,7 @@ void BRepTools_ReShape::Replace (const TopoDS_Shape& ashape,
     shape.Location ( nullLoc );
   }
 
-#ifdef DEB
+#ifdef BREPTOOLS_DEB
   if ( IsRecorded ( shape ) && ((myConsiderLocation && ! Value ( shape ).IsPartner ( newshape )) ||
                                  (!myConsiderLocation && ! Value ( shape ).IsSame ( newshape )))) 
     cout << "Warning: BRepTools_ReShape::Replace: shape already recorded" << endl;
index 3b5707765c754c2421bc86c2ad976e63612bd3d3..185ed9eb8e8ac4a517c318dabd74c76d5f186ce7 100644 (file)
@@ -339,7 +339,7 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
            }//if(nbpoints>3
          else
            { 
-#ifdef DEB  
+#ifdef BREPTOPADAPTOR_DEB  
              cout << endl;
              cout << "*** BRepTopAdaptor_Fclass2d  ** Wire Probably FALSE **" << endl;
              cout << "*** The sample wire contains less than 3 points" << endl;
@@ -684,7 +684,9 @@ void BRepTopAdaptor_FClass2d::Destroy() {
 
 //const BRepTopAdaptor_FClass2d &  BRepTopAdaptor_FClass2d::Copy(const BRepTopAdaptor_FClass2d& Other) const { 
 const BRepTopAdaptor_FClass2d &  BRepTopAdaptor_FClass2d::Copy(const BRepTopAdaptor_FClass2d& ) const { 
+#ifdef BREPTOPADAPTOR_DEB
   cerr<<"Copy not allowed in BRepTopAdaptor_FClass2d"<<endl;
+#endif
   Standard_ConstructionError::Raise();
   return(*this);
 }
index 1bc8d5d17848a0df97288a01464ce36e991e7827..a0241df7bb62856c333437c0c5fa28cabae565e0 100644 (file)
@@ -70,7 +70,9 @@ Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetTopolTool() {
     return(myTopolTool);
   }
   else { 
+#ifdef BREPTOPADAPTOR_DEB
     cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetTopolTool()\n"<<endl;
+#endif
     return(myTopolTool);
   }
 }
@@ -80,7 +82,9 @@ Handle(Adaptor3d_HSurface)  BRepTopAdaptor_Tool::GetSurface() {
     return(myHSurface);
   }
   else { 
+#ifdef BREPTOPADAPTOR_DEB
     cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetSurface()\n"<<endl;
+#endif
     return(myHSurface);
   }
 }
index f41a8937260586bbb99797caf3f14208d3a364df..210abc0a76a2f1b6800ad990224bf6137f3ff0ef 100644 (file)
@@ -3481,7 +3481,7 @@ void  BSplCLib::TangExtendToConstraint
  Standard_Real&                        KnotsResult, 
  Standard_Real&                        PolesResult) 
 {
-#if DEB
+#if BSPLCLIB_DEB
   if (CDegree<Continuity+1) {
     cout<<"The BSpline degree must be greater than the order of continuity"<<endl;
   }
index 211145ae549da30cedb287ae394d8e666bfe5112..a5e321277b796ea38dffc5b7debffd7c89b8e3de 100644 (file)
@@ -402,7 +402,7 @@ Handle(Geom_Curve) MakeCurve (const BiTgte_CurveOnEdge& HC)
 {
   Handle(Geom_Curve) C;
 
-#if DEB
+#if BITGTE_DEB
    OSD_Chronometer ch;
    ChFi3d_InitChron(ch);
 #endif
@@ -451,7 +451,7 @@ Handle(Geom_Curve) MakeCurve (const BiTgte_CurveOnEdge& HC)
                               Conv.Degree());
   }
 
-#if DEB
+#if BITGTE_DEB
   ChFi3d_ResultChron(ch, t_mkcurve);
 #endif
 
@@ -975,7 +975,7 @@ void BiTgte_Blend::Perform(const Standard_Boolean BuildShape)
   myShape = SewedShape;
 // end Sewing for false free borders.
 
-#if DEB
+#if BITGTE_DEB
   OSD_Chronometer cl_total, ch;
   Standard_Real   t_total, t_center, t_surface, t_shape;
 
@@ -1007,39 +1007,39 @@ void BiTgte_Blend::Perform(const Standard_Boolean BuildShape)
   // ----------------------------------------------
   // Calculate lines of centers and of surfaces
   // ----------------------------------------------
-#if DEB
+#if BITGTE_DEB
   ChFi3d_InitChron(ch);
 #endif  
 
   ComputeCenters();
   
-#if DEB
+#if BITGTE_DEB
   ChFi3d_ResultChron(ch, t_center);
 #endif 
 
   // -----------------------------
   // Calculate connection Surfaces
   // -----------------------------
-#if DEB
+#if BITGTE_DEB
   ChFi3d_InitChron(ch);
 #endif
 
   ComputeSurfaces();
 
-#if DEB
+#if BITGTE_DEB
   ChFi3d_ResultChron(ch, t_surface);
 #endif 
 
   // ----------------------------------
   // Calculate the generated shape if required
   // ----------------------------------
-#if DEB
+#if BITGTE_DEB
   ChFi3d_InitChron(ch);
 #endif  
 
   if ( myBuildShape) ComputeShape();
 
-#if DEB
+#if BITGTE_DEB
   ChFi3d_ResultChron(ch, t_shape);
 #endif 
 
@@ -1047,7 +1047,7 @@ void BiTgte_Blend::Perform(const Standard_Boolean BuildShape)
   // since the partition is provided ( A Priori);
   BRepLib::BuildCurves3d(myResult, Precision::Confusion());
 
-#ifdef DEB
+#ifdef BITGTE_DEB
   ChFi3d_ResultChron(cl_total, t_total);
   cout<<endl; 
   cout<<"Blend_PERFORM: temps total "<<t_total<<" s  dont :"<<endl;
@@ -1829,7 +1829,7 @@ void BiTgte_Blend::ComputeCenters()
     }
   }
 
-#ifdef DEB
+#ifdef BITGTE_DEB
   if ( myResult.IsNull()) {
     cout << " No Lines of Generated Centers" << endl;
   }
@@ -1992,7 +1992,7 @@ void BiTgte_Blend::ComputeSurfaces()
       Handle(Geom2d_Curve) PC2 = 
        BRep_Tool::CurveOnSurface(CurCutE,F2,f2,l2);
       if ( PC1.IsNull() || PC2.IsNull()) {
-#ifdef DEB
+#ifdef BITGTE_DEB
        cout << "No PCurves on Intersections : No tubes constructed";
        cout << endl;
 #endif 
@@ -2589,7 +2589,7 @@ Standard_Boolean BiTgte_Blend::Intersect
       InitShape2.ShapeType() == TopAbs_EDGE &&
        myStopFaces.Contains(InitShape2);
 
-#ifdef DEB
+#ifdef BITGTE_DEB
     if ( F1surBordLibre && F2surBordLibre) {
       cout << "Rejection : 2 tubes on free border are not intersected";
       cout << endl;
@@ -2628,7 +2628,7 @@ Standard_Boolean BiTgte_Blend::Intersect
        if ( Done.Add(V1)) {
          Standard_Boolean IsOnR1 = IsOnRestriction(V1,CurE,Face,E1);
          Standard_Boolean IsOnR2 = IsOnRestriction(V1,CurE,F2,E2);
-#ifdef DEB
+#ifdef BITGTE_DEB
          if (IsOnR1 && IsOnR2) {
            cout << "Leave in the same tps on 2 faces, ";
            cout << "propagation only on free border";
@@ -2657,7 +2657,7 @@ Standard_Boolean BiTgte_Blend::Intersect
          // Leave in the same tps on 2 faces, propagate only on 
          // free borders.
          // A priori, only facet is closed.
-#ifdef DEB
+#ifdef BITGTE_DEB
          if (IsOnR1 && IsOnR2) {
            cout << "Leave with the same tps on 2 faces, ";
            cout << "propagate only if the border is free";
index ed0861c936bfb5891ed9ad54682036cb6f65441b..c4fb7a4054d9851695994a0e234328d2cbf34d44 100644 (file)
@@ -38,7 +38,9 @@ Handle(Standard_Transient) BinDrivers::Factory(const Standard_GUID& theGUID)
 {
   if (theGUID == BinStorageDriver)
   {
+#ifdef BINDRIVERS_DEB
     cout << "BinDrivers : Storage Plugin" << endl;
+#endif
     static Handle(BinDrivers_DocumentStorageDriver) model_sd =
       new BinDrivers_DocumentStorageDriver;
     return model_sd;
@@ -46,7 +48,9 @@ Handle(Standard_Transient) BinDrivers::Factory(const Standard_GUID& theGUID)
 
   if (theGUID == BinRetrievalDriver)
   {
+#ifdef BINDRIVERS_DEB
     cout << "BinDrivers : Retrieval Plugin" << endl;
+#endif
     static Handle(BinDrivers_DocumentRetrievalDriver) model_rd =
       new BinDrivers_DocumentRetrievalDriver;
     return model_rd;
index b93c60913b873acb90b39eec799cd789742619e7..73ec3acdb3e2b1bd6d7edc9f775cbcc9d5af64a8 100644 (file)
@@ -36,7 +36,9 @@ Handle(Standard_Transient) BinLDrivers::Factory(const Standard_GUID& theGUID)
 {
   if (theGUID == BinLStorageDriver)
   {
+#ifdef BINLDRIVERS_DEB
     cout << "BinLDrivers : Storage Plugin" << endl;
+#endif
     static Handle(BinLDrivers_DocumentStorageDriver) model_sd =
       new BinLDrivers_DocumentStorageDriver;
     return model_sd;
@@ -44,7 +46,9 @@ Handle(Standard_Transient) BinLDrivers::Factory(const Standard_GUID& theGUID)
 
   if (theGUID == BinLRetrievalDriver)
   {
+#ifdef BINLDRIVERS_DEB
     cout << "BinLDrivers : Retrieval Plugin" << endl;
+#endif
     static Handle(BinLDrivers_DocumentRetrievalDriver) model_rd =
       new BinLDrivers_DocumentRetrievalDriver;
     return model_rd;
index 70b9e70505d72e87ad5de5f2dfe186885faa925a..bc271bb52a64b535686f51ebb818a7be45d61fa4 100644 (file)
@@ -111,7 +111,7 @@ void BinLDrivers_DocumentStorageDriver::Write
     ofstream anOS (aFileName.ToCString(), ios::ate);
     //ofstream anOS (aFileName.ToCString(), ios::out| ios::binary | ios::ate);
 #endif
-#ifdef DEB
+#ifdef BINLDRIVERS_DEB
     const Standard_Integer aP = (Standard_Integer) anOS.tellp();
     cout << "POS = " << aP <<endl;
 #endif
@@ -437,7 +437,7 @@ void BinLDrivers_DocumentStorageDriver::WriteInfoSection
 #endif
     SetIsError(Standard_True);
   }
-#ifdef DEB
+#ifdef BINLDRIVERS_DEB
     const Standard_Integer aP = (Standard_Integer) aFileDriver.Tell();
     cout << "POS = " << aP <<endl;
 #endif
index 785536b025e4080b292aade9ba00776e5e608c12..44fc548e04eed3238f848777fbc9a04281f76fae 100644 (file)
@@ -45,9 +45,6 @@ Standard_Boolean BinMDataStd_ByteArrayDriver::Paste(const BinObjMgt_Persistent&
                                                    const Handle(TDF_Attribute)& theTarget,
                                                    BinObjMgt_RRelocationTable&  ) const
 {
-#ifdef DEB
-//  cout << "ByteArrayDriver::Retrieve: " << TypeName() << endl;
-#endif
   Standard_Integer aFirstInd, aLastInd;
   if (! (theSource >> aFirstInd >> aLastInd))
     return Standard_False;
@@ -64,9 +61,7 @@ Standard_Boolean BinMDataStd_ByteArrayDriver::Paste(const BinObjMgt_Persistent&
     bytes->SetValue(i, aTargetArray.Value(i));
   }
   anAtt->ChangeArray(bytes);
-#ifdef DEB
-  //cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
-#endif
+
   Standard_Boolean aDelta(Standard_False); 
   if(BinMDataStd::DocumentVersion() > 2) {
     Standard_Byte aDeltaValue;
@@ -87,9 +82,6 @@ void BinMDataStd_ByteArrayDriver::Paste(const Handle(TDF_Attribute)& theSource,
                                        BinObjMgt_Persistent&        theTarget,
                                        BinObjMgt_SRelocationTable&  ) const
 {
-#ifdef DEB
-//  cout << "ByteArrayDriver::Store: " << TypeName() << endl;
-#endif
   Handle(TDataStd_ByteArray) anAtt = Handle(TDataStd_ByteArray)::DownCast(theSource);
   const Standard_Integer aFirstInd = anAtt->Lower();
   const Standard_Integer aLastInd  = anAtt->Upper();
index 4505f268b5251aed967968cf9e71318d2e0d836f..9a46f11d7394c5a59a6ffc02062e42e853bea10d 100644 (file)
@@ -74,16 +74,10 @@ Standard_Boolean BinMDataStd_ExtStringArrayDriver::Paste
   }
 
   if(ok) {
-//#ifdef DEB
-//  cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
-//#endif
     Standard_Boolean aDelta(Standard_False);
     if(BinMDataStd::DocumentVersion() > 2) {
       Standard_Byte aDeltaValue;
          if (! (theSource >> aDeltaValue)) {
-//#ifdef DEB
-//      cout <<"DeltaValue = " << (Standard_Integer)aDeltaValue <<endl;
-//#endif
            return Standard_False;
          }
       else
index edbfa8903a6e0e5b7d34c60c83011593f1a73dc6..22e9871a90a7efcbc1472801d1b01beb8017877c 100644 (file)
@@ -81,9 +81,7 @@ Standard_Boolean BinMDataStd_IntPackedMapDriver::Paste
     }
     aTagAtt->ChangeMap(aHMap);
   }
-#ifdef DEB
-  //cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
-#endif  
+
   Standard_Boolean aDelta(Standard_False);
   if(BinMDataStd::DocumentVersion() > 2) {
     Standard_Byte aDeltaValue;
index fcfd92ae397de4b98a686c6b8606959fba179971..f385a8bc5f696f5bc249ec4d250b347baa150e0a 100644 (file)
@@ -63,9 +63,6 @@ Standard_Boolean BinMDataStd_IntegerArrayDriver::Paste
   if(!theSource.GetIntArray (&aTargetArray(aFirstInd), aLength))
     return Standard_False;
   Standard_Boolean aDelta(Standard_False);
-#ifdef DEB
-  //cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
-#endif
   if(BinMDataStd::DocumentVersion() > 2) {
     Standard_Byte aDeltaValue;
     if (! (theSource >> aDeltaValue))
@@ -73,7 +70,7 @@ Standard_Boolean BinMDataStd_IntegerArrayDriver::Paste
     else
       aDelta = (Standard_Boolean)aDeltaValue;
   }
-#ifdef DEB
+#ifdef BINMDATASTD_DEB
   else if(BinMDataStd::DocumentVersion() == -1)
     cout << "Current DocVersion field is not initialized. "  <<endl;
 #endif
index 5f655f85549e3b6e9645135052db8b1705a7882d..28db06e7aa2ddfd673f840a301b0d5b64033028e 100644 (file)
@@ -62,9 +62,7 @@ Standard_Boolean BinMDataStd_RealArrayDriver::Paste
   TColStd_Array1OfReal& aTargetArray = anAtt->Array()->ChangeArray1();
   if(!theSource.GetRealArray (&aTargetArray(aFirstInd), aLength))
     return Standard_False;
-#ifdef DEB
-  //cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() <<endl;
-#endif
+
   Standard_Boolean aDelta(Standard_False);
   if(BinMDataStd::DocumentVersion() > 2) {
     Standard_Byte aDeltaValue;
index 9feb4598d543d47e0b08c08eabc334ba379611c9..48aef789988c2eed105c4611032ef23101293a4c 100644 (file)
@@ -235,14 +235,11 @@ Standard_Boolean BinMNaming_NamingDriver::Paste
        WriteMessage (aMsg);
          }
 
-#ifdef DEB
-      //cout << "CurDocVersion = " << BinMNaming::DocumentVersion() <<endl;
-#endif
     if(BinMNaming::DocumentVersion() > 3) {
        TCollection_AsciiString entry;
        ok = theSource >> entry;
        if(ok) {
-#ifdef DEB
+#ifdef BINMNAMING_DEB
          cout << "NamingDriver:: Retrieved Context Label = " << entry << " Ok = " << theSource.IsOK()  <<endl;
 #endif
         
@@ -280,7 +277,7 @@ Standard_Boolean BinMNaming_NamingDriver::Paste
       if(ok) {
         OrientationToApply = (TopAbs_Orientation)anIndx;
                aName.Orientation(OrientationToApply);
-#ifdef DEB
+#ifdef BINMNAMING_DEB
            cout << "NamingDriver:: Retrieved Orientation = " << OrientationToApply << " Ok = " << theSource.IsOK()  <<endl;
 #endif
          } else {
@@ -290,7 +287,7 @@ Standard_Boolean BinMNaming_NamingDriver::Paste
          }
        }
        }
-#ifdef DEB
+#ifdef BINMNAMING_DEB
       else if(BinMNaming::DocumentVersion() == -1)
        cout << "Current DocVersion field is not initialized. "  <<endl;
       else 
index 8c6f33923d2ba76afb3a48b46bc331b72343f1ff..3832eec950b8a7b1990ca47acb60475410ee2ad9 100644 (file)
@@ -172,7 +172,7 @@ void BinMXCAFDoc_LocationDriver::Translate(const TopLoc_Location& theLoc,
   // The location is not identity  
   if( myLocations == 0 )
   {
-#ifdef DEB
+#ifdef BINMXCAFDOC_DEB
     cout<<"Pointer to LocationSet is NULL\n";
 #endif
     return;
index 3053cceb56cec481ad9e7693845d355a334ee2bc..864459525d4b9b524fe0b651abff55d8104ee942 100644 (file)
@@ -34,7 +34,9 @@ Handle(Standard_Transient) BinTObjDrivers::Factory(const Standard_GUID& aGUID)
 {
   if(aGUID == BinStorageDriver)
   {
+#ifdef BINTOBJDRIVERS_DEB
     cout << "BinTObjDrivers : Storage Plugin" << endl;
+#endif
     static Handle(BinTObjDrivers_DocumentStorageDriver) model_sd
       = new BinTObjDrivers_DocumentStorageDriver;
     return model_sd;
@@ -42,7 +44,9 @@ Handle(Standard_Transient) BinTObjDrivers::Factory(const Standard_GUID& aGUID)
 
   if(aGUID == BinRetrievalDriver)
   {  
+#ifdef BINTOBJDRIVERS_DEB
     cout << "BinTObjDrivers : Retrieval Plugin" << endl;
+#endif
     static Handle (BinTObjDrivers_DocumentRetrievalDriver) model_rd
       = new BinTObjDrivers_DocumentRetrievalDriver;
     return model_rd;
index 10232c66e26b11d3886c60664f1dd75f6f64c79e..690d91fe4c19d3ee62ac5a1dbb4d2697c713521d 100644 (file)
@@ -699,15 +699,12 @@ Standard_IStream& BinTools_Curve2dSet::ReadCurve2d(Standard_IStream& IS,
 void  BinTools_Curve2dSet::Read(Standard_IStream& IS)
 {
   char buffer[255];
-#ifdef DEB
-//    const Standard_Integer aPos = IS.tellg();
-//    cout << "\tPosition of Curves2d section = " << aPos << endl;
-#endif 
+
   IS >> buffer;
   if (IS.fail() || strcmp(buffer,"Curve2ds")) {
     Standard_SStream aMsg;
     aMsg << "BinTools_Curve2dSet::Read:  Not a Curve2d table"<<endl;
-#ifdef DEB
+#ifdef BINTOOLS_DEB
     cout <<"Curve2dSet buffer: " << buffer << endl;
 #endif
     Standard_Failure::Raise(aMsg);
index 79f0190c31e5d113f04aee7cf5f760cd4709897e..1f970e90d98a0ba4395b7a04ba0d4cff54ff0eba 100644 (file)
@@ -720,7 +720,7 @@ void  BinTools_CurveSet::Read(Standard_IStream& IS)
   if (IS.fail() || strcmp(buffer,"Curves")) {
     Standard_SStream aMsg;
     aMsg << "BinTools_CurveSet::Read:  Not a Curve table"<<endl;
-#ifdef DEB
+#ifdef BINTOOLS_DEB
     cout <<"CurveSet buffer: " << buffer << endl;
 #endif
     Standard_Failure::Raise(aMsg);
index 1aa3a5b1db8ac75b06da236c0074723f708f07b4..1ab96d7d1e4bde15d60e0a7f61398aec87ffded4 100644 (file)
@@ -1241,22 +1241,11 @@ void BinTools_ShapeSet::ReadPolygonOnTriangulation(Standard_IStream& IS)
   Handle(Poly_PolygonOnTriangulation) Poly;
   IS >> nbpol;
   IS.get();//remove LF 
-#ifdef DEB
-//  cout << "ReadPolygonOnTriangulation: NbPoles = "<< nbpol<< endl;
-#endif
   try {
     OCC_CATCH_SIGNALS
     for (i=1; i<=nbpol; i++) {
-#ifdef DEB
-//    streampos pos = IS.tellg();
-//    cout << "ReadPolygonOnTriangulation: Pos = "<< pos << endl;
-#endif
       BinTools::GetInteger(IS, nbnodes);
 
-#ifdef DEB
-//    cout << "ReadPolygonOnTriangulation: PoleIndx = "<< i << " NbOfNodes = "<< nbnodes <<endl;
-#endif
-
       TColStd_Array1OfInteger Nodes(1, nbnodes);
       for (j = 1; j <= nbnodes; j++) {
        BinTools::GetInteger(IS, val);
@@ -1348,7 +1337,7 @@ void BinTools_ShapeSet::ReadPolygon3D(Standard_IStream& IS)
 
   if (IS.fail() || strstr(buffer,"Polygon3D") == NULL) {
     aMsg << "BinTools_ShapeSet::ReadPolygon3D: Not a Polygon3D section" <<endl;
-#ifdef DEB
+#ifdef BINTOOLS_DEB
     cout <<"Buffer: " << buffer << endl;
 #endif
     Standard_Failure::Raise(aMsg);
index 8ffd65ba9e2d94a3e99a7a6908c77f3fa9be57db..e61f8b3cca7ab61248f817def4807fda326bb9c4 100644 (file)
@@ -276,29 +276,16 @@ static Standard_OStream& operator <<(Standard_OStream& OS, const Handle(Geom_Bez
   Standard_Integer i,j,udegree,vdegree;
   udegree = S->UDegree();
   vdegree = S->VDegree();
-#ifdef DEB
-//  cout << "\tudegree  = " << udegree << ", vdegree = "<< vdegree<<endl;
-#endif
   BinTools::PutExtChar(OS, (Standard_ExtCharacter)udegree);
   BinTools::PutExtChar(OS, (Standard_ExtCharacter)vdegree);
   for (i = 1; i <= udegree+1; i++) {
     for (j = 1; j <= vdegree+1; j++) {
       OS << S->Pole(i,j); //Pnt
-#ifdef DEB
-//      cout << "Bezier Surface: Pole Pnt: X = " << S->Pole(i,j).X()<< " Y = " << S->Pole(i,j).Y()<<" Z = " << S->Pole(i,j).Z()<<endl;
-#endif      
       if (urational || vrational) {
        BinTools::PutReal(OS, S->Weight(i,j));//Real
-#ifdef DEB
-//     cout << "Bezier Surface: Put Real" << endl;
-#endif
       }
     }
   }
-#ifdef DEB
-//  const Standard_Integer aPos = OS.tellp();
-//  cout << "\tEnd of Bezier surface pos = " << aPos << endl;
-#endif
   return OS;
 }
 
@@ -776,9 +763,6 @@ Standard_IStream& BinTools_SurfaceSet::ReadSurface(Standard_IStream& IS,
   try {
     OCC_CATCH_SIGNALS
     const Standard_Byte stype = (Standard_Byte) IS.get();
-#ifdef DEB
-//    cout << "ReadSurface: Surface type = " << (Standard_Integer)stype <<endl;
-#endif
     switch (stype) {
 
     case PLANE :
@@ -900,7 +884,7 @@ void  BinTools_SurfaceSet::Read(Standard_IStream& IS)
   if (IS.fail() || strcmp(buffer,"Surfaces")) {
     Standard_SStream aMsg;
     aMsg << "BinTools_SurfaceSet::Read:  Not a surface table"<<endl;
-#ifdef DEB
+#ifdef BINTOOLS_DEB
     cout <<"SurfaceSet buffer: " << buffer << endl;
 #endif
     Standard_Failure::Raise(aMsg);
index 93a1413dcf648ba04e276ab76ca8c15efbe6394f..e823f59201a0e725a2db09d4c53c0234fb674658 100644 (file)
@@ -33,7 +33,9 @@ Handle(Standard_Transient) BinXCAFDrivers::Factory(const Standard_GUID& theGUID)
 
   if (theGUID == BinXCAFStorageDriver)
   {
+#ifdef BINXCAFDRIVERS_DEB
     cout << "BinXCAFDrivers : Storage Plugin" << endl;
+#endif
     static Handle(BinXCAFDrivers_DocumentStorageDriver) model_sd =
       new BinXCAFDrivers_DocumentStorageDriver;
     return model_sd;
@@ -41,7 +43,9 @@ Handle(Standard_Transient) BinXCAFDrivers::Factory(const Standard_GUID& theGUID)
 
   if (theGUID == BinXCAFRetrievalDriver)
   {
+#ifdef BINXCAFDRIVERS_DEB
     cout << "BinXCAFDrivers : Retrieval Plugin" << endl;
+#endif
     static Handle(BinXCAFDrivers_DocumentRetrievalDriver) model_rd =
       new BinXCAFDrivers_DocumentRetrievalDriver;
     return model_rd;
index bf68fd9a4333cceab68b39d0792a1856fd1d018f..9e56135595ff0601314cc92bc8925745a9c9361a 100644 (file)
@@ -156,11 +156,6 @@ void Blend_Walking::Perform(Blend_Function& Func,
 
   InternalPerform(Func,FuncInv,Pmax);
 
-#ifdef DEB
-//  cout <<"Perform : "<<nbcomputedsection<<" sections calculees"<<endl;
-//  cout <<line->NbPoints()<<" sections gardees"<<endl;
-#endif
-
   done = Standard_True;
 }
 
@@ -555,11 +550,6 @@ Standard_Boolean Blend_Walking::Complete(Blend_Function& Func,
 
   InternalPerform(Func,FuncInv,Pmin);
 
-#ifdef DEB
-//  cout <<"Complete : "<<nbcomputedsection<<" sections calculees"<<endl;
-//  cout <<line->NbPoints()<<" sections gardees"<<endl;
-#endif
-
   iscomplete = Standard_True;
   return Standard_True;
 }
index 51efa6d47e5ee72e9615e9f538eded45eb3b795a..8d7042ce70ef2dcc3bdfce5f16247a55be1933b2 100644 (file)
@@ -423,7 +423,7 @@ void Blend_Walking::Transition(const Standard_Boolean OnFirst,
                  TheSurfaceTool::LastVParameter(surf),
                  stat, thenormal, iu, iv);
     normale.SetXYZ(thenormal.XYZ());
-#if DEB
+#if BLEND_DEB
     if (stat == CSLib_InfinityOfSolutions)
       cout << "Blend_Walking::Transition : Infinite de Normal" << endl;
 #endif 
index 18701b678b416ed701fccb2fd71e78024e1769f2..723aa5223ef1ad20d2c65290821e164b673ab272 100644 (file)
@@ -316,7 +316,7 @@ void Blend_Walking::InternalPerform(Blend_Function& Func,
        if (stepw > 2*tolgui) State = Blend_StepTooLarge;
        // Sinon echec recadrage. On sort avec PointsConfondus
        else {
-#if DEB
+#if BLEND_DEB
          cout << "Echec recadrage" << endl;
 #endif   
          State = Blend_SamePoints;
@@ -521,7 +521,7 @@ void Blend_Walking::InternalPerform(Blend_Function& Func,
     case Blend_SamePoints :
       {
        // On arrete
-#if DEB
+#if BLEND_DEB
        cout << " Points confondus dans le cheminement" << endl;
 #endif
        Ext1.SetValue(previousP.PointOnS1(),
index 0de6914e384f5a9fdfdc7879fac227937d8263a8..6289acb33e3264d2f69943e84849968fbf72b373 100644 (file)
@@ -203,9 +203,6 @@ Standard_Boolean BlendFunc_CSCircular::IsSolution(const math_Vector& Sol, const
     norm = ncrossns.Magnitude();
     if (norm < Eps) {
       norm = 1.;
-//#if DEB
-//      cout << "CSCircular : Surface singuliere !" << endl;
-//#endif
     }
 
     temp.SetXYZ(pts.XYZ() - ptc.XYZ());
@@ -279,9 +276,6 @@ Standard_Boolean BlendFunc_CSCircular::Value(const math_Vector& X, math_Vector&
   Standard_Real norm = nplan.Crossed(ns).Magnitude();
   if (norm < Eps) {
     norm = 1.;
-//#if DEB
-//    cout << "CSCircular : Surface singuliere !" << endl;
-//#endif
   }
 
   ns.SetLinearForm(nplan.Dot(ns)/norm,nplan, -1./norm,ns);
@@ -318,9 +312,6 @@ Standard_Boolean BlendFunc_CSCircular::Derivatives(const math_Vector& X, math_Ma
   norm = ncrossns.Magnitude();
   if (norm < Eps) {
     norm = 1.;
-//#if DEB
-//    cout << "CSCircular : Surface singuliere !" << endl;
-//#endif
   }
 
   ndotns = nplan.Dot(ns);
@@ -374,9 +365,6 @@ Standard_Boolean BlendFunc_CSCircular::Values(const math_Vector& X, math_Vector&
   norm = ncrossns.Magnitude();
   if (norm < Eps) {
     norm = 1.;
-//#if DEB
-//    cout << "CSCircular : Surface singuliere !" << endl;
-//#endif
   }
 
   ndotns = nplan.Dot(ns);
index 31a8ebf0384cfc0aa1951739e378964cac576699..ebc169d0d8dcc745f8effd6716ea43697386eb28 100644 (file)
@@ -283,14 +283,14 @@ Standard_Boolean BlendFunc_ConstRad::ComputeValues(const math_Vector& X,
  if (invnorm1 > Eps) invnorm1 = ((Standard_Real) 1) /invnorm1;
  else {
    invnorm1 = 1; // Unsatisfactory, but it is not necessary to crash
-#if DEB
+#if BLENDFUNC_DEB
    cout << " ConstRad : Surface singuliere " << endl;
 #endif
  }
  if (invnorm2 > Eps) invnorm2 = ((Standard_Real) 1) /invnorm2;
  else {
    invnorm2 = 1; //  Unsatisfactory, but it is not necessary to crash
-#if DEB
+#if BLENDFUNC_DEB
    cout << " ConstRad : Surface singuliere " << endl;
 #endif
  }
@@ -878,7 +878,7 @@ Standard_Boolean BlendFunc_ConstRad::IsSolution(const math_Vector& Sol, const St
           Abs(controle(2)) > tolerances(2) ||
           Abs(controle(3)) > tolerances(3) ||
           Abs(controle(4)) > tolerances(4)){
-#ifdef DEB
+#ifdef BLENDFUNC_DEB
        cout<<"Cheminement : echec calcul des derivees"<<endl;
 #endif
          istangent = Standard_True;
@@ -1087,9 +1087,6 @@ void BlendFunc_ConstRad::Tangent(const Standard_Real U1,
       (U2!=xval(3)) || (V2!=xval(4))) {
     gp_Vec d1u,d1v;
     gp_Pnt bid;
-//#if DEB
-//    cout << " ConstRad::erreur de tengent !!!!!!!!!!!!!!!!!!!!" << endl;
-//#endif
     surf1->D1(U1,V1,bid,d1u,d1v);  
     NmF = ns1 = d1u.Crossed(d1v);
     surf2->D1(U2,V2,bid,d1u,d1v);
@@ -1349,15 +1346,9 @@ void BlendFunc_ConstRad::Section(const Blend_Point& P,
   norm2 = nplan.Crossed(ns2).Magnitude();
   if (norm1 < Eps)  {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
-//#if DEB
-//    cout << " ConstRad : Surface singuliere " << endl;
-//#endif
   }
   if (norm2 < Eps) {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
-//#if DEB
-//    cout << " ConstRad : Surface singuliere " << endl;
-//#endif
   }
 
   ns1.SetLinearForm(nplan.Dot(ns1)/norm1,nplan, -1./norm1,ns1);
@@ -1480,13 +1471,13 @@ Standard_Boolean BlendFunc_ConstRad::Section
   norm2 = nplan.Crossed(ns2).Magnitude();
   if (norm1 < Eps) {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " ConstRad : Surface singuliere " << endl;
 #endif
   }
   if (norm2 < Eps) {
    norm2 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
    cout << " ConstRad : Surface singuliere " << endl;
 #endif
  }
@@ -1822,13 +1813,13 @@ Standard_Boolean BlendFunc_ConstRad::Section
   norm2 = nplan.Crossed(ns2).Magnitude();
   if (norm1 < Eps) {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " ConstRad : Surface singuliere " << endl;
 #endif
   }
   if (norm2 < Eps) {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " ConstRad : Surface singuliere " << endl;
 #endif
  }
index cf2e82774e60fd2ca208453a840a01a52fc91d19..2ae352fc0981ddd399d1ab28f76541e3d3ce4cb3 100644 (file)
@@ -208,15 +208,9 @@ Standard_Boolean BlendFunc_ConstRadInv::Value(const math_Vector& X,
   Standard_Real norm2 = nplan.Crossed(ns2).Magnitude();
   if (norm1 < Eps)  {
     norm1 = 1; 
-//#if DEB
-//    cout << " ConstRadInv : Surface singuliere " << endl;
-//#endif
   }
   if (norm2 < Eps)  {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
-//#if DEB
-//    cout << " ConstRadInv : Surface singuliere " << endl;
-//#endif
   }  
 
   gp_Vec resul;
@@ -300,13 +294,13 @@ Standard_Boolean BlendFunc_ConstRadInv::Derivatives(const math_Vector& X,
   norm2 = ncrossns2.Magnitude();
   if (norm1 < Eps)  {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " ConstRadInv : Surface singuliere " << endl;
 #endif
   }
   if (norm2 < Eps)  {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " ConstRadInv : Surface singuliere " << endl;
 #endif
   } 
@@ -481,13 +475,13 @@ Standard_Boolean BlendFunc_ConstRadInv::Values(const math_Vector& X,
   norm2 = ncrossns2.Magnitude();
   if (norm1 < Eps)  {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " ConstRadInv : Surface singuliere " << endl;
 #endif
   }
   if (norm2 < Eps)  {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " ConstRadInv : Surface singuliere " << endl;
 #endif
   } 
index 5745c2edf7d501d1c0658d7b21d16182618f47ab..a9c640f1efddb898811b961977275caa1f5bf118 100644 (file)
@@ -348,14 +348,14 @@ Standard_Boolean BlendFunc_EvolRad::ComputeValues(const math_Vector& X,
  if (invnorm1 > Eps) invnorm1 = ((Standard_Real) 1) /invnorm1;
   else {
     invnorm1 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " EvolRad : Surface singuliere " << endl;
 #endif
   }
   if (invnorm2 > Eps) invnorm2 = ((Standard_Real) 1) /invnorm2;
   else {
     invnorm2 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " EvolRad : Surface singuliere " << endl;
 #endif
   }
@@ -947,7 +947,7 @@ Standard_Boolean BlendFunc_EvolRad::IsSolution(const math_Vector& Sol,
         Abs(controle(2)) > tolerances(2) ||
         Abs(controle(3)) > tolerances(3) ||
         Abs(controle(4)) > tolerances(4)){
-#ifdef DEB
+#ifdef BLENDFUNC_DEB
        cout<<"Cheminement : echec calcul des derivees"<<endl;
 #endif
        istangent = Standard_True;
@@ -1072,7 +1072,7 @@ void BlendFunc_EvolRad::Tangent(const Standard_Real U1,
       (U2!=xval(3)) || (V2!=xval(4))) {
     gp_Vec d1u,d1v;
     gp_Pnt bid;
-#if DEB
+#if BLENDFUNC_DEB
     cout << " erreur de tengent !!!!!!!!!!!!!!!!!!!!" << endl;
 #endif
     surf1->D1(U1,V1,bid,d1u,d1v);  
@@ -1447,13 +1447,13 @@ void BlendFunc_EvolRad::Section(const Blend_Point& P,
   norm2 = nplan.Crossed(ns2).Magnitude();
   if (norm1 < Eps) {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " EvolRad : Surface singuliere " << endl;
 #endif
   }
   if (norm2 < Eps) {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " EvolRad : Surface singuliere " << endl;
 #endif
   }
@@ -1580,13 +1580,13 @@ Standard_Boolean BlendFunc_EvolRad::Section
   norm2 = nplan.Crossed(ns2).Magnitude();
   if (norm1 < Eps)  {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " EvolRad : Surface singuliere " << endl;
 #endif
   }
   if (norm2 < Eps) {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " EvolRad : Surface singuliere " << endl;
 #endif
   }
@@ -1926,13 +1926,13 @@ Standard_Boolean BlendFunc_EvolRad::Section
   norm2 = nplan.Crossed(ns2).Magnitude();
   if (norm1 < Eps)  {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " EvolRad : Surface singuliere " << endl;
 #endif
   }
   if (norm2 < Eps)  {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
-#if DEB
+#if BLENDFUNC_DEB
     cout << " EvolRad : Surface singuliere " << endl;
 #endif
   }
index 2ea8213a37d97d9225bbb92cf59b9f5b8c65c504..6bf46eec4f35d89e9aef23ed535d6fca65c72e8f 100644 (file)
@@ -212,15 +212,9 @@ Standard_Boolean BlendFunc_EvolRadInv::Value(const math_Vector& X,
 
   if (norm1 < Eps) {
     norm1 = 1.;
-//#if DEB
-//    cout << "EvolRadInv : Surface singuliere " << endl;
-//#endif
   }
   if (norm2 < Eps) {
     norm2 = 1.;
-//#if DEB
-//    cout << "EvolRadInv : Surface singuliere " << endl;
-//#endif
   }
 
   gp_Vec resul;
@@ -323,15 +317,9 @@ Standard_Boolean BlendFunc_EvolRadInv::Values(const math_Vector& X,
   Standard_Real norm2 = ncrossns2.Magnitude();
   if (norm1 < Eps) {
     norm1 = 1.;
-//#if DEB
-//    cout << "EvolRadInv : Surface singuliere " << endl;
-//#endif
   }
   if (norm2 < Eps) {
     norm2 = 1.;
-//#if DEB
-//    cout << "EvolRadInv : Surface singuliere " << endl;
-//#endif
   }
 
   gp_Vec resul1,resul2;
index 02ab97113c32d99b9a8344a643c0bc016b189b6a..43ae8e78501d4ecc1b4df75a86d96a26019601ef 100644 (file)
@@ -300,7 +300,9 @@ Standard_Integer CSLib_Class2d::InternalSiDansOuOn(const Standard_Real Px,
 //=======================================================================
 const CSLib_Class2d& CSLib_Class2d::Copy(const CSLib_Class2d& ) const 
 { 
+#ifdef CSLIB_DEB
   cerr<<"Copy not allowed in CSLib_Class2d"<<endl;
+#endif
   Standard_ConstructionError::Raise();
   return *this;
 }
index d8e74609f55904c0c734a8a76ed3c4b15c4a4b10..28e098ef20bde8d63db9c2ab1040a5c21165f771 100644 (file)
@@ -152,7 +152,7 @@ Standard_Integer ChFi3d::ConcaveSide(const BRepAdaptor_Surface& S1,
         }
       }
       else {
-#ifdef DEB
+#ifdef CHFI3D_DEB
         cout<<"ConcaveSide : no concave face"<<endl;
 #endif
        //This 10 shows that the face at end is in the extension of one of two base faces
index 6db5254a6b7a850f570c484588192b966c78c7c8..aba1d73a5e63d67de0bb91688e8f4c1515ce235e 100644 (file)
@@ -250,7 +250,7 @@ void  ChFi3d_Builder::Compute()
     }
     catch(Standard_Failure) {
       Handle(Standard_Failure) exc = Standard_Failure::Caught();
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"EXCEPTION Stripe compute " << exc << endl;
 #endif
       badstripes.Append(itel.Value());
@@ -281,7 +281,7 @@ void  ChFi3d_Builder::Compute()
       catch(Standard_Failure)
       {
         Handle(Standard_Failure) exc = Standard_Failure::Caught();
-#ifdef DEB
+#ifdef CHFI3D_DEB
         cout <<"EXCEPTION Corner compute " << exc << endl;
 #endif
         badvertices.Append(myVDataMap.FindKey(j));
@@ -336,7 +336,7 @@ void  ChFi3d_Builder::Compute()
        }
        catch(Standard_Failure) {
          Handle(Standard_Failure) exc = Standard_Failure::Caught();
-#ifdef DEB
+#ifdef CHFI3D_DEB
          cout <<"EXCEPTION Fillets compute " << exc << endl;
 #endif
          badstripes.Append(itel.Value());
@@ -488,16 +488,16 @@ void  ChFi3d_Builder::Compute()
   // display of time for perfs 
   
 #ifdef DEB  
-  cout<<endl; 
-  cout<<"COMPUTE: temps total "<<t_total<<"s  dont :"<<endl;
-  cout<<"- Init + ExtentAnalyse "<<t_extent<<"s"<<endl;  
-  cout<<"- PerformSetOfSurf "<<t_perfsetofsurf<<"s"<<endl;
-  cout<<"- PerformFilletOnVertex "<<t_perffilletonvertex<<"s"<<endl; 
-  cout<<"- FilDS "<<t_filds<<"s"<<endl; 
-  cout<<"- Reconstruction "<<t_reconstruction<<"s"<<endl;
-  cout<<"- SetRegul "<<t_setregul<<"s"<<endl<<endl;
-  
   if(ChFi3d_GettraceCHRON()){
+    cout<<endl; 
+    cout<<"COMPUTE: temps total "<<t_total<<"s  dont :"<<endl;
+    cout<<"- Init + ExtentAnalyse "<<t_extent<<"s"<<endl;  
+    cout<<"- PerformSetOfSurf "<<t_perfsetofsurf<<"s"<<endl;
+    cout<<"- PerformFilletOnVertex "<<t_perffilletonvertex<<"s"<<endl; 
+    cout<<"- FilDS "<<t_filds<<"s"<<endl; 
+    cout<<"- Reconstruction "<<t_reconstruction<<"s"<<endl;
+    cout<<"- SetRegul "<<t_setregul<<"s"<<endl<<endl;
+
     cout<<endl;
     cout <<"temps PERFORMSETOFSURF "<<t_perfsetofsurf <<"s  dont : "<<endl;
     cout <<"- SetofKPart "<<t_perfsetofkpart<<"s"<<endl;
index 91963e0e8e740943e72ce4e4660fb5435771cf5d..70edca7ae0a92bc43c65f4cd2e46ef3d2456314d 100644 (file)
@@ -563,7 +563,7 @@ void ChFi3d_Builder::PerformExtremity (const Handle(ChFiDS_Spine)& Spine)
            E[i] = Ec;
          }
          else{
-#ifdef DEB
+#ifdef CHFI3D_DEB
            cout<<"top has more than 3 edges"<<endl;
 #endif
            sommetpourri = Standard_True;
@@ -594,7 +594,7 @@ void ChFi3d_Builder::PerformExtremity (const Handle(ChFiDS_Spine)& Spine)
     }
     if(nbf>3) {
       Spine->SetFirstStatus(ChFiDS_BreakPoint);
-#if DEB
+#if CHFI3D_DEB
       cout<<"top has : "<<nbf<<" faces."<<endl;
 #endif
     }
@@ -610,7 +610,7 @@ void ChFi3d_Builder::PerformExtremity (const Handle(ChFiDS_Spine)& Spine)
     }
     if(nbf>3) {
       Spine->SetLastStatus(ChFiDS_BreakPoint);
-#if DEB
+#if CHFI3D_DEB
       cout<<"top has : "<<nbf<<" faces."<<endl;
 #endif
     }
index b0bd7c6ecc0b586443205f6b16eca192749a0bbf..1e05b9f1c31e047e18b5d352eef2d91cf2d13a7b 100644 (file)
@@ -1327,7 +1327,7 @@ Standard_Boolean  ChFi3d_Builder::SearchFace
   TopoDS_Edge E;
   if (Pc.IsVertex()){
     // attention it is necessary to analyze all faces that turn around of the vertex
-#if DEB
+#if CHFI3D_DEB
     cout<<"Commonpoint on vertex, the process hangs up"<<endl;
 #endif
     if (Pc.HasVector()) { //General processing
@@ -1372,7 +1372,7 @@ Standard_Boolean  ChFi3d_Builder::SearchFace
          FindFace = Standard_False;
          if (Spine.IsNull()) {
            //La Spine peut etre nulle (ThreeCorner)
-#if DEB
+#if CHFI3D_DEB
            cout << "FindFace sur vertex avec spine nulle! QUEZAKO ?" << endl;
 #endif
            return Standard_False;
@@ -1592,7 +1592,7 @@ static void ChFi3d_MakeExtremities(Handle(ChFiDS_Stripe)&      Stripe,
       if (CV1.IsVertex()) { 
        ChFi3d_SingularExtremity(Stripe, DStr, CV1.Vertex(), tol3d, tol2d);
       }
-# if DEB
+# if CHFI3D_DEB
       else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
 # endif
     }
@@ -1657,7 +1657,7 @@ static void ChFi3d_MakeExtremities(Handle(ChFiDS_Stripe)&      Stripe,
       if (cpdeb1.IsVertex()) { 
        ChFi3d_SingularExtremity(Stripe, DStr, cpdeb1.Vertex(), tol3d, tol2d);
       }
-# if DEB
+# if CHFI3D_DEB
       else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
 # endif
     }
@@ -1719,7 +1719,7 @@ static void ChFi3d_MakeExtremities(Handle(ChFiDS_Stripe)&      Stripe,
       if (cpfin1.IsVertex()) { 
        ChFi3d_SingularExtremity(Stripe, DStr, cpfin1.Vertex(), tol3d, tol2d);
       }
-# if DEB
+# if CHFI3D_DEB
       else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
 # endif
     }
@@ -1743,7 +1743,7 @@ static void ChFi3d_Purge (Handle(ChFiDS_Stripe)&    Stripe,
   Standard_Integer opp = 3-ons;
   if (!SD->Vertex(isfirst,opp).IsOnArc() || 
       SD->TwistOnS1() || SD->TwistOnS2() ) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout<<"ChFi3d_Purge : No output on extension."<<endl;
 #endif
     ChFiDS_SequenceOfSurfData& Seq = 
@@ -2335,12 +2335,12 @@ void ChFi3d_Builder::PerformSetOfKPart(Handle(ChFiDS_Stripe)& Stripe,
       ChFiDS_SequenceOfSurfData LSD;
       
       if(!ChFiKPart_ComputeData::Compute(DStr,SD,HS1,HS2,Or1,Or2,Spine,iedge)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout<<"failed calculation KPart"<<endl;
 #endif
       }
       else if(!SplitKPart(SD,LSD,Spine,iedge,HS1,It1,HS2,It2,intf,intl)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout<<"failed calculation KPart"<<endl;
 #endif
        LSD.Clear();
@@ -2874,7 +2874,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
       }
       else if(IF < IL){
        TColStd_Array1OfReal wv(IF,IL - 1);
-#ifdef  DEB
+#ifdef  CHFI3D_DEB
        cout<<"length of the trajectory : "<<(WL-WF)<<endl;
 #endif
        for(i = IF; i < IL; i++){
@@ -2883,7 +2883,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
          Standard_Real wi = Spine->LastParameter(iloc);
          if(periodic) wi = ElCLib::InPeriod(wi,WF,WF+period);
          gp_Pnt pv = Spine->Value(wi);
-#ifdef DEB
+#ifdef CHFI3D_DEB
          gp_Pnt pelsapp = curels.Value(wi);
          Standard_Real distinit = pv.Distance(pelsapp);
          cout<<"distance psp/papp : "<<distinit<<endl;
@@ -2894,7 +2894,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
            wv(i) = ext.Point().Parameter(); 
          }
          else {
-#ifdef DEB
+#ifdef CHFI3D_DEB
            cout<<"fail of projection vertex ElSpine!!!"<<endl;
 #endif
          }
index cff7718f71677e77484a6a3f09a6a2e296354976..5d8f33a9976acffeff0f8d4be709bbe2f11d1789 100644 (file)
@@ -274,7 +274,7 @@ static void CompParam(Geom2dAdaptor_Curve  Carc,
   }
   else {
     //(2) Intersection
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout<< "CompParam : bad intersection parameters"<<endl; 
 #endif
     IntRes2d_IntersectionPoint int2d;
@@ -289,7 +289,7 @@ static void CompParam(Geom2dAdaptor_Curve  Carc,
       if (!Intersection.IsEmpty()){
        nbseg = Intersection.NbSegments();
        if ( nbseg > 0 ){ 
-#ifdef DEB
+#ifdef CHFI3D_DEB
          cout<< "segments of intersection on the restrictions"<<endl; 
 #endif  
        }
@@ -311,7 +311,7 @@ static void CompParam(Geom2dAdaptor_Curve  Carc,
   
   if(!found){
     // (3) Projection...
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout<<"CompParam : failed intersection PC, projection is created."<<endl;
 #endif
     parc = prefarc;
@@ -321,7 +321,7 @@ static void CompParam(Geom2dAdaptor_Curve  Carc,
       // This happens in some cases when there is a vertex 
       // at the end of spine...
       ptg = preftg; 
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"CompParam : failed proj p2d/c2d, the extremity is taken!" <<endl;
 #endif
     }
@@ -542,12 +542,12 @@ Standard_Boolean ChFi3d_Builder::CompleteData
                               tolappangle, // Contact G1 
                               myConti, Degmax, Segmax);  
   if (!approx.IsDone()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout << "Approximation non faite !!!" << endl;
 #endif
     return Standard_False;
   }
-#ifdef DEB
+#ifdef CHFI3D_DEB
   approx.Dump(cout);
 #endif
   return StoreData( Data, approx, lin, S1, S2, Or1, Gd1, Gd2, Gf1, Gf2, Reversed);
@@ -578,12 +578,12 @@ Standard_Boolean ChFi3d_Builder::CompleteData
                               tolappangle, // Contact G1 
                               myConti);  
  if (!approx.IsDone()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout << "Approximation is not done!" << endl;
 #endif  
     return Standard_False;
   }
-#ifdef DEB
+#ifdef CHFI3D_DEB
   approx.Dump(cout);
 #endif
 
@@ -615,12 +615,12 @@ Standard_Boolean ChFi3d_Builder::CompleteData
                               tolappangle, // Contact G1 
                               myConti);  
  if (!approx.IsDone()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout << "Approximation non faite !!!" << endl;
 #endif  
     return Standard_False;
   }
-#ifdef DEB
+#ifdef CHFI3D_DEB
   approx.Dump(cout);
 #endif
 
@@ -726,7 +726,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
    chc.Load(Crv3d1,par1,par2);
    
  if(!ChFi3d_CheckSameParameter(checkcurve,PCurveOnFace,S1,tolC1,tolcheck)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
    cout<<"aaproximate tolerance under-valued : "<<tolC1<<" for "<<tolcheck<<endl;
 #endif 
     tolC1 = tolcheck;
@@ -779,7 +779,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
                                           approx.Curves2dDegree());
     chc.Load(Crv3d2,par1,par2);
    if(!ChFi3d_CheckSameParameter(checkcurve,PCurveOnFace,S2,tolC2,tolcheck)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"approximate tolerance under-evaluated : "<<tolC2<<" for "<<tolcheck<<endl;
 #endif 
       tolC2 = tolcheck;
@@ -959,7 +959,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     if(!TheWalk.PerformFirstSection(Func,FInv,FInvP,FInvC,PFirst,Target,Soldep,
                                    tolesp,TolGuide,RecRst,RecP,RecS,
                                    NewFirst,ParSol)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<endl;
 #endif
       return Standard_False;
@@ -974,7 +974,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
                     MS,TolGuide,ParSol,tolesp,Fleche,Appro);
 
     if (!TheWalk.IsDone()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout << "Path not created" << endl;
 #endif  
       return Standard_False;
@@ -982,7 +982,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
   
     if (reverse) {
       if (!TheWalk.Complete(Func,FInv,FInvP,FInvC,SpLast)) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout << "Not completed" << endl;
 #endif
       }
@@ -993,14 +993,14 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     Nbpnt = Lin->NbPoints();
     if (Nbpnt <= 1 && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"one point of the path MS/50 is attempted."<<endl;
 #endif  
       MS = MS/50.; Target = Targetsov;
     }
     else if (Nbpnt<=nbptmin && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is too small, the step is reduced"<<endl;
 #endif  
       Standard_Real u1 = Lin->Point(1).Parameter();
@@ -1010,7 +1010,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
       Target = Targetsov;
     }
     else if(Nbpnt<=nbptmin){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is still too small, quit"<<endl;
 #endif  
       return Standard_False;
@@ -1091,7 +1091,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     if (!TheWalk.PerformFirstSection(Func, FInv1, FInvP1, FInv2, FInvP2, PFirst, Target, Soldep,
                                     tolesp, TolGuide, RecRst1, RecP1, RecRst2, RecP2,
                                     NewFirst, ParSol)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"ChFi3d_Builder::ComputeData : fail calculation first section"<<endl;
 #endif
       return Standard_False;
@@ -1106,7 +1106,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
                     MS, TolGuide, ParSol, tolesp, Fleche, Appro);
 
     if (!TheWalk.IsDone()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout << "Path not done" << endl;
 #endif  
       return Standard_False;
@@ -1114,7 +1114,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
   
     if (reverse) {
       if (!TheWalk.Complete(Func, FInv1, FInvP1, FInv2, FInvP2, SpLast)) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout << "Not completed" << endl;
 #endif
       }
@@ -1125,14 +1125,14 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     Nbpnt = Lin->NbPoints();
     if (Nbpnt <= 1 && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"one point of path MS/50 is attempted."<<endl;
 #endif  
       MS = MS/50.; Target = Targetsov;
     }
     else if (Nbpnt<=nbptmin && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is too small, the step is reduced"<<endl;
 #endif  
       Standard_Real u1 = Lin->Point(1).Parameter();
@@ -1141,7 +1141,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
       Target = Targetsov;
     }
     else if(Nbpnt<=nbptmin){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is still too small, quit"<<endl;
 #endif  
       return Standard_False;
@@ -1221,7 +1221,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
     if(!TheWalk.PerformFirstSection(Func,FInv,FInvP,FInvC,PFirst,Target,Soldep,
                                    tolesp,TolGuide,RecRst,RecP,RecS,
                                    NewFirst,ParSol)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
 
       cout<<"ChFi3d_Builder::SimulData : fail calculate first section"<<endl;
 #endif
@@ -1236,14 +1236,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
     TheWalk.Perform (Func,FInv,FInvP,FInvC,NewFirst,Last,
                     MS,TolGuide,ParSol,tolesp,Fleche,Appro);
     if (!TheWalk.IsDone()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout << "Path not done" << endl;
 #endif
       return Standard_False;
     }
     if (reverse) {
       if (!TheWalk.Complete(Func,FInv,FInvP,FInvC,SpLast)) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout << "Not completed" << endl;
 #endif
       }
@@ -1252,14 +1252,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
     Nbpnt = Lin->NbPoints();
     if (Nbpnt <= 1 && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"one point of path MS/50 is attempted."<<endl;
 #endif
       MS = MS/50.; Target = Targetsov;
     }
     else if (Nbpnt <= NbSecMin && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is too small, the step is reduced"<<endl;
 #endif
       Standard_Real u1 = Lin->Point(1).Parameter();
@@ -1268,7 +1268,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
       Target = Targetsov;
     }
     else if(Nbpnt<=NbSecMin){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is still too small, quit"<<endl;
 #endif
       return Standard_False;
@@ -1347,7 +1347,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
     if(!TheWalk.PerformFirstSection(Func, FInv1, FInvP1, FInv2, FInvP2, PFirst, Target, Soldep,
                                    tolesp, TolGuide, RecRst1, RecP1, RecRst2, RecP2,
                                    NewFirst,ParSol)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
 
       cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<endl;
 #endif
@@ -1362,14 +1362,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
     TheWalk.Perform (Func, FInv1, FInvP1, FInv2, FInvP2, NewFirst, Last,
                     MS, TolGuide, ParSol, tolesp, Fleche, Appro);
     if (!TheWalk.IsDone()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout << "Path not created" << endl;
 #endif
       return Standard_False;
     }
     if (reverse) {
       if (!TheWalk.Complete(Func, FInv1, FInvP1, FInv2, FInvP2, SpLast)) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout << "Not completed" << endl;
 #endif
       }
@@ -1378,14 +1378,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
     Nbpnt = Lin->NbPoints();
     if (Nbpnt <= 1 && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"only one point of path MS/50 is attempted."<<endl;
 #endif
       MS = MS/50.; Target = Targetsov;
     }
     else if (Nbpnt <= NbSecMin && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is too small, the step is reduced"<<endl;
 #endif
       Standard_Real u1 = Lin->Point(1).Parameter();
@@ -1394,7 +1394,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
       Target = Targetsov;
     }
     else if(Nbpnt<=NbSecMin){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is still too small, quit"<<endl;
 #endif
       return Standard_False;
@@ -1543,7 +1543,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     if(!TheWalk.PerformFirstSection(Func,FInv,PFirst,Target,Soldep,
                                    tolesp,TolGuide,RecOnS1,RecOnS2,
                                    NewFirst,ParSol)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<endl;
 #endif
       return Standard_False;
@@ -1576,7 +1576,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     TheWalk.Perform(Func,FInv,NewFirst,Target,MS,TolGuide,
                    ParSol,TolEsp,Fleche,Appro);
     if (!TheWalk.IsDone()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout << "Path is not created" << endl;
 #endif
       return Standard_False;
@@ -1592,7 +1592,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     Standard_Boolean complmnt = Standard_True;
     if (Inside)  complmnt = TheWalk.Complete(Func,FInv,SpLast);
     if(!complmnt){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout << "Not completed" << endl;
 #endif
       return Standard_False;
@@ -1603,7 +1603,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     //- if one has gone far enough.
     Nbpnt = Lin->NbPoints();
     if (Nbpnt == 0){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"0 point of path, quit."<<endl;
 #endif
       return Standard_False;
@@ -1628,7 +1628,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
       //It drags, the controls are extended, it is  expected to evaluate a
       //satisfactory maximum step. If it already done, quit.
       if(tchernobyl){
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout <<"If it drags without control, quit."<<endl;
 #endif
        return Standard_False;
@@ -1636,14 +1636,14 @@ Standard_Boolean ChFi3d_Builder::ComputeData
       tchernobyl = Standard_True;
       TheWalk.Check(0);
       if (Nbpnt == 1){
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout <<"only one point of path MS/100 is attempted"<<endl;
        cout <<"and the controls are extended."<<endl;
 #endif
        MS *= 0.01;
       }
       else{
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout <<"It drags, the controls are extended."<<endl;
 #endif
        MS = (lpointpar-fpointpar)/Nbpnt; //EvalStep(Lin);
@@ -1651,7 +1651,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     }
     else if (Nbpnt < nbptmin){
       if(again == 0){
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout <<"Number of points is too small, the step is reduced"<<endl;
 #endif
        u1sov = fpointpar;
@@ -1661,13 +1661,13 @@ Standard_Boolean ChFi3d_Builder::ComputeData
       else if(again == 1){
        if(Abs(fpointpar-u1sov)>=TolGuide || 
           Abs(lpointpar-u2sov)>=TolGuide){
-#ifdef DEB
+#ifdef CHFI3D_DEB
          cout <<"Number of points is still too small, the step is reduced"<<endl;
 #endif  
          MS = (lpointpar - fpointpar) * factor;
        }
        else{
-#ifdef DEB
+#ifdef CHFI3D_DEB
          cout <<"Number of points is still too small, quit"<<endl;
 #endif  
          return Standard_False;
@@ -1682,13 +1682,13 @@ Standard_Boolean ChFi3d_Builder::ComputeData
 
   if(TheWalk.TwistOnS1()){
     Data->TwistOnS1(Standard_True);
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout<<"Path completed, but TWIST on S1"<<endl;
 #endif
   }
   if(TheWalk.TwistOnS2()){
     Data->TwistOnS2(Standard_True);
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout<<"Parh completed, but TWIST on S2"<<endl;
 #endif
   }
@@ -2094,7 +2094,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
     if(!TheWalk.PerformFirstSection(Func,FInv,PFirst,Target,Soldep,
                                    tolesp,TolGuide,RecOnS1,RecOnS2,
                                    NewFirst,ParSol)){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<endl;
 #endif
       return Standard_False;
@@ -2117,7 +2117,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
                    ParSol,TolEsp,Fleche,Appro);
     
     if (!TheWalk.IsDone()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout << "Path not created" << endl;
 #endif
       return Standard_False;
@@ -2133,7 +2133,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
       Standard_Boolean complmnt = Standard_True;
       if (Inside)  complmnt = TheWalk.Complete(Func,FInv,SpLast);
       if(!complmnt){
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout << "Not completed" << endl;
 #endif
        return Standard_False;
@@ -2142,14 +2142,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
     Nbpnt = Lin->NbPoints();
     Standard_Real factor =  1./(NbSecMin + 1);
     if (Nbpnt == 0){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"0 point of path, quit."<<endl;
 #endif
       return Standard_False;
     }
     else if (Nbpnt == 1 && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"only one point of path, MS/100 is attempted."<<endl;
 #endif
       MS *= 0.01; Target = Targetsov;
@@ -2157,7 +2157,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
     }
     else if (Nbpnt< NbSecMin && again == 0)  {
       again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is too small, the step is reduced"<<endl;
 #endif
       Standard_Real u1 = u1sov = Lin->Point(1).Parameter();
@@ -2170,21 +2170,21 @@ Standard_Boolean ChFi3d_Builder::SimulData
       Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
       if(Abs(u1-u1sov)>=TolGuide || Abs(u2-u2sov)>=TolGuide){
        again++;
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout <<"Number of points is still too small, the step is reduced"<<endl;
 #endif
        MS /= 100;
        Target = Targetsov;
       }
       else{
-#ifdef DEB
+#ifdef CHFI3D_DEB
        cout <<"Number of points is still too small, quit"<<endl;
 #endif
        return Standard_False;
       }
     }
     else if(Nbpnt < NbSecMin){
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout <<"Number of points is still too small, quit"<<endl;
 #endif
       return Standard_False;
index d42a938ea934340b403a2209b7b3534b622ba694..95958bb1324b27cfa2ac4a4d8f507876fa603cc2 100644 (file)
@@ -1737,7 +1737,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
     if (Ishape1 > 0) {
       trafil1 = DStr.Shape(Ishape1).Orientation();
     }
-#ifdef DEB
+#ifdef CHFI3D_DEB
     else {
       cout<<"erreur"<<endl;
     }
@@ -1746,7 +1746,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
 
     trafil1 = TopAbs::Compose(TopAbs::Reverse(Fi1.Transition()),trafil1);
   }
-#ifdef DEB
+#ifdef CHFI3D_DEB
   else cout<<"erreur"<<endl;
 #endif
   // eap, Apr 22 2002, occ 293
@@ -3623,7 +3623,7 @@ Standard_Boolean ChFi3d_Builder::FindFace(const TopoDS_Vertex& V,
                                          const TopoDS_Face& Favoid) const
 {
   if (P1.IsVertex() || P2.IsVertex()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout<<"change of face on vertex"<<endl;
 #endif
   }
index 29bcbaf53f56cb0502a884e4afca0866764fbb98..4b8b0927dff8a9ec26052f8c17637d03638e0a23 100644 (file)
@@ -190,7 +190,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
                               UIntPC1,UIntPC2,FaCo,SameSide,
                               IFaCo1,IFaCo2,Okvisavis,Vtx,Standard_True);
   if (!Okvisavis) {
-#if DEB
+#if CHFI3D_DEB
     cout<<"TwoCorner : pas de face commune"<<endl;
 #endif
     done=Standard_False;
@@ -205,14 +205,14 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
   }
   
   if (!Okvisavis) {
-#if DEB
+#if CHFI3D_DEB
     cout<<"TwoCorner : no common face"<<endl;
 #endif
     done=Standard_False;
     return done;
   }   
   if (!OkinterCC) {
-#if DEB
+#if CHFI3D_DEB
     cout<<"biseau : failed intersection of tangency lines on common face"<<endl;
 #endif
     done=Standard_False;
@@ -227,7 +227,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
   ChFiDS_CommonPoint& CP2 = Fd2->ChangeVertex(isfirst2,IFaArc2);
 
   if (!CP1.IsOnArc() || !CP2.IsOnArc()) {
-#if DEB
+#if CHFI3D_DEB
     cout<<"fail 1 of 2 fillets are not on arc"<<endl;
 #endif
     done=Standard_False;
@@ -235,7 +235,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
   }
   if ( ! CP1.Arc().IsSame( CP2.Arc()) ) {
     // look like OnSame + OnDiff case (eap, Arp 9 2002, occ266)
-#if DEB
+#if CHFI3D_DEB
     cout<<"PerformTwoCornerbyInter(): fillets are not on the same arc"<<endl;
 #endif
     done = Standard_True;
@@ -279,7 +279,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
     }
   }
   if(!ok1 || !ok2){
-#if DEB
+#if CHFI3D_DEB
     cout<<"fail one of surfaces has no common base face with the pivot edge"<<endl;
 #endif
     done=Standard_False;
@@ -326,7 +326,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
     if (IFaCo1 == 1 && 
        !ChFi3d_ComputeCurves(HS1,HS2,Pardeb,Parfin,Gc,
                              PGc1,PGc2,tolesp,tol2d,tolreached)) {
-#if DEB
+#if CHFI3D_DEB
       cout<<"failed to calculate bevel error interSS"<<endl;
 #endif
       done=Standard_False;
@@ -335,7 +335,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
     else if (IFaCo1 == 2 && 
             !ChFi3d_ComputeCurves(HS1,HS2,Parfin,Pardeb,Gc,
                                   PGc1,PGc2,tolesp,tol2d,tolreached)) {
-#if DEB
+#if CHFI3D_DEB
       cout<<"failed to calculate bevel error interSS"<<endl;
 #endif
       done=Standard_False;
@@ -471,7 +471,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
       Reduce(UIntPCSma,UIntPCBig,Hctg);
     }
     if(!ChFi3d_IntCS(BigHS,Hctg,UVi,wi)){
-#if DEB
+#if CHFI3D_DEB
       cout<<"bevel : failed inter C S"<<endl;
 #endif
       done=Standard_False;
@@ -485,7 +485,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
     Standard_Real tolreached;
     if (!ChFi3d_ComputeCurves(SmaHS,BigHS,Pardeb,Parfin,Gc,
                              PGc1,PGc2,tolesp,tol2d,tolreached)) {
-#if DEB
+#if CHFI3D_DEB
       cout<<"failed to calculate bevel failed interSS"<<endl;
 #endif
       done=Standard_False;
@@ -574,7 +574,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
     Adaptor3d_CurveOnSurface consf(c2df,HF);
     Handle(Adaptor3d_HCurveOnSurface) Hconsf = new Adaptor3d_HCurveOnSurface(consf);
     if(!ChFi3d_IntCS(BigHS,Hconsf,UVi,wi)) {
-#if DEB
+#if CHFI3D_DEB
       cout<<"bevel : failed inter C S"<<endl;
 #endif
       done=Standard_False;
@@ -607,7 +607,7 @@ Standard_Integer ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
 
     if (!ChFi3d_ComputeCurves(HF,BigHS,Pardeb,Parfin,Gc,
                              PGc1,PGc2,tolesp,tol2d,tolreached)) {
-#if DEB
+#if CHFI3D_DEB
       cout<<"fail calculation bevel fail interSS"<<endl;
 #endif
       done=Standard_False;
index e6bbe9772b6e8f42ba5e9911ebb18adebb8dcbf6..645c916e58f81991b9248ef308b36f7686442201 100644 (file)
@@ -525,7 +525,7 @@ static void CalculBatten (const Handle (GeomAdaptor_HSurface) ASurf,
     FairCurve_AnalysisCode Iana; 
     Standard_Boolean Ok;
     Ok = Bat.Compute(Iana,25,1.e-2);
-#if DEB
+#if CHFI3D_DEB
     if (!Ok) { 
       cout<<"no batten :";
       Bat.Dump(cout);
@@ -1330,7 +1330,7 @@ void  ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
     isOnSameDiff = isOnSame && isOnDiff;
   }
   if ( isOnSameDiff ) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout << "OnSame + OnDiff, PerformMoreThreeCorner() calls PerformOneCorner()" << endl;
 #endif
     PerformOneCorner (Jndex, Standard_True);
index ef7437fa81b121737fa25e884ac80908cca4ed2e..93a77988b5d5871ae977ca03ec4ba21f30efb391 100644 (file)
@@ -264,14 +264,14 @@ static Standard_Real ParamOnSpine(const TopOpeBRepDS_DataStructure& DStr,
       Standard_Real tolc = CE.Resolution(tol);
       found = ChFi3d_InterPlaneEdge(plan,HE,Nl,First,tolc);
       gp_Pnt point = CE.Value(Nl);
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"******* ParamOnSpine() for edge "<<iedge<<endl;
       cout<<Nl<<endl;
       cout<<"point ped "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<endl;
 #endif
       if(found) Nl = Spine->Absc(Nl,ii);
       point = Spine->Value(Nl);
-#ifdef DEB
+#ifdef CHFI3D_DEB
       if (found) cout << "found by edge " << ii << " : ";
       cout<<Nl<<endl;
       cout<<"point psp "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<endl;
@@ -509,7 +509,7 @@ static Standard_Boolean Tri(const Geom2dHatch_Hatcher& H,
   }
   if (iSansFirst != 0) {
     if (iSansLast == 0) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"Parsing : Pb of Hatcher"<<endl;
 #endif
       return 0;
@@ -679,7 +679,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
     if(!H1.IsDone(iH1)) return 0;
     Nb1 = H1.NbDomains(iH1);
     if(Nb1 == 0) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"SplitKPart : tangency line out of the face"<<endl;
 #endif
       return Standard_False;
@@ -705,7 +705,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
     if(!H2.IsDone(iH2)) return 0;
     Nb2 = H2.NbDomains(iH2);
     if(Nb2 == 0) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"SplitKPart : tangency line out of the face"<<endl;
 #endif
       return Standard_False;
@@ -747,7 +747,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
                                   // situation, eap occ354
   
   if (C1.IsNull() && C2.IsNull()) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout<<"SplitData : 2 zero lines hatching impossible"<<endl;
 #endif
     return Standard_False;
@@ -969,7 +969,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
           onS = 1;
        else
          onS = 2;
-#ifdef DEB     
+#ifdef CHFI3D_DEB      
        if (threeE[0].IsSame(threeE[1]))
          cout << "SplitKPart(), wrong corner vertex at switcher search" << endl;
 #endif
@@ -1064,7 +1064,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
           onS = 1;
         else
           onS = 2;
-#ifdef DEB      
+#ifdef CHFI3D_DEB      
         if (threeE[0].IsSame(threeE[1]))
           cout << "SplitKPart(), wrong corner vertex at switcher search" << endl;
 #endif
index 777811c3d5a23e32478386dc6f9ea384ea07995b..db8ba2905196148b1376906f35f58176735f2f2c 100644 (file)
@@ -563,7 +563,7 @@ void ChFi3d_ChBuilder::PerformThreeCorner(const Standard_Integer Jndex)
       if (inter.IsDone()) {
        Standard_Integer nbl = inter.NbLines();
        if (nbl > 1) {
-#ifdef DEB
+#ifdef CHFI3D_DEB
          cout<<"trop d'intersection entre les surfaces"<<endl;
 #endif
        }
index 564ac954e53fa82c4709879052bcdaa8cf19cd66..fb79cd43eaf30a3a873bbd12f88aaf7cd9575da4 100644 (file)
@@ -1766,7 +1766,7 @@ void ChFi3d_FilBuilder::SplitSurf(ChFiDS_SequenceOfSurfData&    SeqData,
        }
       }
       else {
-# if DEB
+# if CHFI3D_DEB
        cout << "Failed calculation of the minimum length" << endl;
 # endif
       }
index 58054bb455d083ab04d052505cdc86fb8f991b3d..10de5dfba520b1f0cae799bb9a5e21bb27e78314 100644 (file)
@@ -290,7 +290,7 @@ void ChFi3d_FilBuilder::PerformThreeCorner(const Standard_Integer Jndex)
     // 3 concavities identic.
     pivot = SearchPivot(sens,p,tol2d);
     if(pivot < 0){ 
-#ifdef DEB
+#ifdef CHFI3D_DEB
       cout<<"pivot not found, plate is called"<<endl;
 #endif
       PerformMoreThreeCorner(Jndex, 3);
@@ -312,14 +312,14 @@ void ChFi3d_FilBuilder::PerformThreeCorner(const Standard_Integer Jndex)
   ifacdeb = CD[deb]->ChangeSetOfSurfData()->Value(i[deb][pivot])->Index(3-jf[deb][pivot]);
   ifacfin = CD[fin]->ChangeSetOfSurfData()->Value(i[fin][pivot])->Index(3-jf[fin][pivot]);
   if(ifacfin != ifacdeb){
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout<<"several base faces, plate is called"<<endl;
 #endif
     PerformMoreThreeCorner(Jndex, 3);
     return;
   }
   if(i[pivot][deb] != i[pivot][fin]){
-#ifdef DEB
+#ifdef CHFI3D_DEB
     cout<<"load surfdata on the pivot, plate is called"<<endl;
 #endif
     PerformMoreThreeCorner(Jndex, 3);
index a714757dceb231f7a13fdb0b6286561957a1691e..21bdd767f261b976fe1578ef5ced3e0839404ca5 100644 (file)
@@ -174,7 +174,7 @@ Standard_Real  ChFiDS_Spine::LastParameter() const
 
 void ChFiDS_Spine::SetFirstParameter(const Standard_Real Par) 
 {
-#ifdef DEB
+#ifdef CHFIDS_DEB
   if(Par >= Precision::Confusion()) 
     cout<<"Interior extension at the start of guideline"<<endl;
   if(IsPeriodic())
@@ -192,7 +192,7 @@ void ChFiDS_Spine::SetFirstParameter(const Standard_Real Par)
 
 void ChFiDS_Spine::SetLastParameter(const Standard_Real Par) 
 {
-#ifdef DEB
+#ifdef CHFIDS_DEB
   Standard_Real lll = abscissa->Value(abscissa->Upper());
   if((Par - lll) <= -Precision::Confusion()) 
     cout<<"Interior extension at the end of guideline"<<endl;
@@ -347,7 +347,7 @@ void  ChFiDS_Spine::SetFirstTgt(const Standard_Real W)
 {
   if(IsPeriodic()) Standard_Failure::Raise
     ("No extension by tangent on periodic contours"); 
-#ifdef DEB
+#ifdef CHFIDS_DEB
   if(W >= Precision::Confusion()) 
     cout<<"Interior extension at start of the guideline"<<endl;
 #endif
@@ -371,7 +371,7 @@ void  ChFiDS_Spine::SetLastTgt(const Standard_Real W)
   if(IsPeriodic()) Standard_Failure::Raise
     ("No extension by tangent periodic contours"); 
 
-#ifdef DEB
+#ifdef CHFIDS_DEB
   Standard_Real L = W - abscissa->Value(abscissa->Upper());
   if(L <= -Precision::Confusion()) 
     cout<<"Interior extension at the end of guideline"<<endl;
@@ -491,7 +491,7 @@ void  ChFiDS_Spine::UnsetReference()
 void  ChFiDS_Spine::Load()
 {
   if(!abscissa.IsNull()){
-#ifdef DEB
+#ifdef CHFIDS_DEB
     cout<<"new load of CE"<<endl;
 #endif
   }
index cbbca610234836b767ecbf81732f78e2f5dd74fd..c191db0d6a21c4cab8eea2a14e39dee3678ce294 100644 (file)
@@ -133,7 +133,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
       ChamfRad = Spine.Radius() - Dis;
       if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
       if( ChamfRad < 0 ) {
-#ifdef DEB
+#ifdef CHFIKPART_DEB
        cout<<"the chamfer can't pass"<<endl;
 #endif
        return Standard_False;
@@ -147,7 +147,9 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
 
     if (ouvert) {
       if (Abs(angCon) - Abs(SemiAngl) > -Precision::Confusion() ) {
+#ifdef CHFIKPART_DEB
        cout<<"wrong choice of angle for the chamfer"<<endl;
+#endif
        return Standard_False; 
       } 
     }
@@ -159,7 +161,9 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
       SemiAngl =  Abs(angCon) + Angle;
 
       if ( (M_PI / 2. - SemiAngl) < Precision::Confusion() ) {
+#ifdef CHFIKPART_DEB
        cout <<"wrong choice of angle for the chamfer"<<endl;
+#endif
        return Standard_False;
       }
       Dis1 =  move * Tan(SemiAngl) - Dis * Abs(Sin(angCon));
@@ -191,7 +195,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
 
       if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
       if( ChamfRad < 0 ) {
-#ifdef DEB
+#ifdef CHFIKPART_DEB
        cout<<"the chamfer can't pass"<<endl;
 #endif
        return Standard_False;
index 93e94d5380951a7e812bbd4c0be1a28305f7ec5d..2a630ce47550d5c2dcebf1e1eeaae1d0273eb547 100644 (file)
@@ -149,7 +149,9 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
     Rad = Cyl.Radius() - dis1;
     if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
     if(Rad < 0 ) {
+#ifdef CHFIKPART_DEB
       cout<<"the chamfer can't pass"<<endl;
+#endif
       return Standard_False;
     }
   }
@@ -403,7 +405,9 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
     dis2 = temp2 + temp1 * (cosAhOC - temp1);
 
     if (dis2 < -1.E-09) {
+#ifdef CHFIKPART_DEB
       cout<<"too great angle of chamfer"<<endl;
+#endif
       return Standard_False;
     }
     else if (dis2 < 1.E-09) {
index c2e0728308a53bcd8173a9f827b2f78cd11ede22..4616102bcac8d4b778414c8d9ccb0f21225f7533 100644 (file)
@@ -131,7 +131,9 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
     Rad = Cyl.Radius()- Dis1;
     if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
     if(Rad < 0 ) {
+#ifdef CHFIKPART_DEB
       cout<<"the chamfer can't pass"<<endl;
+#endif
       return Standard_False;
     }
   }
index 7cfc7cf5331d9a220eb9146f33c8284026e20d80..a74e44790479901ca3f21b1189eb2e4501cca6eb 100644 (file)
@@ -124,7 +124,9 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
     Rad = Maxrad - Rabio;
     if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
     else if(Rad < 0){ 
+#ifdef CHFIKPART_DEB
       cout<<"the fillet does not pass"<<endl; 
+#endif
       return Standard_False;
     }
   }
index 64d6c1697df20c4bdda6dad45eb13b99f8415f3f..97ca8fe90920d3d9cce0de9495fb227993dc08b2 100644 (file)
@@ -85,7 +85,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
     ROff-=Radius;
   }
   else {
-#ifdef DEB
+#ifdef CHFIKPART_DEB
     cout<<"the fillet does not pass"<<endl; 
 #endif
     return Standard_False;
@@ -293,7 +293,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
     Rad = cylrad - Radius;
     if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
     else if(Rad < 0){ 
-#ifdef DEB
+#ifdef CHFIKPART_DEB
       cout<<"the fillet can't pass"<<endl; 
 #endif
       return Standard_False;
index 61bc0d7917cd4132fc9bc79b43754f8bb91e55fa..1fff2989df3c4dc09de2130f0dcb7ed4a878929a 100644 (file)
@@ -84,7 +84,7 @@ Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
                 pp.Z()-delta*di.Z());
     dz = gp_Dir(gp_Vec(p1,cen));
     if(Abs(ds1.Dot(dz)-1.)>ptol){
-#ifdef DEB
+#ifdef CHFIKPART_DEB
       cout<<"center of the spherical corner not found"<<endl;
 #endif
       return Standard_False;
index ea104a6ce8d56d21fe4348b2a96c2ef8f02921bb..d08b791b39b419bfba3f3c5594b0c735ad475547 100644 (file)
@@ -337,7 +337,7 @@ static Standard_Integer triangles(Draw_Interpretor& ,
 
   if (n == 1) {
     disptriangles = !disptriangles;
-#ifdef DEB
+#ifdef DBREP_DEB
     if (disptriangles) cout <<"Triangulations are always displayed"<<endl;
     else cout <<"Triangulations are displayed only if there is no geometric representation"<<endl;
 #endif
@@ -387,7 +387,7 @@ static Standard_Integer polygons(Draw_Interpretor& ,
 
   if (n == 1) {
     disppolygons = !disppolygons;
-#ifdef DEB
+#ifdef DBREP_DEB
     if (disppolygons) cout <<"Polygons are always displayed"<<endl;
     else cout <<"Polygons are displayed only if there is no geometric representation"<<endl;
 #endif
index 99cf62357b558fe448ecfa0679ac84161a81bb6a..5a932b5c10d8d024fa8d865f2fe4cf3728ba188e 100644 (file)
@@ -108,14 +108,14 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
 
     if (PCurve.IsNull())
     {
-#ifdef DEB
+#ifdef DBREP_DEB
       cout << "DBRep_IsoBuilder : PCurve is null\n";
 #endif
       return;
     }
     else if (U1 == U2)
     {
-#ifdef DEB
+#ifdef DBREP_DEB
       cout << "DBRep_IsoBuilder PCurve : U1==U2\n";
 #endif
       return;
@@ -140,7 +140,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
             U2 - TrimPCurve->BasisCurve()->LastParameter()  > Precision::PConfusion())
           {
             AddElement (PCurve, TopologicalEdge.Orientation());
-#ifdef DEB
+#ifdef DBREP_DEB
             cout << "DBRep_IsoBuilder TrimPCurve : parameters out of range\n";
             cout << "    U1(" << U1 << "), Umin(" << PCurve->FirstParameter()
               << "), U2("  << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
@@ -152,7 +152,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
         {
           if (PCurve->FirstParameter() - U1 > Precision::PConfusion())
           {
-#ifdef DEB
+#ifdef DBREP_DEB
             cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
             cout << "    U1(" << U1 << "), Umin(" << PCurve->FirstParameter() << ")\n";
 #endif
@@ -160,7 +160,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
           }
           if (PCurve->FirstParameter() - U2 > Precision::PConfusion())
           {
-#ifdef DEB
+#ifdef DBREP_DEB
             cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
             cout << "    U2(" << U2 << "), Umin(" << PCurve->FirstParameter() << ")\n";
 #endif
@@ -168,7 +168,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
           }
           if (U1 - PCurve->LastParameter() > Precision::PConfusion())
           {
-#ifdef DEB
+#ifdef DBREP_DEB
             cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
             cout << "    U1(" << U1 << "), Umax(" << PCurve->LastParameter() << ")\n";
 #endif
@@ -176,7 +176,7 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
           }
           if (U2 - PCurve->LastParameter() > Precision::PConfusion())
           {
-#ifdef DEB
+#ifdef DBREP_DEB
             cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
             cout << "    U2(" << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
 #endif
index bbea1f98343162dbb77eabe5631c3896ab00c79f..5532e64ca2d664096cd927ea89505998a7c75cb4 100644 (file)
@@ -71,7 +71,7 @@ static Standard_Integer DFBrowse (Draw_Interpretor& di,
   aTclScript.AssignCat ( "/dftree.tcl" );
   OSD_File aTclScriptFile (aTclScript);
   if (aTclScriptFile.Exists()) {
-#ifdef DEB
+#ifdef DDF_DEB
     cout << "Load " << aTclScript << endl;
 #endif
     di.EvalFile( aTclScript.ToCString() );
index e903ec0f21346f912273d5485d9d7ed41e407639..4605d2d591e3a1f3db3408852aaf3cefda1d39ff 100644 (file)
@@ -644,7 +644,7 @@ Storage_Error DDF_IOStream::BeginReadInfoSection()
   ReadChar(l,len);
   
   if (strncmp(DDF_IOStream::MagicNumber(),l.ToCString(),len) != 0) {
-#ifdef DEB
+#ifdef DDF_DEB
     cout<<"BeginReadInfoSection: format error"<<endl;
 #endif
     s = Storage_VSFormatError;
@@ -1344,7 +1344,7 @@ Storage_Error DDF_IOStream::IsGoodFileType(istream* anIStream)
     f.Close();
 
     if (strncmp(DDF_IOStream::MagicNumber(),l.ToCString(),len) != 0) {
-#ifdef DEB
+#ifdef DDF_DEB
     cout<<"IsGoodFileType: format error"<<endl;
 #endif
       s = Storage_VSFormatError;
index ad7a79b02d72d07bc4459aa33bdbef12dedf26ed..ccecea412afbba7a2dbe6e94ab3c88588a574869 100644 (file)
@@ -1307,7 +1307,7 @@ static Standard_Integer DDataStd_GetUTFtoFile (Draw_Interpretor& di,
 #endif
     if (!anOS) {
       // A problem with the stream
-#ifdef DEB
+#ifdef DDATASTD_DEB
       cout << "Error: problem with the file stream, rdstate = " <<anOS.rdstate() <<endl;
 #endif
     }
index 3eea83f3f53f354e71abb5016a2d6b62f8562844..7b61103be93fe94cf268ba48aebee7034171952c 100644 (file)
@@ -126,7 +126,9 @@ TopoDS_Shape DNaming::CurrentShape (const Standard_CString  LabelName,
   TDF_Label Label; 
   Standard_Boolean Found =  DDF::AddLabel (DF, LabelName, Label);
   if (!Found) {
+#ifdef DNAMING_DEB
     cout <<"no labels"<<endl;
+#endif
     return S;
   }
   if (Found) { 
@@ -134,7 +136,9 @@ TopoDS_Shape DNaming::CurrentShape (const Standard_CString  LabelName,
     Label.FindAttribute(TNaming_NamedShape::GetID(),NS);
     S =  TNaming_Tool::CurrentShape(NS);
     if (S.IsNull())
+#ifdef DNAMING_DEB
       cout <<"current shape from "<< LabelName <<" is deleted"<<endl;
+#endif
     return S;
   }
   return S;
@@ -561,13 +565,7 @@ void DNaming::SetObjectArg (const Handle(TFunction_Function)& theFunction,
 Handle(TNaming_NamedShape) DNaming::GetObjectValue(const Handle(TDataStd_UAttribute)& theObject)
 {
   Handle(TNaming_NamedShape) aNS;
-#ifdef DEB
-//  cout <<"DNaming::GetObjectValue : Obj is NULL = " << theObject.IsNull() <<endl;
-//  cout << "Object = " << theObject->DynamicType()->Name() <<endl;
-//  Standard_CString aStrGUID = "00000000-0000-0000-0000-000000000000"; 
-//  Standard_GUID aGd = theObject->ID();
-//  aGd.ShallowDump(cout);
-#endif
+
   if(!theObject.IsNull() && theObject->ID() == GEOMOBJECT_GUID) {
     
     Handle(TDF_Reference) aReference;
index dfc93c3dc10083063b7e91a7cd7488c80ab503db..7f57e1c52e828d6c276d576638fd45eff7f29aa0 100644 (file)
@@ -104,7 +104,7 @@ Standard_Integer DNaming_BooleanOperationDriver::Execute(TFunction_Logbook& theL
   Handle(TNaming_NamedShape) anObjectNS;
   aLab.FindAttribute(TNaming_NamedShape::GetID(), anObjectNS);
   if (anObjectNS.IsNull() || anObjectNS->IsEmpty()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"BooleanOperationDriver:: Object is empty"<<endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
@@ -115,7 +115,7 @@ Standard_Integer DNaming_BooleanOperationDriver::Execute(TFunction_Logbook& theL
   Handle(TNaming_NamedShape) aToolNS = DNaming::GetObjectValue(aToolObj);
 
   if (aToolNS.IsNull() || aToolNS->IsEmpty()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"BooleanOperationDriver:: Tool is empty"<<endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
@@ -125,7 +125,7 @@ Standard_Integer DNaming_BooleanOperationDriver::Execute(TFunction_Logbook& theL
   TopoDS_Shape aTOOL = aToolNS->Get();
   TopoDS_Shape anOBJECT = anObjectNS->Get();
   if (aTOOL.IsNull() || anOBJECT.IsNull()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"BooleanOperationDriver:: Tool is null"<<endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
@@ -262,7 +262,7 @@ void DNaming_BooleanOperationDriver::LoadNamingDS (const TDF_Label& theResultLab
   const TopoDS_Shape& ObjSh = MS.Shape1();
   const TopoDS_Shape& ToolSh = MS.Shape2();
  if (ResSh.IsNull()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
    cout<<"LoadFuseNamingDS: The result of the boolean operation is null"<<endl;
 #endif
     return;
@@ -337,7 +337,7 @@ void DNaming_BooleanOperationDriver::LoadSectionNDS (const TDF_Label& theResultL
   const TopoDS_Shape& ObjSh = MS.Shape1();
   const TopoDS_Shape& ToolSh = MS.Shape2();
  if (ResSh.IsNull()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
    cout<<"LoadSectionNamingDS: The result of the boolean operation is null"<<endl;
 #endif
     return;
index 7bdc8c6dc44c1fb0e1503c9adc9ba6620190a1ae..c32ad0b031b9874c675e29fe38e55b3cbb3735ff 100644 (file)
@@ -78,7 +78,7 @@ Standard_Integer DNaming_CylinderDriver::Execute(TFunction_Logbook& theLog) cons
   Handle(TDataStd_UAttribute) anObject = DNaming::GetObjectArg(aFunction,CYL_AXIS);
   Handle(TNaming_NamedShape) aNSAxis = DNaming::GetObjectValue(anObject);
   if (aNSAxis->IsEmpty()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"CylinderDriver:: Axis is empty"<<endl;
 #endif
     aFunction->SetFailure(WRONG_AXIS);
@@ -86,7 +86,7 @@ Standard_Integer DNaming_CylinderDriver::Execute(TFunction_Logbook& theLog) cons
   }
   TopoDS_Shape aTopoDSAxis = aNSAxis->Get();
   if (aTopoDSAxis.IsNull()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"CylinderDriver:: Axis is null"<<endl;
 #endif
     aFunction->SetFailure(WRONG_AXIS);
@@ -94,7 +94,7 @@ Standard_Integer DNaming_CylinderDriver::Execute(TFunction_Logbook& theLog) cons
   }
   // Creation of gp axis (gp_Ax2):
   if (aTopoDSAxis.ShapeType() != TopAbs_EDGE && aTopoDSAxis.ShapeType() != TopAbs_WIRE) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"CylinderDriver:: Wrong axis, ShapeType = " << aTopoDSAxis.ShapeType() <<endl;
 #endif    
     aFunction->SetFailure(WRONG_AXIS);
@@ -118,7 +118,7 @@ Standard_Integer DNaming_CylinderDriver::Execute(TFunction_Logbook& theLog) cons
       anAxis.SetLocation(aP1);
     }
   } else {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"CylinderDriver:: I don't support wires for a while"<<endl;
 #endif    
     aFunction->SetFailure(WRONG_AXIS);
index f5520b3355119e7254f1fcb480fda43fa70fe428..4837ef112219ea6b778f3b9ab943ffc3ec222f8d 100644 (file)
@@ -79,7 +79,7 @@ Standard_Integer DNaming_FilletDriver::Execute(TFunction_Logbook& theLog) const
   Handle(TNaming_NamedShape) aContextNS;
   aLab.FindAttribute(TNaming_NamedShape::GetID(), aContextNS);
   if (aContextNS.IsNull() || aContextNS->IsEmpty()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"FilletDriver:: Context is empty"<<endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
@@ -92,7 +92,7 @@ Standard_Integer DNaming_FilletDriver::Execute(TFunction_Logbook& theLog) const
 
   if(aRadius < Precision::Confusion()) {
     aFunction->SetFailure(WRONG_ARGUMENT);
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout << "FilletDriver:: Radius < Precision::Confusion" << endl;
 #endif
     return -1;
@@ -102,7 +102,7 @@ Standard_Integer DNaming_FilletDriver::Execute(TFunction_Logbook& theLog) const
   Handle(TDataStd_UAttribute) aPathObj = DNaming::GetObjectArg(aFunction,FILLET_PATH);
   Handle(TNaming_NamedShape) aPathNS = DNaming::GetObjectValue(aPathObj);
   if (aPathNS.IsNull() || aPathNS->IsEmpty()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"FilletDriver:: Path is empty"<<endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
@@ -112,7 +112,7 @@ Standard_Integer DNaming_FilletDriver::Execute(TFunction_Logbook& theLog) const
   TopoDS_Shape aPATH = aPathNS->Get();
   TopoDS_Shape aCONTEXT = aContextNS->Get();
   if (aPATH.IsNull() || aCONTEXT.IsNull()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"FilletDriver:: Path or Context is null"<<endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
index 5d8c9c00ce9519f92305a20d2258bfa3d9021458..05169e07f11207a8859f0f48626cfa741223776f 100644 (file)
@@ -218,13 +218,15 @@ static Standard_Integer DNaming_AddDriver (Draw_Interpretor& /*theDI*/,
       Standard_GUID drvGUID;
       if(!GetFuncGUID(theArg[i],drvGUID)) continue;      
       aFunctionDrvTable->AddDriver(drvGUID, GetDriver(theArg[i]));
-#ifdef DEBUG
+#ifdef DNAMING_DEB
       cout << "DNaming_AddDriver : " << theArg[i] << " driver is added" <<endl;
 #endif
     }
     return 0;
   }
+#ifdef DNAMING_DEB
   cout << "DNaming_AddDriver : Error" << endl;
+#endif
   return 1;  
 }
 
@@ -501,7 +503,7 @@ static Standard_Integer DNaming_SolveFlatFrom (Draw_Interpretor& /*theDI*/,
       goto ERR;
     TCollection_AsciiString entry;   
     TDF_Tool::Entry(FatherLab, entry);
-#ifdef DEBUG
+#ifdef DNAMING_DEB
     cout << "DNaming_SolveFlatFrom: Father label = " << entry << endl;
 #endif
     Standard_Boolean found(Standard_False);
@@ -529,7 +531,7 @@ static Standard_Integer DNaming_SolveFlatFrom (Draw_Interpretor& /*theDI*/,
            cout << "DNaming_SolveFlatFrom: Driver failed at label = " << entry << endl;
            return 1;
          }
-#ifdef DEBUG
+#ifdef DNAMING_DEB
          cout <<"DNaming_SolveFlatFrom : function from label " << entry << " is recomputed" << endl;
 #endif
        } catch (EXCEPTION) {
@@ -557,13 +559,13 @@ static Standard_Integer DNaming_InitLogBook (Draw_Interpretor& /*theDI*/,
     Standard_CString aDocS(theArg[1]);
     if (!DDocStd::GetDocument(aDocS, aDoc)) return 1;  
     if(GetLogBook().IsEmpty()) {
-#ifdef DEBUG
+#ifdef DNAMING_DEB
       cout << "DNaming_InitLogBook : is empty" <<endl;
 #endif
     }
     else {
       GetLogBook().Clear();
-#ifdef DEBUG
+#ifdef DNAMING_DEB
       cout << "DNaming_InitLogBook : cleaned" <<endl;
 #endif
     }
@@ -628,7 +630,7 @@ static Standard_Integer DNaming_ComputeFun (Draw_Interpretor& /*theDI*/,
         cout << "DNaming_ComputeFun : No Driver or Driver failed" << endl;
         return 1;
        }
-#ifdef DEBUG
+#ifdef DNAMING_DEB
       cout <<"DNaming_ComputeFun : function from label " << theArg[2] << " is recomputed" << endl;
 #endif
       return 0;
@@ -686,7 +688,7 @@ static Standard_Integer DNaming_AttachShape (Draw_Interpretor& di,
          if (nb == 7) 
            aGeometry = (Standard_Boolean) Draw::Atoi(a[6]);
          Handle(TNaming_NamedShape) aCont =  DNaming::GetObjectValue(aContext);
-#ifdef DEBUG
+#ifdef DNAMING_DEB
          if(aCont.IsNull() || aCont->IsEmpty())
            cout <<"Wrong Context ..." <<endl;
 #endif
@@ -700,7 +702,7 @@ static Standard_Integer DNaming_AttachShape (Draw_Interpretor& di,
          }
     
          if(!aCont.IsNull()) {
-#ifdef DEBUG
+#ifdef DNAMING_DEB
            TCollection_AsciiString entry;
            TDF_Tool::Entry(aCont->Label(), entry);
            cout << "ContextNS Label = " << entry <<endl;
@@ -1041,7 +1043,7 @@ static Standard_Integer DNaming_PTranslateDXYZ (Draw_Interpretor& di,
                                                const char** a)
 {
   if (nb > 3) {
-#ifdef DEBUG
+#ifdef DNAMING_DEB
     cout << "NB = " << nb <<endl;
 #endif
     Handle(TDocStd_Document) aDocument;   
@@ -1088,7 +1090,7 @@ static Standard_Integer DNaming_PTranslateLine (Draw_Interpretor& di,
                                                const char** a)
 {
   if (nb > 4) {
-#ifdef DEBUG
+#ifdef DNAMING_DEB
     cout << "NB = " << nb <<endl;
 #endif
     Handle(TDocStd_Document) aDocument;   
@@ -1931,7 +1933,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
          isFirst = Standard_False;
          TCollection_AsciiString entry;
          TDF_Tool::Entry(FirstAuxObj->Label(), entry);
-#ifdef DEBUG
+#ifdef DNAMING_DEB
          cout << "First Selection function at " << entry <<endl;
 #endif
        }
@@ -2067,7 +2069,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
        if(isFirst) {
          FirstAuxObj = auxObj;
          isFirst = Standard_False;
-#ifdef DEBUG
+#ifdef DNAMING_DEB
          TCollection_AsciiString entry;
          TDF_Tool::Entry(FirstAuxObj->Label(), entry);
          cout << "First Selection function at " << entry <<endl;
index c42c394a49e5fa6d67dfb641dda5c6057e1389ba..f527269a558bfdede2c3de9529cad2cd88b2e513 100644 (file)
@@ -85,7 +85,7 @@ Standard_Integer DNaming_PointDriver::Execute(TFunction_Logbook& theLog) const
     Handle(TDataStd_UAttribute) aRefPnt = DNaming::GetObjectArg(aFunction,PNTRLT_REF);
     Handle(TNaming_NamedShape) aRefPntNS = DNaming::GetObjectValue(aRefPnt);
     if (aRefPntNS.IsNull() || aRefPntNS->IsEmpty()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
       cout<<"PointDriver:: Ref Point is empty"<<endl;
 #endif
       aFunction->SetFailure(WRONG_ARGUMENT);
index f8756b696a1ef6dd13b98d3c715ce0abab274c37..02d3056fcd11111f246d381f6100fd2e9f4e42f5 100644 (file)
@@ -79,7 +79,7 @@ Standard_Integer DNaming_SphereDriver::Execute(TFunction_Logbook& theLog) const
   Handle(TDataStd_UAttribute) anObject = DNaming::GetObjectArg(aFunction,SPHERE_CENTER);
   Handle(TNaming_NamedShape) aNSCnt = DNaming::GetObjectValue(anObject);
   if (aNSCnt.IsNull() || aNSCnt->IsEmpty()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"SphereDriver:: Center point is null or empty"<<endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
@@ -96,7 +96,7 @@ Standard_Integer DNaming_SphereDriver::Execute(TFunction_Logbook& theLog) const
   
   TopoDS_Shape aCntShape = aNSCnt->Get();
   if(aCntShape.IsNull()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"SphereDriver:: Center point is null"<<endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
index fc72ce984ce3cfbbc5f1db5f29e3b4b376a5f2da..0f0076f8460fb147082d77b5c9b2338ce4885c8a 100644 (file)
@@ -111,7 +111,7 @@ Standard_Integer DNaming_TransformationDriver::Execute(TFunction_Logbook& theLog
   Handle(TNaming_NamedShape) aContextNS;
   aLab.FindAttribute(TNaming_NamedShape::GetID(), aContextNS);
   if (aContextNS.IsNull() || aContextNS->IsEmpty()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"TransformationDriver:: Context is empty"<<endl;
 #endif
     aFunction->SetFailure(WRONG_CONTEXT);
@@ -342,7 +342,7 @@ void DNaming_TransformationDriver::LoadNamingDS (const TDF_Label& theResultLabel
     return;
   const TopoDS_Shape& aSrcShape  = theSourceNS->Get();
   if (aSrcShape.IsNull()) {
-#ifdef DEB
+#ifdef DNAMING_DEB
     cout<<"DNaming_TransformationDriver::LoadNamingDS: The result of the Transform operation is null"<<endl;
 #endif
     return;
index 4bcbddc635921ff33daac07f93275c76ef8330fd..5b1c8204cf7389760db358665dd05f214bb8dd00 100644 (file)
@@ -133,7 +133,7 @@ void DPrsStd::Factory(Draw_Interpretor& theDI)
   DDataStd::AllCommands(theDI);  
   DPrsStd::AllCommands(theDI);
   DDocStd::AllCommands(theDI);
-#ifdef DEB
+#ifdef DPRSSTD_DEB
   cout << "Draw Plugin : All DF commands are loaded" << endl;
 #endif
 }
index 55f02372586379e117f3a791f9a2e7f5645bb762..f9ac0dc2ff8912058c049a22cc6b4722d3c6c192 100644 (file)
@@ -174,7 +174,7 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
     if (!DDF::FindLabel(D->GetData(),arg[2],L)) return 1; 
     Standard_GUID guid;
     TCollection_ExtendedString str = arg[3];
-#ifdef DEB
+#ifdef DPRSSTD_DEB
     cout << "Inputed parameter > " << str   << endl;
 #endif
     if ( str == "A" )  //axis
@@ -195,7 +195,7 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
 //      guid = TSketchStd_Edge::GetID();           //"b3aac90a-5b78-11d1-8940-080009dc3333"
 
     Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(L, guid);
-#ifdef DEB
+#ifdef DPRSSTD_DEB
     cout << "Driver GUID = ";
     prs->GetDriverGUID().ShallowDump(cout);
     cout << "\n";
@@ -240,7 +240,7 @@ static Standard_Integer DPrsStd_AISDriver (Draw_Interpretor& di,
       }
       else {
        TCollection_ExtendedString str = arg[3];
-#ifdef DEB
+#ifdef DPRSSTD_DEB
        cout << "Inputed parameter > " << str   << endl;
 #endif
        if ( str == "A" )  //axis
index 33591da6dd8f67af95179c194dd0ca49b14c52ab..3b9d05c5437fe4f0937c4ea71f261cad36b0ef8d 100644 (file)
@@ -1376,7 +1376,7 @@ void Draft_Modification::Perform ()
          GeomAPI_ProjectPointOnCurve Projector( vtori, Einf1.Geometry() ); //patch
          pvt = Projector.NearestPoint();
 
-#ifdef DEB
+#ifdef DRAFT_DEB
          static Standard_Integer VertexRecomp = 1;
          if (VertexRecomp!=0) {
            cout << "pori :" << vtori.X() << " " << vtori.Y() << " " << vtori.Z() << endl;
@@ -1395,7 +1395,7 @@ void Draft_Modification::Perform ()
            gp_Pnt opvt;
            Einf2.Geometry()->D0(Vinf.Parameter(Edg2), opvt);
 
-#ifdef DEB
+#ifdef DRAFT_DEB
          if (VertexRecomp!=0) {
            cout << "  Edg 2 :" << Vinf.Parameter(Vinf.Edge()) << endl;
            cout << "opvt " << opvt.X() << " " << opvt.Y() << " " << opvt.Z() << endl;
@@ -1609,7 +1609,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
   else if (TypeS == STANDARD_TYPE(Geom_CylindricalSurface)) {
     Standard_Real testdir = Direction.Dot(NeutralPlane.Axis().Direction());
     if (Abs(testdir) <= 1.-Precision::Angular()) {     
-#ifdef DEB
+#ifdef DRAFT_DEB
     cout << "NewSurfaceCyl:Draft_Direction_and_Neutral_Perpendicular" << endl;
 #endif
       return NewS;     
@@ -1617,7 +1617,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     gp_Cylinder Cy = Handle(Geom_CylindricalSurface)::DownCast(S)->Cylinder();     
     testdir = Direction.Dot(Cy.Axis().Direction());
     if (Abs(testdir) <= 1.-Precision::Angular()) {
-#ifdef DEB
+#ifdef DRAFT_DEB
     cout << "NewSurfaceCyl:Draft_Direction_and_Cylinder_Perpendicular" << endl;
 #endif
       return NewS;
@@ -1637,7 +1637,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
       }
 
       if (!isIntDone || i2s.TypeInter() != IntAna_Circle) {
-#ifdef DEB
+#ifdef DRAFT_DEB
     cout << "NewSurfaceCyl:Draft_Intersection_Neutral_Cylinder_NotDone" << endl;
 #endif
        return NewS;
@@ -1674,7 +1674,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     
     Standard_Real testdir = Direction.Dot(NeutralPlane.Axis().Direction());
     if (Abs(testdir) <= 1.-Precision::Angular()) {     
-#ifdef DEB
+#ifdef DRAFT_DEB
     cout << "NewSurfaceCone:Draft_Direction_and_Neutral_Perpendicular" << endl;
 #endif
       return NewS;     
@@ -1684,7 +1684,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     
     testdir = Direction.Dot(Co1.Axis().Direction());
     if (Abs(testdir) <= 1.-Precision::Angular()) {
-#ifdef DEB
+#ifdef DRAFT_DEB
     cout << "NewSurfaceCone:Draft_Direction_and_Cone_Perpendicular" << endl;
 #endif
       return NewS;
@@ -1694,7 +1694,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     IntAna_QuadQuadGeo i2s;
     i2s.Perform(NeutralPlane,Co1,Precision::Angular(),Precision::Confusion());
     if (!i2s.IsDone() || i2s.TypeInter() != IntAna_Circle) {
-#ifdef DEB
+#ifdef DRAFT_DEB
     cout << "NewSurfaceCone:Draft_Intersection_Neutral_Conical_NotDone" << endl;
 #endif
       return NewS;
@@ -1735,7 +1735,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     }
   }
   else {
-#ifdef DEB
+#ifdef DRAFT_DEB
     cout << "NewSurface:Draft_SurfNotYetImplemented" << endl;
 #endif
   }
index 30e6a626d139bcfa5a7e76359df116b3fef3a7c7..30dc26a82be2131e35f97c4d895235f9221585a9 100644 (file)
@@ -516,7 +516,7 @@ void Draw::Load(Draw_Interpretor& theDI, const TCollection_AsciiString& theKey,
       aMsg << aPluginResource->Value(theKey.ToCString());
       aMsg << "; reason: ";
       aMsg << error.ToCString();
-#ifdef DEB
+#ifdef DRAW_DEB
       cout << "could not open: "  << aPluginResource->Value(theKey.ToCString())<< " ; reason: "<< error.ToCString() << endl;
 #endif
       Draw_Failure::Raise(aMsg);
index 95ee63a72565c7616ebd82f1a30de440bff5466d..e982f87564005f433c0b9280dff4d76ecdfa463e 100644 (file)
@@ -561,7 +561,7 @@ Draw_Interpretor::~Draw_Interpretor()
     Tcl_Exit(0);
   }
   catch (Standard_Failure) {
-#ifdef DEB
+#ifdef DRAW_DEB
     cout <<"Tcl_Exit have an exeption" << endl;
 #endif
   }
index 1fb6727d3fae113d6b5ee515b76b456ad2035a41..474f4589e0a706a800de9cde2cb71c1180d7233f 100644 (file)
@@ -48,7 +48,7 @@ static Standard_Boolean FindPluginFile (TCollection_AsciiString& thePluginName,
   // check if the file name has been specified and use default value if not
   if (thePluginName.IsEmpty()) {
     thePluginName += "DrawPlugin";
-#ifdef DEB
+#ifdef DRAW_DEB
     cout << "Plugin file name has not been specified. Defaults to " << thePluginName.ToCString() << endl;
 #endif
   }
@@ -82,7 +82,7 @@ static Standard_Boolean FindPluginFile (TCollection_AsciiString& thePluginName,
       if (aToSetCSFVariable) {
         OSD_Environment aCSFVarEnv ( aCSFVariable, aPluginDir );
         aCSFVarEnv.Build();
-#ifdef DEB
+#ifdef DRAW_DEB
         cout << "Variable " << aCSFVariable.ToCString() << " has not been explicitly defined. Set to " << aPluginDir.ToCString() << endl;
 #endif
         if ( aCSFVarEnv.Failed() ) {
@@ -115,7 +115,7 @@ static void Parse (Draw_MapOfAsciiString& theMap)
       const TCollection_AsciiString& aKey = theMap.FindKey(j);
       TCollection_AsciiString aResource = aKey;
       if(myResources->Find(aResource.ToCString())) {
-#ifdef DEB
+#ifdef DRAW_DEB
        cout << "Parse Value ==> " << myResources->Value(aResource.ToCString()) << endl;
 #endif
        TCollection_AsciiString aValue(myResources->Value(aResource.ToCString()));
@@ -123,7 +123,7 @@ static void Parse (Draw_MapOfAsciiString& theMap)
        Standard_Integer i=1;
        for(;;) {
          TCollection_AsciiString aCurKey = aValue.Token(" \t,", i++);
-#ifdef DEB
+#ifdef DRAW_DEB
          cout << "Parse aCurKey = " << aCurKey.ToCString() << endl;
 #endif
          if(aCurKey.IsEmpty()) break;
@@ -211,12 +211,12 @@ static Standard_Integer Pload (Draw_Interpretor& di,
   for(j = 1; j <= aMapExtent; j++) {
     const TCollection_AsciiString& aKey = aMap.FindKey(j);
     TCollection_AsciiString aResource = aKey;
-#ifdef DEB
+#ifdef DRAW_DEB
       cout << "aResource = " << aResource << endl;
 #endif
     if(myResources->Find(aResource.ToCString())) {
       const TCollection_AsciiString& aValue = myResources->Value(aResource.ToCString()); 
-#ifdef DEB
+#ifdef DRAW_DEB
       cout << "Value ==> " << aValue << endl;
 #endif
        
@@ -234,12 +234,12 @@ static Standard_Integer Pload (Draw_Interpretor& di,
       OSD_File aTclScriptFile ( aTclScriptFileName );
       OSD_File aTclScriptFileDefaults ( aTclScriptFileNameDefaults );
       if (!aTclScriptDir.IsEmpty() && aTclScriptFile.Exists()) {
-#ifdef DEB
+#ifdef DRAW_DEB
        cout << "Load " << aTclScriptFileName << " TclScript" << endl;
 #endif
        di.EvalFile( aTclScriptFileName.ToCString() );
       } else if (!aPluginDir.IsEmpty() && aTclScriptFileDefaults.Exists()) {
-#ifdef DEB
+#ifdef DRAW_DEB
        cout << "Load " << aTclScriptFileNameDefaults << " TclScript" << endl;
 #endif
        di.EvalFile( aTclScriptFileNameDefaults.ToCString() );
index b04654e74a6c0c64a89712aa451502be2b55d88c..0694a16a9cb1fc492c9ee5d56ad2ecf3f163fe84 100644 (file)
@@ -76,5 +76,7 @@ void DrawDim_PlanarDiameter::DrawOn(Draw_Display& dis) const
       return;
     }
   }  
+#ifdef DRAWDIM_DEB
   cout << " DrawDim_PlanarDiameter::DrawOn : dimension error" << endl;
+#endif
 }
index b6bc35f63c9d4ecaca02ce18ad3409febab6f720..690c519a4f94489ae7badc4f8fef1e3e86cfad10 100644 (file)
@@ -112,5 +112,7 @@ void DrawDim_PlanarDistance::DrawOn(Draw_Display& dis) const
       }
     }
   } 
+#ifdef DRAWDIM_DEB
   cout << " DrawDim_PlanarDistance::DrawOn : dimension error" << endl;
+#endif
 }
index ed1ddcb9f9ae4b74d98c0bdf9c11f621073ae770..9b5afdf3845be8ec42899a7883d384b01f0ce2bc 100644 (file)
@@ -74,5 +74,7 @@ void DrawDim_PlanarRadius::DrawOn(Draw_Display& dis) const
       return;
     }
   }  
+#ifdef DRAWDIM_DEB
   cout << " DrawDim_PlanarRadius::DrawOn : dimension error" << endl;
+#endif
 }
index c617bbbfdcc200b5dd04f00cee80a5f01f2b309a..7c3d7cf830df48bca889d9af5ba1c1b5946cf373 100644 (file)
@@ -78,8 +78,9 @@ void DrawDim_Radius::DrawOn(Draw_Display& dis) const
 
 //void AIS_RadiusDimension::ComputeOneFaceRadius(const Handle(Prs3d_Presentation)& aPresentation)
 //{
-
+#ifdef DRAWDIM_DEB
   cout << "entree dans computeonefaceradius"<< endl;
+#endif
   BRepAdaptor_Surface surfAlgo (TopoDS::Face(myFShape));
   Standard_Real uFirst, uLast, vFirst, vLast;
   uFirst = surfAlgo.FirstUParameter();
index b1f1515b9e6f10fdca549b31af337af25f8f5732..d7ea54e4c268edf6f4d7e1b254677b4caf90a472 100644 (file)
@@ -200,7 +200,7 @@ Standard_Boolean FEmTool_Assembly::Solve()
 {
   IsSolved = H->Decompose();
 
-#if DEB
+#if FEMTOOL_DEB
   if (!IsSolved) {
     cout << "Solve Echec  H = " << endl;
     H->OutM();
index 4b681cd64b8b0226a38e14154d5d6fd6345e802c..9fd33742b80bb7b6d1375a70241217c0c8ccb636 100644 (file)
@@ -587,13 +587,17 @@ Storage_BaseDriver& FSD_CmpFile::GetReal(Standard_Real& aValue)
 
   realbuffer[0] = '\0';
   if (!(myStream >> realbuffer)) {
+#ifdef FSD_DEB
     cerr << "%%%ERROR: read error of double at offset " << myStream.tellg() << endl;
     cerr << "\t buffer is" << realbuffer<< endl;
+#endif
     Storage_StreamTypeMismatchError::Raise();
   }
   if (!OSD::CStringToReal(realbuffer,aValue)) {
+#ifdef FSD_DEB
     cerr << "%%%ERROR: read error of double at offset " << myStream.tellg() << endl;
     cerr << "\t buffer is" << realbuffer<< endl;
+#endif
     Storage_StreamTypeMismatchError::Raise();
   }
 
index 626530f248ead4b6d57c6b441f2cad96105bf10b..213f6b68800df57d105d31f8d838f19fa5468498 100755 (executable)
@@ -76,7 +76,7 @@ bool Font_FTFont::Init (const NCollection_String& theFontPath,
   myPointSize = thePointSize;
   if (!myFTLib->IsValid())
   {
-    std::cerr << "FreeType library is unavailable!\n";
+    //std::cerr << "FreeType library is unavailable!\n";
     Release();
     return false;
   }
index a74b8a1f12e3a05c1aaed13130b9b0ec6291b465..ba7b1efcd1cf4f56fddfa1244143dd8a3f68612f 100644 (file)
@@ -217,7 +217,7 @@ static void coonscnd(const Standard_Integer     nb,
        if(scal1 > tolang) {
          Standard_Real killfactor = tolang/scal1;
          stat[i].DoKill(killfactor);
-#ifdef DEB
+#ifdef GEOMFILL_DEB
          cout<<"pb coons cnd coin : "<<i<<" fact = "<<killfactor<<endl; 
 #endif
        }
@@ -561,23 +561,23 @@ void GeomFill_ConstrainedFilling::Build()
       }
       nbd3 += ctr[ii];
     }
-#ifdef DEB
+#ifdef GEOMFILL_DEB
     appclock.Start();
 #endif
     if(nbd3) PerformApprox();
-#ifdef DEB
+#ifdef GEOMFILL_DEB
     appclock.Stop();
 #endif
   }
   appdone = Standard_True;
-#ifdef DEB
+#ifdef GEOMFILL_DEB
   cstclock.Start();
 #endif
   MatchKnots();
   PerformS0();
   PerformS1();
   PerformSurface();
-#ifdef DEB
+#ifdef GEOMFILL_DEB
   cstclock.Stop();
   totclock.Stop();
   Standard_Real tottime, apptime, partime, csttime;
index ac08dccd2093b8d1f3bb5b392304dad95be54f63..018d0eb49509faea1761747a0358efe26e471be1 100644 (file)
@@ -143,7 +143,7 @@ static void smoothlaw(Handle(Law_BSpline)& Law,
     if (Ok) 
       tol = (Tol-tol)/2;
     else {
-#if DEB
+#if GEOMFILL_DEB
       cout << "smooth law echec" << endl;
 #endif
       return; // Echec
@@ -171,7 +171,7 @@ static void smoothlaw(Handle(Law_BSpline)& Law,
       Ok = (tol <= Tol);
     }
     if (!Ok) {
-#if DEB
+#if GEOMFILL_DEB
       cout << "smooth law echec" << endl;
 #endif
     } 
index ee633a87f33ad0ffed5bab8bda2a0d39288e9a40..2ffdfac61b9662a393bdb68cfbc59ee6dbfd699f 100644 (file)
@@ -105,7 +105,7 @@ static void NormalD0(const Standard_Real U, const Standard_Real V, const Handle(
                   NStatus,Normal,OrderU,OrderV);
     
     if (NStatus != CSLib_Defined) {
-#if DEB
+#if GEOMFILL_DEB
       cout << U << ", " << V<< endl;
       for(i=0;i<=MaxOrder;i++)
        for(j=0;j<=MaxOrder;j++){
index ef6c16a7e619cb125a90d75cc6ee7c26f635d7c8..66b041e00ec67ed154c26a8202f232f1a429c4e9 100644 (file)
@@ -296,7 +296,7 @@ Handle(GeomFill_TrihedronLaw) GeomFill_Frenet::Copy() const
         mySnglLen->ChangeValue(i) = Min(Sqrt(2*NullTol/norm), MaxSingular);
       else mySnglLen->ChangeValue(i) = MaxSingular;
     }
-#if DEB
+#if GEOMFILL_DEB
     for(i = 1; i <= mySngl->Length(); i++) {
       cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<endl;
     }
@@ -323,7 +323,7 @@ Handle(GeomFill_TrihedronLaw) GeomFill_Frenet::Copy() const
       mySnglLen->ChangeValue(i) = tmpSeq(i).Y();
     }
   }    
-#if DEB
+#if GEOMFILL_DEB
     cout<<"After merging"<<endl;
     for(i = 1; i <= mySngl->Length(); i++) {
       cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<endl;
@@ -511,7 +511,7 @@ Standard_Boolean
 
       if(RotateTrihedron(Tangent,Normal,BiNormal,aTn) == Standard_False)
         {
-#ifdef DEB
+#ifdef GEOMFILL_DEB
         cout << "Cannot coincide two tangents." << endl;
 #endif
         return Standard_False;
index 020ba9aed6612a0e80dfc0e2e915fbe80b40b661..522516079a9ad3ef58ea3d27b343073d15f7f1b2 100644 (file)
@@ -121,7 +121,7 @@ GeomFill_GuideTrihedronAC::GeomFill_GuideTrihedronAC(const Handle(Adaptor3d_HCur
   Standard_Real Norm = n.Magnitude();
   if (Norm < 1.e-12) {
     Norm = 1;
-#if DEB
+#if GEOMFILL_DEB
     cout << "GuideTrihedronAC : Normal indefinie" << endl;
 #endif
   }
index 14351f285b12528d5291f17c639990bda39fc14b..a037f48b2db991088bc9489803801c2c32b2e997 100644 (file)
@@ -45,7 +45,7 @@
 #include <DrawTrSurf.hxx>
 #endif
 
-#if DEB
+#if GEOMFILL_DEB
 static void TracePlan(const Handle(Geom_Surface)& /*Plan*/)
 {
   cout << "Pas d'intersection Guide/Plan" << endl;     
@@ -142,7 +142,7 @@ GeomFill_GuideTrihedronPlan::GeomFill_GuideTrihedronPlan (const Handle(Adaptor3d
 
       Int.Perform(myTrimG, Pl); // intersection plan / guide 
       if (Int.NbPoints() == 0) {
-#if DEB
+#if GEOMFILL_DEB
        TracePlan(Plan);
 #endif
         w = (fabs(myGuide->LastParameter() -w) > fabs(myGuide->FirstParameter()-w) ? myGuide->FirstParameter() : myGuide->LastParameter());
@@ -179,7 +179,7 @@ GeomFill_GuideTrihedronPlan::GeomFill_GuideTrihedronPlan (const Handle(Adaptor3d
           }
         }
         
-#if DEB                
+#if GEOMFILL_DEB               
         if (Abs(Diff) > DeltaG) {
           cout << "Trihedron Plan Diff on Guide : " << 
             Diff << endl;
@@ -254,7 +254,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
       BiNormal.Normalized();   
     }
   else { // Erreur...
-#if DEB
+#if GEOMFILL_DEB
     cout << "D0 :";
     // plan ortho a la trajectoire pour determiner Pprime
     Handle(Geom_Plane) Plan = new (Geom_Plane)(P, Tangent);
@@ -349,7 +349,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
                              DTangent.Crossed(Normal));
     }
   else {// Erreur...
-#if DEB
+#if GEOMFILL_DEB
     cout << "D1 :";
     // plan ortho a la trajectoire
     Handle(Geom_Plane) Plan = new (Geom_Plane)(P, Tangent);
index d52bcb71b0d91af7fa232bdcb718f19512d66ddb..ee8ff094af98f629031229e6b4d0623c8d245618 100644 (file)
@@ -68,7 +68,7 @@ static Standard_Integer Affich = 0;
 //function : TraceRevol
 //purpose  : Trace la surface de revolution (Debug)
 //=======================================================================
-#if DEB
+#if GEOMFILL_DEB
 static void TraceRevol(const Standard_Real t,
                        const Standard_Real s,
                       const Handle(GeomFill_TrihedronWithGuide)& Law,
@@ -343,7 +343,7 @@ static void InGoodPeriod(const Standard_Real Prec,
     Standard_Real theU = 0., theV = 0.;
     
     if (!DistMini.IsDone() || DistMini.NbExt() == 0) {
-#if DEB
+#if GEOMFILL_DEB
       cout <<"LocationGuide : Pas d'intersection"<<endl;
       TraceRevol(t, U, myLaw, mySec, myCurve, Trans);
 #endif 
@@ -362,7 +362,7 @@ static void InGoodPeriod(const Standard_Real Prec,
        
        if (Result.IsDone() && 
            (Result.FunctionSetErrors().Norm() < TolRes(1)*TolRes(1)) ) {
-#if DEB
+#if GEOMFILL_DEB
          cout << "Ratrappage Reussi !" << endl;
 #endif
          SOS = Standard_True;
@@ -373,7 +373,7 @@ static void InGoodPeriod(const Standard_Real Prec,
           theV = PInt.V();
        }  
        else {
-#if DEB
+#if GEOMFILL_DEB
          cout << "Echec du Ratrappage !" << endl;
 #endif
        }
@@ -419,7 +419,7 @@ static void InGoodPeriod(const Standard_Real Prec,
        }
       }
       
-#if DEB                
+#if GEOMFILL_DEB               
       if (Abs(Diff) > DeltaG) {
        cout << "Location :: Diff on Guide : " << 
          Diff << endl;
@@ -435,7 +435,7 @@ static void InGoodPeriod(const Standard_Real Prec,
          InGoodPeriod (OldAngle, 2*M_PI, Angle);
          Diff = Angle - OldAngle;
        }
-#if DEB
+#if GEOMFILL_DEB
       if (Abs(Diff) > M_PI/4) {
        cout << "Diff d'angle trop grand !!" << endl;
       } 
@@ -451,7 +451,7 @@ static void InGoodPeriod(const Standard_Real Prec,
        InGoodPeriod (myPoles2d->Value(2, ii-1).Y(), UPeriod, v);
       }
       Diff = v -  myPoles2d->Value(2, ii-1).Y();
-#if DEB
+#if GEOMFILL_DEB
       if (Abs(Diff) > (Ul-Uf)/(2+NbKnots)) {
        cout << "Diff sur section trop grand !!" << endl;
       } 
@@ -630,7 +630,7 @@ static void InGoodPeriod(const Standard_Real Prec,
       M.SetCols(n, b, t);
     }
     else {
-#if DEB
+#if GEOMFILL_DEB
       cout << "LocationGuide::D0 : No Result !"<<endl;
       TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
 #endif
@@ -702,7 +702,7 @@ static void InGoodPeriod(const Standard_Real Prec,
       M.SetCols(n, b, t);
     }
     else {
-#if DEB
+#if GEOMFILL_DEB
       Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
       cout << "LocationGuide::D0 : No Result !"<<endl;
       TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
@@ -801,7 +801,7 @@ static void InGoodPeriod(const Standard_Real Prec,
              Ga.Solve (DEDT.Opposite(), DSDT);// resolution du syst. 
            }//if
          else {
-#if DEB
+#if GEOMFILL_DEB
            cout << "DEDX = " << DEDX << endl;
            cout << "DEDT = " << DEDT << endl;
 #endif
@@ -865,7 +865,7 @@ static void InGoodPeriod(const Standard_Real Prec,
        }//if_Result
 
       else {
-#if DEB
+#if GEOMFILL_DEB
        cout << "LocationGuide::D1 : No Result !!"<<endl;
        TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
 #endif
@@ -1116,7 +1116,7 @@ Standard_Boolean GeomFill_LocationGuide::D2(const Standard_Real Param,
 
        }//if_result
       else {
-#if DEB
+#if GEOMFILL_DEB
        cout << "LocationGuide::D2 : No Result !!" <<endl;
        TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
 #endif
index b166353a7fcdf9b99b5fa1cb6683d744077cca4c..80c68f647cbe957c2e540714a9ab426d925eb306 100644 (file)
@@ -50,7 +50,7 @@
 #include <gp_Lin.hxx>
 #include <gp_Circ.hxx>
 
-#ifdef DEB
+#ifdef GEOMFILL_DEB
 # ifdef DRAW
 #  include <DrawTrSurf.hxx>
 # endif
@@ -58,7 +58,7 @@ static Standard_Boolean Affich = 0;
 static Standard_Integer NbSurf = 0;
 #endif
 
-#ifdef DEB
+#ifdef GEOMFILL_DEB
 // verification des fonctions de derivation D1 et D2 par differences finies
 Standard_Boolean verifD1(const TColgp_Array1OfPnt& P1,
                         const TColStd_Array1OfReal& W1,
@@ -362,7 +362,7 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
   if (NullWeight) return Standard_False;
 
   // verif par diff finies sous debug sauf pour les surfaces periodiques
-#ifdef DEB
+#ifdef GEOMFILL_DEB
   if (!mySurface->IsVPeriodic()) {
     Standard_Real pas = 1.e-6, wTol = 1.e-4, pTol = 1.e-3;
     Standard_Real V1,V2;
@@ -456,7 +456,7 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
   if (NullWeight) return Standard_False;
 
   // verif par diff finies sous debug sauf pour les surfaces periodiques
-#ifdef DEB
+#ifdef GEOMFILL_DEB
   if (!mySurface->IsVPeriodic()) {
     Standard_Real V1,V2;
     Standard_Boolean ok1,ok2;
@@ -611,7 +611,7 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
   if (mySurface->VDegree()<2) {
     mySurface->IncreaseDegree(mySurface->UDegree(),2);
   }
-#ifdef DEB
+#ifdef GEOMFILL_DEB
   NbSurf++;
   if (Affich) {
 #ifdef DRAW
index d882227051d3f3a915f005cdad6ff897a0c70ee2..52abf5bb50b2cfaeb09daec6e2a49e518e49cd32 100644 (file)
@@ -498,7 +498,7 @@ void GeomFill_Pipe::Init(const Handle(Geom_Curve)& Path,
     }
 
   case GeomFill_IsDarboux :
-#if DEB
+#if GEOMFILL_DEB
     {
       cout << "Option Darboux: non realisable" << endl; 
     }
@@ -875,7 +875,7 @@ void GeomFill_Pipe::Perform(const Standard_Real Tol,
                 myAdpPath->LastParameter(),
                 Tol, Tol, 0., 0.01,
                 TheConti, DegMax, NbMaxSegment);
-#if DEB
+#if GEOMFILL_DEB
    cout << "Tuyau : ";
    App.Dump(cout);
    cout << endl;
index b8813915cfb7fee75e94ede6a68c4fe1e0e9e4f0..9075c4c8a8c956a9619950d37a7496b0a359db9e 100644 (file)
@@ -581,7 +581,7 @@ void GeomFill_SectionPlacement::Perform(const Handle(Adaptor3d_HCurve)& Path,
           }
           }
     */
-#if DEB
+#if GEOMFILL_DEB
        if (Intersector.NbPoints() == 0) {
          Intersector.Dump();
        } 
index b74a2ee3f48536cdd999d0dd332ff8b05719b5f9..b3519d6ea37b97bd688afb0025fb687d15acb217 100644 (file)
@@ -282,7 +282,7 @@ GeomFill_Sweep::GeomFill_Sweep(const Handle(GeomFill_LocationLaw)& Location,
   if (Approx.IsDone()) {
     Ok = Standard_True;
 
-#if DEB
+#if GEOMFILL_DEB
     Approx.Dump(cout);
 #endif
     
@@ -452,7 +452,7 @@ GeomFill_Sweep::GeomFill_Sweep(const Handle(GeomFill_LocationLaw)& Location,
                                   Segmax, 
                                   eval,
                                   Preferentiel);
-#if DEB
+#if GEOMFILL_DEB
   Approx.Dump(cout);
 #endif
 
@@ -1034,7 +1034,7 @@ static Standard_Boolean IsSweepParallelSpine (const Handle(GeomFill_LocationLaw)
       mySurface = new (Geom_RectangularTrimmedSurface)
        (S,UFirst, ULast, Standard_True);
 
-#if DEB
+#if GEOMFILL_DEB
   if (isUPeriodic && !mySurface->IsUPeriodic()) 
     cout<<"Pb de periodicite en U" << endl;
   if (isUPeriodic && !mySurface->IsUClosed())
index bba3f202c6df8478d172356357b771fd9734d446..09c2740a6ce318847f8e5f63f8ef2096a919cf52 100644 (file)
@@ -353,7 +353,9 @@ void GeomFill_SweepSectionGenerator::Perform(const Standard_Boolean Polynomial)
       }
       else
        if (D1Ref.IsOpposite(D1, Precision::Angular()))
+#ifdef GEOMFILL_DEB
          cout <<"Que fais-je ???? " << endl;
+#endif
 
       // TR is the transformation between (i-1) section and the i-th.
       TR = Rot * Trans;
index 4cff60df6386511377ffbb9829b209ef34593195..e3984aeab891cfce2d3b22dfe710b862183b88c5 100644 (file)
@@ -1748,7 +1748,7 @@ void GeomLib::ExtendSurfByLength(Handle(Geom_BoundedSurface)& Surface,
     }
 
     if (NullWeight) {
-#if DEB
+#if GEOMLIB_DEB
       cout << "Echec de l'Extension rationnelle" << endl;    
 #endif
       lambmin /= 3.;
@@ -1848,7 +1848,7 @@ void GeomLib::Inertia(const TColgp_Array1OfPnt& Points,
 
   math_Jacobi J(M);
   if (!J.IsDone()) {
-#if DEB
+#if GEOMLIB_DEB
     cout << "Erreur dans Jacobbi" << endl;
     M.Dump(cout);
 #endif
index 03b43ecb0f76359ef47b59a5eacc35468e6856bb..413bfe02a6d8a4010fe723d60beb69a139963e3f 100644 (file)
@@ -325,7 +325,7 @@ Handle(IGESData_IGESEntity) GeomToIGES_GeomCurve::TransferCurve
       }
     }
     catch ( Standard_Failure ) {
-#ifdef DEB
+#ifdef GEOMTOIGES_DEB
       cout << "Warning: GeomToIGES_GeomCurve: can't trim bspline" << endl;
       cout << "Warning: Exception in Segment(): " ;
       Standard_Failure::Caught()->Print(cout);
@@ -845,7 +845,7 @@ Handle(IGESData_IGESEntity) GeomToIGES_GeomCurve::TransferCurve
       return res;
     }
     catch(Standard_Failure){
-#ifdef DEB
+#ifdef GEOMTOIGES_DEB
       cout << "writing non-planar offset curve."<<endl;
       cout << "Warning: GeomConvert::CurveToBSplineCurve raised an exception: ";
       Standard_Failure::Caught()->Print(cout);
index 1a263335718406de189416272677e5f19a7226a1..b30e496000720d93b12cbae02daa68f6bece3a69 100644 (file)
@@ -67,7 +67,7 @@ GeomToStep_MakeBoundedCurve::GeomToStep_MakeBoundedCurve ( const Handle(Geom_Bou
     }
   }
   else {
-#ifdef DEB
+#ifdef GEOMTOSTEP_DEB
     cout<<"MakeBoundedCurve, type : "<<C->DynamicType()->Name()<<" not processed"<<endl;
 #endif
     done = Standard_False;
index 55d922f6ba7aeccd22b1425e15f7bec21bb2fd7f..5a5f02416918d0961423892ee739a167c9e6906c 100644 (file)
@@ -59,7 +59,7 @@ GeomToStep_MakeConic::GeomToStep_MakeConic ( const Handle(Geom_Conic)& C)
     theConic = MkParabola.Value();
   }
   else {
-#ifdef DEBUG
+#ifdef GEOMTOSTEP_DEB
     cout << "3D Curve Type   : " << C->DynamicType() << endl;
 #endif
     done = Standard_False;
@@ -96,7 +96,7 @@ GeomToStep_MakeConic::GeomToStep_MakeConic ( const Handle(Geom2d_Conic)& C)
   else {
     // Attention : Other 2d conics shall be implemented ...
     //             To be performed later !
-#ifdef DEBUG
+#ifdef GEOMTOSTEP_DEB
     cout << "2D conic not yet implemented" << endl;
 #endif
     done = Standard_False;
index d40a852cb3d7cca1c0e1d2bb31e6dc237d7741b2..417b33f7ecea67da83b2ae778a6af1b0fcf01a96 100644 (file)
@@ -73,7 +73,7 @@ GeomToStep_MakeCurve::GeomToStep_MakeCurve ( const Handle(Geom_Curve)& C)
       B = BZ;
     }
     else {
-#ifdef DEB
+#ifdef GEOMTOSTEP_DEB
       cout<<"GeomToStep_MakeCurve, TrimmedCurve, BasisCurve is transferred not trimmed"<<endl;
       cout<<"BasisCurve Type : "<<B->DynamicType()->Name()<<endl;
 #endif
@@ -114,7 +114,7 @@ GeomToStep_MakeCurve::GeomToStep_MakeCurve ( const Handle(Geom2d_Curve)& C)
       Handle(Geom2d_Circle) theC2d = Handle(Geom2d_Circle)::DownCast(C);
       gp_Circ2d C2d = theC2d->Circ2d();
       if (!C2d.IsDirect()) {
-#ifdef DEB
+#ifdef GEOMTOSTEP_DEB
        cout << "Warning : Circle converted to BSpline." << endl;
 #endif
        Handle(Geom2d_BSplineCurve) aBSplineCurve2d = 
@@ -132,7 +132,7 @@ GeomToStep_MakeCurve::GeomToStep_MakeCurve ( const Handle(Geom2d_Curve)& C)
       Handle(Geom2d_Ellipse) theE2d = Handle(Geom2d_Ellipse)::DownCast(C);
       gp_Elips2d E2d = theE2d->Elips2d();
       if (!E2d.IsDirect()) {
-#ifdef DEB
+#ifdef GEOMTOSTEP_DEB
        cout << "Warning : Ellipse converted to BSpline." << endl;
 #endif
        Handle(Geom2d_BSplineCurve) aBSplineCurve2d = 
index 456fe03c53a0ab7b086f0566da6a8490e1c2d19d..f820a031b0c35e84317a995c87ddb24af91fb852 100644 (file)
@@ -68,7 +68,7 @@ GeomToStep_MakeSurface::GeomToStep_MakeSurface ( const Handle(Geom_Surface)& S)
   }
   else {
     done = Standard_False;
-#ifdef DEB
+#ifdef GEOMTOSTEP_DEB
     cout << " unknown type " << S->DynamicType()->Name() << endl;
 #endif
   }
index e089f0bdd72ffbee3764b04125f25cb66815c860..b90a904dd8884723ae8acd3a535dae10ba6270f9 100644 (file)
@@ -827,7 +827,7 @@ Standard_IStream& GeomTools_Curve2dSet::ReadCurve2d(Standard_IStream& IS,
     }
   }
   catch(Standard_Failure) {
-#ifdef DEB
+#ifdef GEOMTOOLS_DEB
     Handle(Standard_Failure) anExc = Standard_Failure::Caught();
     cout <<"EXCEPTION in GeomTools_Curve2dSet::ReadCurve2d(..)!!!" << endl;
     cout << anExc << endl;
index a7e98385f8abdec6f71b15da60a2e47817fa5399..90ad9fb772af9ff6276214881b82cbe92d0d110f 100644 (file)
@@ -848,7 +848,7 @@ Standard_IStream& GeomTools_CurveSet::ReadCurve(Standard_IStream& IS,
     }
   }
   catch(Standard_Failure) {
-#ifdef DEB
+#ifdef GEOMTOOLS_DEB
     Handle(Standard_Failure) anExc = Standard_Failure::Caught();
     cout <<"EXCEPTION in GeomTools_CurveSet::ReadCurve(..)!!!" << endl;
     cout << anExc << endl;
index 5bb8c8f1f74f42ae18c5ba41c265e754e167762a..777a2cbf1e6736a5c56bb3586b7ed1b2959dadd3 100644 (file)
@@ -1041,7 +1041,7 @@ Standard_IStream& GeomTools_SurfaceSet::ReadSurface(Standard_IStream& IS,
     }
   }
   catch(Standard_Failure) {
-#ifdef DEB
+#ifdef GEOMTOOLS_DEB
     Handle(Standard_Failure) anExc = Standard_Failure::Caught();
     cout <<"EXCEPTION in GeomTools_SurfaceSet::ReadSurface(..)!!!" << endl;
     cout << anExc << endl;
index e888078d51025d11821de621096a820db8658427..e03e0938c412f63fcc2302bee2e8a1b584533270 100644 (file)
@@ -282,7 +282,9 @@ static Standard_Integer intersect(Draw_Interpretor& di, Standard_Integer n, cons
 {
   if( n < 2) 
   {
+#ifdef GEOMLITETEST_DEB
     cout<< "2dintersect curve curve [Tol]"<<endl;
+#endif
     return 1;
   }
   Standard_Integer k = 1;
index f21eca6b2d4615fc5e6e6c18cc01227dce6501ec..e359cabec9160b1611e0866ed34a937ecefd6775 100644 (file)
@@ -419,7 +419,7 @@ static Standard_Integer smoothing (Draw_Interpretor& di,Standard_Integer n, cons
     if (Tolerance>0) { Variation.SetWithMinMax(Standard_True);}
     Variation.Approximate();
 
-#  ifdef DEB
+#  ifdef GEOMLITETEST_DEB
     //Variation.Dump(cout);
     Standard_SStream aSStream;
     Variation.Dump(aSStream);
@@ -464,7 +464,7 @@ static Standard_Integer smoothing (Draw_Interpretor& di,Standard_Integer n, cons
     Variation.SetTolerance( Abs(Tolerance));
     if (Tolerance>0) { Variation.SetWithMinMax(Standard_True);}
     Variation.Approximate();
-#     ifdef DEB
+#     ifdef GEOMLITETEST_DEB
     //Variation.Dump(cout);
     Standard_SStream aSStream;
     Variation.Dump(aSStream);
index bbef8faaf602baa3b70cb38b6807a9ab518d41a6..0df6616415d55a634c2303877b105e714b3e20d1 100644 (file)
@@ -56,8 +56,10 @@ TCollection_AsciiString Graphic3d_TextureRoot::TexturesFolder()
 
     if (VarName.IsEmpty())
     {
+#ifdef GRAPHIC3D_DEB
       std::cerr << "Both environment variables CSF_MDTVTexturesDirectory and CASROOT are undefined!\n"
                 << "At least one should be defined to use standard Textures.\n";
+#endif
       Standard_Failure::Raise ("CSF_MDTVTexturesDirectory and CASROOT are undefined");
       return VarName;
     }
@@ -68,8 +70,10 @@ TCollection_AsciiString Graphic3d_TextureRoot::TexturesFolder()
     OSD_File aTextureFile (aTexture);
     if (!aDir.Exists() || !aTextureFile.Exists())
     {
+#ifdef GRAPHIC3D_DEB
       std::cerr << " CSF_MDTVTexturesDirectory or CASROOT not correctly setted\n";
       std::cerr << " not all files are found in : "<< VarName.ToCString() << std::endl;
+#endif
       Standard_Failure::Raise ("CSF_MDTVTexturesDirectory or CASROOT not correctly setted");
       return VarName;
     }
index 8b262127a37a496cec0ba5b762d6812b049ec6cb..a36948b1528964de3b7465538bfefef91eb5c423 100644 (file)
@@ -200,7 +200,7 @@ public:
   }
   //-- ============================================================
   void SetDim(const Standard_Integer n) {
-#ifdef DEB
+#ifdef HLRBREP_DEB
     cout<<"\n@#@#@#@#@# SetDim "<<n<<endl;
 #endif
     if(UV) 
@@ -1353,7 +1353,7 @@ void HLRBRep_Data::NextInterference ()
                  }
                  else {
                    myNbPoints = myNbSegments = 0;
-#ifdef DEB
+#ifdef HLRBREP_DEB
                    cout << "HLRBRep_Data::NextInterference : "; 
                    if (myLE == myFE) 
                      cout << "Edge " << myLE 
@@ -1519,7 +1519,7 @@ void HLRBRep_Data::EdgeState (const Standard_Real p1,
     else {
       stbef = TopAbs_OUT;
       staft = TopAbs_OUT;
-#ifdef DEB
+#ifdef HLRBREP_DEB
     cout << "HLRBRep_Data::EdgeState : undefined" << endl;
 #endif
     }
@@ -1527,7 +1527,7 @@ void HLRBRep_Data::EdgeState (const Standard_Real p1,
   else {
     stbef = TopAbs_OUT;
     staft = TopAbs_OUT; 
-#ifdef DEB
+#ifdef HLRBREP_DEB
     cout << "HLRBRep_Data::EdgeState : undefined" << endl;
 #endif
   }
@@ -1592,7 +1592,7 @@ HLRBRep_Data::HidingStartLevel (const Standard_Integer E,
     else if (p > param + tolpar)
       Loop = Standard_False;
     else {
-#ifdef DEB  
+#ifdef HLRBREP_DEB  
       cout << "HLRBRep_Data::HidingStartLevel : ";
       cout << "Bad Parameter." << endl;
 #endif
@@ -1621,12 +1621,10 @@ TopAbs_State HLRBRep_Data::Compare (const Standard_Integer E,
 //=======================================================================
 
 
-#ifdef DEB
 Standard_Boolean HLRBRep_Data::OrientOutLine (const Standard_Integer I, HLRBRep_FaceData& FD)
-#else
-Standard_Boolean HLRBRep_Data::OrientOutLine (const Standard_Integer, HLRBRep_FaceData& FD)
-#endif
 {
+  (void)I; // avoid compiler warning
+
   const Handle(HLRAlgo_WiresBlock)& wb = FD.Wires();
   Standard_Integer nw = wb->NbWires();
   Standard_Integer iw1,ie1,ne1;
@@ -1678,7 +1676,7 @@ Standard_Boolean HLRBRep_Data::OrientOutLine (const Standard_Integer, HLRBRep_Fa
            (iFaceGeom,pu,pv,V);
          gp_Vec Nm = mySLProps.Normal();
          if (curv == 0) {
-#ifdef DEB  
+#ifdef HLRBREP_DEB  
            cout << "HLRBRep_Data::OrientOutLine " << I;
            cout << " Edge " << myFE << " : ";
            cout << "CurvatureValue == 0." << endl;
@@ -1691,7 +1689,7 @@ Standard_Boolean HLRBRep_Data::OrientOutLine (const Standard_Integer, HLRBRep_Fa
          Nm.Transform(T);
          Nm.Cross(Tg);
          if (Tg.Magnitude() < gp::Resolution()) {
-#ifdef DEB  
+#ifdef HLRBREP_DEB  
            cout << "HLRBRep_Data::OrientOutLine " << I;
            cout << " Edge " << myFE << " : ";
            cout << "Tg.Magnitude() == 0." << endl;
@@ -1713,7 +1711,7 @@ Standard_Boolean HLRBRep_Data::OrientOutLine (const Standard_Integer, HLRBRep_Fa
          eb1->Orientation(ie1,myFEOri);
        }
        else {
-#ifdef DEB  
+#ifdef HLRBREP_DEB  
          cout << "HLRBRep_Data::OrientOutLine " << I;
          cout << " Edge " << myFE << " : ";
          cout << "UVPoint not found, OutLine not Oriented" << endl;
index f3514323b838f1c56cc86c5b03f89ab78f018811..354e78a52fb3759f00ea45fbbcd52b31a95987d1 100644 (file)
@@ -1280,7 +1280,7 @@ InitBiPointsWithConnexity (const Standard_Integer e,
        ZTI2 = Z2 = Nod12PntZ;
        if      (Nod12Edg1 ==  (Standard_Boolean) e) U2 = Nod12PCu1;
        else if (Nod12Edg2 ==  (Standard_Boolean) e) U2 = Nod12PCu2;
-#ifdef DEB
+#ifdef HLRBREP_DEB
        else {
          cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
          cout << "Parameter error on Node " << i1p2 << endl;
@@ -1332,7 +1332,7 @@ InitBiPointsWithConnexity (const Standard_Integer e,
            ZTI2 = Z2 = Nod12PntZ;
            if      (Nod12Edg1 ==  (Standard_Boolean) e) U2 = Nod12PCu1;
            else if (Nod12Edg2 ==  (Standard_Boolean) e) U2 = Nod12PCu2;
-#ifdef DEB
+#ifdef HLRBREP_DEB
            else {
              cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
              cout << "Parameter error on Node " << i1p2 << endl;
@@ -1450,7 +1450,7 @@ InitBiPointsWithConnexity (const Standard_Integer e,
        ZTI2 = Z2 = Nod12PntZ;
        if      (Nod12Edg1 == (Standard_Boolean) e) U2 = Nod12PCu1;
        else if (Nod12Edg2 == (Standard_Boolean) e) U2 = Nod12PCu2;
-#ifdef DEB
+#ifdef HLRBREP_DEB
        else {
          cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
          cout << "Parameter error on Node " << i1p2 << endl;
@@ -1899,7 +1899,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod11PntZ = Z3;
       if      (Nod11Edg1 == (Standard_Boolean) e) Nod11PCu1 = U3;
       else if (Nod11Edg2 == (Standard_Boolean) e) Nod11PCu2 = U3;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i1p1 << endl;
@@ -1937,7 +1937,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod12PntZ = Z3;
       if      (Nod12Edg1 == (Standard_Boolean) e) Nod12PCu1 = U3;
       else if (Nod12Edg2 == (Standard_Boolean) e) Nod12PCu2 = U3;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i1p2 << endl;
@@ -2062,7 +2062,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod11PntZ = Z3;
       if      (Nod11Edg1 == (Standard_Boolean) e) Nod11PCu1 = U3;
       else if (Nod11Edg2 == (Standard_Boolean) e) Nod11PCu2 = U3;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i1p1 << endl;
@@ -2076,7 +2076,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod21PntZ  = Z3;
       if      (Nod21Edg1 == (Standard_Boolean) e) Nod21PCu1 = U3;
       else if (Nod21Edg2 == (Standard_Boolean) e) Nod21PCu2 = U3;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i2p1 << endl;
@@ -2119,7 +2119,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod12PntZ = Z3;
       if      (Nod12Edg1 == (Standard_Boolean) e) Nod12PCu1 = U3;
       else if (Nod12Edg2 == (Standard_Boolean) e) Nod12PCu2 = U3;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i1p2 << endl;
@@ -2133,7 +2133,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod22PntZ  = Z3;
       if      (Nod22Edg1 == (Standard_Boolean) e) Nod22PCu1 = U3;
       else if (Nod22Edg2 == (Standard_Boolean) e) Nod22PCu2 = U3;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i2p2 << endl;
@@ -2283,7 +2283,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod11PntZ = Z3;
       if      (Nod11Edg1 == (Standard_Boolean) e) Nod11PCu1 = U3;
       else if (Nod11Edg2 == (Standard_Boolean) e) Nod11PCu2 = U3;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i1p1 << endl;
@@ -2297,7 +2297,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod21PntZ  = Z3;
       if      (Nod21Edg1 == (Standard_Boolean) e) Nod21PCu1 = U3;
       else if (Nod21Edg2 == (Standard_Boolean) e) Nod21PCu2 = U3;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i2p1 << endl;
@@ -2340,7 +2340,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod12PntZ = Z4;
       if      (Nod12Edg1 == (Standard_Boolean) e) Nod12PCu1 = U4;
       else if (Nod12Edg2 == (Standard_Boolean) e) Nod12PCu2 = U4;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i1p2 << endl;
@@ -2354,7 +2354,7 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       Nod22PntZ  = Z4;
       if      (Nod22Edg1 == (Standard_Boolean) e) Nod22PCu1 = U4;
       else if (Nod22Edg2 == (Standard_Boolean) e) Nod22PCu2 = U4;
-#ifdef DEB
+#ifdef HLRBREP_DEB
       else {
        cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
        cout << "Parameter error on Node " << i2p2 << endl;
index 2e21990fa53dc028b72ead88e21af177bea65efb..4f7d7622123ea247d6c9b8b10c239c699179994b 100644 (file)
@@ -42,7 +42,7 @@ static Handle(IFSelect_Profile) thealiases;
   if (thedico.IsNull()) thedico = new Dico_DictionaryOfInteger;
   Standard_Integer& num = thedico->NewItem(command,deja,Standard_True);
   if (deja) {
-#ifdef DEB
+#ifdef IFSELECT_DEB
     cout<<"****  XSTEP commands, name conflict on "<<command<<" first defined remains  ****"<<endl;
 //    Standard_DomainError::Raise("IFSelect_Activator : Add");
 #endif
index 43941c4dd258782b0e174f4b0e4c4a2eac071529..a18898a17140c7355124c3d8e9c194d557b62db0 100644 (file)
@@ -231,7 +231,7 @@ Standard_Boolean IGESCAFControl_Reader::Transfer (Handle(TDocStd_Document) &doc)
         else {
           Handle(IGESGraph_Color) color = Handle(IGESGraph_Color)::DownCast ( ent->Color() );
           if ( color.IsNull() ) {
-#ifdef DEB
+#ifdef IGESCAFCONTROL_DEB
             cout << "Error: Unrecognized type of color definition" << endl;
 #endif
             IsColor = Standard_False;
index 3c7ab22805e9dc3b313db488a3b98d0dd8561e94..6b979b9e0cd7de2c60289e9d40681e8ac31b6eca 100644 (file)
@@ -368,11 +368,8 @@ static void AttachLayer (const Handle(Transfer_FinderProcess) &FP,
     Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FP, localShape );
     if ( FP->FindTypedTransient ( mapper, STANDARD_TYPE(IGESData_IGESEntity), Igesent ) ) {
       Igesent->InitLevel( 0, localIntName );
-// #ifdef DEB
-//       cout << "Init layer " << localIntName << " for "<< localShape.TShape()->DynamicType()->Name() << endl;
-// #endif
     }
-#ifdef DEB
+#ifdef IGESCAFCONTROL_DEB
     else cout << "Warning: Can't find entity for shape in mapper" << endl;
 #endif
   }
index 6ab50c9b0629ad6381c9fa055b30e63c01e69f02..41fe4642818d4e8807a85cfd0544cea2ff1ab185 100644 (file)
@@ -305,7 +305,7 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
          TopoDS_Edge edge3d = Lsewd3d->Edge (iedge), edge2d = Lsewd2d->Edge (iedge);
          if (!IGESToBRep::TransferPCurve (edge2d, edge3d, myface)) continue;
          if (sfe->FixReversed2d (edge3d, myface)) {
-#ifdef DEB
+#ifdef IGESCONTROL_DEB
            cout << "Warning: IGESToBRep_IGESBoundary: 2D curve of edge was reversed" << endl;
 #endif
          }
@@ -325,19 +325,19 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
          Standard_Real maxdev = BRep_Tool::Tolerance (edge3d);
          //pdn 08.04.99 S4135 recomputing only if deviation is greater than maxtol
          if (maxdev > maxtol) { //:e2
-#ifdef DEB
+#ifdef IGESCONTROL_DEB
            cout << "Warning: IGESToBRep_IGESBoundary: Deviation = " << maxdev << endl;
 #endif
            ShapeFix_ShapeTolerance().SetTolerance (edge3d, Precision::Confusion());
            for (Standard_Integer ie = 1; ie <= iedge; ie++)
              ShapeBuild_Edge().RemovePCurve (Lsewd3d->Edge (ie), myface);
            if (Preferred3d) {
-#ifdef DEB
+#ifdef IGESCONTROL_DEB
              cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 2D is ignored" << endl;
 #endif
            }
            else {
-#ifdef DEB
+#ifdef IGESCONTROL_DEB
              cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 3D is ignored" << endl;
 #endif
              Lsewd = Lsewd2d;
@@ -348,7 +348,7 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
       }
       okCurve = okCurve && ShapeAlgo::AlgoContainer()->ConnectNextWire (saw, Lsewd, maxtol, distmin, revsewd, revnextsewd);
       if (!okCurve) {
-#ifdef DEB
+#ifdef IGESCONTROL_DEB
        cout << "Warning: IGESToBRep_IGESBoundary: Curves " << i - 1 << " and " << i << " cannot be connected" << endl;
 #endif
         Gsewd3d = new ShapeExtend_WireData;
index e71a7c9f66e3b65ba08553f113f6cc56f993e318..58fbfbd516f47a85bfb96b4bbb1a177a446fa38f 100644 (file)
@@ -245,7 +245,7 @@ Standard_Boolean IGESControl_Writer::Write
   if (!S) return Standard_False;
   ComputeModel();
   Standard_Integer nbEnt = themod->NbEntities();
-#ifdef DEBUG
+#ifdef IGESCONTROL_DEB
   cout<<" IGES Write : "<<nbEnt<<" ent.s"<< flush;
 #endif
   if(!nbEnt)
@@ -253,12 +253,12 @@ Standard_Boolean IGESControl_Writer::Write
   IGESData_IGESWriter IW (themod);
 //  ne pas oublier le mode fnes ... a transmettre a IW
   IW.SendModel (IGESSelect_WorkLibrary::DefineProtocol());
-#ifdef DEBUG
+#ifdef IGESCONTROL_DEB
   cout<<" ...  ecriture  ..."<<flush;
 #endif
   if (fnes) IW.WriteMode() = 10;
   Standard_Boolean status = IW.Print(S);
-#ifdef DEBUG
+#ifdef IGESCONTROL_DEB
   cout<<" ...  fichier ecrit  ..."<<endl;
 #endif
   return status;
@@ -269,7 +269,7 @@ Standard_Boolean IGESControl_Writer::Write
 {
   ofstream fout(file,ios::out);
   if (!fout) return Standard_False;
-#ifdef DEBUG
+#ifdef IGESCONTROL_DEB
   cout<<" Ecriture fichier ("<< (fnes ? "fnes" : "IGES") <<"): "<<file<<endl;
 #endif
   Standard_Boolean res = Write (fout,fnes);
index 88fd6314560d487e58d9cd566c06f37363b106a9..068ba4c5bcfc44c63a0f85bef46f1f9df660865c 100644 (file)
@@ -32,7 +32,7 @@ void  IGESData_ReadWriteModule::Read
    const Handle(Interface_FileReaderData)& , const Standard_Integer ,
    Handle(Interface_Check)& , const Handle(Standard_Transient)& ) const 
 {
-#ifdef DEB
+#ifdef IGESDATA_DEB
   cout<<"IGESData_ReadWriteModule, Read called"<<endl;
 #endif
 }
index 4c5eb3b82e5314ac7d73c5d242ccd00bd5aa98ee..c8da51a88de902f9dfd643ca186052731e9bc378 100644 (file)
@@ -44,7 +44,7 @@ Standard_Boolean  IGESSelect_SplineToBSpline::Perform
     Standard_Integer it = ent->TypeNumber();
     if (it == 112 || it == 126) {
       thefound = Standard_True;
-#ifdef DEB
+#ifdef IGESSELECT_DEB
       cout<<"IGESSelect_SplineToBSpline : n0."<<i
        << (it == 112 ? ", Curve" : ", Surface")<<" to convert"<<endl;
 #endif
index c03607a3553df669f9d309c8b1c54c068add2283..0316e215398296fb35db1fe2da77829c8b264d96 100644 (file)
@@ -332,14 +332,14 @@ void IGESToBRep::WriteShape(const TopoDS_Shape& shape,
          olda = a; oldb = b; oldpcurve = newpcurve;
        }
        else {
-#ifdef DEB
+#ifdef IGESTOBREP_DEB
          cout << "Warning: IGESToBRep::TransferPCurve: pcurves are not SameRange" << endl;
 #endif
          result = Standard_False;
        }
       }
       catch(Standard_Failure) {
-#ifdef DEB
+#ifdef IGESTOBREP_DEB
        cout << "\n**IGESToBRep::TransferPCurve: Exception in SameRange : "; 
        Standard_Failure::Caught()->Print(cout);
 #endif
index a2458600fca53a88223d322b047aa88e2998c86e..1cebe99929bcef3536e552dac8ae4050fdaa6fb8 100644 (file)
@@ -230,7 +230,7 @@ Handle(Geom_Curve) IGESToBRep_BasicCurve::TransferBasicCurve
 
   } //:36
   catch(Standard_Failure) {
-#ifdef DEB
+#ifdef IGESTOBREP_DEB
     cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBasicCurve : "; 
     Standard_Failure::Caught()->Print(cout);
 #endif
@@ -293,7 +293,7 @@ Handle(Geom2d_Curve) IGESToBRep_BasicCurve::Transfer2dBasicCurve
     }
   } //:h8
   catch(Standard_Failure) {
-#ifdef DEB
+#ifdef IGESTOBREP_DEB
     cout << "\n** Exception in IGESToBRep_BasicCurve::Transfer2dBasicCurve : "; 
     Standard_Failure::Caught()->Print(cout);
 #endif
@@ -1101,7 +1101,7 @@ Handle(Geom_Curve) IGESToBRep_BasicCurve::TransferBSplineCurve
         BSplineRes = new Geom_BSplineCurve(Poles, Weight, Knot, Mult, Degree); 
     }
     catch(Standard_Failure) {
-#ifdef DEB
+#ifdef IGESTOBREP_DEB
       cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBSplineCurve during creation of Geom_BSplineCurve : "; 
       Standard_Failure::Caught()->Print(cout);
 #endif
index e01ac341c9e26ebb0b7689c05e00c998d8865d87..b3d001bcd9b83086163c509c6d9bbd8fb86e0d84 100644 (file)
@@ -221,7 +221,7 @@ Handle(Geom_Surface) IGESToBRep_BasicSurface::TransferBasicSurface
 
   } //:36
   catch(Standard_Failure) {
-#ifdef DEB
+#ifdef IGESTOBREP_DEB
     cout << "\n** Exception in IGESToBRep_BasicSurface::TransferBasicSurface : "; 
     Standard_Failure::Caught()->Print(cout);
 #endif
index 114e6c818c7181e8a438cf0ec39da048b65c52af..6a512e8caa7c88e62d398987003f996e4fb37853 100644 (file)
@@ -798,7 +798,7 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferSurfaceOfRevolution
     }
     catch (Standard_Failure)
     {
-#ifdef DEB
+#ifdef IGESTOBREP_DEB
       cout << "Warning: IgesToBRep_TopoSurface::"
                     "TransferSurfaceOfRevolution(): exception by Geom: ";
       Standard_Failure::Caught()->Print ( cout ); cout << endl;
@@ -930,7 +930,7 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferTabulatedCylinder
     }
   }
   catch (Standard_Failure) {
-#ifdef DEB
+#ifdef IGESTOBREP_DEB
     cout << "Warning: IgesToBRep_TopoSurface::TransferTabulatedCylinder(): exception by Geom: ";
     Standard_Failure::Caught()->Print ( cout ); cout << endl;
 #endif
@@ -1284,7 +1284,7 @@ TopoDS_Shape  IGESToBRep_TopoSurface::TransferBoundedSurface
 
   if (myshape.IsNull()) {
     //#55 rln 24.12.98 UKI60878 entity D593
-#ifdef DEB
+#ifdef IGESTOBREP_DEB
     cout << "Fail: IGESToBRep_TopoSurface::TransferBoundedSurface  UntrimmedSurface is translated into Null" << endl;
 #endif
     return res;
index e1bf762eaf6f2e553a43bce2d1d4126815bb677f..81be6cc0db290057f528bb65d5556089812ffca2 100644 (file)
@@ -378,7 +378,9 @@ bool Image_AlienPixMap::Save (const TCollection_AsciiString& theFileName)
 #endif
   if (anImageFormat == FIF_UNKNOWN)
   {
+#ifdef IMAGE_DEB
     std::cerr << "Image_PixMap, image format doesn't supported!\n";
+#endif
     return false;
   }
 
@@ -521,7 +523,9 @@ bool Image_AlienPixMap::Save (const TCollection_AsciiString& theFileName)
   {
     return savePPM (theFileName);
   }
+#ifdef IMAGE_DEB
   std::cerr << "Image_PixMap, no image library available! Image saved in PPM format.\n";
+#endif
   return savePPM (theFileName);
 #endif
 }
index 81eca33026ba1e58a41e14812d487e450b975341..9c9780490434c6ff7ffde0dbdd67fce1c34cd619 100644 (file)
@@ -166,18 +166,24 @@ Standard_Boolean Image_Diff::Init (const Handle(Image_PixMap)& theImageRef,
    || theImageRef->SizeY()   != theImageNew->SizeY()
    || theImageRef->Format()  != theImageNew->Format())
   {
+#ifdef IMAGE_DEB
     std::cerr << "Images has different format or dimensions\n";
+#endif
     return Standard_False;
   }
   else if (!isSupportedFormat (theImageRef->Format()))
   {
+#ifdef IMAGE_DEB
     std::cerr << "Images has unsupported pixel format\n";
+#endif
     return Standard_False;
   }
   else if (theImageRef->SizeX() >= 0xFFFF
         || theImageRef->SizeY() >= 0xFFFF)
   {
+#ifdef IMAGE_DEB
     std::cerr << "Image too large\n";
+#endif
     return Standard_False;
   }
 
@@ -223,7 +229,9 @@ Standard_Boolean Image_Diff::Init (const TCollection_AsciiString& theImgPathRef,
   if (!anImgRef->Load (theImgPathRef)
    || !anImgNew->Load (theImgPathNew))
   {
+#ifdef IMAGE_DEB
     std::cerr << "Failed to load image(s) file(s)\n";
+#endif
     return Standard_False;
   }
   return Init (anImgRef, anImgNew, theToBlackWhite);
index c99376a26578fe1cd944392bffc22533decfc70c..5418b7a9fb09011f1a18b071750a00aa2115784b 100644 (file)
@@ -1814,7 +1814,7 @@ void ProjectIntersectAndEstLim(const gp_Lin&        theLine,
 {
   ProjLib_Plane aLineProj( thePln, theLine );
   if (!aLineProj.IsDone()) {
-#ifdef DEB
+#ifdef INTCURVESURFACE_DEB
   cout
   << "Info: IntCurveSurface_Inter::ProjectIntersectAndEstLim(), !aLineProj.IsDone()"
   << endl;
@@ -1941,7 +1941,7 @@ void EstLimForInfRevl(const gp_Lin&   Line,
     return; // not infinite curve
   }
   if (!aBasCurvProj.IsDone()) {
-#ifdef DEB
+#ifdef INTCURVESURFACE_DEB
     cout << "Info: IntCurveSurface_Inter::EstLimForInfRevl(), !aBasCurvProj.IsDone()" << endl;
 #endif
     return;
index 20d03e05bf2e08e2fb503da72c90b5e89f5a404a..305a1ea395cf2c65aacbb3b2f52b0dbade9aa151 100644 (file)
@@ -194,16 +194,20 @@ Standard_Real IntCurveSurface_Polygon::ApproxParamOnCurve(const Standard_Integer
 {
   //ddout << "IntCurveSurface_Polygon::ApproxParamOnCurve" << endl;
   if(TheParamOnLine < 0.0 || TheParamOnLine >1.0) { 
+#ifdef INTCURVESURFACE_DEB
     cout<<" ParamOnLine  =  "<<TheParamOnLine<<"  avec Index = "
       <<TheIndex<<"  dans IntCurveSurface_Polygon::ApproxParamOnCurve"<<endl;
+#endif
     return(Binf+(TheParamOnLine*(Bsup-Binf))/(Standard_Real)(NbPntIn-1));
   }
 
   Standard_Integer Index = TheIndex;
   Standard_Real    ParamOnLine = TheParamOnLine;
+#ifdef INTCURVESURFACE_DEB
   if (Index > NbPntIn) {
     cout << "OutOfRange Polygon::ApproxParamOnCurve " <<endl;
   }
+#endif
   if((Index == NbPntIn) && (ParamOnLine == 0.0)) { 
     Index--; ParamOnLine=1.0;
   }
index 6f91b1e37eb6ea3036dcac40c7ca0cda02a623ad..baba4715622ceedf32a4f81d18d223d44f7af859 100644 (file)
@@ -895,7 +895,7 @@ static Standard_Boolean TestIfWLineIsRestriction(const IntPatch_SequenceOfLine&
       break;
   }
   if(allon1==NbPnts || allon2==NbPnts) {
-#ifdef DEB
+#ifdef INTPATCH_DEB
     cout<<" IntPatch_LineConstructor.gxx :  CC**ONS"<<(allon1==NbPnts?1:2)<<"** Traitement WLIne + ARC CLASS "<<endl;
 #endif
     Standard_Real tol2d = Max(tol2d1,tol2d2);
@@ -1056,7 +1056,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
          if (!arc1.IsNull() && arc1 == arc) iv2 = iv;
        }
        if (!iv1 || !iv2) {
-#ifdef DEB
+#ifdef INTPATCH_DEB
          cout<<" Pb getting vertices linked with arc"<<endl;
 #endif
          continue;
@@ -1067,7 +1067,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
        Standard_Real par2 = (arcsResolved(iv2).IsNull()
                              ? (WLine->Vertex(iv2).*pParOnArc)()
                              : paramsResolved(iv2));
-#ifdef DEB
+#ifdef INTPATCH_DEB
        cout<<"****** Parameters on arc on S"<<is+1<<": "<<par1<<" "<<par2<<endl;
 #endif
 
@@ -1081,7 +1081,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
        }
        Standard_Real par,dist;
        if (!ProjectOnArc(utst,vtst,arc,surf,TolArc,par,dist)) {
-#ifdef DEB
+#ifdef INTPATCH_DEB
          cout<<" Pb en projection ds IntPatch_LineConstructor"<<endl;
 #endif
          continue;
@@ -1519,9 +1519,6 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
       //if(nbvtx) { 
       //       TabIndex[nbvtx]=TabIndex[1]=++numline;
       //       AddLine(L,1,nbvtx,typs1,typs2,TabIndex,slin);
-#if DEB
-      //cout<<"\nIntPatch_LineConstructor : Cas de ligne ou firstp==lastp"<<endl;
-#endif
       //}
     }
     //-- -------------------------------------------------------------------
index 026de15bd1be8dcad06b814892922dd3a4a53fc1..e2c909b6e07b1c7270630e8d499b856224a32953 100644 (file)
@@ -1233,11 +1233,6 @@ void IntPatch_RstInt::PutVertexOnLine (Handle(IntPatch_Line)& L,
     wlin->ComputeVertexParameters(Tol, hasBeenAdded);
   }
   else {
-#ifdef DEB
-    //if(rlin->NbVertex()==0) { 
-    //  cout<<" \n *** IntPatch RstInt.gxx  : nbvtx = 0 sur rline *** \n"<<endl;
-    //}
-#endif
     rlin->ComputeVertexParameters(Tol);
   }
 }
index fa8544421e7636f9e46cd39741eb4c53391110de..6fff448f1958db77d53567943f9c921c9e180c7c 100644 (file)
@@ -677,7 +677,7 @@ void IntWalk_IWalking::TestArretCadre
              }
              Line->SetTangentVector(previousd3d,j-1);
            }
-#ifdef DEB
+#ifdef INTWALK_DEB
            else { 
              cout<<" IntWalk_IWalking_2.gxx : bizarrerie 30 10 97 "<<endl;
            }
index 7baeda31a4be89645c4fa74e3ae82e668f202379..2a3be1575b5950b33d753920022f5a6ee087dc67 100644 (file)
@@ -301,7 +301,7 @@ Standard_CString  Interface_Static::CVal  (const Standard_CString name)
 {
   Handle(Interface_Static) item = Interface_Static::Static(name);
   if (item.IsNull()) {
-#ifdef DEB
+#ifdef INTERFACE_DEB
     cout << "Warning: Interface_Static::CVal: incorrect parameter " << name << endl;
 #endif
     return "";
@@ -314,7 +314,7 @@ Standard_Integer  Interface_Static::IVal  (const Standard_CString name)
 {
   Handle(Interface_Static) item = Interface_Static::Static(name);
   if (item.IsNull()) {
-#ifdef DEB
+#ifdef INTERFACE_DEB
     cout << "Warning: Interface_Static::IVal: incorrect parameter " << name << endl;
 #endif
     return 0;
@@ -327,7 +327,7 @@ Standard_Real Interface_Static::RVal (const Standard_CString name)
 {
   Handle(Interface_Static) item = Interface_Static::Static(name);
   if (item.IsNull()) {
-#ifdef DEB
+#ifdef INTERFACE_DEB
     cout << "Warning: Interface_Static::RVal: incorrect parameter " << name << endl;
 #endif
     return 0.0;
index bf807223f1d477d391cca855fe3ac53523c5fe1e..557de82f5b64ecb319601cf83aa7027af20dcf06 100644 (file)
@@ -234,7 +234,7 @@ LDOM_MemManager::LDOM_MemManager (const Standard_Integer aBlockSize)
 
 LDOM_MemManager::~LDOM_MemManager ()
 {
-#ifdef DEB
+#ifdef LDOM_DEB
   Standard_Integer aSomme = 0, aCount = 0;
   MemBlock * aBlock = myFirstBlock;
 //FILE * out = fopen ("/tmp/dump","w");
index 51e2f193be3d592157c3443a0084fb1cbd44a01e..51a51396bd36999926a88b99146ca2fbad38ab72 100644 (file)
@@ -413,7 +413,7 @@ static Standard_Boolean IsInside(const TopoDS_Shape& S1,
       return Standard_False;
     }
   }
-#ifdef DEB
+#ifdef LOCOPE_DEB
   cout << "Classification impossible sur vertex " << endl;
 #endif
   
index 8b5a38f319607440d759d01554288eb84e9d4b3a..a821852bd19b872a0847fdc21a8fc489b8298c14 100644 (file)
@@ -152,7 +152,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
          }
          else {
            // Cas non traite : on est a cheval
-#ifdef DEB
+#ifdef LOCOPE_DEB
            cout <<" cas a cheval."<< endl;
 #endif
 
@@ -204,7 +204,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
          }
          else {
            // Cas non traite : on est a cheval
-#ifdef DEB
+#ifdef LOCOPE_DEB
            cout <<" cas a cheval."<< endl;
 #endif
 //         myLFrom.Append(edgf);
@@ -287,7 +287,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
              }
 
              if (IsSame) {
-#ifdef DEB
+#ifdef LOCOPE_DEB
                cout <<"memes bsplines."<< endl;
 #endif
                myLFrom.Append(edgf);
@@ -347,7 +347,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
            }
            
            if (IsSame) {
-#ifdef DEB
+#ifdef LOCOPE_DEB
              cout <<"memes beziers."<< endl;
 #endif
              myLFrom.Append(edgf);
index 2d59e21689aa874ed514207a850f15de8b9890fb..04a1a113a51c91f28ce0b3d9aa9564b0d6308122 100644 (file)
@@ -1253,7 +1253,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
       for (itl.Initialize(itdmsls.Value());itl.More(); itl.Next()) {
        if (theSubs.IsCopied(itl.Value())) {
          if (theSubs.Copy(itl.Value()).Extent() != 1) {
-#ifdef DEB
+#ifdef LOCOPE_DEB
            cout << "Invalid number of descendant" << endl;
 #endif
            return;
index 9782bca94a17aaa591c7a3bdd4bde927c4d120b9..4a302819802e4fa6ae1492def8ebca5faa2ce6a3 100644 (file)
@@ -559,7 +559,7 @@ void LocOpe_SplitShape::Add(const TopoDS_Wire& W,
       AddClosedWire(W,F);
     }
   } catch (Standard_Failure ) {
-#ifdef DEB
+#ifdef LOCOPE_DEB
     cout << "Warning: SpliShape internal problem detected, some faces may be lost. Check input edges/wires" <<endl;
 #endif
     return;
@@ -1168,7 +1168,7 @@ const TopTools_ListOfShape& LocOpe_SplitShape::DescendantShapes
     Rebuild(myShape);
     myDone = Standard_True;
   }
-#ifdef DEB
+#ifdef LOCOPE_DEB
   if (!myDblE.IsEmpty()) {
     cout << "Le shape comporte des faces invalides" << endl;
   }
@@ -1286,7 +1286,7 @@ static Standard_Boolean IsInside(const TopoDS_Face& F,
   Standard_Real f,l;
   Handle(Geom2d_Curve) C2d = BRep_Tool::CurveOnSurface(edg,F,f,l);
   if(C2d.IsNull()) {
-#ifdef DEB
+#ifdef LOCOPE_DEB
          cout << "Edge is not on surface" <<endl;
 #endif
       return Standard_False;
index 002f7afaf6b32bb507eadcef7c54e323a1a993de..108ca06ebfba7e70d0e26c71c81e720c36555a04 100644 (file)
@@ -293,7 +293,7 @@ void LocOpe_Spliter::Perform(const Handle(LocOpe_WiresOnShape)& PW)
       theSubs.Substitute(ebase.Oriented(TopAbs_FORWARD),lsubs);
     }
     else {
-#ifdef DEB
+#ifdef LOCOPE_DEB
       cout << "Pb pour substitution" << endl;
 #endif
     }
index 807457a73f2af69e8fbeabc4629f323b9b457ebb..89ab27d2bb23f2cd7b2e538fbccdfd589eb50cc5 100644 (file)
@@ -147,7 +147,7 @@ void MDF_Tool::WriteLabels
 
     // Label array REsizing.
     if (labAlloc < theLabels->Upper()) {
-#ifdef DEB
+#ifdef MDF_DEB
       cout<<"MDF_Tool::WriteLabels LABEL array resizing from "<<theLabels->Upper()<<" to "<<labAlloc<<endl;
 #endif
       Handle(PColStd_HArray1OfInteger) newLabels =
@@ -160,7 +160,7 @@ void MDF_Tool::WriteLabels
 
     // Attribute array REsizing.
     if (attAlloc < theAttributes->Upper()) {
-#ifdef DEB
+#ifdef MDF_DEB
       cout<<"MDF_Tool::WriteLabels ATTRIBUTES array resizing from "<<theAttributes->Upper()<<" to "<<attAlloc<<endl;
 #endif
       Handle(PDF_HAttributeArray1) newAttributes =
@@ -444,7 +444,7 @@ void MDF_Tool::ReadAttributes
   }
 
   if (!noDeadLock) {
-#ifdef DEB
+#ifdef MDF_DEB
     cout<<"AfterRetrieval(): dead lock between these attributes:"<<endl;
     for (itr2.Initialize(attList); itr2.More(); itr2.Next())
       cout<<"Attribute type = "<<itr2.Value()->DynamicType()->Name()<<endl;;
index a0c8b48297c78509874bf172749c12c9d5df0fa0..b08e379671dd24eb4069835ecaaa1d83b0a66327 100644 (file)
@@ -177,14 +177,14 @@ void MDocStd::AddRetrievalDrivers(const Handle(MDF_ARDriverHSequence)& aDriverSe
 Handle(Standard_Transient) MDocStd::Factory(const Standard_GUID& aGUID) {
 
   if(aGUID == StandardStorageDriver)  {
-#ifdef DEB
+#ifdef MDOCSTD_DEB
     cout << "MDocStd : Storage Plugin" << endl;
 #endif
     static Handle(MDocStd_DocumentStorageDriver) standard_sd = new MDocStd_DocumentStorageDriver;
     return standard_sd;
   }
   if(aGUID == StandardRetrievalDriver) {  
-#ifdef DEB
+#ifdef MDOCSTD_DEB
     cout << "MDocStd : Retrieval Plugin" << endl;
 #endif
     static Handle (MDocStd_DocumentRetrievalDriver) standard_rd = new MDocStd_DocumentRetrievalDriver;
index f897859c2863daf8c4e7e8a1691dcade5cd3e89f..af0941dee78c976dbd4f69a9fce4159f29a52326 100644 (file)
@@ -68,7 +68,7 @@ void MPrsStd_AISPresentationRetrievalDriver::Paste(const Handle(PDF_Attribute)&
   if( S->Width() != -1. ) T->SetWidth( S->Width() );
   else T->UnsetWidth(); 
 
-#ifdef DEB
+#ifdef MPRSSTD_DEB
   cout << "AISPresentationRetrievalDriver "  << "retrieved DriverGUID ==> ";
   guid.ShallowDump(cout);
   cout << endl;
index 783b4d7b79278afffac65dec742a0001dac64c15..8a7272c953be433e0c7c9f9261ff5b7b9fa57389 100644 (file)
@@ -70,7 +70,7 @@ void MPrsStd_AISPresentationRetrievalDriver_1::Paste(const Handle(PDF_Attribute)
 
   T->SetMode(S->Mode());
   
-#ifdef DEB
+#ifdef MPRSSTD_DEB
   cout << "AISPresentationRetrievalDriver "  << "retrieved DriverGUID ==> ";
   guid.ShallowDump(cout);
   cout << endl;
index 8ce0e31aa0e07117acceb185470bd9e353a0c14f..efb0eac85d4f312e019cb5b98067adb5e0881e38 100644 (file)
@@ -82,7 +82,7 @@ void MPrsStd_AISPresentationStorageDriver::Paste(const Handle(TDF_Attribute)& So
 
    T->SetMode(S->Mode());
 
-#ifdef DEB
+#ifdef MPRSSTD_DEB
   cout << "AISPresentationStorageDriver "  << "storaged DriverGUID ==> "   << guid->Convert() << endl;
 #endif
 }
index 8829f63ee3fa5bc2712d8ddd0e98ad79bbc54109..d4e6075708c728f93f891b9d0ab5542e5b04d2ae 100644 (file)
@@ -56,7 +56,7 @@ void MeshTest_CheckTopology::Perform (Draw_Interpretor& di)
     Handle(Poly_PolygonOnTriangulation) aPoly1 =
       BRep_Tool::PolygonOnTriangulation(aEdge, aT1, aLoc1);
     if (aPoly1.IsNull() || aT1.IsNull()) {
-#ifdef DEB
+#ifdef MESHTEST_DEB
       cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<endl;
 #endif
       continue;
@@ -73,7 +73,7 @@ void MeshTest_CheckTopology::Perform (Draw_Interpretor& di)
       Handle(Poly_PolygonOnTriangulation) aPoly2 =
        BRep_Tool::PolygonOnTriangulation(aEdge, aT2, aLoc2);
       if (aPoly2.IsNull() || aT2.IsNull()) {
-#ifdef DEB
+#ifdef MESHTEST_DEB
        cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<endl;
 #endif
        continue;
index ac8b6b4985caf4bb6015a88e51d493a18ef4e0e3..a91c334908870589c62767d48b41f37f24afc4d7 100644 (file)
@@ -73,7 +73,9 @@ Message_PrinterOStream::Message_PrinterOStream (const Standard_CString theFileNa
   {
     delete aFile;
     myStream = &std::cout;
+#ifdef MESSAGE_DEB
     std::cerr << "Error opening " << theFileName << std::endl << std::flush;
+#endif
   }
 }
 
index 900fb2c56eb887c9b73e282c43560c9f857c16f4..c446c2c04b6630b7adb5280172f41e58f077407d 100644 (file)
@@ -791,7 +791,9 @@ Handle(Geom_Curve)  MgtGeom::Translate(const Handle(PGeom_Curve)& PObj)
     return MgtGeom::Translate(TOffsetCurve);
   }
   else {
+#ifdef MGTGEOM_DEB
     cout << "MgtGeom : Unknown curve type ???? : " << endl;
+#endif
     Standard_NullObject::Raise("No mapping for the current Persistent Curve");
   }
 // POP pour NT
@@ -855,7 +857,9 @@ Handle(PGeom_Curve)  MgtGeom::Translate(const Handle(Geom_Curve)& TObj)
     return MgtGeom::Translate(POffsetCurve);
   }
   else {
+#ifdef MGTGEOM_DEB
     cout << "MgtGeom : Unknown curve type ????"<<endl;
+#endif
     Standard_NullObject::Raise("No mapping for the current Transient Curve");
 
   }
@@ -1270,7 +1274,9 @@ Handle(Geom_Surface)  MgtGeom::Translate(const Handle(PGeom_Surface)& PObj)
     return MgtGeom::Translate(TOffsetSurface);
   }
   else {
+#ifdef MGTGEOM_DEB
     cout << "MgtGeom : Unknown surface type ????"<<endl;
+#endif
     Standard_NullObject::Raise("No mapping for the current Persistent Surface");
 
   }
@@ -1345,7 +1351,9 @@ Handle(PGeom_Surface)  MgtGeom::Translate(const Handle(Geom_Surface)& TObj)
     return MgtGeom::Translate(POffsetSurface);
   }
   else {
+#ifdef MGTGEOM_DEB
     cout << "MgtGeom : Unknown surface type ????"<<endl;
+#endif
     Standard_NullObject::Raise("No mapping for the current Transient Surface");
   }
 // POP pour NT
index 06be1285a12ff344b88c0413e9ee9854e6dc115a..ebdc110207c379c5cc3fd521a58cd5bec275176a 100644 (file)
@@ -462,7 +462,9 @@ Handle(Geom2d_Curve)  MgtGeom2d::Translate(const Handle(PGeom2d_Curve)& PObj)
     return MgtGeom2d::Translate(TOffsetCurve);
   }
   else {
+#ifdef MGTGEOM2D_DEB
     cout << "Unknown Geom2d curve type ???? " << endl;
+#endif
     Standard_NullObject::Raise("No mapping for the current Persistent Curve");
   }
 // POP pour NT
@@ -526,7 +528,9 @@ Handle(PGeom2d_Curve)  MgtGeom2d::Translate(const Handle(Geom2d_Curve)& TObj)
     return MgtGeom2d::Translate(POffsetCurve);
   }
   else {
+#ifdef MGTGEOM2D_DEB
     cout << "Unknown Geom2d curve type ???? " << endl;
+#endif
     Standard_NullObject::Raise("No mapping for the current Transient Curve");
   }
 // POP pour NT
index b11dba5160556e61938107c96b06b3d931b8dfc5..ae840c576b9593d21834dc44ef00f06158760ddf 100644 (file)
@@ -1032,7 +1032,9 @@ void OSD_File :: Read (
                  ) {
 
  if ( OSD_File::KindOfFile ( ) == OSD_DIRECTORY ) { 
+#ifdef OSD_DEB
    cout << " OSD_File::Read : it is a directory " << endl;
+#endif
    return ;
 //   Standard_ProgramError::Raise("OSD_File::Read : it is a directory");
  }
index 1a591e814f99dbcdb2b91f973959284a38f52c74..1688b98110e1197ded2ade4511266ef75545203e 100644 (file)
@@ -186,7 +186,7 @@ char full_name[255];
 
      sprintf(full_name,"%s/%s",myPlace.ToCString(),
             ((struct dirent *)myEntry)->d_name);                // LD debug
-#ifdef DEBUG
+#ifdef OSD_DEB
      cout << "Place : " << myPlace << endl;
      cout << "FName : " << full_name << endl;
 #endif
index 7550930b0ebbc0cc1d666e84f40d5f8caed46506..fdee9b4356c86ad1afdff6ddc3245e7d3d20036a 100644 (file)
@@ -360,7 +360,7 @@ OSD_Path::OSD_Path(const TCollection_AsciiString& aDependentName,
      MacExtract(aDependentName,myDisk,myTrek,myName,myExtension);
      break;
   default:
-#ifdef DEB
+#ifdef OSD_DEB
        cout << " WARNING WARNING : OSD Path for an Unknown SYSTEM : " << (Standard_Integer)todo << endl;
 #endif 
      break ;
index 1a961800a944775976cb9a544eeae225b68ac20b..5488cbc60845b35a551e69f35c07904ae645a774 100644 (file)
@@ -187,7 +187,9 @@ static void Handler (const int theSignal)
       if (aCurInfoHandle) {
         // cout << "OSD::Handler: calling previous signal handler with info " << aCurInfoHandle <<  endl ;
         (*aCurInfoHandle) (theSignal, aSigInfo, theContext);
+#ifdef OSD_DEB
         cerr << " previous signal handler return" <<  endl ;
+#endif
         return;
       }
       else {
@@ -200,7 +202,9 @@ static void Handler (const int theSignal)
       if(aCurHandler) {
         // cout << "OSD::Handler: calling previous signal handler" <<  endl ;
         (*aCurHandler) (theSignal);
+#ifdef OSD_DEB
         cerr << " previous signal handler return" <<  endl ;
+#endif
         return;
       }
     }
@@ -314,7 +318,9 @@ static void Handler (const int theSignal)
     Standard_DivideByZero::NewInstance("SIGTRAP IntegerDivideByZero")->Jump(); break;
 #endif
   default:
+#ifdef OSD_DEB
     cout << "Unexpected signal " << theSignal << endl ;
+#endif
     break;
   }
 }
@@ -353,9 +359,11 @@ static void SegvHandler(const int theSignal,
        OSD_SIGSEGV::NewInstance(Msg)->Jump();
      }
   }
+#ifdef OSD_DEB
   else {
     cout << "Wrong undefined address." << endl ;
   }
+#endif
   exit(SIGSEGV);
 }
 
@@ -382,9 +390,11 @@ static void SegvHandler(const int theSignal,
 //    scp->sc_pcoq_tail = scp->sc_pcoq_tail + 0x4 ; l'intruction suivant le segv.
     }
   }
+#ifdef OSD_DEB
   else {
     cout << "Wrong undefined address." << endl ;
   }
+#endif
   exit(SIGSEGV);
 }
 
@@ -413,7 +423,9 @@ void OSD::SetSignal(const Standard_Boolean aFloatingSignal)
     //stat = ieee_handler("set", "inexact", PHandler) || stat;
 
     if (stat) {
+#ifdef OSD_DEB
       cerr << "ieee_handler does not work !!! KO " << endl;
+#endif
     }
 #elif defined (linux)
     feenableexcept (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
@@ -430,9 +442,11 @@ void OSD::SetSignal(const Standard_Boolean aFloatingSignal)
  if ( first_time & 2 ) {
    char *TRAP_FPE = getenv("TRAP_FPE") ;
    if ( TRAP_FPE == NULL ) {
+#ifdef OSD_DEB
      cout << "On SGI you must set TRAP_FPE environment variable : " << endl ;
      cout << "set env(TRAP_FPE) \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\" or" << endl ;
      cout << "setenv TRAP_FPE \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\"" << endl ;
+#endif
 //     exit(1) ;
      first_time = first_time & (~ 2) ;
    }
@@ -458,7 +472,9 @@ void OSD::SetSignal(const Standard_Boolean aFloatingSignal)
   //==== Always detected the signal "SIGFPE" =================================
   stat = sigaction(SIGFPE,&act,&oact);   // ...... floating point exception 
   if (stat) {
+#ifdef OSD_DEB
      cerr << "sigaction does not work !!! KO " << endl;
+#endif
      perror("sigaction ");
   }
 
index 54c225eb3ed261b1129b605e4af0864dd7ab2904..02e402a317c5333e329199655f944a2e092fbb29 100644 (file)
@@ -497,7 +497,9 @@ Standard_Boolean OpenGl_Context::CheckExtension (const char* theExtName) const
 {
   if (theExtName  == NULL)
   {
+#ifdef OPENGL_DEB
     std::cerr << "CheckExtension called with NULL string!\n";
+#endif
     return Standard_False;
   }
 
index 193520771024fcc35c663b66211d367cf8bd0317..a2595b327dc8bce8b167a1eff9e42fef92d17678 100644 (file)
@@ -100,7 +100,7 @@ Tint TelGetPolygonNormal(tel_point pnts, Tint* indexs, Tint npnt, Tfloat *norm )
       }
     }
   }
-#ifdef DEB
+#ifdef OPENGL_DEB
   if( !status )
     printf(" *** OpenGl_TelGetPolygonNormal.has found confused or aligned points\n");
 #endif
@@ -121,7 +121,7 @@ Tint TelGetNormal(Tfloat *data1, Tfloat *data2, Tfloat *data3, Tfloat *norm ) {
     d = vecnrmd( norm, d );
     status = (d > 0.) ? 1 : 0;
   }
-#ifdef DEB
+#ifdef OPENGL_DEB
   if( !status )
     printf(" *** OpenGl_TelGetNormal.has found confused or aligned points\n");
 #endif
index 21235eebd59cd4d9e80e90fe9459d5f1ea1d5eaa..70939f41e757f999d2a9ec5ff9cf278fbbb87ef2 100644 (file)
@@ -290,7 +290,9 @@ Handle(Poly_Triangulation) Poly::ReadTriangulation(Standard_IStream& IS)
   char line[100];
   IS >> line;
   if (strcmp(line,"Poly_Triangulation")) {
+#ifdef POLY_DEB
     cout << "Not a Triangulation in the file" << endl;
+#endif
     return Handle(Poly_Triangulation)();
   }
 
@@ -354,7 +356,9 @@ Handle(Poly_Polygon3D) Poly::ReadPolygon3D(Standard_IStream& IS)
   char line[100];
   IS >> line;
   if (strcmp(line,"Poly_Polygon3D")) {
+#ifdef POLY_DEB
     cout << "Not a Polygon3D in the file" << endl;
+#endif
     return Handle(Poly_Polygon3D)();
   }
 
@@ -407,7 +411,9 @@ Handle(Poly_Polygon2D) Poly::ReadPolygon2D(Standard_IStream& IS)
   char line[100];
   IS >> line;
   if (strcmp(line,"Poly_Polygon2D")) {
+#ifdef POLY_DEB
     cout << "Not a Polygon2D in the file" << endl;
+#endif
     return Handle(Poly_Polygon2D)();
   }
 
index ba4f5e50c9e0d7d2df1f6b16416bb7bb8661fafc..690e455efe3ee29d89bef4a52fb5d8508f1abad2 100644 (file)
@@ -709,7 +709,7 @@ void ProjLib_CompProjectedCurve::Init()
           if(!ExactBound(Triple, t - Step, Tol, 
             myTolU, myTolV, myCurve, mySurface)) 
           {
-#if DEB
+#if PROJLIB_DEB
             cout<<"There is a problem with ExactBound computation"<<endl;
 #endif
             DichExactBound(Triple, t - Step, Tol, myTolU, myTolV, 
@@ -782,7 +782,7 @@ void ProjLib_CompProjectedCurve::Init()
           if(!ExactBound(Triple, t, Tol, myTolU, myTolV, 
             myCurve, mySurface)) 
           {
-#if DEB
+#if PROJLIB_DEB
             cout<<"There is a problem with ExactBound computation"<<endl;
 #endif
             DichExactBound(Triple, t, Tol, myTolU, myTolV, 
index 8e0ab0cc99c42eab3d5fe88143af46b23758f86b..e2c12d90f0a3f77291fe0285f2065bad692ca5f5 100644 (file)
@@ -1717,7 +1717,7 @@ Handle(Geom2d_BSplineCurve)
       OK = OK && Dummy->RemoveKnot(ij,MaxDeg-1,Tol3d);  //OCC217
       //OK = OK && Dummy->RemoveKnot(ij,MaxDeg-1,myTolerance);
     }
-#ifdef DEB
+#ifdef PROJLIB_DEB
     if (!OK) {
       cout << "ProjLib_ComputeApproxOnPolarSurface : Smoothing echoue"<<endl;
     }
index bf398c437810eb6e4bb41b25f81f4bbad5ecd02e..36bd7d73d8e676f80d0ba659434c39442b667a5d 100644 (file)
@@ -486,7 +486,7 @@ static Standard_Integer Identify(const TopoDS_Face& theFace, const gp_Ax1& theAx
   gp_Pnt aPoint = aGProp.CentreOfMass();
   gp_Vec aV1(theAx.Direction());
   gp_Vec aV2(theAx.Location(), aPoint);
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
   gp_Vec v1 = aV1.Crossed(aV2);
   cout <<" Z of V1 = " << v1.XYZ().Z() << endl;
 #endif
@@ -528,7 +528,7 @@ void QANewBRepNaming_BooleanOperationFeat::LoadModified11 (BRepAlgoAPI_BooleanOp
        const TopoDS_Shape& newShape = ShapesIterator.Value ();
        if (!Root.IsSame (newShape)) {
          //put shapes with evolution 1:1 (may be Compound)
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
          TCollection_AsciiString entry;
          TDF_Tool::Entry(Builder.NamedShape()->Label(), entry);
          cout << "Add shape to Compound at Label = "<< entry <<endl;
@@ -980,7 +980,7 @@ static void SortEdges4(const TopTools_Array1OfShape& theArS, const TColgp_Array1
 
   if(!IsDirectionPositive(theAx, aCP2, theArP.Value(i3))) {//first must be positive direction
     // change i3 <=> i4
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
   cout << "SortEdges4: i3 = "<<i3<< "i4 = "<< i4 << endl;
 #endif
     Standard_Integer aN = i4; i4 = i3;
@@ -988,7 +988,7 @@ static void SortEdges4(const TopTools_Array1OfShape& theArS, const TColgp_Array1
   }
 
 // 4. final order i1, i2, i3, i4 - Ok
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
   cout << "SortEdges4: i1 = " <<i1<<" i2 = "<<i2<< " i3 = "<<i3<< "i4 = "<< i4 << endl;
 #endif
   theArI.SetValue(1, i1); 
@@ -1033,7 +1033,7 @@ static void SortEdges5 (const TopTools_Array1OfShape& theArS, const TColgp_Array
        const TopoDS_Shape& aV22 = TopExp::LastVertex(TopoDS::Edge(theArS.Value(j)));
        if(aV12.IsSame(aV21) || aV12.IsSame(aV22)) {
          aV2 = aV12; J2 = j;
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
          if(I != i) cout << "WARNING:: I != i, I = " << I << ", i = " << i <<endl; 
 #endif
          found = Standard_True;
@@ -1322,7 +1322,7 @@ static void SortEdges(const TopTools_ListOfShape& theListE, const gp_Ax1& theAx,
   }
   
   for(i=1;i<=ArI.Upper();i++) {
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
     cout << "SortEdges: i = " <<i<<" ArI.Value(i) = " <<ArI.Value(i)<< endl;
 #endif   
     theARS.SetValue(i, ArS.Value(ArI.Value(i)));  
index 47fc6941579d72fdc88a622e4b626a91be43f790..111fd64fda86a2f2d82cb7e789ae4c5721000f88 100644 (file)
@@ -55,7 +55,7 @@ void QANewBRepNaming_Cut::Load(BRepAlgoAPI_BooleanOperation& MS) const {
   const TopAbs_ShapeEnum& TypeSh = ShapeType(ObjSh);
 
   if (ResSh.IsNull()) {
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
     cout<<"QANewBRepNaming_Cut::Load(): The result of the boolean operation is null"<<endl;
 #endif
     return;
@@ -63,7 +63,7 @@ void QANewBRepNaming_Cut::Load(BRepAlgoAPI_BooleanOperation& MS) const {
 
   // If the shapes are the same - select the result and exit:
   if (IsResultChanged(MS)) {
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
     cout<<"QANewBRepNaming_Cut::Load(): The object and the result of CUT operation are the same"<<endl;
 #endif
     if (MS.Shape().ShapeType() == TopAbs_COMPOUND) {
index 4f7075b8a8e90febebba1c063e22d2499edaad22..4e820dbc2837bb0876f9efcc41f0730498aa3b34 100644 (file)
@@ -146,7 +146,7 @@ void QANewBRepNaming_Cylinder::Load (BRepPrimAPI_MakeCylinder& mkCylinder,
   if (Type == QANewBRepNaming_SOLID) Builder.Generated (mkCylinder.Solid());
   else if (Type == QANewBRepNaming_SHELL) Builder.Generated (mkCylinder.Shell());
   else {
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
     cout<<"QANewBRepNaming_Cylinder::Load(): Unexpected type of result"<<endl;
     Builder.Generated (mkCylinder.Shape());
 #endif
index f8667c419cfb7dbb301ce5ca65fc8a0279aa3aba..80385f73852c915b41713a02d37b8ce5d4944d8c 100644 (file)
@@ -201,7 +201,7 @@ void QANewBRepNaming_Fillet::Load(const TopoDS_Shape& theContext,
          gp_Vec aMainVec(P1, P2);
          gp_Vec aV1(P1, EP1);
          gp_Vec aV2(P1, EP2);
-#ifdef DEB
+#ifdef QANEWBREPNAMING_DEB
          cout << "P1=" << P1.X() << " " << P1.Y() << " " << P1.Z() << endl;
          cout << "P2=" << P2.X() << " " << P2.Y() << " " << P2.Z() << endl;
          cout << "EP1=" << EP1.X() << " " << EP1.Y() << " " << EP1.Z() << endl;
index 1974a47ce5e0bb23aa94f650d3e3eea8080c79ee..96a86d3c7e9170af799294770781fdad4562ce01 100644 (file)
@@ -1494,7 +1494,7 @@ QANewModTopOpe_Glue::SectionInsideFace(const TopoDS_Face& theFace,
       myMapGener(theFace).Append (aListGener);
     }
   }
-#ifdef DEB
+#ifdef QANEWODTOPOPE_DEB
   else if (!aListW.IsEmpty()) {
     cout<<"QANewModTopOpe_Glue::SectionInsideFace : can't connect edges"<<endl;
   }
index 4c42b3f9d708edbbe19eaeabae44b898facaf830..6bee71f07dfeccf09f632f651654921bb81024e5 100644 (file)
@@ -2800,7 +2800,7 @@ Standard_Integer RWStepAP214_ReadWriteModule::CaseStep
   
   Standard_Integer NbComp = theTypes.Length();
   if (NbComp < 2) {
-#ifdef DEB
+#ifdef RWSTEPAP214_DEB
     cout << "Not a Plex" << endl;
 #endif
   }
@@ -4064,7 +4064,7 @@ void RWStepAP214_ReadWriteModule::ReadStep(const Standard_Integer CN,
                                            const Handle(Standard_Transient)&ent) const
 {
   if (CN == 0) {
-#ifdef DEB
+#ifdef RWSTEPAP214_DEB
     cout << "CN = 0 for num = " << num << endl;
 #endif
     return;
index de7b421871d1e50d2c12ade2bd50391bebba6f33..a0eb434f5aff7e01efc11da1c0c5f6d35d36b047 100644 (file)
@@ -187,7 +187,7 @@ void RWStepShape_RWEdgeCurve::Check
       
       Standard_Boolean sharOE1 = aShto.IsShared(theOE1);
       if(!sharOE1){
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
        cout << "OrientedEdge1 not shared" <<endl;
 #endif
       }
@@ -201,7 +201,7 @@ void RWStepShape_RWEdgeCurve::Check
            Handle(StepShape_EdgeLoop)::DownCast(myShRef.Value());
          Standard_Boolean sharEL1 = aShto.IsShared(theEL1);
          if(!sharEL1) {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
            cout << "EdgeLoop1 not shared" <<endl;
 #endif
          }
@@ -218,7 +218,7 @@ void RWStepShape_RWEdgeCurve::Check
              theFBOri1 = theFOB1->Orientation();
            }
            else {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
              cout << "EdgeLoop not referenced by FaceBound" << endl;
 #endif
            }
@@ -226,14 +226,14 @@ void RWStepShape_RWEdgeCurve::Check
        }
        else {
          if (nbRef == 0) {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
            cout << "OrientedEdge not referenced" << endl;
 #endif
           }
          else {
            if (aShto.NbTypedSharings(theOE1,
                                      STANDARD_TYPE(StepShape_EdgeLoop)) > 1) {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
              cout << "OrientedEdge referenced more than once" << endl;
 #endif
             }
@@ -245,7 +245,7 @@ void RWStepShape_RWEdgeCurve::Check
 
       Standard_Boolean sharOE2 = aShto.IsShared(theOE2);
       if(!sharOE2){
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
        cout << "OrientedEdge2 not shared" <<endl;
 #endif
       }
@@ -260,7 +260,7 @@ void RWStepShape_RWEdgeCurve::Check
          Handle(StepShape_EdgeLoop)::DownCast(myShRef.Value());
        Standard_Boolean sharEL2 = aShto.IsShared(theEL2);
        if(!sharEL2){
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
          cout << "EdgeLoop2 not shared" <<endl;
 #endif
        }
@@ -273,7 +273,7 @@ void RWStepShape_RWEdgeCurve::Check
            theFBOri2 = theFOB2->Orientation();
          }
          else {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
            cout << "EdgeLoop not referenced by FaceBound" << endl;
 #endif
          }
index 342fa09f6933aff48b36bbf64d2514673c6def06..9802200f1a38edd19f69b31c9fe49f7e18a27bc9 100644 (file)
@@ -124,7 +124,7 @@ void RWStepShape_RWFaceBound::Check
        
        Standard_Boolean sharOE2 = aShto.IsShared(theOE2);
        if(!sharOE2){
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
          cout << "OrientedEdge2 not shared" <<endl;
 #endif
        }
@@ -136,7 +136,7 @@ void RWStepShape_RWFaceBound::Check
            Handle(StepShape_EdgeLoop)::DownCast(myShRef.Value());
          Standard_Boolean sharEL2 = aShto.IsShared(theEL2);
          if(!sharEL2){
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
            cout << "EdgeLoop2 not shared" <<endl;
 #endif
          }
@@ -150,7 +150,7 @@ void RWStepShape_RWFaceBound::Check
              theFBOri2 = theFB2->Orientation();
            }
            else {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
              cout << "EdgeLoop not referenced by FaceBound" << endl;
 #endif
            }
@@ -173,7 +173,7 @@ void RWStepShape_RWFaceBound::Check
     } //end for(i=1; i<=nbEdg; ...)
   } //end if(!theEL1.IsNull)
   else {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
     cout << "no EdgeLoop in FaceBound" << endl;
 #endif
   }
index 39fe02b5599864ef837bd35c816a8b344421fa51..bd3be1ce8e91ed8389e4a235c1ee91a3408008e7 100644 (file)
@@ -305,7 +305,7 @@ Handle(StlMesh_Mesh) RWStl::ReadFile (const OSD_Path& thePath,
       IsAscii = Standard_False;
     }
   }
-#ifdef DEB
+#ifdef RWSTL_DEB
   cout << (IsAscii ? "ascii\n" : "binary\n");
 #endif
   file.Close();
@@ -436,7 +436,7 @@ Handle(StlMesh_Mesh) RWStl::ReadAscii (const OSD_Path& thePath,
 
   // skip header
   while (getc(file) != '\n');
-#ifdef DEB
+#ifdef RWSTL_DEB
   cout << "start mesh\n";
 #endif
   ReadMesh = new StlMesh_Mesh();
@@ -484,7 +484,7 @@ Handle(StlMesh_Mesh) RWStl::ReadAscii (const OSD_Path& thePath,
     if (++iTri % IND_THRESHOLD == 0)
       aPS.Next();
   }
-#ifdef DEB
+#ifdef RWSTL_DEB
   cout << "end mesh\n";
 #endif
   fclose(file);
index 57202a010a2919c3e8f0de365bf5c9b516ad3ffb..2e9c928492cbe40ebe1e1e9916b8accd86c656cf 100644 (file)
@@ -498,14 +498,14 @@ Standard_Boolean STEPCAFControl_Reader::Transfer (STEPControl_Reader &reader,
       static Handle(TCollection_HAsciiString) ap214 = new TCollection_HAsciiString ( "STEP AP214" );
       if ( ! format->IsSameString ( ap203, Standard_False ) && 
           ! format->IsSameString ( ap214, Standard_False ) ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
        cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document is neither STEP AP203 nor AP214" << endl;
 #else
        continue;
 #endif
       }
     }
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     else cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document format not defined" << endl;
 #endif
     
@@ -515,7 +515,7 @@ Standard_Boolean STEPCAFControl_Reader::Transfer (STEPControl_Reader &reader,
 cout<<"filename="<<filename<<endl;
 
     if ( ! filename || ! filename[0] ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       cout << "Warning: STEPCAFControl_Reader::Transfer: Extern reference file name is empty" << endl;
 #endif
       continue; // not a valid extern ref
@@ -658,7 +658,7 @@ TDF_Label STEPCAFControl_Reader::AddShape (const TopoDS_Shape &S,
          return EF->GetLabel();
        }
       }
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       if ( ! EF->GetLabel().IsNull() )
         cout << "Warning: STEPCAFControl_Reader::AddShape: Non-empty shape with external ref; ref is ignored" << endl;
       else if ( nbComponents <=0 ) 
@@ -707,7 +707,7 @@ Handle(STEPCAFControl_ExternFile) STEPCAFControl_Reader::ReadExternFile (const S
     return myFiles->Item ( file );
   }
 
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
   cout << "Reading extern file: " << fullname << endl;
 #endif
  
@@ -788,7 +788,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadColors (const Handle(XSControl_WorkS
 {
   STEPConstruct_Styles Styles ( WS );
   if ( ! Styles.LoadStyles() ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     cout << "Warning: no styles are found in the model" << endl;
 #endif
     return Standard_False;
@@ -963,7 +963,7 @@ TDF_Label STEPCAFControl_Reader::FindInstance (const Handle(StepRepr_NextAssembl
   Handle(Transfer_TransientProcess) TP = Tool.TransientProcess();
   Handle(Transfer_Binder) binder = TP->Find(NAUO);
   if ( binder.IsNull() || ! binder->HasResult() ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << endl;
 #endif
     return L;
@@ -971,7 +971,7 @@ TDF_Label STEPCAFControl_Reader::FindInstance (const Handle(StepRepr_NextAssembl
   
   TopoDS_Shape S = TransferBRep::ShapeResult ( TP, binder );
   if ( S.IsNull() ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << endl;
 #endif
     return L;
@@ -1149,7 +1149,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadValProps (const Handle(XSControl_Wor
   TColStd_SequenceOfTransient props;
   STEPConstruct_ValidationProps Props ( WS );
   if ( ! Props.LoadProps ( props ) ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     cout << "Warning: no validation props found in the model" << endl;
 #endif
     return Standard_False;
@@ -1310,7 +1310,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadLayers (const Handle(XSControl_WorkS
     Interface_EntityIterator subs = WS->Graph().Sharings(SVPLA);
     for (subs.Start(); subs.More(); subs.Next()) {
       if ( ! subs.Value()->IsKind(STANDARD_TYPE(StepVisual_Invisibility)) ) continue;
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       cout<< "\tLayer \"" << aLayerName << "\" is invisible"<<endl;
 #endif
       //TDF_Label InvLayerLab = LTool->FindLayer(aLayerName);
@@ -1387,7 +1387,7 @@ static TDF_Label setSHUOintoDoc (const Handle(XSControl_WorkSession) &WS,
   Handle(StepRepr_NextAssemblyUsageOccurrence) NUNAUO =
     Handle(StepRepr_NextAssemblyUsageOccurrence)::DownCast(SHUO->NextUsage());
   if ( UUNAUO.IsNull() || NUNAUO.IsNull() ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     cout << "Warning: " << __FILE__ <<": Upper_usage or Next_usage of styled SHUO is null. Skip it" << endl;
 #endif
     return aMainLabel;
@@ -1446,7 +1446,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadSHUOs (const Handle(XSControl_WorkSe
   
   STEPConstruct_Styles Styles ( WS );
   if ( ! Styles.LoadStyles() ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     cout << "Warning: no styles are found in the model" << endl;
 #endif
     return Standard_False;
@@ -1466,7 +1466,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadSHUOs (const Handle(XSControl_WorkSe
       if ( style != aHSeqOfInvisStyle->Value( si ) )
         continue;
       // found that current style is invisible.
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is invisible" << endl;
 #endif
       IsVisible = Standard_False;
@@ -1505,7 +1505,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadSHUOs (const Handle(XSControl_WorkSe
       // set the SHUO structure to the document
       TDF_Label aLabelForStyle = setSHUOintoDoc( WS, SHUO, STool, PDFileMap, ShapeLabelMap );
       if ( aLabelForStyle.IsNull() ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
         cout << "Warning: " << __FILE__ <<": coudnot create SHUO structure in the document" << endl;
 #endif
         continue;
index 1b8c342ddb30f856cba84f0a29fe19ec3ca04dc3..74820314ca4862a76946732325df6d4151171029 100644 (file)
@@ -267,7 +267,7 @@ IFSelect_ReturnStatus STEPCAFControl_Writer::Write (const Standard_CString filen
     // construct extern file name
     TCollection_AsciiString fname = OSD_Path::AbsolutePath ( dpath, EF->GetName()->String() );
     if ( fname.Length() <= 0 ) fname = EF->GetName()->String();
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     cout << "Writing external file: " << fname.ToCString() << endl;
 #endif
     
@@ -418,9 +418,6 @@ Standard_Boolean STEPCAFControl_Writer::Transfer (STEPControl_Writer &writer,
     Handle(STEPCAFControl_ActorWrite)::DownCast ( writer.WS()->NormAdaptor()->ActorWrite() );
 
   // translate free top-level shapes of the DECAF document
-#ifdef DEB // includes Transfer_ActorOfFinderProcess
-//  cout << "Actor is " << writer.WS()->NormAdaptor()->ActorWrite()->DynamicType()->Name() << endl;
-#endif
   Standard_Integer ap = Interface_Static::IVal ("write.step.schema");
   TDF_LabelSequence sublabels;
   for ( Standard_Integer i=1; i <= labels.Length(); i++ ) {
@@ -694,7 +691,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_
     Handle(StepShape_ShapeDefinitionRepresentation) SDR;
     Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FP, S );
     if ( ! FP->FindTypedTransient ( mapper, STANDARD_TYPE(StepShape_ShapeDefinitionRepresentation), SDR ) ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << endl;
 #endif
       continue;
@@ -706,7 +703,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_
     StepRepr_RepresentedDefinition RD = SDR->Definition();
     Handle(StepRepr_PropertyDefinition) aPropDef = RD.PropertyDefinition();
     if (aPropDef.IsNull()) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepRepr_PropertyDefinition is null for " << S.TShape()->DynamicType()->Name() << endl;
 #endif
       continue;
@@ -714,7 +711,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_
     StepRepr_CharacterizedDefinition CharDef = aPropDef->Definition();
     Handle(StepBasic_ProductDefinition) PD = CharDef.ProductDefinition();
     if (PD.IsNull()) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepBasic_ProductDefinition is null for " << S.TShape()->DynamicType()->Name() << endl;
 #endif
       continue;
@@ -943,7 +940,7 @@ static void MakeSTEPStyles (STEPConstruct_Styles &Styles,
       TopLoc_Location L;
       TColStd_SequenceOfTransient seqRI;
       Standard_Integer nb = FindEntities ( Styles.FinderProcess(), S, L, seqRI );
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       if ( nb <=0 ) cout << "Warning: Cannot find RI for " << S.TShape()->DynamicType()->Name() << endl;
 #endif
       //Get overridden style gka 10.06.03
@@ -1037,7 +1034,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteColors (const Handle(XSControl_Work
     // Skip assemblies: colors assigned to assemblies and their instances
     // are not supported (it is not clear how to encode that in STEP)
     if ( XCAFDoc_ShapeTool::IsAssembly ( L ) ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       cout << "Warning: Cannot write color  for Assembly" << endl;
       cout << "Info: Check for colors assigned to components in assembly" << endl;
 #endif
@@ -1119,7 +1116,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteColors (const Handle(XSControl_Work
 
     if (!isComponent) {
       if ( myMapCompMDGPR.IsBound( aTopSh )) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
         cerr << "Error: Current Top-Level shape have MDGPR already " << endl;
 #endif
       }
@@ -1233,7 +1230,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteNames (const Handle(XSControl_WorkS
     Handle(StepShape_ShapeDefinitionRepresentation) SDR;
     Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FP, S );
     if ( ! FP->FindTypedTransient ( mapper, STANDARD_TYPE(StepShape_ShapeDefinitionRepresentation), SDR ) ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << endl;
 #endif
       continue;
@@ -1481,7 +1478,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteLayers (const Handle(XSControl_Work
     Standard_Boolean isLinv = Standard_False;
     if (L.FindAttribute(XCAFDoc::InvisibleGUID(), aUAttr)) {
       descr = new TCollection_HAsciiString ("invisible");
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       FP->Messenger() << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<endl;
 #endif
       isLinv = Standard_True;
@@ -1649,7 +1646,7 @@ static Standard_Boolean writeSHUO (const Handle(XCAFDoc_GraphNode)& theSHUO,
 //   Handle(XCAFDoc_GraphNode) NuSHUO;
   if ( aNextUsageLabs.Length() > 0) {
     // store SHUO recursive
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     if ( aNextUsageLabs.Length() > 1 )
       cout << "Warning: store only one next_usage of current SHUO"  << endl;
 #endif    
@@ -1669,7 +1666,7 @@ static Standard_Boolean writeSHUO (const Handle(XCAFDoc_GraphNode)& theSHUO,
     Handle(StepRepr_NextAssemblyUsageOccurrence) UUNAUO, NUNAUO;
     if (!getProDefinitionOfNAUO( WS, aUUSh, nullPD, UUNAUO, Standard_True ) ||
         !getProDefinitionOfNAUO( WS, aNUSh, aRelatedPD, NUNAUO, Standard_False )) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
       cout << "Warning: cannot get related or relating PD" << endl;
 #endif
       return Standard_False;
@@ -1753,7 +1750,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
   TopLoc_Location L;
   TColStd_SequenceOfTransient seqRI;
   FindEntities ( FP, Sh, L, seqRI );
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
   if ( seqRI.Length() <=0 ) 
     FP->Messenger() << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << endl;
 #endif
@@ -1770,7 +1767,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
   // do it by additing styled item to the MDGPR
   if ( !aTopSh.IsNull() &&  !myMapCompMDGPR.IsBound( aTopSh ) ) {
     // create MDGPR and record it in model
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     cout << "Warning: " << __FILE__ << ": Create new MDGPR for SHUO instance"  << endl;
 #endif
     Handle(StepVisual_MechanicalDesignGeometricPresentationRepresentation) aMDGPR;
@@ -1801,7 +1798,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
   }
   else {
     WS->Model()->AddWithRefs ( STEPstyle ); // add as root to the model, but it is not good
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
     cout << "Warning: " << __FILE__ << ": adds styled item of SHUO as root, casue cannot find MDGPR" << endl;
 #endif
   }
@@ -1878,7 +1875,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteSHUOs (const Handle(XSControl_WorkS
           // check if it is styled SHUO
           XCAFPrs_Style SHUOstyle;
           if ( !getSHUOstyle ( aSHUOlab, CTool, SHUOstyle ) ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
             cout << "Warning: " << __FILE__ << ": do not store SHUO without any style to the STEP model" << endl;
 #endif
             continue;
@@ -1891,13 +1888,13 @@ Standard_Boolean STEPCAFControl_Writer::WriteSHUOs (const Handle(XSControl_WorkS
           // create the top SHUO and all other.
           writeSHUO( aSHUO, CTool->ShapeTool(), WS, anEntOfSHUO, NAUOShape, aRelatingPD, isDeepest );
           if ( anEntOfSHUO.IsNull() || NAUOShape.IsNull() ) {
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
             cout << "Warning: " << __FILE__ << ": Cannot store SHUO" << endl;
 #endif
             continue;
           }
           // create new Product Definition Shape for TOP SHUO
-#ifdef DEB
+#ifdef STEPCAFCONTROL_DEB
             cout << "Info: " << __FILE__ << ": Create NEW PDS for current SHUO " << endl;
 #endif
           Handle(StepRepr_ProductDefinitionShape) PDS = new StepRepr_ProductDefinitionShape;
index 4456308878983035e737e004c7f1f5f31e794c9e..7e3836127810518cc46c2655345cde72a7569fc3 100644 (file)
@@ -52,7 +52,7 @@ Handle(StepRepr_RepresentationItem) STEPConstruct::FindEntity (const Handle(Tran
   Handle(StepRepr_RepresentationItem) item;
   Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FinderProcess, Shape );
   FinderProcess->FindTypedTransient (mapper,STANDARD_TYPE(StepRepr_RepresentationItem), item);
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
   if ( item.IsNull() ) cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << endl;
   else cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << endl;
 #endif
@@ -79,7 +79,7 @@ Handle(StepRepr_RepresentationItem) STEPConstruct::FindEntity (const Handle(Tran
       mapper = TransferBRep::ShapeMapper ( FinderProcess, S );
       FinderProcess->FindTypedTransient (mapper,STANDARD_TYPE(StepRepr_RepresentationItem), item);
   }
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
   if ( item.IsNull() ) cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << endl;
   else if ( Loc != Shape.Location() ) cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found for shape without location: " << item->DynamicType()->Name() << endl;
   else cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << endl;
index dfcd3c7cdeaabe730a891ca0c35058c4272dbee5..1cbebd5c851f75567c3f7b5dab8e77c63da0e08b 100644 (file)
@@ -188,7 +188,7 @@ Standard_Boolean STEPConstruct_Assembly::CheckSRRReversesNAUO(const Handle(Inter
     Handle(StepRepr_NextAssemblyUsageOccurrence)::DownCast 
          ( CDSR->RepresentedProductRelation()->Definition().ProductDefinitionRelationship() );
   if ( nauo.IsNull() ) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
     cout << "Warning: No NAUO found in CDSR !" << endl;
 #endif
     return Standard_False;
@@ -223,7 +223,7 @@ Standard_Boolean STEPConstruct_Assembly::CheckSRRReversesNAUO(const Handle(Inter
     return Standard_True;
   }
 
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
   cout << "Warning: SRR and NAUO are incompatible" << endl;
 //  cout << "NAUO = " << Model->StringLabel(nauo)->ToCString() << 
 //       ",\tCDSR = " << Model->StringLabel(CDSR)->ToCString() << endl;
index ccdd9b2fc659b41e3779b63df079b2efd84db3e6..aebbce305cb928df0edabd7004a6a519522cc92b 100644 (file)
@@ -228,10 +228,6 @@ Standard_Boolean STEPConstruct_ExternRefs::LoadExternRefs ()
     // search for Document file
     Handle(StepBasic_DocumentFile) DocFile;
     if ( aPDWAD.IsNull() ) { // shoudnot be begin from TRJ11
-// #ifdef DEB
-//       cout << "Warning: Cannot find PDWAD corresponding to ADR to search Document File. " << endl;
-//       cout << "Info: Looking for Document File direct from ARD" << endl;
-// #endif
       // lookinf from ADR
       subs4 = Graph().Shareds(ADR);
     } else 
@@ -344,10 +340,6 @@ const Standard_CString STEPConstruct_ExternRefs::FileName (const Standard_Intege
     // search for Document file
     Interface_EntityIterator subs4;
     if ( aPDWAD.IsNull() ) { // shoudnot be begin from TRJ11
-// #ifdef DEB
-//       cout << "Warning: Cannot find PDWAD corresponding to ADR to search Document File. " << endl;
-//       cout << "Info: Looking for DocumentFile direct from ARD" << endl;
-// #endif
       // lookinf from ADR
       subs4 = Graph().Shareds(ADR);
     } else 
index 35e0ee78e6a1f98e7c71d4fb06ae74d9c0857fa6..4c4ba9b0e3081450a075de169607380597b0414a 100644 (file)
@@ -309,7 +309,7 @@ Handle(StepRepr_RepresentationContext) STEPConstruct_Styles::FindContext (const
   Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FinderProcess(), Shape );
   Handle(StepShape_ShapeRepresentation) sr;
   if ( FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepShape_ShapeRepresentation), sr) ) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
 //    cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": SR found: " << sr->DynamicType()->Name() << endl;
 #endif
     Context = sr->ContextOfItems();
@@ -317,12 +317,12 @@ Handle(StepRepr_RepresentationContext) STEPConstruct_Styles::FindContext (const
   else {
     Handle(StepGeom_GeometricRepresentationItem) item;
     if ( FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepGeom_GeometricRepresentationItem), item) ) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
 //      cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << endl;
 #endif
       Interface_EntityIterator subs = Graph().Sharings(item);
       for (subs.Start(); Context.IsNull() && subs.More(); subs.Next()) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
 //     cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << endl;
 #endif
        if ( ! subs.Value()->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation)) ) continue;
@@ -331,7 +331,7 @@ Handle(StepRepr_RepresentationContext) STEPConstruct_Styles::FindContext (const
       }
     }
   }
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
   if ( Context.IsNull() ) {
     cout << Shape.TShape()->DynamicType()->Name() << ": Cannot find context" << endl;
   }
@@ -492,7 +492,7 @@ Handle(StepVisual_PresentationStyleAssignment) STEPConstruct_Styles::MakeColorPS
   }
   
   if ( items.Length() <1 ) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
     cout << "Error: no color is supplied" << endl;
 #endif
     return PSA;
@@ -719,7 +719,7 @@ Standard_Boolean STEPConstruct_Styles::DecodeColor (const Handle(StepVisual_Colo
     else if ( name.IsEqual ( "black"   ) ) Col.SetValues ( Quantity_NOC_BLACK );
     else if ( name.IsEqual ( "white"   ) ) Col.SetValues ( Quantity_NOC_WHITE );
     else {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
       cout << "Error: color name \"" << name << "\" is not recognized" << endl;
 #endif
       return Standard_False;
index 5d7d28fe8029696e12475fe5fd946da0b4c36352..1d5baa847d3268211353b5030cef31a74ad6706f 100644 (file)
@@ -258,7 +258,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepRepr
   lengthDone = planeAngleDone = solidAngleDone = Standard_False;
   
   if (aContext.IsNull()) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
     cout<<" -- STEPConstruct_UnitContext:ComputeFactor, Context undefined -> default"<<endl;
 #endif
     return 1;
@@ -271,7 +271,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepRepr
   for (Standard_Integer i = 1; i <= nbU; i++) {
     Handle(StepBasic_NamedUnit) theNamedUnit = aContext->UnitsValue(i);
     status = ComputeFactors(theNamedUnit);
-#ifdef DEB    
+#ifdef STEPCONSTRUCT_DEB
     if(status == -1)
       cout << " -- STEPConstruct_UnitContext:ComputeFactor: Unit item no." << i << " is not recognized" << endl;
 #endif    
@@ -342,7 +342,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
     }
     else {
       status = 14;
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
       cout << "Error in the file : parameter double defined" << endl;
 #endif
     }
@@ -367,7 +367,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
     }
     else {
       status = 14;
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
       cout << "Error in the file : parameter double defined" << endl;
 #endif
     }
@@ -375,7 +375,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
   
   // Defining a type of unit
   if(!parameterDone) {
-#ifdef DEB 
+#ifdef STEPCONSTRUCT_DEB
     cout << "Unit Type not implemented" << endl;
 #endif 
     return 0;
@@ -392,7 +392,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
       lengthDone = Standard_True;
     else {
       status = 14;
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
       cout << "Error in the file : LengthFactor double defined" << endl;
 #endif    
     }
@@ -453,7 +453,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeTolerance
   for (Standard_Integer un = 1 ; un <= nbUncertainty ; un ++) {
     Handle(StepBasic_UncertaintyMeasureWithUnit) aUMWU = aContext->UncertaintyValue(un);
     if (aUMWU.IsNull()) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
       cout<<"BAD Uncertainty Measure with Units, n0."<<un<<endl;
 #endif
       continue;
@@ -483,7 +483,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeTolerance
     }
   }
 
-#ifdef DEBUG
+#ifdef STEPCONSTRUCT_DEB
   if (hasUncertainty) cout << "UNCERTAINTY read as " << theUncertainty << endl;
 #endif
   return status;
index e9a6bd444b7fe843163f9d86f49cfd36c19d6fca..76909c81b4b60d81a01a16eb2038935d3dd1f29a 100644 (file)
@@ -117,7 +117,7 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
   Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FinderProcess(), Shape );
   Handle(Transfer_Binder) binder = FinderProcess()->Find ( mapper );
   
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
 //  cout << "\n>========------" << endl;
 //  cout << "Binders for " << Shape.TShape()->DynamicType()->Name() << " " << *(void**)&Shape.TShape() << ", Loc = " << *(void**)&Shape.Location() << endl;
 //  cout << "mapper = " << *(void**)&mapper << ", binder = " << *(void**)&binder << endl;
@@ -149,11 +149,11 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
         target.SetValue ( CDSR->RepresentedProductRelation() );
         Context = CDSR->RepresentationRelation()->Rep2()->ContextOfItems();
       }
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
       else cout << "INSTANCE: CDRS from NAUO NOT found" << endl;
 #endif
     }
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
     else cout << "INSTANCE: NAUO NOT found" << endl;
 #endif
 */
@@ -169,12 +169,12 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
         PDS = Handle(StepRepr_ProductDefinitionShape)::DownCast(subs1.Value());
       }
       target.SetValue ( PDS );
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
 //      cout << "COMPOUND: SDR found: " << sdr->DynamicType()->Name() << endl;
 #endif
     }
     else {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
       cout << "COMPOUND: ProdDef NOT found" << endl;
 #endif
       Handle(StepShape_ShapeRepresentation) SR;
@@ -220,14 +220,14 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
   else {
     Handle(StepGeom_GeometricRepresentationItem) item;
     if ( FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepGeom_GeometricRepresentationItem), item) ) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
 //      cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << endl;
 #endif
       // find PDS (GRI <- SR <- SDR -> PDS)
       Handle(StepRepr_ProductDefinitionShape) PDS;
       Interface_EntityIterator subs = Graph().Sharings(item);
       for (subs.Start(); PDS.IsNull() && subs.More(); subs.Next()) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
 //     cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << endl;
 #endif
         if ( ! subs.Value()->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation)) ) continue;
@@ -262,7 +262,7 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
         if ( aspect.IsNull() ) {
 //     if ( ! FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepRepr_ShapeAspect), aspect ) ||
 //          aspect->OfShape() != PDS )
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
           cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT NOT found, creating" << endl;
 #endif
          // create aspect and all related data
@@ -299,7 +299,7 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
         }
        // SHAPE_ASPECT found, but we also need context: FIND IT !!!!
         else { 
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
           cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT found" << endl;
 #endif
           Handle(StepRepr_ProductDefinitionShape) aPDS = aspect->OfShape();
@@ -314,11 +314,11 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
   
         if ( ! aspect.IsNull() ) target.SetValue ( aspect );
       }
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
       else  cout << Shape.TShape()->DynamicType()->Name() << ": PDS NOT found, fail to create SHAPE_ASPECT" << endl;
 #endif
     }
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
     else cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem NOT found" << endl;
 #endif
   }
@@ -673,7 +673,7 @@ Standard_Boolean STEPConstruct_ValidationProps::GetPropReal (const Handle(StepRe
   if ( Name == "AREA_MEASURE" ) isArea = Standard_True;
   else if ( Name == "VOLUME_MEASURE" ) isArea = Standard_False; 
   else {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
     cout << "Warning: Measure " << Model()->StringLabel ( M ) << " is neither area not volume" << endl;
 #endif
     return Standard_False;
@@ -696,7 +696,7 @@ Standard_Boolean STEPConstruct_ValidationProps::GetPropPnt (const Handle(StepRep
   
   Handle(StepGeom_CartesianPoint) P = Handle(StepGeom_CartesianPoint)::DownCast ( item );
   if ( P.IsNull() || P->NbCoordinates() != 3 ) {
-#ifdef DEB
+#ifdef STEPCONSTRUCT_DEB
     cout << "Warning: Point " << Model()->StringLabel ( P ) << " is not valid for centroid" << endl;
 #endif
     return Standard_False;;
index 6eaf767cbc5ea1e7df120e0676d16cb8a37e743a..3f2ebe68c4762d5ce74145cb4f8d8222d07e4c1d 100644 (file)
 // Purpose: Use it in DEB mode to dump your shapes
 // ============================================================================
 
-#ifdef DEB
+#ifdef STEPCONTROL_DEB
 static void DumpWhatIs(const TopoDS_Shape& S) {
 
   TopTools_MapOfShape aMapOfShape;
@@ -287,12 +287,12 @@ Handle(Transfer_Binder)  STEPControl_ActorRead::Transfer
       Handle(TCollection_HAsciiString) aPPVersion = aFileNameEntity->PreprocessorVersion();
       if(aPPVersion.IsNull())
         continue;
-      #ifdef DEB
+      #ifdef STEPCONTROL_DEB
       cout << "Preprocessor version detected: " << aPPVersion->ToCString() << endl;
       #endif
       Standard_Integer anIDeasResult = aPPVersion->Search("I-DEAS");
       if (anIDeasResult != -1) {
-        #ifdef DEB
+        #ifdef STEPCONTROL_DEB
         cout << "Recognized as I-DEAS STP" << endl;
         #endif
         myNMTool.SetIDEASCase(Standard_True);
@@ -783,7 +783,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
   if ( isNMMode && sr->IsKind(STANDARD_TYPE(StepShape_NonManifoldSurfaceShapeRepresentation)) ) {
     isManifold = Standard_False;
     NM_DETECTED = Standard_True;
-    #ifdef DEB
+    #ifdef STEPCONTROL_DEB
     Standard_Integer NMSSRItemsLen = sr->Items()->Length();
     cout << "NMSSR with " << NMSSRItemsLen << " items detected" << endl;
     #endif
@@ -794,11 +794,11 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
     if (isNMMode && myNMTool.IsIDEASCase() && isIDeasMode) {
       isManifold = Standard_False;
       NM_DETECTED = Standard_True;
-      #ifdef DEB
+      #ifdef STEPCONTROL_DEB
       cout << "I-DEAS post processing for non-manifold topology ENABLED" << endl;
       #endif
     }
-    #ifdef DEB
+    #ifdef STEPCONTROL_DEB
     else if ( myNMTool.IsIDEASCase() )
       cout << "I-DEAS post processing for non-manifold topology DISABLED" << endl;
     #endif
@@ -910,7 +910,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
   TP->Bind(sr, shbinder);
 
   
-  #ifdef DEB
+  #ifdef STEPCONTROL_DEB
   DumpWhatIs(comp);
   #endif
   
@@ -1775,7 +1775,7 @@ TopoDS_Shell STEPControl_ActorRead::closeIDEASShell(const TopoDS_Shell& shell,
     if (subCheckStatus != BRepCheck_NoError)
       brepBuilder.Add(result, currentFace);
     else {
-      #ifdef DEB
+      #ifdef STEPCONTROL_DEB
       cout << "Redundant closing face detected: REMOVED from shell";
       #endif
     }
index efc1b6181c429eb7d3d653dfbe2fb6c8ff2cb1b1..f032b14cecda6d04c2e0bbdf9d57c8cdc86c506b 100644 (file)
 // Purpose: Use it in DEB mode to dump your shapes
 // ============================================================================
 
-#ifdef DEB
+#ifdef STEPCONTROL_DEB
 static void DumpWhatIs(const TopoDS_Shape& S) {
 
   TopTools_MapOfShape aMapOfShape;
@@ -194,7 +194,7 @@ static Standard_Boolean IsManifoldShape(const TopoDS_Shape& theShape) {
       aBrepBuilder.Add(aDirectShapes, aDirectChild);
   }  
 
-  #ifdef DEB
+  #ifdef STEPCONTROL_DEB
   DumpWhatIs(aDirectShapes);
   #endif
 
@@ -202,7 +202,7 @@ static Standard_Boolean IsManifoldShape(const TopoDS_Shape& theShape) {
   TopExp::MapShapesAndAncestors(aDirectShapes, TopAbs_EDGE, TopAbs_FACE, aMapEdgeFaces);
 
   Standard_Integer aNbEdges = aMapEdgeFaces.Extent();
-  #ifdef DEB
+  #ifdef STEPCONTROL_DEB
   cout << "Checking whether the topology passed is manifold..." << endl;
   #endif
 
@@ -218,7 +218,7 @@ static Standard_Boolean IsManifoldShape(const TopoDS_Shape& theShape) {
     }
   }
 
-  #ifdef DEB
+  #ifdef STEPCONTROL_DEB
   cout << "Check result: "
        << (aResult ? "TRUE" : "FALSE") << endl;
   #endif
@@ -279,13 +279,13 @@ Handle(StepShape_NonManifoldSurfaceShapeRepresentation) STEPControl_ActorWrite::
   }
 
   if ( aResult.IsNull() ) {
-    #ifdef DEB
+    #ifdef STEPCONTROL_DEB
     cout << "\nNew NMSSR created" << endl;
     #endif
     aResult = new StepShape_NonManifoldSurfaceShapeRepresentation;
     isNMSSRCreated = Standard_True;
   } else {
-    #ifdef DEB
+    #ifdef STEPCONTROL_DEB
     cout << "\nExisting NMSSR is used" << endl;
     #endif
     isNMSSRCreated = Standard_False;
@@ -628,7 +628,7 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferShape (const Handle(Tran
     //:abv 20.05.02: writing box & face from it (shared) in one compound 
     // as assembly - while face already translated, it should be 
     // re-translated to break sharing
-#ifdef DEB
+#ifdef STEPCONTROL_DEB
     cout << "Warning: STEPControl_ActorWrite::TransferShape(): shape already translated" << endl;
 #endif
 //    return binder;
@@ -1294,7 +1294,7 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferCompound (const Handle(T
   BRep_Builder aB;
   aB.MakeCompound(aCompOfVrtx);
  
-  #ifdef DEB
+  #ifdef STEPCONTROL_DEB
   if (!isManifold)
     cout << "Exploding Solids to Shells if any..." << endl;
   #endif
index f448637e9440ac9554d35722276928a0173c2044..996cc73ed28b44d92b2a2dee840d9b3f8cbeb5c6 100644 (file)
@@ -150,7 +150,7 @@ Standard_Integer STEPControl_Reader::NbRootsForTransfer()
             break;
         }
         if (iSexclude) {
-#ifdef DEB
+#ifdef STEPCONTROL_DEB
           cout << "Warning: STEPControl_Reader::NbRootsForTransfer exclude PDWAD from roots" << endl;
 #endif
           continue;
index 8b83b3229adfb5ae0de9e2694e157b4091cc9602..396df02d4f7c6af41306e5b5d9b3ca4b563c4506 100644 (file)
@@ -77,7 +77,7 @@ static void ProjectOnSegments (const Adaptor3d_Curve& AC, const gp_Pnt& P3D,
   }
   if (aHasChanged)
     distmin = Sqrt (distmin2);
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
   cout<<"ShapeAnalysis_Geom:Project, param="<<param<<" -> distmin="<<distmin<<endl;
 #endif
 
@@ -245,7 +245,7 @@ Standard_Real ShapeAnalysis_Curve::ProjectAct(const Adaptor3d_Curve& C3D,
   }
   catch(Standard_Failure) {
     OK = Standard_False;
-#ifdef DEB //:s5
+#ifdef SHAPEANALYSIS_DEB //:s5
     cout << "\nWarning: ShapeAnalysis_Curve::ProjectAct(): Exception in Extrema_ExtPC: "; 
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -481,25 +481,25 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
 
   if (theCurve->IsKind(STANDARD_TYPE(Geom_BoundedCurve)) && !theCurve->IsClosed()) {
     if (First < cf) {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
       cout << "Update Edge First Parameter to Curve First Parameter" << endl;
 #endif
       First = cf;
     }
     else if (First > cl) {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
       cout << "Update Edge First Parameter to Curve Last Parameter" << endl;
 #endif
       First = cl;
     }
     if (Last < cf) {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
       cout << "Update Edge Last Parameter to Curve First Parameter" << endl;
 #endif
       Last = cf;
     }
     else if (Last > cl) {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
       cout << "Update Edge Last Parameter to Curve Last Parameter" << endl;
 #endif
       Last = cl;
@@ -531,7 +531,7 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
       if ( theCurve->Value(First).Distance(theCurve->Value(cf)) < preci ) First = cf;
       if ( theCurve->Value(Last).Distance(theCurve->Value(cl)) < preci ) Last = cl;
       if ( First > Last ) {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
        cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
 #endif
        Standard_Real tmp = First;
@@ -559,7 +559,7 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
       // illegal sur une courbe fermee non periodique
       // on inverse quand meme les parametres !!!!!!
       else {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
        cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
 #endif
        Standard_Real tmp = First;
@@ -569,7 +569,7 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
     }
     //abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
     else if ( First > Last ) {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
       cout << "Warning: parameter range is bad; curve reversed" << endl;
 #endif
       First = theCurve->ReversedParameter ( First );
@@ -583,7 +583,7 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
     }
   }
   else {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
     cout << "UpdateParam3d Failed" << endl;
     cout << "  - Curve Type : " << theCurve->DynamicType() << endl;
     cout << "  - Param 1    : " << First << endl;
@@ -591,7 +591,7 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
 #endif
     //abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
     if ( First > Last ) {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
       cout << "Warning: parameter range is bad; curve reversed" << endl;
 #endif
       First = theCurve->ReversedParameter ( First );
index 2a834166edf273607c07536577558fee4cf7fb8a..e1dbc0c7d37ed00046a410e62c3b21f5d816946a 100644 (file)
@@ -473,7 +473,7 @@ static Handle(Geom_Curve) ComputeIso
   }
   catch(Standard_Failure) {
     iso.Nullify();
-#ifdef DEB //:s5
+#ifdef SHAPEANALYSIS_DEB //:s5
     cout << "\nWarning: ShapeAnalysis_Surface, ComputeIso(): Exception in UVIso(): "; 
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -968,12 +968,12 @@ gp_Pnt2d ShapeAnalysis_Surface::ValueOfUV(const gp_Pnt& P3D,const Standard_Real
        gp_Pnt2d prev(S,T);
        gp_Pnt2d solution;
        if (SurfaceNewton(prev,P3D,preci,solution)) {
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
          cout <<"Newton found point on conic extrusion"<<endl;
 #endif
          return solution;
        }
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
        cout <<"Newton failed point on conic extrusion"<<endl;
 #endif
        uf = -500;
@@ -1089,7 +1089,7 @@ gp_Pnt2d ShapeAnalysis_Surface::ValueOfUV(const gp_Pnt& P3D,const Standard_Real
 
       }
       else {
-#ifdef DEB
+#ifdef SHAPEANALYSIS_DEB
        cout << "Warning: ShapeAnalysis_Surface::ValueOfUV(): Extrema failed, doing Newton" << endl;
 #endif
        // on essai sur les bords
@@ -1127,7 +1127,7 @@ gp_Pnt2d ShapeAnalysis_Surface::ValueOfUV(const gp_Pnt& P3D,const Standard_Real
     //szv#4:S4163:12Mar99 optimized
     S = (Precision::IsInfinite(uf))? 0 : (uf+ul) / 2.;
     T = (Precision::IsInfinite(vf))? 0 : (vf+vl) / 2.;
-#ifdef DEB //:s5
+#ifdef SHAPEANALYSIS_DEB //:s5
     cout << "\nWarning: ShapeAnalysis_Surface::ValueOfUV(): Exception: "; 
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -1325,7 +1325,7 @@ Standard_Real ShapeAnalysis_Surface::UVFromIso(const gp_Pnt& P3d,const Standard_
   }  // fin try RAJOUT
   catch(Standard_Failure) {
     theMin = RealLast();    // theMin de depart
-#ifdef DEB //:s5
+#ifdef SHAPEANALYSIS_DEB //:s5
     cout << "\nWarning: ShapeAnalysis_Curve::UVFromIso(): Exception: "; 
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index 197c1c0b2bc8a5496d82cd90919ff96afe8d3fce..e0decd984dda2eeab0141c7b2d2f16ef8632b708 100644 (file)
@@ -634,7 +634,7 @@ Standard_Boolean ShapeBuild_Edge::BuildCurve3d (const TopoDS_Edge& edge) const
       }
   }
   catch(Standard_Failure) {
-#ifdef DEB
+#ifdef SHAPEBUILD_DEB
     cout << "\nWarning: ShapeBuild_Edge: Exception in BuildCurve3d: "; 
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -662,7 +662,7 @@ void ShapeBuild_Edge::MakeEdge(TopoDS_Edge& edge,const Handle(Geom_Curve)& curve
 {
   BRepBuilderAPI_MakeEdge ME (curve, p1, p2);
   if (!ME.IsDone()) {
-#ifdef DEB
+#ifdef SHAPEBUILD_DEB
     cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
 #endif
     return;
@@ -727,7 +727,7 @@ void ShapeBuild_Edge::MakeEdge(TopoDS_Edge& edge,const Handle(Geom2d_Curve)& pcu
 {
   BRepBuilderAPI_MakeEdge ME (pcurve, S, p1, p2);
   if (!ME.IsDone()) {
-#ifdef DEB
+#ifdef SHAPEBUILD_DEB
     cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
 #endif
     return;
index d55f73bde56775deb2e086af5a9ecc087127f4c8..78cf7dca4927a9096912da35a52f8b7dc589fcf2 100644 (file)
@@ -80,7 +80,7 @@ Handle(Geom_BSplineCurve) ShapeConstruct::ConvertCurveToBSpline(const Handle(Geo
        aBSpline = GeomConvert::CurveToBSplineCurve(C3D,Convert_QuasiAngular);
     }
     catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPECONSTRUCT_DEB
            cout << "Warning: GeomConvert_ApproxSurface Exception:  ";
            Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif 
@@ -211,7 +211,7 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle
       Handle(Geom_BSplineCurve) bspl = ConvertCurveToBSpline(basis, VF, VL, Tol3d, cnt, MaxSegments, MaxDegree);
       gp_Ax1 axis = revol->Axis();
       Handle(Geom_SurfaceOfRevolution) newRevol = new Geom_SurfaceOfRevolution(bspl,axis);
-#ifdef DEB
+#ifdef SHAPECONSTRUCT_DEB
       cout <<" Revolution on offset converted" << endl;
 #endif
       S = newRevol;
@@ -228,7 +228,7 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle
       Standard_Boolean Done = anApprox.IsDone();
       if (anApprox.MaxError() <= Tol3d && Done) {
        
-#ifdef DEB         
+#ifdef SHAPECONSTRUCT_DEB
        Standard_Integer nbOfSpan = (anApprox.Surface()->NbUKnots()-1)*(anApprox.Surface()->NbVKnots()-1);
        cout << "\terror = " << anApprox.MaxError() << "\tspans = " << nbOfSpan << endl;
        cout << " Surface is aproximated with continuity " << (GeomAbs_Shape)cnt <<endl;
@@ -240,7 +240,7 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle
       else {
        if(anApprox.HasResult()) 
          errSpl = Handle(Geom_BSplineSurface)::DownCast(anApprox.Surface());
-#ifdef DEB    
+#ifdef SHAPECONSTRUCT_DEB
        cout << "\terror = " << anApprox.MaxError() <<endl;
 #endif
        break;
@@ -248,7 +248,7 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle
     }
        
     catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPECONSTRUCT_DEB
       cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -352,7 +352,7 @@ Standard_Boolean ShapeConstruct::JoinPCurves(const Handle(TopTools_HSequenceOfSh
     return (i <= edges->Length());
   }
   catch ( Standard_Failure ) {
-#ifdef DEB 
+#ifdef SHAPECONSTRUCT_DEB
     cout<<"Error: ShapeConstruct::JoinPCurves Exception in GeomConvert_CompCurveToBSplineCurve: ";
     Standard_Failure::Caught()->Print(cout); cout<<endl;
 #endif
index d6148694f57016f34303210bce73ec8d5dd0f53f..68f56afd83fc575f20227aa7e9a3124695777be9 100644 (file)
@@ -158,7 +158,7 @@ Handle(Geom_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle(G
       bspl = GeomConvert::CurveToBSplineCurve(tc);
     }
     catch ( Standard_Failure ) {
-#ifdef DEB 
+#ifdef SHAPECONSTRUCT_DEB
       cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in GeomConvert: ";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -179,7 +179,7 @@ Handle(Geom_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle(G
       return bspl;
     }
     catch ( Standard_Failure ) {
-#ifdef DEB 
+#ifdef SHAPECONSTRUCT_DEB
       cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -197,7 +197,7 @@ Handle(Geom_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle(G
       bspl = Conv.Curve();
   }
   catch ( Standard_Failure ) {
-#ifdef DEB 
+#ifdef SHAPECONSTRUCT_DEB
     cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -228,7 +228,7 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle
       bspl = Geom2dConvert::CurveToBSplineCurve(tc);
     }
     catch ( Standard_Failure ) {
-#ifdef DEB 
+#ifdef SHAPECONSTRUCT_DEB
       cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Geom2dConvert: ";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -249,7 +249,7 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle
       return bspl;
     }
     catch ( Standard_Failure ) {
-#ifdef DEB 
+#ifdef SHAPECONSTRUCT_DEB
       cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -268,7 +268,7 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle
       bspl = Conv.Curve();
   }
   catch ( Standard_Failure ) {
-#ifdef DEB 
+#ifdef SHAPECONSTRUCT_DEB
     cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index f3f9bff88d4dcdd745c8adc43e1436cc5dfd5051..a130e32c18aad3c1b740cc8ea62278e4e17a5b60 100644 (file)
@@ -243,7 +243,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::Perform (Handle(Geom_Curv
       if ( bspl->Knot(i+1) > First && bspl->Knot(i) < Last ) nint++;
     Standard_Integer minPnt = nint * ( bspl->Degree() + 1 );
     while ( nbPini < minPnt ) nbPini += NCONTROL - 1;
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
     if ( nbPini > NCONTROL ) 
       cout << "Warning: number of points for projecting is " << nbPini << endl;
 #endif
@@ -358,12 +358,12 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
        if ( appr.IsDone() )
          c2d = appr.Curve2d();
       }
-#ifdef DEB
+#ifdef SHAPECONSTRUCT_DEB
       else
        cout<<"Warning: ProjLib cutting pcurve "<< First << " -> " << ubeg <<" ; "<< Last << " -> " << ufin << endl;
 #endif     
     }
-#ifdef DEB
+#ifdef SHAPECONSTRUCT_DEB
     else cout<<"Warning: ProjLib "<< nbSol << " curves in ProjLib"<<endl;
 #endif
     if(c2d.IsNull()) {
@@ -377,7 +377,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
     
   }
   catch(Standard_Failure) {
-#ifdef DEB
+#ifdef SHAPECONSTRUCT_DEB
     cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(): Exception: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -456,9 +456,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformAdvanced (Handle(G
       Handle(Geom2d_TrimmedCurve) TC = Handle(Geom2d_TrimmedCurve)::DownCast ( result );
       result = TC->BasisCurve();
     }
-#ifdef DEB
-//    if ( ! result.IsNull() ) cout << "SC_PCONS: analitic projection on plane" << endl;
-#endif
+
     return result;
   }
   
@@ -678,7 +676,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformAdvanced (Handle(G
   Standard_Real Up = ul - uf;
   Standard_Real Vp = vl - vf;
   Standard_Real dist2d;
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
   if (mySurf->IsUClosed(myPreci) && mySurf->IsVClosed(myPreci)) {//#78 rln 12.03.99 S4135
     cout << "WARNING : Recadrage incertain sur U & VClosed" << endl;
   }
@@ -831,7 +829,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformAdvanced (Handle(G
          pnt2d (i) = newCurr;
        }
        // on verifie
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
        dist2d = pnt2d (i-1).Distance(pnt2d (i));
        if (dist2d > ( Vp / 2) ) {
          cout << "Echec dans le recadrage" << endl;
@@ -1032,7 +1030,7 @@ Handle(Geom2d_Curve) ShapeConstruct_ProjectCurveOnSurface::ApproximatePCurve(con
     return C2d;
   }
   catch(Standard_Failure) {
-#ifdef DEB //:s5
+#ifdef SHAPECONSTRUCT_DEB //:s5
     //    debug ...
     Standard_Integer nbp = params->Length();
     Standard_Integer nb2 = points2d->Length();
@@ -1076,7 +1074,7 @@ Handle(Geom2d_Curve) ShapeConstruct_ProjectCurveOnSurface::ApproximatePCurve(con
     if (myInterPol2d.IsDone()) C2d = myInterPol2d.Curve();
   }
   catch(Standard_Failure) {
-#ifdef DEB //:s5
+#ifdef SHAPECONSTRUCT_DEB //:s5
 // //    debug ...
     Standard_Integer nbp = params->Length();
     Standard_Integer nb2 = points2d->Length();
@@ -1118,7 +1116,7 @@ Handle(Geom_Curve) ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(cons
   }
   catch(Standard_Failure) {
     C3d.Nullify();
-#ifdef DEB //:s5
+#ifdef SHAPECONSTRUCT_DEB //:s5
     cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(): Exception: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -1165,13 +1163,13 @@ Handle(Geom_Curve) ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(cons
   if (nbPntDropped == 0)
     return;
 
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
   cout << "Warning : removing 3d points for interpolation" << endl;
 #endif
   // Build new HArrays
   Standard_Integer newLast = lastElem - nbPntDropped;
   if ((newLast - firstElem + 1)  < 2) {
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
     cout << "Too many degenerated points for 3D interpolation" << endl;
 #endif
     return;
@@ -1236,13 +1234,13 @@ Handle(Geom_Curve) ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(cons
   if (nbPntDropped == 0)
     return;
 
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
   cout << "Warning : removing 2d points for interpolation" << endl;
 #endif
   // Build new HArrays
   Standard_Integer newLast = lastElem - nbPntDropped;
   if ((newLast - firstElem + 1)  < 2) {
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
     cout << "Too many degenerated points for 2D interpolation" << endl;
 #endif
     //pdn 12.02.99 S4135 Creating pcurve with minimal length.
@@ -1261,7 +1259,7 @@ Handle(Geom_Curve) ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(cons
   Standard_Integer newCurr = 1;
   for (i = firstElem; i <= lastElem ; i++) {
     if (tmpParam.Value(i) == 1) { 
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
       cout << "Point " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " <<  params->Value(i) << endl;
 #endif
       newPnts->SetValue(newCurr, points->Value(i));
@@ -1269,7 +1267,7 @@ Handle(Geom_Curve) ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(cons
       newCurr ++;
     }
     else {
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
       cout << "Removed " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " <<  params->Value(i) << endl;
 #endif
     }
@@ -1518,13 +1516,13 @@ Handle(Geom_Curve) ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(cons
   }  // RAJOUT
   catch(Standard_Failure) {
 //  pb : on affiche ce qu on peut
-#ifdef DEBUG
+#ifdef SHAPECONSTRUCT_DEB
     for (Standard_Integer numpnt = 1; numpnt <= nbrPnt; numpnt ++) {
       cout<<"["<<numpnt<<"]param="<<params(numpnt)<<" point=("<<
        points(numpnt).X()<<"  "<<points(numpnt).Y()<<"  "<<points(numpnt).Z()<<")"<<endl;
     }
 #endif
-#ifdef DEB //:s5
+#ifdef SHAPECONSTRUCT_DEB //:s5
     cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::IsAnIsoparametric(): Exception: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index 2b37fff1fc2e77beeb6dc121f84a32e1e716b72b..97842aaba6903d8e55f03c3253c610e9ec480aca 100644 (file)
@@ -454,7 +454,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
         if(ConvertCurve(BasCurve,ResCurve,Standard_False,Max(VF,BasCurve->FirstParameter()),Min(VL,BasCurve->LastParameter()),TolS,Standard_False)) {
           Handle(Geom_SurfaceOfRevolution) newRevol = new Geom_SurfaceOfRevolution(ResCurve,Surface->Axis());
           aSurf = newRevol;
-#ifdef DEB
+#ifdef SHAPECUSTOM_DEB
           cout <<" Revolution on offset converted" << endl;
 #endif
         }
@@ -655,7 +655,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
           if (anApprox.MaxError() <= myTol3d && Done) {
 
             nbOfSpan = (anApprox.Surface()->NbUKnots()-1)*(anApprox.Surface()->NbVKnots()-1);
-#ifdef DEB
+#ifdef SHAPECUSTOM_DEB
             if((imax-i+1)!=1) {
               cout << " iteration = " << i
                 <<    "\terror = " << anApprox.MaxError()
@@ -696,17 +696,13 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
             return Standard_True;
           }
           else {
-            //#ifdef DEB    
-            //       cout<< " iteration = " << imax-i+1
-            //         <<    "\terror = " << anApprox.MaxError() <<endl;
-            //#endif
             break;
           }
 
         }
 
         catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPECUSTOM_DEB 
           cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
           Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -733,7 +729,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
         else continue;
       }
       else { 
-#ifdef DEB
+#ifdef SHAPECUSTOM_DEB
         cout<<" Approximation iteration out. Surface is not aproximated." << endl;
 #endif
         return Standard_False;
@@ -743,7 +739,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
       if(MaxDeg < myParameters->GMaxDegree())
       { MaxDeg = myParameters->GMaxDegree(); continue;}
       else {
-#ifdef DEB     
+#ifdef SHAPECUSTOM_DEB 
         cout<<" Approximation iteration out. Surface is not aproximated." << endl;
 #endif
         return Standard_False;
@@ -996,7 +992,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve(Handle(Geom_Curve)
                 (anApprox.MaxError() >= Max(TolCur,myTol3d)))) {
                   if(MaxSeg < myParameters->GMaxSeg()) { MaxSeg = myParameters->GMaxSeg(); aC =aC1; continue;}
                   else {
-#ifdef DEB 
+#ifdef SHAPECUSTOM_DEB
                     cout << "Curve is not aproxed with continuity  "<< aCont<<endl;
 #endif       
                     if(IsConvert) {
@@ -1012,7 +1008,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve(Handle(Geom_Curve)
                     MaxDeg = myParameters->GMaxDegree(); aC = aC1; continue;
                   }
                   else {
-#ifdef DEB           
+#ifdef SHAPECUSTOM_DEB
                     cout << "Curve is not aproxed with continuity  "<< aCont<<endl;
 #endif
                     if(IsConvert) {
@@ -1029,7 +1025,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve(Handle(Geom_Curve)
             }
         }
         catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPECUSTOM_DEB
           cout << "Warning: GeomConvert_ApproxCurve Exception: Wrong Coefficient : Decrease continuity    ";
           Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -1304,7 +1300,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve2d(Handle(Geom2d_Cu
             if(myDeg && ((DegC > MaxDeg)  || !Done || ( anApprox.MaxError() >= Max(myTol2d,TolCur)))) {
               if(MaxSeg < myParameters->GMaxSeg()) { MaxSeg = myParameters->GMaxSeg(); aC =aC1; continue;}
               else {
-#ifdef DEB         
+#ifdef SHAPECUSTOM_DEB
                 cout << "Curve is not aproxed with continuity  "<< aCont<<endl;
 #endif
                 if(IsConvert) {
@@ -1320,7 +1316,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve2d(Handle(Geom2d_Cu
                 MaxDeg = myParameters->GMaxDegree(); aC =aC1; continue;
               }
               else {
-#ifdef DEB         
+#ifdef SHAPECUSTOM_DEB
                 cout << "Curve is not aproxed with continuity  "<< aCont<<endl;
 #endif
                 if(IsConvert) {
@@ -1337,7 +1333,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve2d(Handle(Geom2d_Cu
           }
         }
         catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPECUSTOM_DEB
           cout << "Warning: Geom2dConvert_ApproxCurve Exception: Wrong Cofficient :Decrease Continuity    ";
           Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index ddf0700539a7af1c36c3bd7ccbc8ee849f1159fb..390599211db9b3789899a93deaaa9d56ed9c62db 100644 (file)
@@ -104,7 +104,7 @@ Handle(Geom_Curve) ShapeCustom_Curve::ConvertToPeriodic (const Standard_Boolean
       converted = Standard_True;
     }
   }
-#ifdef DEBUG
+#ifdef SHAPECUSTOM_DEB
   cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << endl;
 #endif
   if ( ! converted ) return newCurve;
index ab77d86368dbe3ef776d45e377d51ec45957919f..0659b5fc4c875c728a4f4487089ec7f26e1641ab 100644 (file)
@@ -205,7 +205,7 @@ Handle(Geom_Surface) ShapeCustom_Surface::ConvertToAnalytical (const Standard_Re
     //  CKY  3-FEV-1997 : verification du sens de description
     //gp_Dir AXY = aAx3.YDirection(); // AXY not used (skl)
     if (aAx3.YDirection().Dot (origD1U) < 0) {
-#ifdef DEBUG
+#ifdef SHAPECUSTOM_DEB
       cout<<" Surface Analytique : sens a inverser"<<endl;
 #endif
       aAx3.YReverse();    //  mais X reste !
@@ -304,7 +304,7 @@ Handle(Geom_Surface) ShapeCustom_Surface::ConvertToAnalytical (const Standard_Re
          new Geom_ToroidalSurface(aAx3, RR1, RR2);
        if (j==2) anObject->UReverse();
        anObject->D1 (0.,0.,resPnt,resD1U,resD1V);
-#ifdef DEBUG
+#ifdef SHAPECUSTOM_DEB
        if (resD1U.Dot(origD1U) < 0 && j != 2)
          cout<<" Tore a inverser !"<<endl;
 #endif
@@ -510,7 +510,7 @@ Handle(Geom_Surface) ShapeCustom_Surface::ConvertToPeriodic (const Standard_Bool
     }
   }
   
-#ifdef DEBUG
+#ifdef SHAPECUSTOM_DEB
   cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << endl;
 #endif
   if ( ! converted ) return newSurf;
index 80cecd8c350913d841c27951fd0ca5314f7e6641..61ce6fe8326a057330fcfb1ec9b77b6fc9f5b081 100644 (file)
@@ -123,7 +123,7 @@ ShapeExtend_ComplexCurve::ShapeExtend_ComplexCurve()
     ok &= Curve (i)->Value (Curve(i)->LastParameter()).IsEqual
       (Curve (i + 1)->Value (Curve(i + 1)->FirstParameter()), Preci);
   }
-#ifdef DEB
+#ifdef SHAPEEXTEND_DEB
   if (!ok) cout << "Warning: ShapeExtend_ComplexCurve: not connected in 3d" << endl;
 #endif
   return ok;
index 2e1bbd775ee8389ff506abc1a8fdb0d6267ad249..1ca9a7d820706b56287bf202cbb9a38eb9cd8223 100644 (file)
@@ -79,7 +79,7 @@ Standard_Boolean ShapeExtend_CompositeSurface::Init (const Handle(TColGeom_HArra
   if ( ! SetUJointValues ( UJoints ) || ! SetVJointValues ( VJoints ) ) {
     ok = Standard_False;
     ComputeJointValues ( ShapeExtend_Natural );
-#ifdef DEB
+#ifdef SHAPEEXTEND_DEB
     cout << "Warning: ShapeExtend_CompositeSurface::Init: bad joint values" << endl;
 #endif
   }
@@ -826,7 +826,7 @@ Standard_Boolean ShapeExtend_CompositeSurface::CheckConnectivity (const Standard
     else if ( maxdist2 > Prec*Prec ) ok = Standard_False;
   }
 
-#ifdef DEB
+#ifdef SHAPEEXTEND_DEB
   if ( ! ok ) cout << "Warning: ShapeExtend_CompositeSurface: not connected in 3d" << endl;
 #endif
   return ok;
index 8eaca8ddbf2769632c6dc5ecaa3ebfa9c3fd9d94..bdaa4fddb7758ca4409accfca27b51c2eff07414 100644 (file)
@@ -35,7 +35,7 @@ void ShapeExtend_MsgRegistrator::Send(const Handle(Standard_Transient)& object,
                                      const Message_Gravity) 
 {
   if (object.IsNull()) {
-#ifdef DEB
+#ifdef SHAPEEXTEND_DEB
     cout << "Warning: ShapeExtend_MsgRegistrator::Send: null object" << endl;
 #endif
     return;
@@ -61,7 +61,7 @@ void ShapeExtend_MsgRegistrator::Send(const Handle(Standard_Transient)& object,
                                       const Message_Gravity) 
 {
   if (shape.IsNull()) {
-#ifdef DEB
+#ifdef SHAPEEXTEND_DEB
     cout << "Warning: ShapeExtend_MsgRegistrator::Send: null shape" << endl;
 #endif
     return;
index 816ccc35208d116138090fe26f253cb9f8c64823..0865a81634c8537e784c0b09931d1460a3201379 100644 (file)
@@ -215,7 +215,7 @@ Standard_Boolean ShapeFix::SameParameter(const TopoDS_Shape& shape,
   }
 
   if (!status) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout<<"** SameParameter not complete. On "<<numedge<<" Edges:";
     if (nbfail > 0) cout<<"  "<<nbfail<<" Failed";
     cout<<endl;
@@ -252,7 +252,7 @@ static void EncodeRegularity (const TopoDS_Shape& shape,
     BRepLib::EncodeRegularity ( S, tolang );
   }
   catch(Standard_Failure) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout << "Warning: Exception in ShapeFix::EncodeRegularity(): ";
     Standard_Failure::Caught()->Print ( cout );
     cout << endl;
index 2807a627ba5e69f39bddd0dbb1afbbc1c2f0827e..976966f7fb2b1d9524447e91e7ac9e5b87334598 100644 (file)
@@ -377,7 +377,7 @@ static Standard_Integer ApplyContext (ShapeFix_WireSegment &wire,
   for ( TopoDS_Iterator it(res); it.More(); it.Next() ) {
     TopoDS_Edge E = TopoDS::Edge ( it.Value() );
     if ( ! E.IsNull() ) segw->Add ( E );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     else cout << "Error: ShapeFix_ComposeShell, ApplyContext: wrong mapping of edge" << endl;
 #endif
   }
@@ -394,7 +394,7 @@ static Standard_Integer ApplyContext (ShapeFix_WireSegment &wire,
       else wire.AddEdge ( index, aE, iumin, iumax, ivmin, ivmax );
     }
   }
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   else cout << "Warning: ShapeFix_ComposeShell, ApplyContext: edge is to remove - not implemented" << endl;
 #endif
   
@@ -703,7 +703,7 @@ Standard_Integer ShapeFix_ComposeShell::ComputeCode (const Handle(ShapeExtend_Wi
   else if ( code == IOR_BOTH ) { // parity error in intersector
     code = IOR_LEFT;
     myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL2 );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout << "Warning: ShapeFix_ComposeShell::ComputeCode: lost intersection point" << endl;
 #endif
   }
@@ -841,7 +841,7 @@ ShapeFix_WireSegment ShapeFix_ComposeShell::SplitWire (ShapeFix_WireSegment &wir
     if ( nsplit !=1 ) {
       DistributeSplitPoints ( wire.WireData(), myFace, i, nsplit, indexes, values );
       if ( nsplit <=0 ) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
        cout << "Error: ShapeFix_ComposeShell::SplitWire: edge dismissed" << endl;
 #endif
        i--;
@@ -1630,7 +1630,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
     }
     if ( tanglevel <0 ) {
 //      myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL4 );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "Warning: ShapeFix_ComposeShell::SplitByLine: tangency level <0 !" << endl;
 #endif
     }
@@ -1645,7 +1645,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
     // protection against creating null-length edges
     if ( SplitLinePar(i) - SplitLinePar(i-1) < ::Precision::PConfusion() ) {
 
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "Info: ShapeFix_ComposeShell::SplitByLine: Short segment ignored" << endl;
 #endif
       if ( ! V1.IsSame ( V2 ) ) { // merge coincident vertices
@@ -1654,7 +1654,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
         Context()->Replace ( V1, V.Oriented ( V1.Orientation() ) );
         Context()->Replace ( V2, V.Oriented ( V2.Orientation() ) );
        V1 = V2 = V;
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
         cout << "Info: ShapeFix_ComposeShell::SplitByLine: Coincided vertices merged" << endl;
 #endif
       }
@@ -1697,7 +1697,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
   }
   if ( parity % 2 ) {
     myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL4 );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout << "Error: ShapeFix_ComposeShell::SplitByLine: parity error" << endl;
 #endif
   }
@@ -1982,10 +1982,12 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
       i--;
       continue;
     }
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     for ( Standard_Integer k=1; ! myClosedMode && k <= seqw(i).NbEdges(); k++ ) 
-      if ( ! seqw(i).CheckPatchIndex ( k ) ) {;} //break;
-//     cout << "Warning: ShapeFix_ComposeShell::CollectWires: Wrong patch indices" << endl;
+      if ( ! seqw(i).CheckPatchIndex ( k ) ) {
+        cout << "Warning: ShapeFix_ComposeShell::CollectWires: Wrong patch indices" << endl;
+        break;
+      }
 #endif
     Standard_Integer isshort = IsShortSegment ( seqw(i), myFace, myGrid, myLoc,
                                                myUResolution, myVResolution );
@@ -1994,7 +1996,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
          ( seqw(i).Orientation() == TopAbs_EXTERNAL ||
            ( seqw(i).NbEdges() == 1 && //:abv 13.05.02: OCC320 - remove if degenerated 
              BRep_Tool::Degenerated ( seqw(i).Edge(1) ) ) ) ) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "Info: ShapeFix_ComposeShell::CollectWires: Short segment ignored" << endl;
 #endif
       seqw(i).Orientation ( TopAbs_INTERNAL );
@@ -2195,7 +2197,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
                      IsCoincided ( endPnt, firstPnt, myUResolution, myVResolution, 2.* tol ) ) ) {
       if ( ! endV.IsSame ( sae.FirstVertex ( firstEdge ) ) ) {
         myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL5 );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
         cout << "Warning: ShapeFix_ComposeShell::CollectWires: can't close wire" << endl;
 #endif
       }
@@ -2252,7 +2254,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
       //pdn add into resulting sequence!
       ShapeFix_WireSegment s ( wd, TopAbs_FORWARD );
       wires.Append ( s );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout <<"Warning: Short segment processed as separate wire"<<endl;
 #endif
       continue;
@@ -2440,7 +2442,7 @@ void ShapeFix_ComposeShell::MakeFacesOnPatch (TopTools_SequenceOfShape &faces,
   
   // check for lost wires, and if they are, make them roots
   if ( roots.Length() <=0 && loops.Length() >0 ) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << endl;
 #endif
     for ( Standard_Integer j=1; j <= loops.Length(); j++ ) {
@@ -2459,7 +2461,7 @@ void ShapeFix_ComposeShell::MakeFacesOnPatch (TopTools_SequenceOfShape &faces,
     BRepTopAdaptor_FClass2d clas ( fc, ::Precision::PConfusion() );
     if ( clas.PerformInfinitePoint() == TopAbs_IN ) {
       reverse = Standard_True;
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "Warning: ShapeFix_ComposeShell::MakeFacesOnPatch: badly oriented wire" << endl;
 #endif
     }
@@ -2511,7 +2513,7 @@ void ShapeFix_ComposeShell::MakeFacesOnPatch (TopTools_SequenceOfShape &faces,
     
     // check for lost wires, and if they are, make them roots
     if ( i == roots.Length() && loops.Length() >0 ) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << endl;
 #endif
       for ( j=1; j <= loops.Length(); j++ ) {
index d141b0c93cc5bafac505a72fd2082ab7f77074ea..b874419cc042d36b30c4060f1ba4b5a679fe67cf 100644 (file)
@@ -254,7 +254,7 @@ static Handle(Geom2d_Curve) TranslatePCurve (const Handle(Geom_Surface)& aSurf,
     }
 */
     // Other case not yet implemented
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
     cout << "TranslatePCurve not performed" << endl;
 #endif
     return theNewL2d;//*theL2d;
@@ -264,7 +264,7 @@ static Handle(Geom2d_Curve) TranslatePCurve (const Handle(Geom_Surface)& aSurf,
     Handle(Geom2d_BSplineCurve) 
       aBC = Handle(Geom2d_BSplineCurve)::DownCast(aC2d);
     if (aBC.IsNull()) {
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
       cout << "Untreated curve type in TranslatePCurve" << endl;
 #endif
       return aC2d;
@@ -304,9 +304,6 @@ static Handle(Geom2d_Curve) TranslatePCurve (const Handle(Geom_Surface)& aSurf,
       }
 */
     else if (theVector.IsParallel(VectIsoVF, aTol)) {
-//#ifdef DEBUG
-//      cout << "other curve-VClosed Surface. TranslatePC not impl." << endl;
-//#endif
       if (Abs(FirstPoint.Y() - vf) < Abs(FirstPoint.Y() - vl)) T.SetTranslation(p00, p01);
       else                                                      T.SetTranslation(p01, p00);
       newC->Transform(T);
@@ -593,7 +590,7 @@ Standard_Boolean ShapeFix_Edge::FixAddPCurve (const TopoDS_Edge& edge,
   }   // end try
   catch(Standard_Failure) {
     myStatus |= ShapeExtend::EncodeStatus (ShapeExtend_FAIL2);
-#ifdef DEB //:s5
+#ifdef SHAPEFIX_DEB //:s5
     cout << "Warning: ShapeFix_Edge::FixAddPCurve(): Exception: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -778,7 +775,7 @@ Standard_Boolean ShapeFix_Edge::FixSameParameter(const TopoDS_Edge& edge,
       }
     }
     catch(Standard_Failure) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "\nWarning: ShapeFix_Edge: Exception in SameParameter: "; 
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index 115f950e419592a47ca665c68e18d9e306bdd46e..cd68c1302a83d49163e95f9427f81415df16dc6c 100644 (file)
@@ -99,7 +99,7 @@ void ShapeFix_EdgeProjAux::Compute (const Standard_Real preci)
     Standard_Real U1 = FirstParam();
     Standard_Real U2 = LastParam();
     if (U1>=U2) {
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
       cout << "Parametres inverses ... " << endl;
 #endif
       Standard_Real tmp = U1;
@@ -209,7 +209,7 @@ static Standard_Boolean FindParameterWithExt (const gp_Pnt& Pt1,
     else return Standard_False;
   }  // end try
   catch(Standard_Failure) {
-#ifdef DEB //:s5
+#ifdef SHAPEFIX_DEB //:s5
     cout << "Warning: ShapeFix_EdgeProjAux, FindParameterWithExt(): Exception: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -264,7 +264,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
             return;
         }
       } 
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
       else cout <<"Other type of deg curve"<<endl;
 #endif
 
@@ -335,7 +335,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
         cf=-10000;
         cl= 10000;
         //pdn not cutted by bounds
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
         cout<<"Infinite Surface"<<endl;
 #endif 
       }
@@ -344,7 +344,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
       //pdn not linear case not managed
       cf=-10000;
       cl= 10000;
-#ifdef DEBUG     
+#ifdef SHAPEFIX_DEB
       cout<<"Some infinite curve"<<endl;
 #endif 
     }
@@ -391,7 +391,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
     myFirstParam = theCurve2d->ReversedParameter(Usup);
     myLastParam  = theCurve2d->ReversedParameter(Uinf);
     theCurve2d->Reverse();
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout << "Warning: ShapeFix_EdgeProjAux: pcurve reversed" << endl;
 #endif
     return;
@@ -432,7 +432,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
         UpdateParam2d(theCurve2d);
       else {
         myLastParam+=period;
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
         cout <<" Added"<<endl;
 #endif 
       }
@@ -441,7 +441,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
       if(w1 > wmid) {
         myLastParam -=period;
         UpdateParam2d(theCurve2d);
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
         cout <<" Added & Inverted"<<endl;
 #endif 
       } else if (w2 < wmid) {
@@ -554,7 +554,7 @@ void ShapeFix_EdgeProjAux::UpdateParam2d (const Handle(Geom2d_Curve)& theCurve2d
     if      ( Abs ( myFirstParam - cl ) <= preci2d ) myFirstParam = cf;
     else if ( Abs ( myLastParam  - cf ) <= preci2d ) myLastParam  = cl;
     else {
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
       cout << "Error : curve 2d range crossing non periodic curve origin";
       cout <<  endl;
 #endif
@@ -572,7 +572,7 @@ void ShapeFix_EdgeProjAux::UpdateParam2d (const Handle(Geom2d_Curve)& theCurve2d
     }
   }
   else {
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
     cout << "Warning : non increasing parameters for 2d curve." << endl;
     cout << "          update parameter 2d uncertain." << endl;
 #endif
index 96d8bb2d299179e002809ff6ee207e30284a4236..bfafda5fa7dbf532f6526281a7b1707392245438 100644 (file)
@@ -348,7 +348,7 @@ static Standard_Boolean SplitWire(const TopoDS_Face &face, const TopoDS_Wire& wi
   }
 
   if(aResWires.Length()>1) {
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
     cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
 #endif
   }
@@ -992,7 +992,7 @@ Standard_Boolean ShapeFix_Face::FixAddNaturalBound()
   BRepTools::Update(myFace);
   
 /**/
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
   cout<<"Natural bound on sphere or torus with holes added"<<endl; // mise au point !
 #endif
   SendWarning ( myFace, Message_Msg ( "FixAdvFace.FixOrientation.MSG0" ) );// Face created with natural bounds
@@ -1103,7 +1103,7 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
       ws.SetValue ( 1, sbdw->Wire() );
       SendWarning ( sbdw->Wire(), Message_Msg ( "FixAdvFace.FixOrientation.MSG5" ) );// Wire on face was reversed
       done = Standard_True;
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
       cout<<"Wire reversed"<<endl; // mise au point !
 #endif
     }
@@ -1390,7 +1390,7 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
     Standard_Integer k =1;
     for( ; k <= aSeqReversed.Length(); k++ )
     {
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
       cout<<"Wire no "<<aSeqReversed.Value(k)<<" of "<<nb<<" reversed"<<endl; // mise au point !
 #endif
     }
@@ -1554,18 +1554,18 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
         }
         else {
           w2.Reverse();
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
           if ( ! isdeg2 ) cout << "Warning: ShapeFix_Face::FixMissingSeam(): wire reversed" << endl;
 #endif
         }
       }
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       else cout << "Warning: ShapeFix_Face::FixMissingSeam(): incompatible open wires" << endl;
 #endif
     }
 //    else return Standard_False; //  abort
     else {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "Warning: ShapeFix_Face::FixMissingSeam(): more than two open wires detected!" << endl;
 #endif
       //:abv 30.08.09: if more than one open wires and more than two of them are
@@ -1575,7 +1575,7 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
         w1.Nullify();
         w2.Nullify();
         i = 0;
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
         cout << "Warning: ShapeFix_Face::FixMissingSeam(): open degenerated wire removed" << endl;
 #endif
         continue;
@@ -1875,12 +1875,12 @@ Standard_Boolean ShapeFix_Face::FixSmallAreaWire()
   if ( nbRemoved <=0 ) return Standard_False;
   
   if ( nbWires <=0 ) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout << "Warning: ShapeFix_Face: All wires on a face have small area; left untouched" << endl;
 #endif
     return Standard_False;
   }
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   cout << "Warning: ShapeFix_Face: " << nbRemoved << " small area wire(s) removed" << endl;
 #endif
   if ( ! Context().IsNull() ) Context()->Replace ( myFace, face );
@@ -2095,7 +2095,7 @@ Standard_Boolean ShapeFix_Face::FixLoopWire(TopTools_SequenceOfShape& aResWires)
   Standard_Boolean isDone =(aResWires.Length() && isClosed);
   if(isDone && aResWires.Length() >1)
   {
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
     cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
 #endif
   }
index 6dea09dcd981743779f9d2908de7681af79a72b6..5afdc442a781cdcfc37a6757ff3f1e6460c38c18 100644 (file)
@@ -167,7 +167,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
   // Clear the temporary map of free edges
   theFreeEdges.Clear();
 
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   //-------------------------------
   //szv debug - preparation results
   //-------------------------------
@@ -245,7 +245,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
          
              // Process second face for the pair of different faces only
              if (theFirstFace.IsSame(theSecondFace)) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
                cout<<"Warning: ShapeFix_FaceConnect::Build: Self-connected face"<<endl;
 #endif
              }
@@ -343,7 +343,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
     // Clear the temporary map of processed faces
     theProcessed.Clear();
 
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     //-------------------------------
     //szv debug - sewing results
     //-------------------------------
@@ -476,12 +476,12 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
       TopoDS_Shape tmpReShape = theReShape->Apply(result);
       result = TopoDS::Shell(tmpReShape);
       if (theReShape->Status(ShapeExtend_OK)) {
-#ifdef DEB     
+#ifdef SHAPEFIX_DEB
        cout<<"Warning: ShapeFix_FaceConnect::Build: Edges not replaced by ReShape"<<endl;
 #endif 
       }
       else if (theReShape->Status(ShapeExtend_FAIL1)) {
-#ifdef DEB     
+#ifdef SHAPEFIX_DEB
        cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on edges"<<endl;
 #endif 
       }
@@ -631,13 +631,13 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
          result = TopoDS::Shell(tmpshape);
 
          if (theReShape->Status(ShapeExtend_FAIL1)) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
            cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on vertices"<<endl;
 #endif 
          }
        }
 
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
        //-------------------------------
        //szv debug - reshape results
        //-------------------------------
index 0e5314ce38a8de4a6d50e8d5bfe09835fe436838..6621d4050a884f7c752aaf90a28284db77a271a1 100644 (file)
@@ -449,7 +449,7 @@ ShapeFix_FixSmallFace::ShapeFix_FixSmallFace()
          
        } 
       else {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
        cout << "The face is not strip face"  << endl;
 #endif
        return theNewEdge;
index 2a5073228cea95daad8054c592f3cbcad309385b..90386ff5f8eb4c9776ccedfb5e6f78610a486e5d 100644 (file)
@@ -223,7 +223,7 @@ static void CollectSolids(const TopTools_SequenceOfShape& aSeqShells ,
       }
     }
     catch(Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEFIX_DEB
       cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -294,7 +294,7 @@ static Standard_Boolean CreateSolids(const TopoDS_Shape aShape,TopTools_IndexedM
       infinstatus = bsc3d.State();
       }
     catch(Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEFIX_DEB
       cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -553,7 +553,7 @@ TopoDS_Solid ShapeFix_Solid::SolidFromShell (const TopoDS_Shell& shell)
     }
   }
   catch(Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEFIX_DEB
     cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index 8e5a98f7b68cd85997c975275700786bb3b515d4..312e5ee656e0be9770d4a1c160d05f2cd52a59d7 100644 (file)
@@ -566,7 +566,7 @@ Standard_Boolean ShapeFix_Wire::FixEdgeCurves()
            }
          }
          if ( seq.Length() >0 ) { // supposed that edge is SP
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
            cout << "Edge going over singularity detected; splitted" << endl;
 #endif
            Standard_Boolean isFwd = ( E.Orientation() == TopAbs_FORWARD );
@@ -655,7 +655,7 @@ Standard_Boolean ShapeFix_Wire::FixEdgeCurves()
        myFixEdge->Projector()->AdjustOverDegenMode() = Standard_False;
        myFixEdge->FixAddPCurve ( sbwd->Edge(overdegen), face, sbwd->IsSeam(overdegen), myAnalyzer->Surface(), Precision());
       }
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "Edge going over singularity detected; pcurve adjusted" << endl;
 #endif
     }
@@ -860,7 +860,7 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection()
        myStatusSelfIntersection |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
        num = ( myClosedMode ? 1 : 2 );
        nb = sbwd->NbEdges();
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
        cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Edge removed" << endl;
 #endif
       }
@@ -889,7 +889,7 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection()
       if ( ! Context().IsNull() ) UpdateWire();
       myShape.Nullify();
     }
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     if (StatusSelfIntersection (ShapeExtend_DONE5))
       cout<<"Warning: ShapeFix_Wire::FixIntersection: Non-adjacent intersection fixed (split-"
         <<NbSplit<<", cut-"<<NbCut<<", removed-"<<NbRemoved<<")"<<endl;
@@ -1282,7 +1282,7 @@ Standard_Boolean ShapeFix_Wire::FixShifted()
       vclosed = Standard_True;
       VRange = aBaseCrv->Period();
       IsVCrvClosed = Standard_True;
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "Warning: ShapeFix_Wire::FixShifted set vclosed True for Surface of Revolution" << endl;
 #endif
     }
@@ -1444,7 +1444,7 @@ Standard_Boolean ShapeFix_Wire::FixShifted()
            UpdateEdgeUVPoints ( edge, Face() );
          }
          myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE1 );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
          cout << "Info: ShapeFix_Wire::FixShifted(): bi - meridian case fixed" << endl;
 #endif
           continue;
@@ -1740,14 +1740,14 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
   if ( ! sae.PCurve ( E, face, c2d, a, b, Standard_False ) ) 
     return Standard_False;
 
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   cout << "Cut Loop: params (" << t1 << ", " << t2;
 #endif
   GeomAdaptor_Curve GAC ( crv, f, l );
   Standard_Real dt = tolfact * GAC.Resolution(prec);
   t1 -= dt; //1e-3;//::Precision::PConfusion();
   t2 += dt; //1e-3;//::Precision::PConfusion();
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   cout << ") -> (" << t1 << ", " << t2 << ")" << endl;
 #endif
       
@@ -1817,7 +1817,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
       if ( ! TryNewPCurve ( E, face, bs, a, b, newtol ) ) return Standard_False;
   
     Standard_Real tol = BRep_Tool::Tolerance ( E );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout << "Cut Loop: tol orig " << tol << ", prec " << prec << ", new tol " << newtol << endl;
 #endif
     if ( newtol > Max ( prec, tol ) ) return Standard_False;
@@ -1927,7 +1927,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
                                     TopoDS_Edge &E1,
                                     TopoDS_Edge &E2)
 {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   cout<<"Info: ShapeFix_Wire::FixSelfIntersection : Try insert vertex"<<endl;
 #endif
 
@@ -2344,10 +2344,6 @@ Standard_Boolean ShapeFix_Wire::FixIntersectingEdges (const Standard_Integer num
       Standard_Real maxte = Max ( te1, te2 );
       if ( maxte < MaxTolerance() && maxte < newtol ) {
        if ( BRep_Tool::Tolerance(E1) < te1 || BRep_Tool::Tolerance(E2) < te2 ) {
-//#ifdef DEB
-//       cout << "Warning: ShapeFix_Wire::FixIE: edges tolerance increased: (" <<
-//         te1 << ", " << te2 << ") / " << newtol << endl;
-//#endif
          B.UpdateEdge ( E1, 1.000001 * te1 );
          B.UpdateVertex ( sae.FirstVertex ( E1 ), 1.000001 * te1 );
          B.UpdateVertex ( sae.LastVertex  ( E1 ), 1.000001 * te1 );
@@ -2685,7 +2681,7 @@ static Standard_Boolean TryBendingPCurve (const TopoDS_Edge &E, const TopoDS_Fac
     c2d = bs;
   }
   catch ( Standard_Failure ) {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout << "Warning: ShapeFix_Wire::FixLacking: Exception in Geom2d_BSplineCurve::Segment()" << endl;
 #endif
     return Standard_False;
@@ -2917,7 +2913,7 @@ Standard_Boolean ShapeFix_Wire::FixLacking (const Standard_Integer num,
     // insert new edge
     if ( doAddDegen ) {
       myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
       cout << "Warning: ShapeFix_Wire::FixLacking: degenerated edge added" << endl;
 #endif
     }
@@ -2950,7 +2946,7 @@ Standard_Boolean ShapeFix_Wire::FixLacking (const Standard_Integer num,
     FixSelfIntersectingEdge ( n1 );
     FixSelfIntersectingEdge ( n2 );
     FixIntersectingEdges ( n2 ); //skl 24.04.2003 for OCC58
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     cout << "Info: ShapeFix_Wire::FixLacking: Bending pcurves" << endl;
 #endif
     myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE5 );
index 83c0ab37c3e5f81d516b7b9c909c4b3fb30112f0..8fe9d50c2c4ddf0bb42cbb529287a40c958a9d47 100644 (file)
@@ -238,7 +238,7 @@ void ShapeFix_WireSegment::DefineIUMin (const Standard_Integer i,
                                        const Standard_Integer iumin) 
 {
   if ( myIUMin->Value(i) < iumin ) myIUMin->SetValue ( i, iumin );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   if ( myIUMin->Value(i) > myIUMax->Value(i) )
     cout << "Warning: ShapeFix_WireSegment::DefineIUMin: indexation error" << endl;
 #endif
@@ -253,7 +253,7 @@ void ShapeFix_WireSegment::DefineIUMax (const Standard_Integer i,
                                        const Standard_Integer iumax) 
 {
   if ( myIUMax->Value(i) > iumax ) myIUMax->SetValue ( i, iumax );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   Standard_Integer iun = myIUMin->Value(i), iux = myIUMax->Value(i);
   if ( iun > iux )
     cout << "Warning: ShapeFix_WireSegment::DefineIUMax: indexation error" << endl;
@@ -269,7 +269,7 @@ void ShapeFix_WireSegment::DefineIVMin (const Standard_Integer i,
                                        const Standard_Integer ivmin) 
 {
   if ( myIVMin->Value(i) < ivmin ) myIVMin->SetValue ( i, ivmin );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   Standard_Integer ivn = myIVMin->Value(i), ivx = myIVMax->Value(i);
   if ( ivn > ivx )
     cout << "Warning: ShapeFix_WireSegment::DefineIVMin: indexation error" << endl;
@@ -285,7 +285,7 @@ void ShapeFix_WireSegment::DefineIVMax (const Standard_Integer i,
                                        const Standard_Integer ivmax) 
 {
   if ( myIVMax->Value(i) > ivmax ) myIVMax->SetValue ( i, ivmax );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   Standard_Integer ivn = myIVMin->Value(i), ivx = myIVMax->Value(i);
   if ( ivn > ivx )
     cout << "Warning: ShapeFix_WireSegment::DefineIVMax: indexation error" << endl;
@@ -319,7 +319,7 @@ Standard_Boolean ShapeFix_WireSegment::CheckPatchIndex (const Standard_Integer i
   Standard_Integer dU = myIUMax->Value(i) - myIUMin->Value(i);
   Standard_Integer dV = myIVMax->Value(i) - myIVMin->Value(i);
   Standard_Boolean ok = ( dU ==0 || dU ==1 ) && ( dV ==0 || dV ==1 );
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   if ( ! ok )
     cout << "Warning: ShapeFix_WireSegment::CheckPatchIndex: incomplete indexation" << endl;
 #endif
index ff734aa5092df3056e1ab63bee9d49436457bd58..d618fe03d90320f9fcbceab7fdb54bc2e7a51c7e 100644 (file)
@@ -360,7 +360,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c,
        }
        catch (Standard_Failure) 
         {
-#ifdef DEB 
+#ifdef SHAPEFIX_DEB
          cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve" <<first<<" " <<last<<endl;
          Standard_Failure::Caught()->Print(cout); cout << endl; 
 #endif  
@@ -635,7 +635,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c,
       }
       catch (Standard_Failure) 
       {
-#ifdef DEB       
+#ifdef SHAPEFIX_DEB
        cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve      :"<<endl;
        Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -943,7 +943,7 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc,
        }
        catch (Standard_Failure) 
         {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
          cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d" <<first<<" " <<last<<endl;
          Standard_Failure::Caught()->Print(cout); cout << endl; 
 #endif  
@@ -1523,7 +1523,7 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc,
       catch (Standard_Failure) 
       {
        
-#ifdef DEB             
+#ifdef SHAPEFIX_DEB
        cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d  :"<<endl;
        Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif 
index 508d5470d6808121183ab34d464e8c81bb8af7f2..6af6abe3162cde7638e940b27fcf2d3f43df53ed 100644 (file)
@@ -385,7 +385,7 @@ ShapeFix_Wireframe::ShapeFix_Wireframe(const TopoDS_Shape& shape)
   }
   catch ( Standard_Failure ) 
   {
-#ifdef DEB 
+#ifdef SHAPEFIX_DEB
     cout<<"Error: ShapeFix_Wireframe::FixSmallEdges: JoinEdges: Exception in GeomConvert_CompCurveToBSplineCurve: ";
     Standard_Failure::Caught()->Print(cout); cout<<endl;
 #endif
index b7712559b475330015ff3cd6554096b614cbf524..9fdffc2a8e54f0f717a69836724a3a281f9c4e0d 100644 (file)
@@ -38,7 +38,7 @@ Standard_Boolean ShapeProcess::RegisterOperator (const Standard_CString name,
 {
   if ( dic.IsNull() ) dic = new ShapeProcess_DictionaryOfOperator;
   if ( dic->HasItem ( name, Standard_True ) ) {
-#ifdef DEB
+#ifdef SHAPEPROCESS_DEB
     cout << "Warning: operator with name " << name << " is already registered!" << endl;
 #endif
     return Standard_False;
@@ -57,7 +57,7 @@ Standard_Boolean ShapeProcess::FindOperator (const Standard_CString name,
 {
   if ( dic.IsNull() ) dic = new ShapeProcess_DictionaryOfOperator;
   if ( ! dic->HasItem ( name, Standard_True ) ) {
-#ifdef DEB
+#ifdef SHAPEPROCESS_DEB
     cout << "Error: no operator with name " << name << " registered!" << endl;
 #endif
     return Standard_False;
@@ -79,7 +79,7 @@ Standard_Boolean ShapeProcess::Perform (const Handle(ShapeProcess_Context)& cont
   // get description of the sequence
   TCollection_AsciiString sequence;
   if ( ! context->GetString ( "exec.op", sequence ) ) {
-#ifdef DEB
+#ifdef SHAPEPROCESS_DEB
     cout << "Error: ShapeProcess_Performer::Perform: sequence not defined for " << seq << endl;
 #endif
     context->UnSetScope();
index 8f1727bc8e36b3a658354c3ad3c2eda6b0f2443a..3c3c98bb2cb067c05049ce86c2eb53006af99f75 100644 (file)
@@ -83,7 +83,7 @@ Handle(Resource_Manager) ShapeProcess_Context::LoadResourceManager (const Standa
     }
   }
   if ( sRC.IsNull() ) {
-#ifdef DEB
+#ifdef SHAPEPROCESS_DEB
     cout << "Info: ShapeProcess_Context: Reload Resource_Manager: " 
          << name.ToCString() << " -> " << file << endl;
 #endif
@@ -166,7 +166,7 @@ Standard_Boolean ShapeProcess_Context::GetString (const Standard_CString param,
   if ( myRC.IsNull() ) return Standard_False;
   Handle(TCollection_HAsciiString) pname = MakeName ( myScope, param );
   if ( ! myRC->Find ( pname->ToCString() ) ) {
-#ifdef DEB 
+#ifdef SHAPEPROCESS_DEB
     cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << pname->ToCString() << " is not defined" << endl;
 #endif
     return Standard_False;
@@ -200,7 +200,7 @@ Standard_Boolean ShapeProcess_Context::GetReal (const Standard_CString param,
     ref.LeftAdjust();
     ref.RightAdjust();
     if ( ! myRC->Find ( ref.ToCString() ) ) {
-#ifdef DEB 
+#ifdef SHAPEPROCESS_DEB
       cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << endl;
 #endif
       return Standard_False;
@@ -211,7 +211,7 @@ Standard_Boolean ShapeProcess_Context::GetReal (const Standard_CString param,
       return Standard_True;
     }
   }
-#ifdef DEB 
+#ifdef SHAPEPROCESS_DEB
   cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Real nor reference to Real";
 #endif
   return Standard_False;
@@ -242,7 +242,7 @@ Standard_Boolean ShapeProcess_Context::GetInteger (const Standard_CString param,
     ref.LeftAdjust();
     ref.RightAdjust();
     if ( ! myRC->Find ( ref.ToCString() ) ) {
-#ifdef DEB 
+#ifdef SHAPEPROCESS_DEB
       cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << endl;
 #endif
       return Standard_False;
@@ -253,7 +253,7 @@ Standard_Boolean ShapeProcess_Context::GetInteger (const Standard_CString param,
       return Standard_True;
     }
   }
-#ifdef DEB 
+#ifdef SHAPEPROCESS_DEB
   cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Integer nor reference to Integer";
 #endif
   return Standard_False;
@@ -274,7 +274,7 @@ Standard_Boolean ShapeProcess_Context::GetBoolean (const Standard_CString param,
     return Standard_True;
   }
   catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEPROCESS_DEB
     cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -332,7 +332,7 @@ Standard_CString ShapeProcess_Context::StringVal (const Standard_CString param,
     return myRC->Value ( MakeName ( myScope, param )->ToCString() );
   }
   catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEPROCESS_DEB
     cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index 1821ff45b51255e935a05efd98b2d583cc36a5e2..e64e53651ef6ced7d6de1e358aee736c7e761fde 100644 (file)
@@ -186,7 +186,7 @@ static Standard_Boolean splitangle (const Handle(ShapeProcess_Context)& context)
   SDA.SetMaxTolerance ( ctx->RealVal ( "MaxTolerance", 1. ) );
   
   if ( ! SDA.Perform() && SDA.Status (ShapeExtend_FAIL) ) {
-#ifdef DEB
+#ifdef SHAPEPROCESS_DEB
     cout<<"ShapeDivideAngle failed"<<endl;
 #endif
     return Standard_False;
@@ -342,7 +342,7 @@ static Standard_Boolean shapetobezier (const Handle(ShapeProcess_Context)& conte
   if ( ctx->GetBoolean ( "EdgeMode", EdgeMode ) ) SCB.SetEdgeMode(EdgeMode);
  
   if ( ! SCB.Perform() && SCB.Status (ShapeExtend_FAIL) ) { 
-#ifdef DEB
+#ifdef SHAPEPROCESS_DEB
     cout<<"Shape::ShapeConvertToBezier failed"<<endl; // !!!!
 #endif
     return Standard_False;
@@ -407,7 +407,7 @@ static Standard_Boolean splitcontinuity (const Handle(ShapeProcess_Context)& con
   if ( ctx->GetReal ( "MaxTolerance", maxTol ) ) tool.SetMaxTolerance(maxTol);
   
   if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) { 
-#ifdef DEB
+#ifdef SHAPEPROCESS_DEB
     cout<<"SplitContinuity failed"<<endl; 
 #endif
     return Standard_False; 
@@ -444,7 +444,7 @@ static Standard_Boolean splitclosedfaces (const Handle(ShapeProcess_Context)& co
   tool.SetNbSplitPoints(num);
   tool.SetSurfaceSegmentMode(hasSeg);
   if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) { 
-#ifdef DEB
+#ifdef SHAPEPROCESS_DEB
     cout<<"Splitting of closed faces failed"<<endl; 
 #endif
     return Standard_False; 
@@ -666,7 +666,7 @@ static Standard_Boolean spltclosededges (const Handle(ShapeProcess_Context)& con
   tool.SetNbSplitPoints(nbSplits);
   
   if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) { 
-#ifdef DEB
+#ifdef SHAPEPROCESS_DEB
     cout<<"Splitting of closed edges failed"<<endl; 
 #endif
     return Standard_False; 
index e6cf9fc202ad5a7352c93fd5f6f516c111822c7a..6b7e4d5c45eec5e4f926c7f5cc62c7397cbed948 100644 (file)
@@ -176,7 +176,7 @@ Standard_Boolean ShapeUpgrade_ClosedFaceDivide::SplitSurface()
            split->Append(val);
          isUSplit = Standard_True;
        }
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
        else cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << endl;
 #endif
       }
@@ -197,7 +197,7 @@ Standard_Boolean ShapeUpgrade_ClosedFaceDivide::SplitSurface()
            split->Append(val);
          isUSplit = Standard_False;
        }
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
        else cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << endl;
 #endif
       }
index 2cd7be62246fd3868a07121bc327ce387aae24aa..9c354c35f337dec4649de487160f607ef31908a0 100644 (file)
@@ -155,14 +155,14 @@ void ShapeUpgrade_ConvertCurve2dToBezier::Compute()
     if(Abs(Last-bl) < precision)
       Last = bl;
     if(First < bf){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the pcurve domain" <<endl;
 #endif
       First = bf;
       mySplitValues->SetValue(1,First);
     }
     if(Last > bl){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the pcurve domain" <<endl;
 #endif
       Last = bl;
index 4abcd4374c7a725443823127e40eed446683a73e..83b72de65cee7729abf64ad512ecffd90a082bd9 100644 (file)
@@ -138,14 +138,14 @@ void ShapeUpgrade_ConvertCurve3dToBezier::Compute()
     if(Abs(Last-bl) < precision)
       Last = bl;
     if(First < bf){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
 #endif
       First = bf;
       mySplitValues->SetValue(1,First);
     }
     if(Last > bl){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
 #endif
       Last = bl;
index a848f8b4d7cc134f0b0965375899e3ef0024a0f8..a5ccecebb3fe95b7a3dec16a4936eddca8f5691c 100644 (file)
@@ -184,7 +184,7 @@ void ShapeUpgrade_ConvertSurfaceToBezierBasis::Compute(const Standard_Boolean Se
       else
        VFilteredJoints.Append(VJoints(i));
 
-#ifdef DEB 
+#ifdef SHAPEUPGRADE_DEB
     if(NbVFiltered || NbUFiltered)
       cout<<"Warning: ShapeUpgrade_ConvertSurfaceToBezierBasis: thin patches dropped."<<endl;
 #endif
@@ -451,7 +451,7 @@ static Handle(Geom_Surface) GetSegment(const Handle(Geom_Surface) surf,
       bezier->Segment(V1,V2);    
     }
     else {
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: Resulting path is not surface of revolution basis on bezier curve"<<endl;
 #endif
     }
index 8f3e162d1cd850fff95dd2a1d50a9219c54ebfbf..95cd78d5bf852ef5b982fb39facea0f8dea87201 100644 (file)
@@ -77,7 +77,7 @@ Standard_Boolean ShapeUpgrade_FixSmallBezierCurves::Approx(Handle(Geom_Curve)& C
       }
     }
     catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEUPGRADE_DEB
       cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment      :";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -113,7 +113,7 @@ Standard_Boolean ShapeUpgrade_FixSmallBezierCurves::Approx(Handle(Geom_Curve)& C
       }
     }
     catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEUPGRADE_DEB
       cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment      :";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -150,7 +150,7 @@ Standard_Boolean ShapeUpgrade_FixSmallBezierCurves::Approx(Handle(Geom_Curve)& C
        }
       }
       catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEUPGRADE_DEB
          cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment      :";
          Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index 1177b798031dfa7178f6157c2a972a8fcc1fdcaa..546b4bf6fa7e39546ab0d0b2b4eeee5bf7435b3a 100644 (file)
@@ -215,7 +215,7 @@ Standard_Boolean ShapeUpgrade_ShapeDivide::Perform(const Standard_Boolean newCon
        }
        catch (Standard_Failure) {
          myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL2 );
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
          cout << "\nError: Exception in ShapeUpgrade_FaceDivide::Perform(): ";
          Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index bedb81ac53d426283c1acc92d891c8c3d8bf2d06..ff33124fdc5d4e3b1292bf3dd4d72ca724f1e061 100644 (file)
@@ -76,13 +76,13 @@ ShapeUpgrade_SplitCurve2d::ShapeUpgrade_SplitCurve2d()
     if(Abs(lastPar-lP) < precision)
       lastPar = lP;
     if(firstPar < fP){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
 #endif
       firstPar = fP;
     }
     if(lastPar > lP){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
 #endif
       lastPar = lP;
@@ -171,7 +171,7 @@ ShapeUpgrade_SplitCurve2d::ShapeUpgrade_SplitCurve2d()
            Handle(Geom2d_BezierCurve)::DownCast(theNewCurve)->Segment (First, Last);
        }
        catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEUPGRADE_DEB
          cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment      :";
          Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -224,7 +224,7 @@ ShapeUpgrade_SplitCurve2d::ShapeUpgrade_SplitCurve2d()
          myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
        }
        catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEUPGRADE_DEB
          cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment      :";
          Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index 6ac5689fd6d479e09341cf1d5eca7209afa7110b..0fe6e0d5b8bd17a6eb5881f53f681dbf68fc6551 100644 (file)
@@ -105,7 +105,7 @@ void ShapeUpgrade_SplitCurve2dContinuity::Compute()
       case GeomAbs_C1 : BasCriterion = GeomAbs_C2; break;
       case GeomAbs_C2 : BasCriterion = GeomAbs_C3; break;
       case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) cout<<". this criterion is not suitable for a Offset curve"<<endl; 
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
                        cout << "Warning: ShapeUpgrade_SplitCurve2dContinuity: criterion C3 for Offset curve" << endl; 
 #endif
       case GeomAbs_CN : BasCriterion = GeomAbs_CN; break;
index 25509139c123f8d14420049a08d8be0cf3c81393..0edae5be89b30741097d94432bdb634c94265139 100644 (file)
@@ -76,13 +76,13 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
     if(Abs(lastPar-lP) < precision)
       lastPar = lP;
     if(firstPar < fP){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
 #endif
       firstPar = fP;
     }
     if(lastPar > lP){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
 #endif
       lastPar = lP;
@@ -163,14 +163,14 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
     if(Abs(Last-lastPar) < precision)
       Last = lastPar;
     if(First < firstPar){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
 #endif
       First = firstPar;
       mySplitValues->SetValue(1,First);
     }
     if(Last > lastPar){
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
 #endif
       Last = lastPar;
@@ -248,7 +248,7 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
          myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
        }
        catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEUPGRADE_DEB
          cout << "Warning: ShapeUpgrade_Split3dCurve::Build(): Exception in Segment      :";
          Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index e72607ded319c41c7aa39c5df3bde40018865b96..c5fe59f5abd9a4f3f563bf36b2c0444a33082de5 100644 (file)
@@ -103,7 +103,7 @@ void ShapeUpgrade_SplitCurve3dContinuity::Compute()
       case GeomAbs_C1 : BasCriterion = GeomAbs_C2; break;
       case GeomAbs_C2 : BasCriterion = GeomAbs_C3; break;
       case GeomAbs_C3 : // if (ShapeUpgrade::Debug()) cout<<". this criterion is not suitable for a Offset curve"<<endl; 
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
                        cout << "Warning: ShapeUpgrade_SplitCurve3dContinuity: criterion C3 for Offset curve" << endl; 
 #endif
       case GeomAbs_CN : BasCriterion = GeomAbs_CN; break;
index e9da6167e55b1677bf65d8774d8144354a1b77c3..27846039e9d503a6aab48ef6f38b2b349b004945 100644 (file)
@@ -435,7 +435,7 @@ void ShapeUpgrade_SplitSurface::Build(const Standard_Boolean Segment)
          myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
        }
        catch (Standard_Failure) {
-#ifdef DEB 
+#ifdef SHAPEUPGRADE_DEB
          cout << "Warning: ShapeUpgrade_SplitSurface::Build(): Exception in Segment      :";
          Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index df0bbb63c1296493799f3822b4a726977daa2c4b..b91fda05f7a0200c19d030c99e660bbf68d769aa 100644 (file)
@@ -173,7 +173,7 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
       case GeomAbs_C1 : BasCriterion = GeomAbs_C2; break;
       case GeomAbs_C2 : BasCriterion = GeomAbs_C3; break;
       case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) cout<<". this criterion is not suitable for a Offset Surface"<<endl;; 
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
                        cout << "Warning: ShapeUpgrade_SplitSurfaceContinuity: criterion C3 for Offset surface" << endl; 
 #endif
       case GeomAbs_CN : BasCriterion = GeomAbs_CN; break;
index 66c86f1bc30443d98810ab63341eb257416872f3..83cfe0b756ef00358f89a598465ab95d85943ede 100644 (file)
@@ -561,7 +561,7 @@ static Standard_Boolean MergeEdges(const TopTools_SequenceOfShape& SeqEdges,
     }
   }
   if(aChain.Length()<SeqEdges.Length()) {
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
     cout<<"can not create correct chain..."<<endl;
 #endif
     return Standard_False;
@@ -679,7 +679,7 @@ static Standard_Boolean MergeEdges(const TopTools_SequenceOfShape& SeqEdges,
     }
   }
   if (j < aChain.Length()) {
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
     cout<<"null curve3d in edge..."<<endl;
 #endif
     return Standard_False;
@@ -704,14 +704,14 @@ static Standard_Boolean MergeEdges(const TopTools_SequenceOfShape& SeqEdges,
       break;
     }
     if(NeedUnion) {
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout<<"can not make analitical union => make approximation"<<endl;
 #endif
       TopoDS_Edge E = GlueEdgesWithPCurves(aChain, VF, VL);
       aChain.SetValue(1,E);
     }
     else {
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
       cout<<"can not make approximation for such types of curves"<<endl;
 #endif
       return Standard_False;
index 9a3a497b69d2dfee36e0bfa875c7062630347d93..c8167aa46dd5ae685e3c34ec1d745ae08495f427 100644 (file)
@@ -367,7 +367,7 @@ void ShapeUpgrade_WireDivide::Perform ()
          Handle(TColStd_HSequenceOfReal) revKnots2d = theSplit2dTool->SplitValues();
          if(revKnots2d->Length()!=theKnots2d->Length()) {
            isSeam = Standard_False;
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
            cout << "Error: ShapeUpgrade_WireDivide: seam has different splitting values on pcurvesd" << endl;
 #endif
          }
@@ -447,7 +447,7 @@ void ShapeUpgrade_WireDivide::Perform ()
        if ( !theSegments2d.IsNull() ) {
          Standard_Integer nbc2d = theSegments2d->Length();
          if (nbc!=nbc2d) {
-#ifdef DEB
+#ifdef SHAPEUPGRADE_DEB
            cout<<"Error: Number of intervals are not equal for 2d 3d. Ignored."<<endl;
 #endif
            nbc = Min( nbc,nbc2d);
index b78a45dff119892be86ab8d8eac18562e0faf0b3..8aad93bfb9f34f45355d189c7e9f3413a213002a 100644 (file)
@@ -236,7 +236,9 @@ Standard_Real     ATanh(const Standard_Real Value)
 { 
   if ( (Value <= -1.) || (Value >= 1.) ){
     Standard_NumericError::Raise("Illegal agument in ATanh");
+#ifdef STANDARD_DEB
     cout << "Illegal agument in ATanh" << endl ;
+#endif
   } 
   return atanh(Value); 
 }
@@ -248,7 +250,9 @@ Standard_Real     ACosh (const Standard_Real Value)
 { 
   if ( Value < 1. ){
     Standard_NumericError::Raise("Illegal agument in ACosh");
+#ifdef STANDARD_DEB
     cout << "Illegal agument in ACosh" << endl ;
+#endif
   } 
   return acosh(Value); 
 }
@@ -259,7 +263,9 @@ Standard_Real     ACosh (const Standard_Real Value)
 Standard_Real     Log (const Standard_Real Value) 
 {   if ( Value <= 0. ){
     Standard_NumericError::Raise("Illegal agument in Log");
+#ifdef STANDARD_DEB
     cout << "Illegal agument in Log" << endl ;
+#endif
   } 
  return log(Value); 
 }
@@ -270,7 +276,9 @@ Standard_Real     Sqrt (const Standard_Real Value)
 { 
   if (  Value < 0. ){
     Standard_NumericError::Raise("Illegal agument in Sqrt");
+#ifdef STANDARD_DEB
     cout << "Illegal agument in Sqrt" << endl ;
+#endif
   } 
  return sqrt(Value); 
 }
index e5f09b9f929a3e3c267287710f046e25052959fe..33b532b80157f4945c22cb9e631fc83d66faba17 100644 (file)
@@ -32,14 +32,14 @@ static Standard_GUID StdSchemaID          ("ad696002-5b34-11d1-b5ba-00a0c9064368
 Handle(Standard_Transient) StdDrivers::Factory(const Standard_GUID& aGUID) {
 
   if(aGUID == StdSchemaID) {    
-#ifdef DEB
+#ifdef STDDRIVERS_DEB
     cout << "StdSchema : Plugin" << endl;
 #endif
     static Handle(StdLSchema) model_ss = new StdLSchema;
     static Standard_Boolean aNeedNested = Standard_True;
     if(aNeedNested) {
       aNeedNested = Standard_False;
-#ifdef DEB
+#ifdef STDDRIVERS_DEB
       cout << "StdSchema: Adding nested schema" << endl;
 #endif
       Handle(StdSchema) aSchema = new StdSchema;
@@ -53,14 +53,14 @@ Handle(Standard_Transient) StdDrivers::Factory(const Standard_GUID& aGUID) {
   }
 
   if(aGUID == StdStorageDriver)  {
-#ifdef DEB
+#ifdef STDDRIVERS_DEB
     cout << "StdDrivers : Storage Plugin" << endl;
 #endif
     static Handle(StdDrivers_DocumentStorageDriver) model_sd = new StdDrivers_DocumentStorageDriver;
     return model_sd;
   }
   if(aGUID == StdRetrievalDriver) {  
-#ifdef DEB
+#ifdef STDDRIVERS_DEB
     cout << "StdDrivers : Retrieval Plugin" << endl;
 #endif
     static Handle(StdDrivers_DocumentRetrievalDriver) model_rd = new StdDrivers_DocumentRetrievalDriver;
index ebe0b2832220173cd0c794e1a7cf8523b7da42a0..dae9f3a020207fca42ca6778de4fdcc90113290b 100644 (file)
@@ -31,7 +31,7 @@ static Standard_GUID StdLSchemaID          ("bd696002-5b34-11d1-b5ba-00a0c906436
 Handle(Standard_Transient) StdLDrivers::Factory(const Standard_GUID& aGUID) {
 
   if(aGUID == StdLSchemaID) {    
-#ifdef DEB
+#ifdef STDLDRIVERS_DEB
     cout << "StdLSchema : Plugin" << endl;
 #endif
     static Handle(StdLSchema) model_ss = new StdLSchema;
@@ -44,14 +44,14 @@ Handle(Standard_Transient) StdLDrivers::Factory(const Standard_GUID& aGUID) {
   }
 
   if(aGUID == StdLStorageDriver)  {
-#ifdef DEB
+#ifdef STDLDRIVERS_DEB
     cout << "StdLDrivers : Storage Plugin" << endl;
 #endif
     static Handle(StdLDrivers_DocumentStorageDriver) model_sd = new StdLDrivers_DocumentStorageDriver;
     return model_sd;
   }
   if(aGUID == StdLRetrievalDriver) {  
-#ifdef DEB
+#ifdef STDLDRIVERS_DEB
     cout << "StdLDrivers : Retrieval Plugin" << endl;
 #endif
     static Handle(StdLDrivers_DocumentRetrievalDriver) model_rd = new StdLDrivers_DocumentRetrievalDriver;
index 90896def57bad6c5185ef2ed13f31a3e9ec15592..cd1cbd0e9e01e57d564e9812e4ef579d61847ddc 100644 (file)
@@ -181,9 +181,11 @@ void StdPrs_WFDeflectionRestrictedFace::Add
            }
          }
        }
+#ifdef STDPRS_DEB
        else {
          cout << "Cannot evaluate curve on surface"<<endl;
        }
+#endif
       }
       else {
        U1 = TheRCurve->FirstParameter();
@@ -454,9 +456,11 @@ Standard_Boolean StdPrs_WFDeflectionRestrictedFace::Match
          }
        }
       }
+#ifdef STDPRS_DEB
       else {
        cout << "Cannot evaluate curve on surface"<<endl;
       }
+#endif
     }
   }
   
index c981be3e3f2b883a4b924d9bc1fb725d35087b0f..536f42f1df96a0dcc729f845698864ecf19e755b 100644 (file)
@@ -653,7 +653,7 @@ Standard_Boolean StdSelect_BRepSelectionTool
     BRep_Tool::Range (aWireExplorer.Current(), wf, wl);
     if (Abs (wf - wl) <= Precision::Confusion())
     {
-    #ifdef DEB
+    #ifdef STDSELECT_DEB
       cout<<" StdSelect_BRepSelectionTool : Curve where ufirst = ulast ...."<<endl;
     #endif
     }
index 8fd120746d50f4c1a9a7cc3613e93041bc54dc18..a7c0e46711e77de97a45abaa9a7a5efbb154b56a 100644 (file)
@@ -814,14 +814,14 @@ Standard_Boolean StepAP209_Construct::CreateAnalysStructure (const Handle(StepBa
 Standard_Boolean StepAP209_Construct::CreateFeaStructure (const Handle(StepBasic_Product) &Prod) const
 {
   if(Prod.IsNull()) {
-#ifdef DEB
+#ifdef STEPAP209_DEB
     cout<<"Prod.IsNull()"<<endl;
 #endif
     return Standard_False;
   }
   Handle(StepShape_ShapeRepresentation) AnaSR = IdealShape(Prod);
   if(AnaSR.IsNull()) {
-#ifdef DEB
+#ifdef STEPAP209_DEB
     cout<<"AnaSR.IsNull()"<<endl;
 #endif
     return Standard_False;
index 07698e87123fd7c3f64c68ffcce9367ea67da778..07aaae57caa6cef1281a650f9240d5d732cbe2f8 100644 (file)
@@ -78,7 +78,7 @@ void StepBasic_SiUnit::SetDimensions(const Handle(StepBasic_DimensionalExponents
 {
   // WARNING : the field is redefined.
   // field set up forbidden.
-#ifdef DEB
+#ifdef STEPBASIC_DEB
   cout << "Field is redefined, SetUp Forbidden" << endl;
 #endif
 }
index bbeaf4a87a7a8f09c3defe17e0bf76f0c3d94647..9d617fce22255437bebbfc54aa0d41d7ce23c460 100644 (file)
@@ -117,7 +117,7 @@ void StepData_StepWriter::SetScope (const Standard_Integer numscope,
     thescopenext = new TColStd_HArray1OfInteger (1,nb); thescopenext->Init(0);
   }
   else if (thescopenext->Value(numin) != 0) {
-#ifdef DEB
+#ifdef STEPDATA_DEB
     cout << "StepWriter : SetScope (scope : " << numscope << " entity : "
       << numin << "), Entity already in a Scope"<<endl;
 #endif
index 5c5ba093fc146d2059860cd18ce1e74d21d28c51..8035d5e1c17d30634273c400288960d0316a94f2 100644 (file)
@@ -76,7 +76,7 @@
     {
       if (i == 1)       aFMulDiff = aCurrentVal - Deg - 1;
       if (i == NbKnots) aLMulDiff = aCurrentVal - Deg - 1;
-#ifdef DEB
+#ifdef STEPTOGEOM_DEB
       cout << "\nWrong multiplicity " << aCurrentVal <<  " on " << i 
            << " knot!" << "\nChanged to " << Deg + 1 << endl;
 #endif
   // force periodicity on closed curves
   if ( SC->ClosedCurve() && CC->Degree() >1 && CC->IsClosed() ) {
     CC->SetPeriodic();
-//#ifdef DEB
-//    cout << "Warning: "__FILE__": Closed curve made periodic" << endl;
-//#endif
   }
   return Standard_True;
 }
index 37480bbe821a57c474597feb4b362c00a7d491bf..4deceedd4b178ba3ce82ad0ad0f27f1608e4911e 100644 (file)
@@ -81,9 +81,6 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
        return StepToGeom_MakeBSplineCurve::Convert(BSPL,*((Handle(Geom_BSplineCurve)*)&CC));
   }
   if (SC->IsKind(STANDARD_TYPE(StepGeom_UniformCurve))) {
-//#ifdef DEBUG
-//    cout << "Warning : converting UniformCurve onto BSplineCurveWithKnots" << endl;
-//#endif
     const Handle(StepGeom_UniformCurve) UC = Handle(StepGeom_UniformCurve)::DownCast(SC);
     const Handle(StepGeom_BSplineCurveWithKnots) BSPL = new StepGeom_BSplineCurveWithKnots;
     BSPL->SetDegree(UC->Degree());
@@ -104,9 +101,6 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
        return StepToGeom_MakeBSplineCurve::Convert(BSPL,*((Handle(Geom_BSplineCurve)*)&CC));
   }
   if (SC->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformCurve))) {
-//#ifdef DEBUG
-//    cout << "Warning : converting QuasiUniformCurve onto BSplineCurveWithKnots" << endl;
-//#endif
     const Handle(StepGeom_QuasiUniformCurve) QUC = 
       Handle(StepGeom_QuasiUniformCurve)::DownCast(SC);
     const Handle(StepGeom_BSplineCurveWithKnots) BSPL = new StepGeom_BSplineCurveWithKnots;
@@ -130,9 +124,6 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
        return StepToGeom_MakeBSplineCurve::Convert(BSPL,*((Handle(Geom_BSplineCurve)*)&CC));
   }
   if (SC->IsKind(STANDARD_TYPE(StepGeom_UniformCurveAndRationalBSplineCurve))) {
-//#ifdef DEBUG
-//    cout << "Warning : converting Rational UniformCurve onto BSplineCurveWithKnots" << endl;
-//#endif
     const Handle(StepGeom_UniformCurveAndRationalBSplineCurve) RUC = 
       Handle(StepGeom_UniformCurveAndRationalBSplineCurve)::DownCast(SC);
     const Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve) RBSPL = 
@@ -152,9 +143,6 @@ Standard_Boolean StepToGeom_MakeBoundedCurve::Convert
        return StepToGeom_MakeBSplineCurve::Convert(RBSPL,*((Handle(Geom_BSplineCurve)*)&CC));
   }
   if (SC->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformCurveAndRationalBSplineCurve))) {
-//#ifdef DEBUG
-//    cout << "Warning : converting Rational QuasiUniformCurve onto BSplineCurveWithKnots" << endl;
-//#endif
     const Handle(StepGeom_QuasiUniformCurveAndRationalBSplineCurve) RQUC = 
       Handle(StepGeom_QuasiUniformCurveAndRationalBSplineCurve)::DownCast(SC);
     const Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve) RBSPL = 
index 801cb226faf471f1e3bb130497eaa0114816a504..a0ee4cb35dcd3fd7ae66e186187f5b8519076c6b 100644 (file)
@@ -96,9 +96,6 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
        return StepToGeom_MakeBSplineSurface::Convert(BSPL,*((Handle(Geom_BSplineSurface)*)&CS));
   }
   if (SS->IsKind(STANDARD_TYPE(StepGeom_UniformSurface))) {
-//#ifdef DEBUG
-//    cout << "Warning : converting UniformSurface onto BSplineSurfaceWithKnots" << endl;
-//#endif
     const Handle(StepGeom_UniformSurface) US = Handle(StepGeom_UniformSurface)::DownCast(SS);
     const Handle(StepGeom_BSplineSurfaceWithKnots) BSPL = new StepGeom_BSplineSurfaceWithKnots;
     BSPL->SetUDegree(US->UDegree());
@@ -131,9 +128,6 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
        return StepToGeom_MakeBSplineSurface::Convert(BSPL,*((Handle(Geom_BSplineSurface)*)&CS));
   }
   if (SS->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformSurface))) {
-//#ifdef DEBUG
-//    cout << "Warning : converting QuasiUniformSurface onto BSplineSurfaceWithKnots" << endl;
-//#endif
     const Handle(StepGeom_QuasiUniformSurface) QUS = 
       Handle(StepGeom_QuasiUniformSurface)::DownCast(SS);
     const Handle(StepGeom_BSplineSurfaceWithKnots) BSPL = new StepGeom_BSplineSurfaceWithKnots;
@@ -171,9 +165,6 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
        return StepToGeom_MakeBSplineSurface::Convert(BSPL,*((Handle(Geom_BSplineSurface)*)&CS));
   }
   if (SS->IsKind(STANDARD_TYPE(StepGeom_UniformSurfaceAndRationalBSplineSurface))) {
-//#ifdef DEBUG
-//    cout << "Warning : converting Rational UniformSurface onto BSplineSurfaceWithKnots" << endl;
-//#endif
     const Handle(StepGeom_UniformSurfaceAndRationalBSplineSurface) RUS = 
       Handle(StepGeom_UniformSurfaceAndRationalBSplineSurface)::DownCast(SS);
     const Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) RBSPL = 
@@ -203,9 +194,6 @@ Standard_Boolean StepToGeom_MakeBoundedSurface::Convert (const Handle(StepGeom_B
        return StepToGeom_MakeBSplineSurface::Convert(RBSPL,*((Handle(Geom_BSplineSurface)*)&CS));
   }
   if (SS->IsKind(STANDARD_TYPE(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface))) {
-//#ifdef DEBUG
-//    cout << "Warning : converting Rational QuasiUniformSurface onto BSplineSurfaceWithKnots" << endl;
-//#endif
     const Handle(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface) RQUS = 
       Handle(StepGeom_QuasiUniformSurfaceAndRationalBSplineSurface)::DownCast(SS);
     const Handle(StepGeom_BSplineSurfaceWithKnotsAndRationalBSplineSurface) RBSPL = 
index 4b453b0b0ef10fc7ca2c73a6a19dc0cebb1e7aef..3416f3b7d0524b1c8e325211a775a49b7056c848 100644 (file)
@@ -56,9 +56,6 @@ Standard_Boolean StepToGeom_MakeSurface::Convert (const Handle(StepGeom_Surface)
 {
    // sln 01.10.2001 BUC61003. If entry shell is NULL do nothing
   if(SS.IsNull()) {
-//#ifdef DEB
-//      cout<<"Warning: StepToGeom_MakeSurface: Null Surface:"; 
-//#endif
     return Standard_False;
   }
 
@@ -125,7 +122,7 @@ Standard_Boolean StepToGeom_MakeSurface::Convert (const Handle(StepGeom_Surface)
   }
   catch(Standard_Failure) {
 //   ShapeTool_DB ?
-#ifdef DEB //:s5
+#ifdef STEPTOGEOM_DEB //:s5
     cout<<"Warning: StepToGeom_MakeSurface: Exception:"; 
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index 23657fd0ce6b6062d3bb37072c0ed14ca2a81470..3e42524a4446038b294cda3d75b8500bf01b72be 100644 (file)
@@ -259,9 +259,6 @@ Standard_Boolean StepToGeom_MakeTrimmedCurve::Convert (const Handle(StepGeom_Tri
         }
       }
       else {
-//#ifdef DEBUG
-//     cout << "Trimming Failed" << endl;
-//#endif
         return Standard_False;
       }
     }
index 8d63046acee153c943549dfafd88e90dc3b3d6df..7fc90d381a9c71b46fd0bfddb4d7af1c52a17bb8 100644 (file)
@@ -97,8 +97,5 @@ Standard_Boolean StepToGeom_MakeTrimmedCurve2d::Convert (const Handle(StepGeom_T
     CC = Geom2dConvert::CurveToBSplineCurve(theTrimmed);
     return Standard_True;
   }
-//#ifdef DEB
-//  else cout << "Warning: TrimmedCurve2d not translated" << endl;
-//#endif
   return Standard_False;
 }
index e9cd10bc2681cf9e8eb3966921919f2c1687b70a..f8283805e6f12ba4a04a0eeebf3c7b143da570af 100644 (file)
@@ -237,25 +237,25 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d
 
   if (theCurve->IsKind(STANDARD_TYPE(Geom_BoundedCurve)) && !theCurve->IsClosed()) {
     if (w1 < cf) {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
       cout << "Update Edge First Parameter to Curve First Parameter" << endl;
 #endif
       w1 = cf;
     }
     else if (w1 > cl) {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
       cout << "Update Edge First Parameter to Curve Last Parameter" << endl;
 #endif
       w1 = cl;
     }
     if (w2 < cf) {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
       cout << "Update Edge Last Parameter to Curve First Parameter" << endl;
 #endif
       w2 = cf;
     }
     else if (w2 > cl) {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
       cout << "Update Edge Last Parameter to Curve Last Parameter" << endl;
 #endif
       w2 = cl;
@@ -284,7 +284,7 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d
       if ( theCurve->Value(w1).Distance(theCurve->Value(cf)) < preci ) w1 = cf;
       if ( theCurve->Value(w2).Distance(theCurve->Value(cl)) < preci ) w2 = cl;
       if ( w1 > w2 ) {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
        cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
 #endif
        Standard_Real tmp = w1;
@@ -312,7 +312,7 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d
       // illegal sur une courbe fermee non periodique
       // on inverse quand meme les parametres !!!!!!
       else {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
        cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
 #endif
        Standard_Real tmp = w1;
@@ -322,7 +322,7 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d
     }
     //abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
     else if ( w1 > w2 ) {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
       cout << "Warning: parameter range is bad; curve reversed" << endl;
 #endif
       w1 = theCurve->ReversedParameter ( w1 );
@@ -336,7 +336,7 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d
     }
   }
   else {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
     cout << "UpdateParam3d Failed" << endl;
     cout << "  - Curve Type : " << theCurve->DynamicType() << endl;
     cout << "  - Param 1    : " << w1 << endl;
@@ -344,7 +344,7 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d
 #endif
     //abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
     if ( w1 > w2 ) {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
       cout << "Warning: parameter range is bad; curve reversed" << endl;
 #endif
       w1 = theCurve->ReversedParameter ( w1 );
index 98bf1d92be3886f2a76084dead1404151ac89005..cc2269ce3534c5c40ecdc7d7fb19a84cb200e8ab 100644 (file)
@@ -192,7 +192,7 @@ Standard_Boolean StepToTopoDS_TranslateCompositeCurve::Init (const Handle(StepGe
         }
       }
       catch(Standard_Failure) {
-#ifdef DEB
+#ifdef STEPTOTOPODS_DEB
        cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
        Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -229,7 +229,7 @@ Standard_Boolean StepToTopoDS_TranslateCompositeCurve::Init (const Handle(StepGe
        }
       }
       catch(Standard_Failure) {
-#ifdef DEB
+#ifdef STEPTOTOPODS_DEB
        cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
        Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
index 5ee04de1015900c2b94f32ae149c908d5455e69a..d577489de154844b4941dbd9177e3b1af8166855 100644 (file)
@@ -91,7 +91,7 @@ static void DecodeMakeEdgeError(const BRepLib_MakeEdge&   ME,
 //      (TP,tobind, MakeEdge(myCurve,V1,V2,U1,U2,BRepAPI::Precision()) );
 //    aTool.Bind (tobind,E);  SURTOUT PAS : noter pour debug/erreur
 //  }
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
   cout << "------------------------------------" << endl;
   cout << "MakeEdge Error  : " << ME.Error()<<" - ";
 #endif
@@ -120,7 +120,7 @@ static void DecodeMakeEdgeError(const BRepLib_MakeEdge&   ME,
       TP->AddFail(orig," Line through identic Points");
       break;
     }
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
   cout << "Original Type   : " << orig->DynamicType() << endl;
   cout << "3D Curve Type   : " << myCurve->DynamicType() << endl;
   cout << "First Parameter : " << U1 << endl;
index f4cbd87f22ace74da502f02324eecdd06132e009..daad5d736e566ff0ad69f6f242eab034cf22379e 100644 (file)
@@ -149,7 +149,7 @@ static void CheckPCurves (TopoDS_Wire& aWire, const TopoDS_Face& aFace,
     
     if (w1 == w2) {
       RemoveSinglePCurve(myEdge,aFace);
-#ifdef DEBUG      
+#ifdef STEPTOTOPODS_DEB
       cout<<"Removing pcuve w1=w2"<<endl;
 #endif      
       continue;
@@ -420,7 +420,7 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
 
     Standard_Boolean ThereIsLikeSeam = Standard_False;
     
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
     cout << "      Processing Edge :" << j << endl;
 #endif
 
@@ -695,7 +695,7 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
       }
       else {
         RemoveSinglePCurve(edge, Face);
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
         cout <<"Removing after prj"<<endl;
 #endif
       }
index 52c3f0164d1626c7c52306c0246ebeacdb3ae362..27c5c7c32f6a8d27dca0f7141a8d5fc1e1ea8131 100644 (file)
@@ -223,7 +223,7 @@ void StepToTopoDS_TranslateFace::Init
 
   for (Standard_Integer i = 1; i <= NbBnd; i ++) {
 
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
     cout << "    Processing Wire : " << i << endl;
 #endif    
     FaceBound = FS->BoundsValue(i);
@@ -368,7 +368,7 @@ void StepToTopoDS_TranslateFace::Init
     else { 
       // Type not yet implemented or non sens
       TP->AddFail(Loop," Type of loop not yet implemented");
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
       cout << Loop->DynamicType() << endl;
 #endif
       continue;
index 4b4542ed37db4c8ffd2d05fb562d90a2ba96bc06..c74e1e25fcb2aa24b8cabf23c22c946f6cb2d253 100644 (file)
@@ -82,7 +82,7 @@ void StepToTopoDS_TranslateShell::Init
 
     Message_ProgressSentry PS ( TP->GetProgress(), "Face", 0, NbFc, 1 );
     for (Standard_Integer i=1; i<=NbFc && PS.More(); i++, PS.Next()) {
-#ifdef DEBUG
+#ifdef STEPTOTOPODS_DEB
       cout << "Processing Face : " << i << endl;
 #endif
       StepFace = CFS->CfsFacesValue(i);
index bd1da2c240e14c0c999f70aac614b0fbbaf6e529..0f83f3f4c42286770299f13cd41ef6c5c546f040 100644 (file)
@@ -178,7 +178,7 @@ void StlTransfer::BuildIncrementalMesh (const TopoDS_Shape&  Shape,
     }
     catch(Standard_Failure)
       {
-#ifdef DEB
+#ifdef STLTRANSFER_DEB
        cout << "Fail in StlTransfer::BuildIncrementalMesh"   << endl;
 #endif
       }
index f618f2cc5f50fcdb29ed9b2f8187d351617b0f90..18125ce4d88d4277ab224e283309367e50d3cdb6 100644 (file)
@@ -1536,12 +1536,20 @@ TCollection_AsciiString Storage_Schema::ICreationDate()
   time_t nowbin;
   struct tm *nowstruct;
   if (time(&nowbin) == (time_t)-1)
+  {
+#ifdef STORAGE_DEB
     cerr << "Storage ERROR : Could not get time of day from time()" << endl;
+#endif
+  }
 
   nowstruct = localtime(&nowbin);
 
   if (strftime(nowstr, SLENGTH, "%m/%d/%Y", nowstruct) == (size_t) 0)
+  {
+#ifdef STORAGE_DEB
     cerr << "Storage ERROR : Could not get string from strftime()" << endl;
+#endif
+  }
 
   TCollection_AsciiString t(nowstr);
   return t;
index d12093b8105c6588c653ef6fcaa0dd30782c789b..d4193c1d8555e61634f1cca0beacb48016dd6f08 100644 (file)
@@ -139,7 +139,7 @@ Standard_Boolean TDF_CopyLabel::ExternalReferences(const TDF_Label& L,
 }
 
 //=======================================================================
-#ifdef DEB
+#ifdef TDF_DEB
 static void PrintEntry(const TDF_Label&       label, const Standard_Boolean allLevels)
 {
   TCollection_AsciiString entry;
@@ -168,7 +168,7 @@ void TDF_CopyLabel::Perform()
      !TDF_Tool::IsSelfContained(mySL)) return;
 #endif
   else {
-#ifdef DEB
+#ifdef TDF_DEB
     cout << "THE SAME Data" <<endl;
 #endif
   }
@@ -187,7 +187,7 @@ void TDF_CopyLabel::Perform()
     for (TDF_MapIteratorOfAttributeMap attMItr(myMapOfExt);attMItr.More(); attMItr.Next()) {
       Handle(TDF_Attribute) att = attMItr.Key();
       myRT->SetRelocation(att, att);
-#ifdef DEB      
+#ifdef TDF_DEB      
       PrintEntry(att->Label(), Standard_True);
 #endif
     }
index 36fce3bf2b555f20a363d4490e4558a79e20b5ff..1f20c7e74127c9d621f01b46fafef81465ea6914 100644 (file)
@@ -108,7 +108,7 @@ void TDF_Delta::BeforeOrAfterApply(const Standard_Boolean before) const
   }
 
   if (!noDeadLock) {
-#ifdef DEB
+#ifdef TDF_DEB
     if (before) cout<<"Before"; else cout<<"After";
     cout<<"Undo(): dead lock between these attributes:"<<endl;
     for (itr.Initialize(ADlist); itr.More(); itr.Next()) {
index 7d4c2fa16539538aa25580adba8099e7b47f011c..b70805e8d322e53e36e4f85d4d167e970587c549 100644 (file)
@@ -46,7 +46,7 @@ void TDF_DeltaOnForget::Apply()
   // Undo = Resume.
   Label().ResumeAttribute(Attribute());
   Attribute()->mySavedTransaction = 0;
-#ifdef DEB
+#ifdef TDF_DEB
   cout<<"Resume attribute"<<endl;
 #endif
 }
index 3691f4e28e4fe4f23cf0201a9ba103c9f1d230b0..912ebf124d1611ee8a542ae9bd6a16728e71da61 100644 (file)
@@ -45,7 +45,7 @@ void TDF_DeltaOnResume::Apply()
 {
   // Undo = Forget.
   Label().ForgetAttribute (Attribute());
-#ifdef DEB
+#ifdef TDF_DEB
   cout<<"Forget attribute"<<endl;
 #endif
 }
index 0025abd2c298da215cd8930baad8500651a58950..403858e4af0f52f468ed0a67b70c593b5a77b028 100644 (file)
@@ -80,7 +80,7 @@ TDataStd_DeltaOnModificationOfByteArray::TDataStd_DeltaOnModificationOfByteArray
       }
     }
     OldAtt->RemoveArray();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(OldAtt->InternalArray().IsNull())
       cout << "BackUp Arr is Nullified" << endl;
 #endif
@@ -99,7 +99,7 @@ void TDataStd_DeltaOnModificationOfByteArray::Apply()
   Handle(TDF_Attribute) TDFAttribute = Attribute();
   Handle(TDataStd_ByteArray) BackAtt = (*((Handle(TDataStd_ByteArray)*)&TDFAttribute));
   if(BackAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfByteArray::Apply: OldAtt is Null" <<endl;
 #endif
     return;
@@ -112,7 +112,7 @@ void TDataStd_DeltaOnModificationOfByteArray::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfByteArray::Apply: CurAtt is Null" <<endl;
 #endif
     return;
@@ -153,7 +153,7 @@ void TDataStd_DeltaOnModificationOfByteArray::Apply()
       byteArr->SetValue(i, BArr->Value(i));
     if(!myIndxes.IsNull() && !myValues.IsNull())
       for(i = 1; i <= myIndxes->Upper();i++) {
-#ifdef DEB  
+#ifdef TDATASTD_DEB
        cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << endl;
        cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
        cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
@@ -163,7 +163,7 @@ void TDataStd_DeltaOnModificationOfByteArray::Apply()
     aCurAtt->myValue = byteArr;
   }
   
-#ifdef DEB
+#ifdef TDATASTD_DEB
   cout << " << Array Dump after Delta Apply >>" <<endl;
   Handle(TColStd_HArray1OfByte) BArr2 = aCurAtt->InternalArray();
   for(i=BArr2->Lower(); i<=BArr2->Upper() && i<= MAXUP;i++)
index 6ed766947f627b97a887eff338596420ed8c6a40..5ab0816b0c04879c9c6db9061933f03be0360775 100644 (file)
@@ -39,7 +39,7 @@ TDataStd_DeltaOnModificationOfExtStringArray::TDataStd_DeltaOnModificationOfExtS
       Handle(TColStd_HArray1OfExtendedString) Arr1, Arr2;
       Arr1 = OldAtt->Array();
       Arr2 = CurrAtt->Array();
-#ifdef DEB
+#ifdef TDATASTD_DEB
       if(Arr1.IsNull())
        cout <<"DeltaOnModificationOfExtStringArray:: Old IntArray is Null" <<endl;
       if(Arr2.IsNull())
@@ -79,7 +79,7 @@ TDataStd_DeltaOnModificationOfExtStringArray::TDataStd_DeltaOnModificationOfExtS
       }
     }
     OldAtt->RemoveArray();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(OldAtt->Array().IsNull())
       cout << "BackUp Arr is Nullified" << endl;
 #endif
@@ -98,7 +98,7 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
   Handle(TDF_Attribute) TDFAttribute = Attribute();
   Handle(TDataStd_ExtStringArray) BackAtt = (*((Handle(TDataStd_ExtStringArray)*)&TDFAttribute));
   if(BackAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfExtStringArray::Apply: OldAtt is Null" <<endl;
 #endif
     return;
@@ -111,7 +111,7 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfExtStringArray::Apply: CurAtt is Null" <<endl;
 #endif
     return;
@@ -155,7 +155,7 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
       strArr->SetValue(i, aStrArr->Value(i));
     if(!myIndxes.IsNull() && !myValues.IsNull())
       for(i = 1; i <= myIndxes->Upper();i++) {
-#ifdef DEB  
+#ifdef TDATASTD_DEB
        cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << endl;
        cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
        cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
@@ -166,7 +166,7 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
   }
 
   
-#ifdef DEB
+#ifdef TDATASTD_DEB
   cout << " << Array Dump after Delta Apply >>" <<endl;
   Handle(TColStd_HArray1OfExtendedString) aStrArr2 = aCurAtt->Array();
   for(i=aStrArr2->Lower(); i<= aStrArr2->Upper() && i<= MAXUP;i++)
index e814d40707a182ccdfba091aff240c9562b91c78..ec0073a7bc60807a81ed67f48f36f510443802b4 100644 (file)
@@ -38,7 +38,7 @@ TDataStd_DeltaOnModificationOfIntArray::TDataStd_DeltaOnModificationOfIntArray(c
       Handle(TColStd_HArray1OfInteger) Arr1, Arr2;
       Arr1 = OldAtt->Array();
       Arr2 = CurrAtt->Array();
-#ifdef DEB
+#ifdef TDATASTD_DEB
       if(Arr1.IsNull())
        cout <<"DeltaOnModificationOfIntArray:: Old IntArray is Null" <<endl;
       if(Arr2.IsNull())
@@ -77,7 +77,7 @@ TDataStd_DeltaOnModificationOfIntArray::TDataStd_DeltaOnModificationOfIntArray(c
       }
     }
     OldAtt->RemoveArray();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(OldAtt->Array().IsNull())
       cout << "BackUp Arr is Nullified" << endl;
 #endif
@@ -96,7 +96,7 @@ void TDataStd_DeltaOnModificationOfIntArray::Apply()
   Handle(TDF_Attribute) TDFAttribute = Attribute();
   Handle(TDataStd_IntegerArray) BackAtt = (*((Handle(TDataStd_IntegerArray)*)&TDFAttribute));
   if(BackAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfIntArray::Apply: OldAtt is Null" <<endl;
 #endif
     return;
@@ -109,7 +109,7 @@ void TDataStd_DeltaOnModificationOfIntArray::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfIntArray::Apply: CurAtt is Null" <<endl;
 #endif
     return;
@@ -150,7 +150,7 @@ void TDataStd_DeltaOnModificationOfIntArray::Apply()
       intArr->SetValue(i, IntArr->Value(i));
     if(!myIndxes.IsNull() && !myValues.IsNull())
       for(i = 1; i <= myIndxes->Upper();i++) {
-#ifdef DEB  
+#ifdef TDATASTD_DEB
        cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << endl;
        cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
        cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
@@ -160,7 +160,7 @@ void TDataStd_DeltaOnModificationOfIntArray::Apply()
     aCurAtt->myValue = intArr;
   }
   
-#ifdef DEB    
+#ifdef TDATASTD_DEB
   cout << " << Array Dump after Delta Apply >>" <<endl;
   Handle(TColStd_HArray1OfInteger) IntArr2 = aCurAtt->Array();
   for(i=IntArr2->Lower(); i<=IntArr2->Upper() && i <= MAXUP;i++)
index 5bff5f770cd7b1b16ebd9de5ce3097ddb16d2989..ae2e72e75d591faf287947c4de2f182f412881cd 100644 (file)
@@ -81,7 +81,7 @@ void TDataStd_DeltaOnModificationOfIntPackedMap::Apply()
   Handle(TDF_Attribute) aTDFAttribute = Attribute();
   Handle(TDataStd_IntPackedMap) aBackAtt = (*((Handle(TDataStd_IntPackedMap)*)&aTDFAttribute));
   if(aBackAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfIntPAckedMap::Apply: OldAtt is Null" <<endl;
 #endif
     return;
@@ -94,7 +94,7 @@ void TDataStd_DeltaOnModificationOfIntPackedMap::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfIntAPckedMAp::Apply: CurAtt is Null" <<endl;
 #endif
     return;
index b012fcdddc41e879726bb8c3ba00eb5cbcc67b5f..d1ad071826a0bc10f11f8d21267d8321cc8b4c49 100644 (file)
@@ -38,7 +38,7 @@ TDataStd_DeltaOnModificationOfRealArray::
     Handle(TColStd_HArray1OfReal) Arr1, Arr2;
     Arr1 = OldAtt->Array();
     Arr2 = CurrAtt->Array();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(Arr1.IsNull())
       cout <<"DeltaOnModificationOfRealArray:: Old Array is Null" <<endl;
     if(Arr2.IsNull())
@@ -76,7 +76,7 @@ TDataStd_DeltaOnModificationOfRealArray::
       }
     }
     OldAtt->RemoveArray();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(OldAtt->Array().IsNull())
       cout << "BackUp Arr is Nullified" << endl;
 #endif
@@ -95,7 +95,7 @@ void TDataStd_DeltaOnModificationOfRealArray::Apply()
   Handle(TDF_Attribute) TDFAttribute = Attribute();
   Handle(TDataStd_RealArray) BackAtt = (*((Handle(TDataStd_RealArray)*)&TDFAttribute));
   if(BackAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfRealArray::Apply: OldAtt is Null" <<endl;
 #endif
     return;
@@ -108,7 +108,7 @@ void TDataStd_DeltaOnModificationOfRealArray::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfRealArray::Apply: CurAtt is Null" <<endl;
 #endif
     return;
@@ -149,7 +149,7 @@ void TDataStd_DeltaOnModificationOfRealArray::Apply()
       realArr->SetValue(i, aRealArr->Value(i));
     if(!myIndxes.IsNull() && !myValues.IsNull())
       for(i = 1; i <= myIndxes->Upper();i++) {
-#ifdef DEB  
+#ifdef TDATASTD_DEB
        cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << endl;
        cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
        cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
@@ -160,7 +160,7 @@ void TDataStd_DeltaOnModificationOfRealArray::Apply()
   }
     
 
-#ifdef DEB    
+#ifdef TDATASTD_DEB
   cout << " << RealArray Dump after Delta Apply >>" <<endl;
   Handle(TColStd_HArray1OfReal) aRArr = aCurAtt->Array();
   for(i=aRArr->Lower(); i<=aRArr->Upper() && i <= MAXUP;i++)
index 349c3d77dde420471996d7a8e7a09fc691fdd09f..9ea6edde91f707a38644635bcbd23e89d9301813 100644 (file)
@@ -231,7 +231,7 @@ PCDM_ReaderStatus TDocStd_Application::Open(const TCollection_ExtendedString& pa
     }
   }
   status = GetRetrieveStatus();
-#ifdef DEB
+#ifdef TDOCSTD_DEB
   cout<<"TDocStd_Application::Open(): The status = "<<status<<endl;
 #endif
   return status;
@@ -276,7 +276,7 @@ PCDM_StoreStatus TDocStd_Application::SaveAs(const Handle(TDocStd_Document)& D,c
   if(storer.StoreStatus() == PCDM_SS_OK)
     D->SetSaved();
 #ifdef BUC60867
-#ifdef DEB
+#ifdef TDOCSTD_DEB
   cout<<"TDocStd_Application::SaveAs(): The status = "<<storer.StoreStatus()<<endl;
 #endif
   return storer.StoreStatus();
@@ -318,7 +318,7 @@ PCDM_StoreStatus TDocStd_Application::Save (const Handle(TDocStd_Document)& D) {
     status = PCDM_SS_Failure;
   }
 #ifdef BUC60867
-#ifdef DEB
+#ifdef TDOCSTD_DEB
   cout<<"TDocStd_Application::Save(): The status = "<<status<<endl;
 #endif
   return status;
index 676d42a3d55551782d3e0e5bc328b69445a169d9..40bd4fb1ae4bae20c41f5ccc01e4a418cc48fa26 100644 (file)
@@ -99,7 +99,7 @@ void TDocStd_MultiTransactionManager::Redo() {
 
 void TDocStd_MultiTransactionManager::OpenCommand() {
   if (myOpenTransaction) {
-#ifdef DEB
+#ifdef TDOCSTD_DEB
     cout << "TDocStd_MultiTransactionManager::OpenCommand(): "
             "Can't start new application transaction while a "
             "previous one is not commited or aborted" << endl;
index 43a5d8a73c554f06f1f0e58e077efd9d13f79d90..6eee4ed027d5c56e761b1648cdc00e57096fa5d1 100644 (file)
@@ -756,7 +756,7 @@ Standard_OStream& TNaming::Print (const TNaming_NameType NAME,  Standard_OStream
 Standard_OStream& TNaming::Print (const TDF_Label& ACCESS,  Standard_OStream& s) {
   Handle(TNaming_UsedShapes) US;
   if (!ACCESS.Root().FindAttribute(TNaming_UsedShapes::GetID(), US)) {
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout<<"TNaming::Print(US): Bad access"<<endl;
 #endif
     return s;
index 6e1731558899c1765cdc0bd88be541f97d7efeb6..facc99485cdca130236549c3dc14ebde261cd3b4 100644 (file)
@@ -305,7 +305,7 @@ Standard_Boolean IsImported(const Handle(TNaming_NamedShape)& NS)
   if (!it.More()) return 0;
   it.Next();  if (!it.More()) return 0;
   //plus d un shape.
-#ifdef DEB
+#ifdef TNAMING_DEB
   cout <<"WARNING IMPORTED"<<endl;
 #endif
   return 1;
index 827dbb31fdeca27ff89288c5be2ebf9639bea904..08b4d1880a3ea8a19c868dd3c30f24188889fd4c 100644 (file)
@@ -137,7 +137,7 @@ void TNaming_Localizer::FindFeaturesInAncestors
        FindFeaturesInAncestors (AS, Context, AncInFeature);
       }
       else {
-#ifdef DEB
+#ifdef TNAMING_DEB
        cout <<" TNaming_Localization : Failure in the research of ancetres in TDF"<<endl;
 #endif
       }
@@ -145,7 +145,7 @@ void TNaming_Localizer::FindFeaturesInAncestors
     
   }
   else {
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout <<" TNaming_Localization : S n est pas dans le solide"<<endl;//S is not in the solid
 #endif
   }
@@ -213,7 +213,7 @@ const TopTools_IndexedDataMapOfShapeListOfShape& TNaming_Localizer::Ancestors
       TopTools_IndexedDataMapOfShapeListOfShape& Anc = itA.Value();
 
       TopExp_Explorer exp(In,TS);
-#ifdef DEB
+#ifdef TNAMING_DEB
       if (!exp.More())   cout <<" TNaming_Localization : Construction ancetres impossible"<<endl;
 #endif
       const TopoDS_Shape& SS = exp.Current();
@@ -232,7 +232,7 @@ const TopTools_IndexedDataMapOfShapeListOfShape& TNaming_Localizer::Ancestors
          TopExp::MapShapesAndAncestors(In, TS, TA, Anc);
        }
        else {
-#ifdef DEB
+#ifdef TNAMING_DEB
          cout <<" TNaming_Localization : Construction ancetres impossible"<<endl;
 #endif
        }
@@ -256,7 +256,7 @@ const TopTools_IndexedDataMapOfShapeListOfShape& TNaming_Localizer::Ancestors
     TopExp::MapShapesAndAncestors(In, TS, TA, myAncestors.First());
   }
   else {
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout <<" TNaming_Localization : Construction ancetres impossible"<<endl;
 #endif
   }
@@ -280,7 +280,7 @@ Standard_Boolean TNaming_Localizer::IsNew (const TopoDS_Shape&    S,
       return Standard_True;
     }
   }
-#ifdef DEB
+#ifdef TNAMING_DEB
   cout <<"TNaming_Localizer:IsNewInLab : Shape n est pas dans le Label."<<endl;
 #endif
   return Standard_False;
@@ -334,7 +334,7 @@ void TNaming_Localizer::GoBack (const TopoDS_Shape&         S,
           LBNS.Append (TNaming_Tool::NamedShape(it.Shape(),Lab));
         }
         else {
-#ifdef DEB
+#ifdef TNAMING_DEB
           cout <<"TNaming_Localizer: Shape modifie sans avoir ete cree"<<endl;
 #endif
         }
index 172a3a75a2dc3284cd64480bac4df1d529472ea9..d7d164008c298ab8ba22bb9013b37758b7d6edff 100644 (file)
@@ -2039,7 +2039,7 @@ static Standard_Boolean ShellIN(const TDF_Label&                L,
   }
   return aResult;
 }
-#ifdef DEB
+#ifdef TNAMING_DEB
 //=======================================================================
 static  Standard_CString NameTypeToString (const TNaming_NameType Type)
 {
@@ -2146,7 +2146,7 @@ case TNaming_SHELLIN:
     }
   }
 } catch (...) {
-#ifdef DEB  
+#ifdef TNAMING_DEB
   cout << "Name::Solve: EXCEPTION==> NameType = " << NameTypeToString(myType) << "  ";
   PrintEntry(aLab);
 #endif
index 21b634f556851f7ed4df77cd564ff401cedb3337..59c4c29e8bb68ea49cc1777d6e3bdf0833a6c0d0 100644 (file)
@@ -885,7 +885,7 @@ TNaming_Iterator::TNaming_Iterator(const TDF_Label&       Lab,
   }
   else {
     myNode = 0L;
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout <<"TNaming_Iterator : No Shape for this label"<<endl;
 #endif
   }
index 0abbee0af21ffca7a0d1dab029cdf46f9cea60f7..0bf6f1b17c22823b70e9aa71b299002442c4f447 100644 (file)
@@ -617,7 +617,7 @@ static Standard_Boolean IsMultipleCase(const TopoDS_Shape&        S,
       if(aMS.Extent())
        aDMM.Bind(it.Key(), aMS);
     } else {
-#ifdef DEB
+#ifdef TNAMING_DEB
       cout << "Key is not BOUND!" <<endl;
 #endif
       return Standard_False;
@@ -716,7 +716,7 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
   
 
   if (Neighbourg.IsEmpty()) {
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout <<"FindNeighbourg: impossible"<<endl;
 #endif
     return 0;  
index 0c3e80bff9b0563a4277a4c5201e0df304c7cace..51d6b003dadd77d46320b5cafed3158220f81e9b 100644 (file)
@@ -247,7 +247,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
   // Dimension is build on one or two shapes.
   if (aGeomNum < 1 || aGeomNum > 2)
   {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout <<  "TPrsStd_ConstraintTools::ComputeDistance: 1 or 2 geometries are needed" << endl;
 #endif
     NullifyAIS(theAIS);
@@ -265,7 +265,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
 
     if (aShape1.IsNull())
     {
-      #ifdef DEB
+      #ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << endl;
       #endif
       NullifyAIS (theAIS);
@@ -278,7 +278,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
 
     if (aShape1.IsNull() || aShape2.IsNull())
     {
-      #ifdef DEB
+      #ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << endl;
       #endif
       NullifyAIS (theAIS);
@@ -327,7 +327,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
   {
     if (aShape1.ShapeType () != TopAbs_EDGE)
     {
-      #ifdef DEB
+      #ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeDistance : shape should be edge" << endl;
       #endif
       NullifyAIS (theAIS);
@@ -474,7 +474,7 @@ void TPrsStd_ConstraintTools::ComputePerpendicular(const Handle(TDataXtd_Constra
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputePerpendicular: at leat two constraintes are needed" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -488,7 +488,7 @@ void TPrsStd_ConstraintTools::ComputePerpendicular(const Handle(TDataXtd_Constra
   if (is_planar) GetShapesAndGeom(aConst,shape1,shape2,ageom3);
   else GetTwoShapes(aConst,shape1,shape2); 
   if (shape1.IsNull() || shape2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputePerpendicular : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -513,7 +513,7 @@ void TPrsStd_ConstraintTools::ComputePerpendicular(const Handle(TDataXtd_Constra
   if (is_planar) {
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
     if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputePerpendicular: nul plane" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -533,7 +533,7 @@ void TPrsStd_ConstraintTools::ComputeParallel(const Handle(TDataXtd_Constraint)&
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeParallel: at least 2 constraintes are needed" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -541,7 +541,7 @@ void TPrsStd_ConstraintTools::ComputeParallel(const Handle(TDataXtd_Constraint)&
   }
   
   if (!aConst->IsPlanar()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeParallel: must be a planar constraint" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -553,7 +553,7 @@ void TPrsStd_ConstraintTools::ComputeParallel(const Handle(TDataXtd_Constraint)&
   
   GetShapesAndGeom(aConst,shape1,shape2,ageom3);
   if (shape1.IsNull() || shape2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeParallel : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -561,7 +561,7 @@ void TPrsStd_ConstraintTools::ComputeParallel(const Handle(TDataXtd_Constraint)&
   }
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
   if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeParallel: nul plane" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -594,7 +594,7 @@ void TPrsStd_ConstraintTools::ComputeSymmetry(const Handle(TDataXtd_Constraint)&
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 3) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraintes are needed" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -603,7 +603,7 @@ void TPrsStd_ConstraintTools::ComputeSymmetry(const Handle(TDataXtd_Constraint)&
 
   Standard_Boolean is_planar(aConst->IsPlanar());
   if (!is_planar) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -615,7 +615,7 @@ void TPrsStd_ConstraintTools::ComputeSymmetry(const Handle(TDataXtd_Constraint)&
   GetShapesAndGeom(aConst,shape1,shape2,shape3,ageom3);
 
   if (shape1.IsNull() || shape2.IsNull() || shape3.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -626,7 +626,7 @@ void TPrsStd_ConstraintTools::ComputeSymmetry(const Handle(TDataXtd_Constraint)&
   GetGoodShape(shape3);
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
   if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -660,7 +660,7 @@ void TPrsStd_ConstraintTools::ComputeMidPoint(const Handle(TDataXtd_Constraint)&
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 3)
     {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraints are needed" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -670,7 +670,7 @@ void TPrsStd_ConstraintTools::ComputeMidPoint(const Handle(TDataXtd_Constraint)&
   Standard_Boolean is_planar(aConst->IsPlanar());
   if ( !is_planar )
     {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -683,7 +683,7 @@ void TPrsStd_ConstraintTools::ComputeMidPoint(const Handle(TDataXtd_Constraint)&
 
   if (shape1.IsNull() || shape2.IsNull() || shape3.IsNull())
     {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -696,7 +696,7 @@ void TPrsStd_ConstraintTools::ComputeMidPoint(const Handle(TDataXtd_Constraint)&
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
   if (aplane.IsNull())
     {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -733,14 +733,14 @@ void TPrsStd_ConstraintTools::ComputeTangent (const Handle(TDataXtd_Constraint)&
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeTangent: at leat two constraintes are needed" << endl;
 #endif
     NullifyAIS(anAIS);
     return;
   }
   if (!aConst->IsPlanar()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeTangent: must be a planar constraint" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -751,7 +751,7 @@ void TPrsStd_ConstraintTools::ComputeTangent (const Handle(TDataXtd_Constraint)&
   
   GetShapesAndGeom(aConst,shape1,shape2,ageom3);
   if (shape1.IsNull() || shape2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeTangent : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -761,7 +761,7 @@ void TPrsStd_ConstraintTools::ComputeTangent (const Handle(TDataXtd_Constraint)&
   GetGoodShape(shape2);
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
   if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeTangent: nul plane" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -806,7 +806,7 @@ void TPrsStd_ConstraintTools::ComputeAngleForOneFace (const Handle(TDataXtd_Cons
   
   GetOneShape( aConst, shape ); 
   if (shape.IsNull() ) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeAngleForOneFace : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -856,7 +856,7 @@ static Standard_Boolean CheckIsShapeCompound(TopoDS_Shape& shape, TopoDS_Face& a
        }
       }
   }
-#ifdef DEB
+#ifdef TPRSSTD_DEB
   cout << "TPrsStd::Compute angle : Shape is not Compound or is Null" <<endl;
 #endif
   return (Standard_False);
@@ -873,7 +873,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
     if( nbgeom == 1 ) { ComputeAngleForOneFace( aConst, anAIS ); return; }
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeAngle: at least 2 constraints are needed" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -885,7 +885,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
   
   GetShapesAndGeom (aConst,shape1,shape2,ageom3);
   if (shape1.IsNull() || shape2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeAngle : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -909,7 +909,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
        aFace    = TopoDS::Face(shape1);
       else
        if(!CheckIsShapeCompound(shape1, aFace)) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
        cout << "Compute angle : Geom type = " << shape1.ShapeType()
          << " non traite"<<endl;
 #endif
@@ -935,7 +935,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
       gp_Torus aTore = aSurfaFace.Torus();
       anax1aFace1 = aTore.Axis();  
     } else {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout<<"Compute angle"<<aTypeaFace<<" non traite"<<endl;
 #endif
       NullifyAIS(anAIS);
@@ -956,7 +956,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
        aFace    = TopoDS::Face(shape2); 
     else  
       if(!CheckIsShapeCompound(shape2, aFace)) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
        cout << "Compute angle : Geom type = " << shape2.ShapeType()
          << " non traite"<<endl;
 #endif
@@ -979,7 +979,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
       gp_Torus aTore = aSurfaFace.Torus();
       anax1aFace2 = aTore.Axis();  
     } else {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "Compute angle " << aTypeaFace << " non traite"<<endl;
 #endif
       NullifyAIS(anAIS);
@@ -996,7 +996,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
          Handle(Geom_Line) computedgeom3 = new Geom_Line (aLine);
          ageom3 = computedgeom3;
        } else {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
          cout<<"Compute angle insertection of planes failed"<<endl;
 #endif
          NullifyAIS(anAIS);
@@ -1004,7 +1004,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
        }
       } else {
        
-#ifdef DEB
+#ifdef TPRSSTD_DEB
        cout<<"Compute angle faces are //"<<endl;
 #endif
        NullifyAIS(anAIS);
@@ -1023,7 +1023,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
     if (ageom3->IsKind(STANDARD_TYPE(Geom_Plane))) isplan = Standard_True;
     else if (ageom3->IsKind(STANDARD_TYPE(Geom_Line))) isplan = Standard_False;
     else {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeAngle: unknown 3rd arg " << endl;
 #endif
       NullifyAIS(anAIS);
@@ -1101,7 +1101,7 @@ void TPrsStd_ConstraintTools::ComputeConcentric(const Handle(TDataXtd_Constraint
     Standard_ProgramError::Raise ("TPrsStd_ConstraintTools::ComputeConcentric: at least 2 constraintes are needed");
   }
   if (!aConst->IsPlanar()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeConcentric: must be a planar constraint" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1112,7 +1112,7 @@ void TPrsStd_ConstraintTools::ComputeConcentric(const Handle(TDataXtd_Constraint
   
   GetShapesAndGeom(aConst,shape1,shape2,ageom3);
   if (shape1.IsNull() || shape2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeConcentric : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1124,7 +1124,7 @@ void TPrsStd_ConstraintTools::ComputeConcentric(const Handle(TDataXtd_Constraint
 
 //ota : to allow concentric constraint display between vertex and edge
   if (shape1.ShapeType() != TopAbs_EDGE && shape2.ShapeType() != TopAbs_EDGE) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeConcentric: concentric between two vertexes : NOT DISPLAYED" << endl;;
 #endif
     NullifyAIS(anAIS);
@@ -1133,7 +1133,7 @@ void TPrsStd_ConstraintTools::ComputeConcentric(const Handle(TDataXtd_Constraint
 
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
   if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeConcentric: nul plane" << endl;;
 #endif
     NullifyAIS(anAIS);
@@ -1168,7 +1168,7 @@ void TPrsStd_ConstraintTools::ComputeRadius (const Handle(TDataXtd_Constraint)&
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeRadius: at least one constrainte is needed" << endl;    
 #endif
     NullifyAIS(anAIS);
@@ -1178,7 +1178,7 @@ void TPrsStd_ConstraintTools::ComputeRadius (const Handle(TDataXtd_Constraint)&
   TopoDS_Shape shape1 ;
   GetOneShape (aConst,shape1);
   if (shape1.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeRadius: null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1190,7 +1190,7 @@ void TPrsStd_ConstraintTools::ComputeRadius (const Handle(TDataXtd_Constraint)&
       shape1.ShapeType()==TopAbs_COMPSOLID ||
       shape1.ShapeType()==TopAbs_SOLID ||
       shape1.ShapeType()==TopAbs_SHELL ) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeRadius: not good shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1225,7 +1225,7 @@ void TPrsStd_ConstraintTools::ComputeRadius (const Handle(TDataXtd_Constraint)&
     GetGeom(aConst,ageom2);
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
     if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeRadius: nul plane" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -1245,7 +1245,7 @@ void TPrsStd_ConstraintTools::ComputeMinRadius (const Handle(TDataXtd_Constraint
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeMinRadius: at least one constrainte is needed" << endl;    
 #endif
     NullifyAIS(anAIS);
@@ -1255,7 +1255,7 @@ void TPrsStd_ConstraintTools::ComputeMinRadius (const Handle(TDataXtd_Constraint
   TopoDS_Shape shape1 ;
   GetOneShape (aConst,shape1);
   if (shape1.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeMinradius: null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1267,7 +1267,7 @@ void TPrsStd_ConstraintTools::ComputeMinRadius (const Handle(TDataXtd_Constraint
       shape1.ShapeType()==TopAbs_COMPSOLID ||
       shape1.ShapeType()==TopAbs_SOLID ||
       shape1.ShapeType()==TopAbs_SHELL ) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeMinRadius: not good shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1304,7 +1304,7 @@ void TPrsStd_ConstraintTools::ComputeMinRadius (const Handle(TDataXtd_Constraint
     GetGeom(aConst,ageom2);
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
     if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeMinRadius: nul plane" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -1324,7 +1324,7 @@ void TPrsStd_ConstraintTools::ComputeMaxRadius (const Handle(TDataXtd_Constraint
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: at least one constrainte is needed" << endl;    
 #endif
     NullifyAIS(anAIS);
@@ -1334,7 +1334,7 @@ void TPrsStd_ConstraintTools::ComputeMaxRadius (const Handle(TDataXtd_Constraint
   TopoDS_Shape shape1 ;
   GetOneShape (aConst,shape1);
   if (shape1.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeMaxradius: null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1346,7 +1346,7 @@ void TPrsStd_ConstraintTools::ComputeMaxRadius (const Handle(TDataXtd_Constraint
       shape1.ShapeType()==TopAbs_COMPSOLID ||
       shape1.ShapeType()==TopAbs_SOLID ||
       shape1.ShapeType()==TopAbs_SHELL ) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: not good shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1383,7 +1383,7 @@ void TPrsStd_ConstraintTools::ComputeMaxRadius (const Handle(TDataXtd_Constraint
     GetGeom(aConst,ageom2);
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
     if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: nul plane" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -1403,7 +1403,9 @@ void TPrsStd_ConstraintTools::ComputeEqualDistance(const Handle(TDataXtd_Constra
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 4) {
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeEqual: at least four geometries are needed" << endl;;
+#endif
       NullifyAIS(anAIS);
       return;
     }
@@ -1412,7 +1414,7 @@ void TPrsStd_ConstraintTools::ComputeEqualDistance(const Handle(TDataXtd_Constra
   GetShapesAndGeom(aConst, aShape1, aShape2, aShape3, aShape4, aGeom);
    if (aShape1.IsNull()||aShape2.IsNull()||
        aShape3.IsNull()||aShape4.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1426,7 +1428,7 @@ void TPrsStd_ConstraintTools::ComputeEqualDistance(const Handle(TDataXtd_Constra
   
   if (!CheckShapesPair(aShape1, aShape2) || 
       !CheckShapesPair(aShape3, aShape4)){
-#ifdef DEB
+#ifdef TPRSSTD_DEB
        cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : at least one pair of shapes is incorrect"<<endl;
 #endif
        NullifyAIS(anAIS);
@@ -1440,7 +1442,7 @@ void TPrsStd_ConstraintTools::ComputeEqualDistance(const Handle(TDataXtd_Constra
  
   if (!IsPlanar || aPlane.IsNull()) {
     //create the plane
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout<< "The constraint plane is not assigned "<< endl;
 #endif
     NullifyAIS(anAIS);
@@ -1495,7 +1497,7 @@ static Standard_Boolean CheckShapesPair(const TopoDS_Shape& aShape1,
          gp_Dir aDir1 = aCurve1.Line().Direction();
          gp_Dir aDir2 = aCurve2.Line().Direction();
          if (!(aDir1.IsParallel(aDir2, Precision::Confusion()))) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
            cout << " Lines are not parallel"<<endl;
 #endif
            return Standard_False;
@@ -1506,14 +1508,14 @@ static Standard_Boolean CheckShapesPair(const TopoDS_Shape& aShape1,
          gp_Pnt aCntr1 = aCurve1.Circle().Location(); //get the circle center
          gp_Pnt aCntr2 = aCurve2.Circle().Location(); //get the circle center
          if (!aCntr1.IsEqual(aCntr2,Precision::Confusion())){
-#ifdef DEB
+#ifdef TPRSSTD_DEB
            cout << " Circles are not concentric"<<endl;
 #endif
            return Standard_False;
          }
        }
       else {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
        cout << "Incorrect pair of curves "<<endl;
 #endif
        return Standard_False;
@@ -1535,7 +1537,7 @@ static Standard_Boolean CheckShapesPair(const TopoDS_Shape& aShape1,
        {
          gp_Pnt aCntr = aCurve.Circle().Location();
          if (!aCntr.IsEqual(aPnt, Precision::Confusion())){
-#ifdef DEB
+#ifdef TPRSSTD_DEB
            cout << " The point doesn't coincide with the circle center"<<endl;
 #endif
            return Standard_False;
@@ -1554,7 +1556,7 @@ void TPrsStd_ConstraintTools::ComputeEqualRadius(const Handle(TDataXtd_Constrain
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeEqualRadius: at least two geometries are needed" << endl;;
 #endif
     NullifyAIS(anAIS);
@@ -1565,7 +1567,7 @@ void TPrsStd_ConstraintTools::ComputeEqualRadius(const Handle(TDataXtd_Constrain
   
   GetShapesAndGeom(aConst, shape1, shape2, ageom3);
   if (shape1.IsNull()||shape2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeEqualRadius : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1609,7 +1611,7 @@ void TPrsStd_ConstraintTools::ComputeEqualRadius(const Handle(TDataXtd_Constrain
        aDir1.IsParallel(aDir2, Precision::Confusion()))
       aplane = aPlane2;
     else {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeRadiusRelation: nul plane" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -1646,7 +1648,7 @@ void TPrsStd_ConstraintTools::ComputeDiameter(const Handle(TDataXtd_Constraint)&
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeDiameter: at least one constrainte is needed" << endl;;
 #endif
     NullifyAIS(anAIS);
@@ -1656,7 +1658,7 @@ void TPrsStd_ConstraintTools::ComputeDiameter(const Handle(TDataXtd_Constraint)&
   
   GetOneShape(aConst,shape1);
   if (shape1.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeDiameter : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1686,7 +1688,7 @@ void TPrsStd_ConstraintTools::ComputeDiameter(const Handle(TDataXtd_Constraint)&
     GetGeom(aConst,ageom2);
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
     if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeDiameter: nul plane" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -1707,14 +1709,14 @@ void TPrsStd_ConstraintTools::ComputeFix(const Handle(TDataXtd_Constraint)& aCon
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeFix: at least one constrainte is needed" << endl;;
 #endif
     NullifyAIS(anAIS);
     return;
   }
   if (!aConst->IsPlanar()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeFix: must be a planar constraint" << endl;;
 #endif
     NullifyAIS(anAIS);
@@ -1726,7 +1728,7 @@ void TPrsStd_ConstraintTools::ComputeFix(const Handle(TDataXtd_Constraint)& aCon
   
   GetOneShape(aConst,shape1);
   if (shape1.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeFix : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1736,7 +1738,7 @@ void TPrsStd_ConstraintTools::ComputeFix(const Handle(TDataXtd_Constraint)& aCon
   GetGeom(aConst,ageom2);
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
   if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeFix: nul plane" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1772,7 +1774,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
   if (is_planar) {
     GetGeom (aConst,aplane);
     if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeOffset: null plane" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -1799,7 +1801,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
   }
 
   if (S1.IsNull() || S2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeOffset: null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -1944,7 +1946,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
     return;
   }
 
-#ifdef DEB
+#ifdef TPRSSTD_DEB
   cout << "TPrsStd_ConstraintTools::ComputeOffset: Case not implemented" << endl;
 #endif
   NullifyAIS(anAIS);
@@ -1967,7 +1969,7 @@ void TPrsStd_ConstraintTools::ComputePlacement
   TopoDS_Shape shape1,shape2 ;
   GetTwoShapes(aConst,shape1,shape2);
   if (shape1.IsNull() || shape2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -2098,7 +2100,7 @@ void TPrsStd_ConstraintTools::ComputeCoincident(const Handle(TDataXtd_Constraint
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeCoincident: at leat two constraintes are needed" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -2106,7 +2108,7 @@ void TPrsStd_ConstraintTools::ComputeCoincident(const Handle(TDataXtd_Constraint
   }
   
   if (!aConst->IsPlanar()) { 
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeCoincident: must be a planar constraint" << endl;
 #endif
     anAIS.Nullify() ; 
@@ -2117,7 +2119,7 @@ void TPrsStd_ConstraintTools::ComputeCoincident(const Handle(TDataXtd_Constraint
   Handle(Geom_Plane) aplane;
   GetShapesAndGeom(aConst,shape1,shape2,aplane);
   if (shape1.IsNull() || shape2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -2127,7 +2129,7 @@ void TPrsStd_ConstraintTools::ComputeCoincident(const Handle(TDataXtd_Constraint
   GetGoodShape(shape1);
   GetGoodShape(shape2);
   if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul plane" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -2160,7 +2162,7 @@ void TPrsStd_ConstraintTools::ComputeRound(const Handle(TDataXtd_Constraint)& aC
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeRound: at leat one geometry is needed" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -2169,7 +2171,7 @@ void TPrsStd_ConstraintTools::ComputeRound(const Handle(TDataXtd_Constraint)& aC
   TopoDS_Shape shape1;
   GetOneShape (aConst,shape1);
   if (shape1.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -2214,7 +2216,7 @@ void TPrsStd_ConstraintTools::GetGeom(const Handle(TDataXtd_Constraint)& aConst,
 {  
   Handle(TNaming_NamedShape) atgeom = aConst->GetPlane();
   if (atgeom.IsNull()) {
-#ifdef DEB    
+#ifdef TPRSSTD_DEB    
     cout<<"TPrsStd_ConstraintTools::GetGeom : aConst->GetPlane().IsNull()"<<endl;
 #endif
     return;
@@ -2234,7 +2236,7 @@ void TPrsStd_ConstraintTools::GetGeom(const Handle(TDataXtd_Constraint)& aConst,
   if (TDataXtd_Geometry::Plane(label,aplane)) aGeom =  new Geom_Plane(aplane);
   else if (TDataXtd_Geometry::Line(label,anaxis)) aGeom =  new Geom_Line(anaxis);
   else if (TDataXtd_Geometry::Point(label,apoint)) aGeom =  new Geom_CartesianPoint(apoint);
-#ifdef DEB
+#ifdef TPRSSTD_DEB
   else {
     cout << "TPrsStd_ConstraintTools::GetGeom no geom on label " << endl;
   }
index d138f8497688f10e80a13cac7b9fa8322a30c911..d68bc76e91a043f5590d9819b952236340d5c3f5 100644 (file)
@@ -46,7 +46,7 @@ Handle(TPrsStd_DriverTable) TPrsStd_DriverTable::Get()
   if ( drivertable.IsNull() )
   {
     drivertable = new TPrsStd_DriverTable;
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "The new TPrsStd_DriverTable was created" << endl;
 #endif
   }
index 25c525a92c6fc69b4f452820aee39d0ab75cdc12..0ad39a727a5110eafb8acfd48cdf48120bd71b07 100644 (file)
@@ -120,7 +120,7 @@ void TestTopOpe::Factory(Draw_Interpretor& theDI)
 
   SWDRAW::Init (theDI);
 
-#ifdef DEB
+#ifdef TESTTOPOPE_DEB
       cout << "Draw Plugin : All topological operations kernel commands are loaded" << endl;
 #endif
 }
index 61d52139cd4eaa005e7e500fee0a9cb6f42a9d54..6aaa30f445e391bb1f5987e28e35b192eae0825c 100644 (file)
@@ -131,7 +131,7 @@ Standard_Boolean TestTopOpe_HDSDisplayer::SubShape(const TopoDS_Shape& S,const S
     return r;
   }
 
-#ifdef DEB
+#ifdef TESTTOPOPE_DEB
   Standard_Integer iS = myHDS->Shape(S,FindKeep);
   cout<<endl<<"***** shape "<<iS<<" has no ancestor index : use shapemaps"<<endl;
 #endif
index 4513d165a1b912ab590ed01b355f56a7ee32a4b4..72f8727683ee6f32e6059abb0ca9fe56d2b6095d 100644 (file)
@@ -36,7 +36,9 @@ void TopClass_Classifier3d::Reset(const gp_Lin&       L,
 void TopClass_Classifier3d::Compare(const TopoDS_Face&        Face,
                                    const TopAbs_Orientation) {  
   if(!isSet) { 
+#ifdef TOPCLASS_DEB
     cout<<" Call to TopClass_Classifier3d::Compare  without a Reset ! ";
+#endif
     return;
   }
 
@@ -50,7 +52,9 @@ void TopClass_Classifier3d::Compare(const TopoDS_Face&        Face,
        myFace  = myIntersector.Face(); 
        if(Abs(myParam)<=myTolerance) { 
          //-- #########################################
+#ifdef TOPCLASS_DEB
          cout<<" myParam = "<<myParam<<" ds TopClass_Classifier3d.gxx  "<<endl;
+#endif
          //-- #########################################
          myState = TopAbs_ON;
        }
@@ -64,9 +68,11 @@ void TopClass_Classifier3d::Compare(const TopoDS_Face&        Face,
          else if(myIntersector.Transition() == IntCurveSurface_In) { 
            myState = TopAbs_OUT;
          }
-         else { 
+#ifdef TOPCLASS_DEB
+    else { 
            cout<<" -------- Probleme ds TopClass_Classifier3d.gxx "<<endl;
-         }
+    }
+#endif
        }
       }
       else { 
index 6bb1d90f7151a237690fdf3b5c0159aabf23e9ab..0c6dc531b8a0d4fd8346144c55cebeed06273f35 100644 (file)
@@ -104,7 +104,7 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
                      myState = 4; //-- OUT --
                    }
                    else {
-#ifdef DEB
+#ifdef TOPCLASS_DEB
                      cout<<"*Probleme ds TopClass_SolidClassifier.gxx"<<endl;
 #endif
                    }
@@ -123,7 +123,7 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
                      myState = 4; //-- OUT --
                    }
                    else { 
-#ifdef DEB
+#ifdef TOPCLASS_DEB
                      cout<<"*Probleme ds TopClass_SolidClassifier.gxx "<<endl;
 #endif
                    }
index c408a7a5ded5e67f2759638a527b35a54e9f0642..616b96edb06e5b4c100d47448aa1d238a3c038f1 100644 (file)
@@ -96,19 +96,25 @@ TopAbs_Orientation  TopCnx_EdgeFaceTransition::Transition()const
       return TopAbs_INTERNAL;
     else if (Aft == TopAbs_OUT) 
       return TopAbs_REVERSED;
+#ifdef TOPCNX_DEB
     else
       cout << "\n*** Complex Transition : unprocessed state"<<endl;
+#endif
   }
   else if (Bef == TopAbs_OUT) {
     if      (Aft == TopAbs_IN ) 
       return TopAbs_FORWARD;
     else if (Aft == TopAbs_OUT) 
       return TopAbs_EXTERNAL;
+#ifdef TOPCNX_DEB
     else 
       cout << "\n*** Complex Transition : unprocessed state"<<endl;
+#endif
   }
+#ifdef TOPCNX_DEB
   else 
     cout << "\n*** Complex Transition : unprocessed state"<<endl;
+#endif
   return TopAbs_INTERNAL;
 }
 
index 4a21a1fc2c27dd6ff31b9f99f0807789ef63b423..310134ed4394978653df2147aa5f767a2d1d8b76 100644 (file)
@@ -287,7 +287,7 @@ static
        Standard_Real par1 = CPI1->Parameter();
        Standard_Real par2; Standard_Boolean ok = FUN_tool_parE(e1,par1,e2,par2);
        if (!ok) {
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
          cout<<"**********TopOpeBRep FUN_shareNOG**********"<<endl;
 #endif
          return Standard_False;
@@ -882,7 +882,7 @@ Standard_Boolean TopOpeBRep_DSFiller::IsMadeOf1d(const TopoDS_Shape& aS) const
 Standard_Boolean TopOpeBRep_DSFiller::IsContext1d(const TopoDS_Shape& aS) const 
 {
   Standard_Boolean is1d = IsMadeOf1d(aS);
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
   if ( is1d ) cout<<"TopOpeBRep_DSFiller : 1d"<<endl;
 #endif
   if ( !is1d ) return Standard_False;
@@ -940,7 +940,7 @@ void TopOpeBRep_DSFiller::Insert1d
 Standard_Boolean TopOpeBRep_DSFiller::CheckInsert(const TopoDS_Shape& aS1,const TopoDS_Shape& aS2) const 
 {
   if (aS1.IsEqual(aS2)) {
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
     cout<<"TopOpeBRep_DSFiller : CheckInsert : S1 == S2"<<endl;
 #endif
     return Standard_False;
index 291fdb1a21661ee7cc49454d8f1f1535b31312f8..134e351a9a6534bcf36a26db5f7bce10ac550421 100644 (file)
@@ -154,15 +154,13 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
     if (!found) MakeGeometry(P2D,G,K);
 
     Standard_Boolean foundpoint  = (found)  && (K == TopOpeBRepDS_POINT);
-#ifdef DEB
-    Standard_Boolean foundvertex = (found)  && (K == TopOpeBRepDS_VERTEX);
-#endif
     Standard_Boolean isnewpoint  = (!found) && (K == TopOpeBRepDS_POINT);
     Standard_Boolean isnewvertex = (!found) && (K == TopOpeBRepDS_VERTEX);
 
     Standard_Boolean faulty =  (isvertex && isnewpoint) || (!isvertex && isnewvertex);
     if (faulty) {
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
+      Standard_Boolean foundvertex = (found)  && (K == TopOpeBRepDS_VERTEX);
       cout<<"- - - faulty EdgesFiller : G "<<G<<" K ";TopOpeBRepDS::Print(K,cout);cout.flush();
       cout<<" isvertex="<<isvertex;cout.flush();
       cout<<" isop="<<foundpoint<<" isov="<<foundvertex;cout.flush();
index f95ce2887c95c02b505de5f3e295690143868e95..a3d0e31f860e869aba0abfd71c3b10dd4e7d2b21 100644 (file)
@@ -214,7 +214,7 @@ Standard_Boolean TopOpeBRep_FacesFiller::CheckLine(TopOpeBRep_LineInter& L) cons
   
   if ( t == TopOpeBRep_WALKING ) {
     if ( nbvp < 2 ) {
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
       cout<<"\n=== Nb de IntPatch_Point sur WL incorrect : "<<nbvp<<" ===\n";
 #endif
       check = Standard_False;
@@ -346,7 +346,7 @@ Standard_Boolean TopOpeBRep_FacesFiller::CheckLine(TopOpeBRep_LineInter& L) cons
     }
   }
   
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
   if (!check) { cout<<"# DEB CheckLine : rejet de ";TopOpeBRep::Print(t,cout);cout<<" a "<<nbvp<<" points"<<endl; }
 #endif
 
index 49aa546ff3e5c373b9e803fe906e1fc65d3e0dee..72f79d90ade68b95a136e369d38e3aef6abbe140 100644 (file)
@@ -448,7 +448,7 @@ void TopOpeBRep_FacesFiller::ProcessVPnotonR(const TopOpeBRep_VPointInter& VP)
   Standard_Boolean CPIfound = GetGeometry(itCPIL,VP,PVIndex,PVKind);
   if ( !CPIfound ) {
     if (iVP != iINON1 && iVP != iINONn) {
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
       cout<<"VP "<<iVP<<" on "<<0<<" : point d'intersection anormal : rejet"<<endl;
 #endif
       return;
@@ -743,7 +743,7 @@ void TopOpeBRep_FacesFiller::ProcessRLine()
     Standard_Integer obOO   = TopOpeBRepTool_TOOL::OnBoundary(OOpar,OOE);     //vertex can be missed
 
     if ((obRest == EXTERNAL)||(obOO == EXTERNAL)){
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
       if(obRest==EXTERNAL) cout<<"***********ProcessRLine : faulty parameter on Erest"<<endl;
       if(obOO==EXTERNAL)   cout<<"***********ProcessRLine : faulty parameter on OOE"<<endl;
 #endif
index e4e02f91b3a42c6ba7aa09c7c8e269ea030a5e2e..67b3e210b1931378fcc658f1fd001042d3d35244 100644 (file)
@@ -1177,7 +1177,7 @@ static void MergeWLinesIfAllSegmentsAlongRestriction(IntPatch_SequenceOfLine&
      
       Handle(IntPatch_WLine) anWLine = NULL;
       anWLine = GetMergedWLineOnRestriction(theSlin,TolVrtx,aLineOn2S);
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
          cout << "*** TopOpeBRep_FaceIntersector: Merge WLines on Restriction S1 to WLine ***" << endl;
 #endif
       theSlin.Clear();
@@ -1193,7 +1193,7 @@ static void MergeWLinesIfAllSegmentsAlongRestriction(IntPatch_SequenceOfLine&
 
       Handle(IntPatch_WLine) anWLine = NULL;
       anWLine = GetMergedWLineOnRestriction(theSlin,TolVrtx,aLineOn2S);
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
          cout << "*** TopOpeBRep_FaceIntersector: Merge WLines on Restriction S2 to WLine***" << endl;
 #endif
       theSlin.Clear();
index ac37b94d5a27d4719d6cbbf22b5d038b6c3f1433..e3862d5748399dd552a74f0b2f8b80dbecb668e1 100644 (file)
@@ -1184,7 +1184,7 @@ static Standard_Integer OneShapeIsHalfSpace(const TopoDS_Shape& S1,const TopoDS_
          // so this suggestion must be developed carefully. while we don't classify it!
          // *****************************************************************************
        }
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
       if( result != 0 )
        cout << "# one of the SOLIDs probably is a HALF SPACE" << endl;
 #endif
index 87707f1edcc91d453b9ec09794caaf0ba663f9a1..78d5bed5a4b09f3251c7b20daed69e7ac2706e0b 100644 (file)
@@ -250,7 +250,7 @@ void TopOpeBRepBuild_Builder::End()
       gp_Pnt P2(aXmax, aYmax, aZmax);
       Standard_Real d = P1.Distance(P2);
       if (d > newtol) {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
         cout<<"\npoint P"<<iv<<" "<<Pv.X()<<" "<<Pv.Y()<<" "<<Pv.Z()<<endl;
         cout<<"TopOpeBRepBuild_Builder::End BOX newtol "<<newtol<<" -> "<<d<<endl;
 #endif
index f493d9c953f4334ec154b4011b96e96b38e4b411..c979bdd11fea0c37e2c1f7f576f6a8e6e4585b6e 100644 (file)
@@ -784,7 +784,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GParamOnReference(const TopoDS_Vertex&
   Handle(Geom_Surface) su = BRep_Tool::Surface(myFaceReference);
   Handle(Geom_Plane) suplan = Handle(Geom_Plane)::DownCast(su);
   if ( suplan.IsNull() ) { 
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
     cout<<"NYI : GParamOnReference : not planar"<<endl;
 #endif
     return Standard_False;
@@ -810,7 +810,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GParamOnReference(const TopoDS_Vertex&
   case GeomAbs_Parabola:
     P = ElCLib::Parameter(AC.Parabola(),p2); break;
     default : 
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
       cout<<"NYI : GParamOnReference : OtherCurve on planar surface"<<endl;
 #endif
     return Standard_False;
index 4e461b38d255a70b0f10bce0a99bc9bbde6353fa..7dec58b8c61cf3d47727a1175697fcfcb6aae405 100644 (file)
@@ -802,7 +802,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
           Standard_Boolean so = Standard_True;
          Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
          if (!ok) {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
             cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
 #endif
            //return; // nyiFUNRAISE
@@ -925,7 +925,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
           Standard_Boolean so = Standard_True;
          Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
          if (!ok) {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
             cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
 #endif
           }
index a06f228b3da895d2afcce6fe85fe75e2c325db3c..ae0b17c45451ca2dcabbec10617cda28643ad8f6 100644 (file)
@@ -473,7 +473,7 @@ void TopOpeBRepBuild_HBuilder::MakeCurveAncestorMap()
     for(;itloe.More();itloe.Next()) {
       TopoDS_Shape& E = *((TopoDS_Shape*)(&itloe.Value()));
       if(mySectEdgeDSCurve.IsBound(E)) {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
        cout<<"BRepAlgo_DSAccess::MakeEdgeAncestorFromCurve : program error"<<endl;
 #endif
       }
index a1c0fc95639297d6f6d62ae8e9b425701fea02b6..5526475ec11ebe495083e1319dcd1986cde984a0 100644 (file)
@@ -779,7 +779,7 @@ void TopOpeBRepBuild_Builder::MergeKPartisdisj()
        return;
       }    
       else {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
        cout<<"TopOpeBRepBuild_MergeKPart soldisj : ires = "<<ires<<endl;
 #endif
        return;
index 7b5eb96421bcb91ab1d85353d9ca705f7acaeea5..b1c24480a4997336a8a7d29fd203e12458f3e29a 100644 (file)
@@ -162,7 +162,7 @@ void TopOpeBRepBuild_Builder::MergeShapes(const TopoDS_Shape& S1,const TopAbs_St
 {
   Standard_Boolean lesmemes = S1.IsEqual(S2);
   if (lesmemes) {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
     cout<<"TopOpeBRepBuild : S1 == S2"<<endl;
 #endif
     return;
index 44d7cac68628d1da4f26e93490bb768221fc1c21..bb538219a25ced90dbccd0c626020069bb9276d4 100644 (file)
@@ -136,7 +136,7 @@ const TopoDS_Shape& TopOpeBRepBuild_Pave::Shape() const
 
 void TopOpeBRepBuild_Pave::Dump() const 
 {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
   cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),cout);
 #endif
 }
index 4c5aae38d6e85f04fe0951ee10d512ee2c39b6fa..65a06f6354e0a48174e4d5627f4621ad6f8cd074 100644 (file)
@@ -447,7 +447,7 @@ const Standard_Real PAR_T = 0.43213918;
       if (!anAvoidSubshMap.Contains (aSubshMap(i)) )
         aSubsh = aSubshMap(i);
     if (aSubsh.IsNull()) {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
       cout<<"FindStateThroughVertex: warning: all vertices are avoided"<<endl;
 #endif
       return TopAbs_UNKNOWN;    // failure
index 83ab3ee6c8beddab80a0232c58f8c8a7645c05e1..4d615acc74047af11767d089ec406b7dd79adcb5 100644 (file)
@@ -187,7 +187,7 @@ void TopOpeBRepBuild_Builder::GFillCurveTopologyWES(const TopOpeBRepDS_CurveIter
       
       myBuildTool.PCurve(WESF,E,C2D);
 
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
       EhasPConWESF = FC2D_HasCurveOnSurface(E,WESF);
       if (!EhasPConWESF) cout<<"TopOpeBRepBuild_Builder::GFillCurveTopologyWES : Null PCurve on F"<<iWESF<<endl;
 #endif
index 49f3fe50c14b193474256783b86023f25d566d21..850166ef318ba2edf7d361af23a35d1671dfa7b4 100644 (file)
@@ -330,7 +330,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
   } // === fin RESNEWSHE 
   
   else {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
     cout<<"MergeKPartiskole : ires = "<<ires<<endl;
 #endif
   }
index 51f6639b053893f26e34395f82ba1e494828cccf..9fae066720f22523c480170330ce73c0d31f7b34 100644 (file)
@@ -317,7 +317,6 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
     cout<<endl;GdumpSHA(FF,(char *) "#--- GFABUMakeFaces ");cout<<endl;
     GdumpFABU(FABU);debgfabu(iF);
   }
-  Standard_Boolean strange = TopOpeBRepDS_GettraceSTRANGE();
 #endif
   
   TopTools_ListOfShape lnewFace;
@@ -560,8 +559,9 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
 
     Standard_Boolean topurge = FUN_purgeFon1nonoriE(newFace);
     if (topurge) {
-#ifdef DEB      
-      if (strange) cout<<"Builder::GFABUMakeFaces -> purgeFon1nonoriE\n";
+#ifdef TOPOPEBREPBUILD_DEB
+      if (TopOpeBRepDS_GettraceSTRANGE())
+        cout<<"Builder::GFABUMakeFaces -> purgeFon1nonoriE\n";
 #endif
       continue;
     }
index a1a68f1bad31f07bb30d47551d018b3fd060e617..2ffb5d1301739532e076f84b421ee31585b0f88a 100644 (file)
@@ -714,7 +714,7 @@ void  TopOpeBRepDS_BuildTool::ApproxCurves
   Standard_Real newtol,newparmin,newparmax;
   // MSV Nov 12, 2001: if approx failed than leave old curves of degree 1
   if (!approxMade) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
     cout<<"TopOpeBRepDS_BuildTool::ApproxCurves : approx failed, leave curves of degree 1"
       <<endl;
 #endif
index 81fa322f085fc0db7300e4abe5f837d0aa7ae2f9..1544aae1cdda438e8c787606d19401e1f03bdff8 100644 (file)
@@ -103,7 +103,7 @@ Standard_Boolean TopOpeBRepDS_Check::ChkIntg()
     bI = bI && ChkIntgInterf(LI);
   }
   
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
   PrintIntg(cout);
 #endif
 //  CheckEdgeParameter();
@@ -145,7 +145,7 @@ Standard_Boolean TopOpeBRepDS_Check::CheckDS(const Standard_Integer I,
   case TopOpeBRepDS_SURFACE :
     {
       if(myHDS->NbSurfaces() < I) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
        cout<<"Surpassed index of TopOpeBRepDS_SURFACE. actual index : "<<I;
        cout<<". Index max : "<<myHDS->NbSurfaces();
 #endif
@@ -161,7 +161,7 @@ Standard_Boolean TopOpeBRepDS_Check::CheckDS(const Standard_Integer I,
   case TopOpeBRepDS_CURVE :
     {
       if(myHDS->NbCurves() < I) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
        cout<<"Surpassed index of TopOpeBRepDS_CURVE. actual index : "<<I;
        cout<<". Index max : "<<myHDS->NbCurves();
 #endif
@@ -178,7 +178,7 @@ Standard_Boolean TopOpeBRepDS_Check::CheckDS(const Standard_Integer I,
   case TopOpeBRepDS_POINT :
     {
       if(myHDS->NbPoints() < I) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
        cout<<"Surpassed index of TopOpeBRepDS_POINT : actual index : "<<I;
        cout<<". Index max : "<<myHDS->NbPoints()<<endl;
 #endif
@@ -198,7 +198,7 @@ Standard_Boolean TopOpeBRepDS_Check::CheckDS(const Standard_Integer I,
 
   // topology
   if(myHDS->NbShapes() < I) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
     cout<<"Surpassed index of TopOpeBRepDS_Shape_. actual index : "<<I;
     cout<<". Index max : "<<myHDS->NbShapes();
 #endif
@@ -222,7 +222,7 @@ Standard_Boolean TopOpeBRepDS_Check::CheckDS(const Standard_Integer I,
     break ;
   }
   if(S.ShapeType() != se) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
     cout<<"Error :  Shape "<<I<<" is a ";
     TopOpeBRepDS::Print(TopOpeBRepDS::ShapeToKind(S.ShapeType()), cout);
     cout<<" and not a ";
@@ -254,7 +254,7 @@ Standard_Boolean TopOpeBRepDS_Check::ChkIntgSamDom()
     const TopoDS_Shape& Sind = myHDS->Shape(i);
     const TopTools_ListOfShape& losi = BDS.ShapeSameDomain(Sind);
     if(!CheckShapes(losi)) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
       cout<<"Shape of ShapeSameDomain (n*n "<<i;
       cout<<") is not defined in the DS"<<endl;
 #endif
@@ -265,7 +265,7 @@ Standard_Boolean TopOpeBRepDS_Check::ChkIntgSamDom()
     Curr = BDS.SameDomainRef(i);
     Loc = BDS.SameDomainRef(Curr);
     if(Curr && (Curr != Loc)) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
       cout<<"SameDomaineRef of Shape "<<i<<" = "<<Curr;
       cout<<". SameDomaineRef of Shape "<<Curr<<" = "<<Loc<<endl;
 #endif
@@ -276,7 +276,7 @@ Standard_Boolean TopOpeBRepDS_Check::ChkIntgSamDom()
       // Verification du type des differents Shapes SameDomain
       const TopoDS_Shape& Sref = myHDS->Shape(Curr);
       if(Sind.ShapeType() != Sref.ShapeType()) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEBDEB
        cout<<"Shapes n*n "<<i<<" and "<<Curr<<" are SameDomain."<<endl;
        cout<<"Type of Shape n*n "<<i<<" = ";
        PrintShape(Sind.ShapeType(),cout);
@@ -302,7 +302,7 @@ Standard_Boolean TopOpeBRepDS_Check::ChkIntgSamDom()
          liolos.Next();
        }
        if(!bb) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
          cout<<"Shapes n*n "<<i<<" and  "<<Curr<<" are SameDomain. ";
          cout<<"The reference of "<<i<<", is "<<Curr<<"."<<endl;
          cout<<"However, Shape n*n "<<i;
@@ -372,7 +372,7 @@ Standard_Boolean TopOpeBRepDS_Check::OneVertexOnPnt(){
       Dist = P1.Distance(P2);
       if(Dist <= tol1 + tol2) {
        if(sdr1 != sdr2) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
          cout<<"Pb Vertex n+n"<<Curr1<<" and n*n"<<Curr2;
          cout<<" : same place, not SameDomain"<<endl;
          cout<<"  Tol of Vertex n*n"<<Curr1<<" = "<<tol1<<endl;
@@ -383,7 +383,7 @@ Standard_Boolean TopOpeBRepDS_Check::OneVertexOnPnt(){
        }
       }
       else if(sdr1 == sdr2) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
        cout<<"Pb Vertex "<<Curr1<<" and "<<Curr2;
        cout<<" : SameDomain, not same place"<<endl;
        cout<<"  Tol of Vertex n*n"<<Curr1<<" = "<<tol1<<endl;
@@ -402,7 +402,7 @@ Standard_Boolean TopOpeBRepDS_Check::OneVertexOnPnt(){
       const gp_Pnt& Pnt2 = TopOpeBRepTool_ShapeTool::Pnt(S1);
       Dist = Pnt1.Distance(Pnt2);
       if(Dist <= tol1 + tol2) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
        cout<<"Attention : Vertex "<<Curr1<<" and Point "<<PE.Index();
        cout<<" are confused"<<endl;
        cout<<"  Tol of Vertex n*n"<<Curr1<<" = "<<tol1<<endl;
@@ -420,7 +420,7 @@ Standard_Boolean TopOpeBRepDS_Check::OneVertexOnPnt(){
       for(j = i+1;j < NbPo;j++) {
        const TopOpeBRepDS_Point& dsPnt2 = myHDS->Point(j);
        if(dsPnt1.IsEqual(dsPnt2)) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
          cout<<"Attention : points "<<i<<" and "<<j<<" are confused"<<endl;
          cout<<"  Tol of Point n*n"<<i<<" = "<<dsPnt1.Tolerance()<<endl;
          cout<<"  Tol of Point n*n"<<j<<" = "<<dsPnt1.Tolerance()<<endl;
index dc19507e3dadc079d21b04307463e15ffa27dd4f..dd55cd11405325857bcc75c31056275a0cf894c3 100644 (file)
@@ -958,7 +958,7 @@ void TopOpeBRepDS_DataStructure::FillShapesSameDomain(const TopoDS_Shape& S1,
   else if ( r1 != iS1 && r2 != iS2 ) { 
     if (r1 != r2) {
       //      Standard_ProgramError::Raise("FacesFiller::Insert SD 1");
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
       cout<<"FacesFiller::Insert SD 1"<<endl;
 #endif
     }
@@ -1180,7 +1180,7 @@ TopOpeBRepDS_Curve& TopOpeBRepDS_DataStructure::ChangeCurve(const Standard_Integ
 const TopOpeBRepDS_Point& TopOpeBRepDS_DataStructure::Point(const Standard_Integer I)const 
 {
   if ( I < 1 || I > myNbPoints ) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
     cout<<"acces au POINT "<<I<<" incorrect "<<myNbPoints<<" max"<<endl;
 #endif
     Standard_ProgramError::Raise("TopOpeBRepDS_DataStructure::Point");
@@ -1199,7 +1199,7 @@ const TopOpeBRepDS_Point& TopOpeBRepDS_DataStructure::Point(const Standard_Integ
 TopOpeBRepDS_Point& TopOpeBRepDS_DataStructure::ChangePoint(const Standard_Integer I)
 {
   if ( I < 1 || I > myNbPoints ) {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
     cout<<"acces au POINT "<<I<<" incorrect "<<myNbPoints<<" max"<<endl;
 #endif
     Standard_ProgramError::Raise("TopOpeBRepDS_DataStructure::Point");
index 71361482689a8fa2106cdf19fc9c646c55a2fa27..d13ba8b55f643d25ab7604e8694f2ae7bdd45e8b 100644 (file)
@@ -390,7 +390,7 @@ Standard_EXPORT Standard_Real FDS_Parameter(const Handle(TopOpeBRepDS_Interferen
   else if ( I->IsKind(STANDARD_TYPE(TopOpeBRepDS_CurvePointInterference)) )
     p = Handle(TopOpeBRepDS_CurvePointInterference)::DownCast(I)->Parameter();
   else {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
     cout<<"EdgeInterference : mauvais type d'interference"<<endl;
 #endif
     Standard_Failure::Raise("FDS_Parameter");
index e644854aca1c019efbfd628be3f80325964fb9d9..f02ad33decd5796225f7b144c19822209048d8dc 100644 (file)
@@ -34,7 +34,7 @@
 static void FUN_Raise()
 {
   Standard_ProgramError::Raise("Edge3dInterferenceTool");
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
   cout <<" ************** Failure in Edge3dInterferenceTool"<<endl;
 #endif
 }
index 3ef74aff6f6116528afff2f83b41baa4407d4ee6..fa8099f4dca88fe687122d95b71fadc9e726f0ba 100644 (file)
@@ -47,7 +47,7 @@ static Standard_Real Parameter(const Handle(TopOpeBRepDS_Interference)& I)
   else if ( I->IsKind(STANDARD_TYPE(TopOpeBRepDS_CurvePointInterference)) )
     p = Handle(TopOpeBRepDS_CurvePointInterference)::DownCast(I)->Parameter();
   else {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
     cout<<"EdgeInterference : mauvais type d'interference"<<endl;
 #endif
     Standard_ProgramError::Raise("TopOpeBRepDS_EdgeInterferenceTool1");
index d4e9b8e3b49ffbbe4db6d20d6881a32cb7ce0353..5aaa804aaf114acded14e44081b3ea494621caaf 100644 (file)
@@ -28,7 +28,7 @@
 
 static void FUN_Raise()
 {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
   cout<<"****************************** TopOpeBRepDS_TOOL"<<endl;
 #endif
 }
index 5f73426edfe3b6a25505ab1ebe522323c5d670d1..02497a4f029abe27ef34b49ca9e143805160ba0b 100644 (file)
@@ -651,7 +651,7 @@ Standard_Boolean TopOpeBRepTool_FuseEdges::SameSupport(const TopoDS_Edge& E1,
       typC1 != STANDARD_TYPE(Geom_Ellipse) &&
       typC1 != STANDARD_TYPE(Geom_BSplineCurve) && 
       typC1 != STANDARD_TYPE(Geom_BezierCurve)) {
-#ifdef DEB
+#ifdef TOPOPEBREPTOOL_DEB
     cout << " TopOpeBRepTool_FuseEdge : Type de Support non traite" << endl;
 #endif
     return Standard_False;
index f902739eb67169cdb9dcf05b711cfd1f2fcba96e..326f968f0a606969ae5bf5e7e1d9160a19b6913b 100644 (file)
@@ -154,7 +154,7 @@ Standard_EXPORT gp_Dir FUN_tool_ngS(const gp_Pnt2d& p2d,const Handle(Geom_Surfac
        return ng;
       }
     }
-#ifdef DEB
+#ifdef TOPOPEBREPTOOL_DEB
     cout<<"FUN_tool_nggeomF NYI"<<endl;
 #endif
     return gp_Dir(0,0,1);
index 5b23556504b3cab87be4dc90dd8c665c48dac32b..24d1a841f4c8bfacf27ffb4a871482f579c0923d 100644 (file)
@@ -224,7 +224,7 @@ const TopOpeBRepTool_IndexedDataMapOfShapeBox& TopOpeBRepTool_HBoxTool::IMS() co
 //purpose  : 
 //=======================================================================
 void TopOpeBRepTool_HBoxTool::DumpB 
-#ifdef DEB
+#ifdef TOPOPEBREPTOOL_DEB
 (const Bnd_Box& B)
 {
   if      (B.IsVoid()) cout<<"# IsVoid";
index 9ad021c309f8d060de8700884df721015ea6302c..83605544c3b6a6157479a22c827a889128282d77 100644 (file)
@@ -555,7 +555,7 @@ void TopOpeBRepTool_ShapeClassifier::StateP2DReference
 //     else if (o == TopAbs_INTERNAL) myState == TopAbs_IN;
        else if (o == TopAbs_INTERNAL) myState = TopAbs_IN;
        else {
-#ifdef DEB
+#ifdef TOPOPEBREPTOOL_DEB
          cout<<"StateP2DReference o<>E,I"<<endl;
 #endif
          break;
index c7ae44660cb9379451be86f1317dd2fb70be7962..b043b00a4e80d71b1261551caf8ff7142007c0f1 100644 (file)
@@ -1266,7 +1266,7 @@ static Standard_Boolean FUN_ngF(const gp_Pnt2d& uv, const TopoDS_Face& F, gp_Vec
        ngF = ng; return Standard_True;
       }
     }
-#ifdef DEB
+#ifdef TOPOPEBREPTOOL_DEB
     cout<<"FUN_tool_nggeomF NYI"<<endl;
 #endif
     return Standard_False;
index 02fd8f419e18146173cca0b0617003e8073e7ae1..379e3d827c114467b42fffa5254d2041bb51c5c6 100644 (file)
@@ -83,7 +83,7 @@ TopoDSToStep_MakeBrepWithVoids::
            if (!aOShell.IsNull()) {
              aCShell = new StepShape_ClosedShell;
              aCShell->Init (aOShell->Name(),aOShell->CfsFaces());
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
              cout<<"Warning: MakeBRepWithVoids: Open shell in the solid; treated as closed"<<endl;
 #endif
            }
@@ -94,11 +94,11 @@ TopoDSToStep_MakeBrepWithVoids::
            else 
              S.Append(aCShell);
          }
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
          else cout<<"*** MakeBRepWithVoids : Shell not mapped"<<endl;
 #endif
        }
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
        else cout << "Shell not mapped" << endl;
 #endif
 /* //:d7 
index aebccfcbe2c16d9c13b1ffdaf413b6b0ef0d7290..1a7d4a0e31d81498f761d4f11d2a5f1e7eefb574 100644 (file)
@@ -204,7 +204,7 @@ void TopoDSToStep_MakeStepEdge::Init(const TopoDS_Edge& aEdge,
     // a 3D Curve is constructed 
     // -------------------------
 
-#ifdef DEB
+#ifdef TOPODSTOSTEP_DEB
     cout << "Warning: TopoDSToStep_MakeStepEdge: edge without 3d curve; creating..." << endl;
 #endif
     if ((SA.GetType() == GeomAbs_Plane) &&
index 10b215c0b4f23cb9b774ec469f4870f7457caa1a..9b9b9a05a2564a4b9ba098cd274d4822feffa231 100644 (file)
@@ -179,7 +179,7 @@ void TopoDSToStep_MakeStepFace::Init(const TopoDS_Face& aFace,
   const TopoDS_Wire theOuterWire = BRepTools::OuterWire(ForwardFace);
   
   if (theOuterWire.IsNull()) {
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
     cout<< "Warning : Face without wire not mapped";
 #endif
     FP->AddWarning(errShape, " Face without wire not mapped");
@@ -277,7 +277,7 @@ void TopoDSToStep_MakeStepFace::Init(const TopoDS_Face& aFace,
       MkWire.Init(CurrentWire, aTool, FP);
       if (MkWire.IsDone()) Loop = Handle(StepShape_Loop)::DownCast(MkWire.Value());
       else {
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
        cout << TopoDSToStep::DecodeWireError(MkWire.Error()) << endl;
 #endif
        FP->AddWarning(errShape, " a Wire not mapped");
index 3898c9be655d9b3bfc1b5fe5c8f97d724f7fbc67..f71d1cbc2fe74688185d3cb5a043a46ee0a5482b 100644 (file)
@@ -101,7 +101,7 @@ Standard_Boolean TopoDSToStep_Tool::Faceted() const
 
 void TopoDSToStep_Tool::SetCurrentShell(const TopoDS_Shell& S)
 {
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
   cout << "Process a Shell which is ";
   switch(S.Orientation())
     {
@@ -141,7 +141,7 @@ const TopoDS_Shell& TopoDSToStep_Tool::CurrentShell() const
 
 void TopoDSToStep_Tool::SetCurrentFace(const TopoDS_Face& F)
 {
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
   cout << "  Process a Face which is ";
   switch(F.Orientation())
     {
@@ -184,7 +184,7 @@ const TopoDS_Face& TopoDSToStep_Tool::CurrentFace() const
 
 void TopoDSToStep_Tool::SetCurrentWire(const TopoDS_Wire& W)
 {
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
   cout << "    Process a Wire which is ";
   switch(W.Orientation())
     {
@@ -224,7 +224,7 @@ const TopoDS_Wire& TopoDSToStep_Tool::CurrentWire() const
 
 void TopoDSToStep_Tool::SetCurrentEdge(const TopoDS_Edge& E)
 {
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
   cout << "      Process Edge which is ";
   switch(E.Orientation())
     {
index 00d81089c306ee14dae057c4e2140fb12a9dc134..74546ec1dd5f3767ff5955d0ac9dc14092c6cd91 100644 (file)
@@ -160,7 +160,7 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
 {
   if (theEdge.Orientation() == TopAbs_INTERNAL  ||
       theEdge.Orientation() == TopAbs_EXTERNAL ) {
-#ifdef DEB
+#ifdef TOPODSTOSTEP_DEB
     cout <<"Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Edge is internal or external; dropped" << endl;
 #endif
     return Standard_False;
@@ -263,7 +263,7 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
        Gpms = MakeTrimmedCurve (gtpL.Value(), pmsP1, pmsP2, 0, length, Standard_True );
 //                              (anEdge.Orientation() == TopAbs_FORWARD));
       }
-#ifdef DEB
+#ifdef TOPODSTOSTEP_DEB
       else cout << "Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Null-length curve not mapped" << endl;
 #endif
     }
@@ -356,7 +356,7 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
       for (;It.More();It.Next()) {
        TopoDS_Face curFace = TopoDS::Face(It.Value());
        if (GetTrimmedCurveFromFace(curFace, aMap, aCurveList)) result = Standard_True;
-#ifdef DEBUG
+#ifdef TOPODSTOSTEP_DEB
        if(!result) {
          cout << "ERROR extracting trimmedCurve from Face" << endl;
          //BRepTools::Dump(curFace,cout);  cout<<endl;
index bdc2df82eae01f466ec05323eb7db5466b1f0c7d..20a5a3c672f307209f4c4fa65e2dfb8f402d408f 100644 (file)
@@ -121,7 +121,9 @@ Handle(Units_Quantity) Units::Quantity(const Standard_CString aquantity)
       if(quantity->Name() == aquantity) return quantity;
     }
 
+#ifdef UNITS_DEB
   cout<<"Warning: BAD Quantity = Units::Quantity(quantity('" << aquantity << "'))" << endl;
+#endif
   return nullquantity;
 }
 
@@ -161,7 +163,9 @@ Standard_CString Units::FirstQuantity(const Standard_CString aunit)
     }
   }
 
+#ifdef UNITS_DEB
   cout<<"Warning: BAD Quantity = Units::Quantity(unit('" << symbol << "'))" << endl;
+#endif
   return NULL;
 }
 
@@ -262,7 +266,9 @@ Standard_Real Units::ToSI(const Standard_Real aData,
     lastunit = TCollection_AsciiString(aUnit);
     Units_UnitSentence unitsentence(aUnit);
     if(!unitsentence.IsDone()) {
+#ifdef UNITS_DEB
       cout<<"can not convert - incorrect unit => return 0.0"<<endl;
+#endif
       return 0.0;
     }
     Handle(Units_Token) token = unitsentence.Evaluate();
@@ -309,7 +315,9 @@ Standard_Real Units::FromSI(const Standard_Real aData,
     lastunit = TCollection_AsciiString(aUnit);
     Units_UnitSentence unitsentence(aUnit);
     if(!unitsentence.IsDone()) {
+#ifdef UNITS_DEB
       cout<<"Warning: can not convert - incorrect unit => return 0.0"<<endl;
+#endif
       return 0.0;
     }
     Handle(Units_Token) token = unitsentence.Evaluate();
index af29042f79c096639ef864a4a60c2ba8d91c7043..10e872f1f7084f66330f098920cb0ee9ecc87af2 100644 (file)
@@ -131,7 +131,9 @@ void Units_Explorer::Init(const Handle(Units_UnitsSystem)& aunitssystem,
        }
     }
 
+#ifdef UNITS_DEB
   cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+#endif
 }
 
 //=======================================================================
@@ -164,7 +166,9 @@ void Units_Explorer::Init(const Handle(Units_UnitsDictionary)& aunitsdictionary,
        }
     }
 
+#ifdef UNITS_DEB
   cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+#endif
 }
 
 //=======================================================================
index b4541247b5a2d74d56bb075fa2ed1dc34bac3609..be9edcde5c225a79f53b784807adcd3568b5d3f8 100644 (file)
@@ -55,7 +55,9 @@ void Units_Lexicon::Creates(const Standard_CString afilename)
 {
   ifstream file(afilename, ios::in);
   if(!file) {
+#ifdef UNITS_DEB
     cout<<"unable to open "<<afilename<<" for input"<<endl;
+#endif
     return;
   }
 
index 03e2f0ac8ce3138d6c7a660e1c41be4cbadf07a6..0a82c687515733bcaee8c2870c55bd6212a74f7a 100644 (file)
@@ -60,7 +60,9 @@ Units_Measurement::Units_Measurement(const Standard_Real avalue,
   themeasurement=avalue;
   Units_UnitSentence unit(aunit);
   if(!unit.IsDone()) {
+#ifdef UNITS_DEB
     cout<<"can not create Units_Measurement - incorrect unit"<<endl;
+#endif
     myHasToken = Standard_False;
   }
   else {
@@ -96,9 +98,11 @@ void Units_Measurement::Convert(const Standard_CString aunit)
     themeasurement = oldtoken->Multiplied(themeasurement);
     themeasurement = newtoken->Divided(themeasurement);
   }
+#ifdef UNITS_DEB
   else {
     cout<<" The units don't have the same physical dimensions"<<endl;
   }
+#endif
 }
 
 
index d20fd7bcb773c5b528ea0d075c569b232d0f3543..29026ab18b25d430ce4afb9f87ba11c220d876ca 100644 (file)
@@ -86,7 +86,7 @@ Units_Sentence::Units_Sentence(const Handle(Units_Lexicon)& alexicon,
       if(!LastWord.IsIntegerValue()) {
         // unknown expression - not create sentene
         thesequenceoftokens->Clear();
-#ifdef DEB
+#ifdef UNITS_DEB
         cout<<"Warning: can not create correct sentence from string: "<<astring<<endl;
 #endif
         return;
@@ -107,7 +107,7 @@ Units_Sentence::Units_Sentence(const Handle(Units_Lexicon)& alexicon,
           ( token->Mean()=="0" && ( PrevMean=="M" || PrevMean=="U" || PrevMean=="MU" ) ) )  {
         // incorrect situation
         thesequenceoftokens->Clear();
-#ifdef DEB
+#ifdef UNITS_DEB
         cout<<"Warning: can not create correct sentence from string: "<<astring<<endl;
 #endif
         return;
index 1d0488970709c1d1092bb70909f1ea676dc32326..3723bedae39aa15b898eaa46f467558cf6be01ac 100644 (file)
@@ -284,7 +284,7 @@ Handle(Units_Token) Units_Token::Divide (const Handle(Units_Token)& atoken)
      const
 {
   if(fabs(atoken->Value())<1.e-40) {
-#ifdef DEB
+#ifdef UNITS_DEB
     cout<<"Warning: division on token with value=0 => return initial token."<<endl;
 #endif
     return this;
index ca2bd4f7782b4050555482e41ede9e80aeebc16a..f485e1c6396ed494e15b8264c3eec115076a6453 100644 (file)
@@ -72,7 +72,9 @@ void Units_UnitsDictionary::Creates(const Standard_CString afilename)
   
   ifstream file(afilename, ios::in);
   if(!file) {
+#ifdef UNITS_DEB
     cout<<"unable to open "<<afilename<<" for input"<<endl;
+#endif
     return;
   }
   
@@ -175,16 +177,6 @@ void Units_UnitsDictionary::Creates(const Standard_CString afilename)
       Handle(Units_Dimensions) dimensions = 
         new Units_Dimensions (M, L, T, I, t, N, J, P, S);
 
-#ifdef DEB
-      /*cout << " Name of Dimension : " << name << endl ;
-         cout << MM << " " << LL << " " << TT << " " 
-                  << II << " " << tt << " " << NN << " " 
-                  << JJ << " " << PP << " " << SS << endl;
-         cout << M << " " << L << " " << T << " " 
-                  << I << " " << t << " " << N << " " 
-                  << J << " " << P << " " << S << endl;*/
-#endif
-
       numberofunits = 0;
       theunitssequence = new Units_UnitsSequence();
       quantity = new Units_Quantity(name,dimensions,theunitssequence);
@@ -351,7 +343,9 @@ TCollection_AsciiString Units_UnitsDictionary::ActiveUnit(const Standard_CString
       if(unitssequence->Length())
         return unitssequence->Value(1)->SymbolsSequence()->Value(1)->String();
       else {
+#ifdef UNITS_DEB
         cout<<" Pas d'unite active pour "<<aquantity<<endl;
+#endif
         return "";
       }
     }
index ca1bbecbaf3c9bc2a0480a9718da6ebe02b7782a..25dde3e82da57f786d085dad25442208f9b44ffa 100644 (file)
@@ -269,7 +269,9 @@ TCollection_AsciiString Units_UnitsSystem::ActiveUnit(const Standard_CString aqu
       if(index2)
         return unitssequence->Value(index2)->SymbolsSequence()->Value(1)->String();
       else {
+#ifdef UNITS_DEB
         cout<<" Pas d'unite active pour "<<aquantity<<endl;
+#endif
         return TCollection_AsciiString() ;
       }
     }
index acc6a44268047c74d743572c3b71b6205b27bf1a..5b38cabf25f4b5c0b95bbbe5c348f7a51f9f8739 100644 (file)
@@ -179,9 +179,11 @@ Standard_Real UnitsAPI::CurrentToLS(const Standard_Real aData,
     aValue = Units::ToSI(aData,current.ToCString());
     aValue = LocalSystemUnits.ConvertSIValueToUserSystem(aQuantity,aValue);
   }
+#ifdef UNITSAPI_DEB
   else {
     cout <<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
   }
+#endif
 
   return aValue;
 }
@@ -201,9 +203,11 @@ Standard_Real UnitsAPI::CurrentToSI(const Standard_Real aData,
     TCollection_AsciiString current(CurrentUnits->Value(aQuantity));
     aValue = Units::ToSI(aData,current.ToCString());
   }
+#ifdef UNITSAPI_DEB
   else {
     cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
   }
+#endif
 
   return aValue;
 }
@@ -224,9 +228,11 @@ Standard_Real UnitsAPI::CurrentFromLS(const Standard_Real aData,
     aValue = LocalSystemUnits.ConvertUserSystemValueToSI(aQuantity,aData);
     aValue = Units::FromSI(aValue,current.ToCString());
   }
+#ifdef UNITSAPI_DEB
   else {
     cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
   }
+#endif
 
   return aValue;
 }
@@ -246,9 +252,11 @@ Standard_Real UnitsAPI::CurrentFromSI(const Standard_Real aData,
     TCollection_AsciiString current(CurrentUnits->Value(aQuantity));
     aValue = Units::FromSI(aData,current.ToCString());
   }
+#ifdef UNITSAPI_DEB
   else {
     cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
   }
+#endif
 
   return aValue;
 }
@@ -268,9 +276,11 @@ Standard_Real UnitsAPI::CurrentToAny(const Standard_Real aData,
     TCollection_AsciiString current(CurrentUnits->Value(aQuantity));
     aValue = AnyToAny(aData,current.ToCString(),aUnit);
   }
+#ifdef UNITSAPI_DEB
   else {
     cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
   }
+#endif
 
   return aValue;
 }
@@ -291,9 +301,11 @@ Standard_Real UnitsAPI::CurrentFromAny(const Standard_Real aData,
     TCollection_AsciiString current(CurrentUnits->Value(aQuantity));
     aValue = AnyToAny(aData,aUnit,current.ToCString());
   }
+#ifdef UNITSAPI_DEB
   else {
     cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
   }
+#endif
 
   return aValue;
 }
@@ -317,8 +329,10 @@ Standard_Real UnitsAPI::AnyToLS(const Standard_Real aData,
   if( quantity ) {
     aValue = LocalSystemUnits.ConvertSIValueToUserSystem(quantity,aValue);
   }
+#ifdef UNITSAPI_DEB
   else
     cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << endl;
+#endif
   return aValue;
 }
 
@@ -341,8 +355,10 @@ Standard_Real UnitsAPI::AnyToLS(const Standard_Real aData,
   if( quantity ) {
     aValue = LocalSystemUnits.ConvertSIValueToUserSystem(quantity,aValue);
   }
+#ifdef UNITSAPI_DEB
   else
     cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << "," << aDim << ")" << endl;
+#endif
   return aValue;
 }
 
@@ -394,8 +410,10 @@ Standard_Real UnitsAPI::AnyFromLS(const Standard_Real aData,
   if( quantity ) {
     aValue = LocalSystemUnits.ConvertUserSystemValueToSI(quantity,aValue);
   }
+#ifdef UNITSAPI_DEB
   else
     cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << endl;
+#endif
 
   return aValue;
 }
@@ -445,9 +463,11 @@ Standard_Real UnitsAPI::LSToSI(const Standard_Real aData,
   if( CurrentUnits->Find(aQuantity) ) {
     aValue = LocalSystemUnits.ConvertUserSystemValueToSI(aQuantity,aData);
   }
+#ifdef UNITSAPI_DEB
   else {
     cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
   }
+#endif
 
   return aValue;
 }
@@ -466,9 +486,11 @@ Standard_Real UnitsAPI::SIToLS(const Standard_Real aData,
   if( CurrentUnits->Find(aQuantity) ) {
     aValue = LocalSystemUnits.ConvertSIValueToUserSystem(aQuantity,aValue);
   }
+#ifdef UNITSAPI_DEB
   else {
     cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
   }
+#endif
 
   return aValue;
 }
index 0ec4b0c093a58fda9bbaf6ab762265948e5a4443..c4966d5287328d88206ab221137bafc58fe1be95 100644 (file)
@@ -191,13 +191,13 @@ Handle(Geom2d_Curve) UnitsMethods::RadianToDegree
       aCurve2d = aBSpline2d;
     } 
     else if (aCurve2d->IsKind(STANDARD_TYPE(Geom2d_Parabola))) {
-#ifdef DEBUG
+#ifdef UNITSMETHODS_DEB
       cout << "PCURVE of Parabola type in U or V Periodic Surface" << endl;
       cout << "Parameters Not transformed to Degree" << endl;
 #endif
     }
     else if (aCurve2d->IsKind(STANDARD_TYPE(Geom2d_Hyperbola))) {
-#ifdef DEBUG
+#ifdef UNITSMETHODS_DEB
       cout << "PCURVE of Hyperbola type in U or V Periodic Surface" << endl;
       cout << "Parameters Not transformed to Degree" << endl;
 #endif
@@ -226,7 +226,7 @@ Handle(Geom2d_Curve) UnitsMethods::RadianToDegree
       return myNewBSpline2d;
     }
     else {
-#ifdef DEBUG
+#ifdef UNITSMETHODS_DEB
       cout << "PCURVE of Other Types of Bounded Curve in U or V Periodic Surface" << endl;
       cout << "Parameters Not transformed to Degree" << endl;
 #endif
@@ -302,14 +302,14 @@ Handle(Geom2d_Curve) UnitsMethods::DegreeToRadian
       aPcurve = aBSpline2d;
     }
     else if (aPcurve->IsKind(STANDARD_TYPE(Geom2d_Parabola))) {
-#ifdef DEBUG
+#ifdef UNITSMETHODS_DEB
       cout << "PCURVE of Parabola type" << endl;
       cout << "Parameters Not Yet transformed according to LenghtUnit" << endl;
 #endif
       return aPcurve;
     }
     else if (aPcurve->IsKind(STANDARD_TYPE(Geom2d_Hyperbola))) {
-#ifdef DEBUG
+#ifdef UNITSMETHODS_DEB
       cout << "PCURVE of Hyperbola type" << endl;
       cout << "Parameters Not Yet transformed according to LenghtUnit" << endl;
 #endif
@@ -356,7 +356,7 @@ Handle(Geom2d_Curve) UnitsMethods::DegreeToRadian
     aPcurve = aBSpline2d;
   }
   else {
-#ifdef DEBUG
+#ifdef UNITSMETHODS_DEB
     cout << "DegreeToRadian : Type " << aPcurve->DynamicType();
     cout << " not yet implemented" << endl;
 #endif
index 9ef3bce06f90aa1eabc7557a2d2dc6b0110b07ce..8093cb334aeb6a53472f27fdccb557c7cebf799f 100644 (file)
@@ -4721,14 +4721,14 @@ static Standard_Boolean IsValid(const TopTools_ListOfShape& theArgs,
   TCollection_AsciiString checkValid = check.Value();
   Standard_Boolean ToCheck = Standard_True;
   if (!checkValid.IsEmpty()) {
-#ifdef DEB
+#ifdef VIEWERTEST_DEB
     cout <<"DONT_SWITCH_IS_VALID positionnee a :"<<checkValid.ToCString()<<"\n";
 #endif
     if ( checkValid=="true" || checkValid=="TRUE" ) {
       ToCheck= Standard_False;
     }
   } else {
-#ifdef DEB
+#ifdef VIEWERTEST_DEB
     cout <<"DONT_SWITCH_IS_VALID non positionne"<<"\n";
 #endif
   }
index 4e1bde12d69c785249a0bb8ac4d68e941882ae73..26369f5fd53d72a6a89b4d9e81e6865b776028b1 100644 (file)
@@ -65,7 +65,7 @@ Visual3d_Layer::Visual3d_Layer (const Handle(Visual3d_ViewManager)& AManager, co
   MyGraphicDriver->Layer (MyCLayer);
   MyCLayer.ptrLayer->layerData = this;
 
-#ifdef DEBUG
+#ifdef VISUAL3D_DEB
   cout << "Visual3d_Layer::Visual3d_Layer" << endl;
   call_def_ptrLayer ptrLayer;
   ptrLayer = (call_def_ptrLayer) MyCLayer.ptrLayer;
@@ -105,7 +105,7 @@ void Visual3d_Layer::End () {
 #ifdef TRACE_CALL
   cout << "Visual3d_Layer::End" << endl;
 #endif
-#ifdef DEBUG
+#ifdef VISUAL3D_DEB
   cout << "Visual3d_Layer::End" << endl;
   call_def_ptrLayer ptrLayer;
   ptrLayer = (call_def_ptrLayer) MyCLayer.ptrLayer;
@@ -121,7 +121,7 @@ void Visual3d_Layer::End () {
   // Flush all graphics
   MyGraphicDriver->EndLayer ();
   theLayerState = Standard_False;
-#ifdef DEBUG
+#ifdef VISUAL3D_DEB
   cout << "Visual3d_Layer::End" << endl;
   ptrLayer = (call_def_ptrLayer) MyCLayer.ptrLayer;
   if (ptrLayer == NULL)
@@ -384,7 +384,7 @@ Aspect_CLayer2d Visual3d_Layer::CLayer () const {
 #ifdef TRACE_CALL
   cout << "Visual3d_Layer::CLayer" << endl;
 #endif
-#ifdef DEBUG
+#ifdef VISUAL3D_DEB
   cout << "Visual3d_Layer::CLayer" << endl;
   call_def_ptrLayer ptrLayer;
   ptrLayer = (call_def_ptrLayer) MyCLayer.ptrLayer;
index ea7aae8d0f111a98ee2d545d245546069df0cea9..f96d65f2bfc619a75df454bc6c14a9f9df899b8b 100644 (file)
@@ -146,7 +146,9 @@ static void SetLabelNameByLink(const TDF_Label L)
   Handle(TDataStd_TreeNode) Node;
   if (! L.FindAttribute(XCAFDoc::ShapeRefGUID(), Node) ||
       ! Node->HasFather()) {
+#ifdef XCAFDOC_DEB
     cout<<"Error: XCAFDoc_ShapeTool, SetLabelNameByLink(): NO NODE"<<endl;
+#endif
     return;
   }
   TCollection_AsciiString Entry;
index 59b3871a20cf61f0e0225dfafb446884f689e8c8..52931220fdd27a88e51a39370a6c78d3350454c5 100644 (file)
@@ -35,7 +35,9 @@ static Standard_GUID XCAFSchemaID     ("ed8793fa-3142-11d4-b9b5-0060b0ee281b");
 Handle(Standard_Transient) XCAFDrivers::Factory(const Standard_GUID& aGUID) {
   
   if(aGUID == XCAFSchemaID) {    
+#ifdef XCAFDRIVERS_DEB
     cout << "XCAFSchema : Plugin" << endl;
+#endif
     static Handle(XCAFSchema)  model_ss;
     static Standard_Boolean IsInitialized = Standard_False;
     if (! IsInitialized)
@@ -55,14 +57,18 @@ Handle(Standard_Transient) XCAFDrivers::Factory(const Standard_GUID& aGUID) {
 
   if(aGUID == XSStorageDriver)  
   {
+#ifdef XCAFDRIVERS_DEB
     cout << "XCAFDrivers : Storage Plugin" << endl;
+#endif
     static Handle(XCAFDrivers_DocumentStorageDriver) model_sd 
       = new XCAFDrivers_DocumentStorageDriver;
     return model_sd;
   }
   if(aGUID == XSRetrievalDriver) 
   {  
+#ifdef XCAFDRIVERS_DEB
     cout << "XCAFDrivers : Retrieval Plugin" << endl;
+#endif
     static Handle (XCAFDrivers_DocumentRetrievalDriver) model_rd 
       = new XCAFDrivers_DocumentRetrievalDriver;
     return model_rd;
index fd7956e58761b586f90196597034588e1524e299..6a7eea8f9eea22457c9c9128d45f62eaae3ed90a 100644 (file)
@@ -169,7 +169,7 @@ void XCAFPrs::CollectStyleSettings (const TDF_Label &L,
           continue;
       
       // set style for all component from Next Usage Occurrence.
-#ifdef DEB
+#ifdef XCAFPRS_DEB
         cout << "Set the style for SHUO next_usage-occurrance" << endl;
 #endif
         /* 
index 703c494d91e3962e280bdf6c4167b588e82229bd..87811e3f9496c9076fab0700cd9ad27caf22fef8 100644 (file)
@@ -116,7 +116,7 @@ TopoDS_Shape XSAlgo_AlgoContainer::ProcessShape (const TopoDS_Shape& shape,
   TCollection_AsciiString str ( seq );
   str += ".exec.op";
   if ( ! rsc->Find ( str.ToCString() ) ) {
-#ifdef DEB
+#ifdef XSALGO_DEB
     {
       static Standard_Integer time = 0;
       if ( ! time )
@@ -146,7 +146,7 @@ TopoDS_Shape XSAlgo_AlgoContainer::ProcessShape (const TopoDS_Shape& shape,
        }
       }
       catch (Standard_Failure) {
-#ifdef DEB
+#ifdef XSALGO_DEB
        cout << "Error: XSAlgo_AlgoContainer::ProcessShape(): Exception in ShapeFix::Shape" << endl;
         Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -298,7 +298,7 @@ Standard_Boolean XSAlgo_AlgoContainer::CheckPCurve (const TopoDS_Edge& E,
   Standard_Real DV = Abs (PUV1.Y() - PUV2.Y());
   if ( DU/8. > (UL/6. - UF/6.) || DV/8. > (VL/6. - VF/6.) ) {
     ShapeBuild_Edge().RemovePCurve(E,face);
-#ifdef DEBUG
+#ifdef XSALGO_DEB
     cout<<"Removing pcuve periodic"<<endl;
 #endif      
     return Standard_False;
@@ -323,7 +323,7 @@ Standard_Boolean XSAlgo_AlgoContainer::CheckPCurve (const TopoDS_Edge& E,
     
   if (!((Dist11 <= preci) && (Dist22 <= preci))) {
     ShapeBuild_Edge().RemovePCurve(E,face);
-#ifdef DEBUG      
+#ifdef XSALGO_DEB
     cout<<"Removing pcurve points"<<endl;
 #endif      
     return Standard_False;
@@ -496,7 +496,7 @@ void XSAlgo_AlgoContainer::MergeTransferInfo(const Handle(Transfer_FinderProcess
        else if ( TransientListBinder->NbTransients() > 1 ) {
           resBinder->AddResult(TransientListBinder);
 //       resBinder->SetNext(TransientListBinder, Standard_True);
-#ifdef DEB
+#ifdef XSALGO_DEB
          cout<<"Info: TransientListBinder created for splitted shape"<<endl;
        } 
        else {
index 0eb08b5b223a2613be414d8683bcbd412f5a943e..c4ef96c24f6da8280f4c65d106901ea31f44d054 100644 (file)
@@ -44,7 +44,9 @@ Handle(Standard_Transient) XmlDrivers::Factory(const Standard_GUID& theGUID)
 {
   if (theGUID == XmlStorageDriver)
   {
+#ifdef XMLDRIVERS_DEB
     cout << "XmlDrivers : Storage Plugin" << endl;
+#endif
     static Handle(XmlDrivers_DocumentStorageDriver) model_sd =
       new XmlDrivers_DocumentStorageDriver
         ("Copyright: Open Cascade, 2001-2002"); // default copyright
@@ -53,7 +55,9 @@ Handle(Standard_Transient) XmlDrivers::Factory(const Standard_GUID& theGUID)
 
   if (theGUID == XmlRetrievalDriver)
   {
+#ifdef XMLDRIVERS_DEB
     cout << "XmlDrivers : Retrieval Plugin" << endl;
+#endif
     static Handle (XmlDrivers_DocumentRetrievalDriver) model_rd =
       new XmlDrivers_DocumentRetrievalDriver ();
     return model_rd;
index 903ffe83da1e90dc7554a6004283cb154b43fb44..e30d29d8fd283f51d13f2ff7faff28f65f8c0714 100644 (file)
@@ -48,9 +48,6 @@ Handle(XmlMDF_ADriverTable) XmlDrivers_DocumentRetrievalDriver::AttributeDrivers
 void XmlDrivers_DocumentRetrievalDriver::PropagateDocumentVersion(
                                    const Standard_Integer theDocVersion )
 {
-#ifdef DEB
-//    cout << "DocCurVersion =" << theDocVersion <<endl;
-#endif
   XmlMDataStd::SetDocumentVersion(theDocVersion);
   XmlMNaming::SetDocumentVersion(theDocVersion);
 }
index 52dd0fdf021d353bbcc4b550fb98ee2e82a18739..372db4c5a5c0861ee33c4ca4d3da45b695fde243 100644 (file)
@@ -40,7 +40,9 @@ Handle(Standard_Transient) XmlLDrivers::Factory(const Standard_GUID& theGUID)
 {
   if (theGUID == XmlLStorageDriver)
   {
+#ifdef XMLLDRIVERS_DEB
     cout << "XmlLDrivers : Storage Plugin" << endl;
+#endif
     static Handle(XmlLDrivers_DocumentStorageDriver) model_sd =
       new XmlLDrivers_DocumentStorageDriver
         ("Copyright: Open Cascade, 2001-2002"); // default copyright
@@ -49,7 +51,9 @@ Handle(Standard_Transient) XmlLDrivers::Factory(const Standard_GUID& theGUID)
 
   if (theGUID == XmlLRetrievalDriver)
   {
+#ifdef XMLLDRIVERS_DEB
     cout << "XmlLDrivers : Retrieval Plugin" << endl;
+#endif
     static Handle (XmlLDrivers_DocumentRetrievalDriver) model_rd =
       new XmlLDrivers_DocumentRetrievalDriver ();
     return model_rd;
@@ -71,12 +75,20 @@ TCollection_AsciiString XmlLDrivers::CreationDate ()
   struct tm *nowstruct;
 
   if (time(&nowbin) == (time_t) - 1)
+  {
+#ifdef XMLLDRIVERS_DEB
     cerr << "Storage ERROR : Could not get time of day from time()" << endl;
+#endif
+  }
   
   nowstruct = localtime(&nowbin);
   
   if (strftime(nowstr, SLENGTH, "%Y-%m-%d", nowstruct) == (size_t) 0)
+  {
+#ifdef XMLLDRIVERS_DEB
     cerr << "Storage ERROR : Could not get string from strftime()" << endl;
+#endif
+  }
 
   return nowstr;
 }
index cb184624d60982f294073df74068086497c72067..9d2a0877c9f558e89422580deb56604afb21d797 100644 (file)
@@ -500,9 +500,6 @@ static void take_time (const Standard_Integer isReset, const char * aHeader,
 void XmlLDrivers_DocumentRetrievalDriver::PropagateDocumentVersion(
                                    const Standard_Integer theDocVersion )
 {
-#ifdef DEB
-//    cout << "DocCurVersion =" << theDocVersion <<endl;
-#endif
   XmlMDataStd::SetDocumentVersion(theDocVersion);
 }
 
index dba87c7045005ed5d85aa99ad3232e9155f5d206..70f362343f3753f5c05d58b9b6b24b046820e030 100644 (file)
@@ -355,7 +355,7 @@ Standard_Integer XmlLDrivers_DocumentStorageDriver::MakeDocument
 #endif
     return myRelocTable.Extent();
   }
-#ifdef DEB
+#ifdef XMLLDRIVERS_DEB
   cout << "First step failed" << endl;  // No MessageDriver available
 #endif
   return -1; // error
index 7b17c46a5b447ae4446dccb57d34345e5969587c..10c06baaf7f6df36b4bec46790a6ce1a62ae19c7 100644 (file)
@@ -101,7 +101,7 @@ Standard_Integer XmlMDF::WriteSubTree
       //    Paste
       aDriver -> Paste (tAtt, pAtt, theRelocTable);
     }
-#ifdef DEB
+#ifdef XMLMDF_DEB
     else if (!UnsuppTypesMap().Contains (aType))
     {
       cout << "attribute driver for type "<< aType -> Name()<< " not found"<< endl;
@@ -260,7 +260,7 @@ Standard_Integer XmlMDF::ReadSubTree (const XmlObjMgt_Element&    theElement,
           else if (isBound == Standard_False)
             theRelocTable.Bind (anID, tAtt);
         }
-#ifdef DEB
+#ifdef XMLMDATASTD_DEB
         else
         {
           const TCollection_AsciiString anAsciiName = aName;
index 91721cc19e55cf7381d4eb5acaa73cdffc718df2..745d2a9bfed764ef04f88ee9cf40e69e18b20f62 100644 (file)
@@ -109,9 +109,6 @@ Standard_Boolean XmlMDataStd_ByteArrayDriver::Paste(const XmlObjMgt_Persistent&
   }
   aByteArray->ChangeArray(hArr);
   
-#ifdef DEB
-  //cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
-#endif
   Standard_Boolean aDelta(Standard_False);
   
   if(XmlMDataStd::DocumentVersion() > 2) {
@@ -128,7 +125,7 @@ Standard_Boolean XmlMDataStd_ByteArrayDriver::Paste(const XmlObjMgt_Persistent&
     else
       aDelta = (Standard_Boolean)aDeltaValue;
   }
-#ifdef DEB
+#ifdef XMLMDATASTD_DEB
   else if(XmlMDataStd::DocumentVersion() == -1)
     cout << "Current DocVersion field is not initialized. "  <<endl;
 #endif
index 2b740e7d1771b5737fee41198f80d9c917e8390d..7cdfb1fa78a3d786a067a12c49249aefec6c66df 100644 (file)
@@ -107,9 +107,6 @@ Standard_Boolean XmlMDataStd_ExtStringArrayDriver::Paste
   XmlObjMgt::GetExtendedString( *aCurElement, aValueStr );
   aExtStringArray->SetValue( aLastInd, aValueStr );
 
-#ifdef DEB
-  //cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
-#endif
   Standard_Boolean aDelta(Standard_False);
   
   if(XmlMDataStd::DocumentVersion() > 2) {
@@ -126,7 +123,7 @@ Standard_Boolean XmlMDataStd_ExtStringArrayDriver::Paste
     else
       aDelta = (Standard_Boolean)aDeltaValue;
   }
-#ifdef DEB
+#ifdef XMLMDATASTD_DEB
   else if(XmlMDataStd::DocumentVersion() == -1)
     cout << "Current DocVersion field is not initialized. "  <<endl;
 #endif
index 3a80533e135082dde0d7fc52dd15b30d3c5a4a25..0d5220269e28016f84b9f4befba47c8c1c04d04c 100644 (file)
@@ -99,10 +99,6 @@ Standard_Boolean XmlMDataStd_IntPackedMapDriver::Paste
       if(aPackedMap->ChangeMap(aHMap))
        Ok = Standard_True;
     }
-    //
-#ifdef DEB
-  //cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
-#endif
     if(Ok) {
       Standard_Boolean aDelta(Standard_False);
   
@@ -120,7 +116,7 @@ Standard_Boolean XmlMDataStd_IntPackedMapDriver::Paste
        else
          aDelta = (Standard_Boolean)aDeltaValue;
       }
-#ifdef DEB
+#ifdef XMLMDATASTD_DEB
       else if(XmlMDataStd::DocumentVersion() == -1)
        cout << "Current DocVersion field is not initialized. "  <<endl;
 #endif
index 8fb93044db4bdded9da482841890733f2c0a3011..62a9bb9e7c700f01b36160c020cbc1b257078c19 100644 (file)
@@ -112,9 +112,6 @@ Standard_Boolean XmlMDataStd_IntegerArrayDriver::Paste
       anIntArray->SetValue(ind, aValue);
     }
   }
-#ifdef DEB
-  //cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
-#endif
   Standard_Boolean aDelta(Standard_False);
   
   if(XmlMDataStd::DocumentVersion() > 2) {
@@ -131,7 +128,7 @@ Standard_Boolean XmlMDataStd_IntegerArrayDriver::Paste
     else
       aDelta = (Standard_Boolean)aDeltaValue;
   }
-#ifdef DEB
+#ifdef XMLMDATASTD_DEB
   else if(XmlMDataStd::DocumentVersion() == -1)
     cout << "Current DocVersion field is not initialized. "  <<endl;
 #endif
index 2f7707704b776945bbe838681a5780b9e5c61cdf..3db2c70f5c0581dfcb085d2f27cbae93d3d77dc2 100644 (file)
@@ -489,12 +489,6 @@ Standard_Boolean XmlMDataStd_NamedDataDriver::Paste(const XmlObjMgt_Persistent&
        TCollection_AsciiString aVal(aValueStr,'?');
        Standard_Integer aLen = aVal.IntegerValue();
        
-#ifdef DEB
-//      XmlObjMgt_DOMString aValStr = aCurElement->getAttribute(::Value()); 
-//      const char* aS = aValStr.GetString();
-//      cout << " Key = " << TCollection_AsciiString(aKey, '?') << " aValue = " << aS <<  endl;
-#endif      
-       
        TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value()); 
        Handle(TColStd_HArray1OfInteger) aValue = BuildIntArray(aValueString, aLen);
        if(aValue.IsNull()) {
@@ -519,11 +513,6 @@ Standard_Boolean XmlMDataStd_NamedDataDriver::Paste(const XmlObjMgt_Persistent&
       }
       TCollection_AsciiString aVal(aValueStr,'?');
       Standard_Integer aLen = aVal.IntegerValue();
-#ifdef DEB
-//    XmlObjMgt_DOMString aValStr = aCurElement->getAttribute(::Value());  
-//    const char* aS = aValStr.GetString();
-//    cout << " Key = " << TCollection_AsciiString(aKey, '?') << " aValue = " <<aS<<endl;
-#endif
       TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value());
       Handle(TColStd_HArray1OfInteger) aValue = BuildIntArray(aValueString, aLen);
       if(aValue.IsNull()) {
index 7465afa297ce7c647ebf7b0bb15e621b940bc583..2304bee8bdd098b7450d7d1e418e247de09fe06d 100644 (file)
@@ -118,9 +118,6 @@ Standard_Boolean XmlMDataStd_RealArrayDriver::Paste
       aRealArray->SetValue(ind, aValue);
     }
   }
-#ifdef DEB
-  //cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
-#endif
   Standard_Boolean aDelta(Standard_False);
   
   if(XmlMDataStd::DocumentVersion() > 2) {
@@ -137,7 +134,7 @@ Standard_Boolean XmlMDataStd_RealArrayDriver::Paste
     else
       aDelta = (Standard_Boolean)aDeltaValue;
   }
-#ifdef DEB
+#ifdef XMLMDATASTD_DEB
   else if(XmlMDataStd::DocumentVersion() == -1)
     cout << "Current DocVersion field is not initialized. "  <<endl;
 #endif
index cf456fce02bd3f24e8dd4c687df3a2b19d99ba7b..004176e02c7f03b19618d4c5c81e1739ed47f487 100644 (file)
@@ -169,9 +169,6 @@ Standard_Boolean XmlMNaming_NamingDriver::Paste
   }
   aNgName.Index(aNb);
 //
-#ifdef DEB
-  //cout << "CurDocVersion = " << XmlMNaming::DocumentVersion() <<endl;
-#endif
   if(XmlMNaming::DocumentVersion() > 3) {
     XmlObjMgt_DOMString aDomEntry = anElem.getAttribute(::ContextLabelString());
     if (aDomEntry != NULL)
@@ -191,12 +188,12 @@ Standard_Boolean XmlMNaming_NamingDriver::Paste
        if (anEntry.Length() > 0) {
          TDF_Tool::Label(aNg->Label().Data(), anEntry, tLab, Standard_True);
            aNgName.ContextLabel(tLab);
-#ifdef DEB
+#ifdef XMLMNAMING_DEB
            cout << "Retrieving Context Label = " << anEntry.ToCString() <<endl;
 #endif
          }
       }
-#ifdef DEB
+#ifdef XMLMNAMING_DEB
     else
       cout << "Retrieving Context Label is NULL" <<endl;
 #endif
@@ -234,7 +231,7 @@ Standard_Boolean XmlMNaming_NamingDriver::Paste
     }
     // or. end
   }
-#ifdef DEB
+#ifdef XMLMNAMING_DEB
   else if(XmlMNaming::DocumentVersion() == -1)
     cout << "Current DocVersion field is not initialized. "  <<endl;
   else 
@@ -307,7 +304,7 @@ void XmlMNaming_NamingDriver::Paste
   XmlObjMgt_DOMString aDOMString;
   XmlObjMgt::SetTagEntryString (aDOMString, anEntry);
   anElem.setAttribute(::ContextLabelString(), aDOMString);
-#ifdef DEB
+#ifdef XMLMNAMING_DEB
   cout << "XmlMNaming_NamingDriver::Store: ContextLabel Entry = " << anEntry << endl;
   if (aDOMString != NULL)
   {
index ccb317aa2a87e9d9a795a0e1c8b85630d453331f..71133d2e1bad528418d18bba4661a54d24b14a9c 100644 (file)
@@ -99,7 +99,7 @@ void XmlMXCAFDoc_LocationDriver::Translate (const TopLoc_Location&      theLoc,
   // The location is not identity  
   if( myLocations == 0 )
   {
-#ifdef DEB
+#ifdef XMLMXCAFDOC_DEB
     cout<<"Pointer to LocationSet is NULL\n";
 #endif
     return;
index 7b936a9d5acb42308a2ae8bc6e8529f0cea81a91..a89cd3367cbd8ff6830decd4aee4edc5ab103f23 100644 (file)
@@ -35,7 +35,9 @@ Handle(Standard_Transient) XmlTObjDrivers::Factory(const Standard_GUID& aGUID)
 {
   if(aGUID == XmlStorageDriver)
   {
+#ifdef XMLTOBJDRIVERS_DEB
     cout << "XmlTObjDrivers : Storage Plugin" << endl;
+#endif
     static Handle(XmlTObjDrivers_DocumentStorageDriver) model_sd
       = new XmlTObjDrivers_DocumentStorageDriver
         ("Copyright: Open CASCADE 2004"); // default copyright
@@ -44,7 +46,9 @@ Handle(Standard_Transient) XmlTObjDrivers::Factory(const Standard_GUID& aGUID)
 
   if(aGUID == XmlRetrievalDriver)
   {  
+#ifdef XMLTOBJDRIVERS_DEB
     cout << "XmlTObjDrivers : Retrieval Plugin" << endl;
+#endif
     static Handle (XmlTObjDrivers_DocumentRetrievalDriver) model_rd
       = new XmlTObjDrivers_DocumentRetrievalDriver;
     return model_rd;
index b315347ea389ae7cccc53e9192b6de123b6a0bf2..9a37a69dde36653bbdb17951bc052f037f829cb3 100644 (file)
@@ -29,7 +29,9 @@ Handle(Standard_Transient) XmlXCAFDrivers::Factory(const Standard_GUID& aGUID)
 {
   if(aGUID == XSStorageDriver)  
   {
+#ifdef XMLXCAFDRIVERS_DEB
     cout << "XmlXCAFDrivers : Storage Plugin" << endl;
+#endif
     static Handle(XmlXCAFDrivers_DocumentStorageDriver) model_sd 
       = new XmlXCAFDrivers_DocumentStorageDriver
         ("Copyright: Open Cascade, 2001-2002"); // default copyright
@@ -37,7 +39,9 @@ Handle(Standard_Transient) XmlXCAFDrivers::Factory(const Standard_GUID& aGUID)
   }
   if(aGUID == XSRetrievalDriver) 
   {  
+#ifdef XMLXCAFDRIVERS_DEB
     cout << "XmlXCAFDrivers : Retrieval Plugin" << endl;
+#endif
     static Handle (XmlXCAFDrivers_DocumentRetrievalDriver) model_rd 
       = new XmlXCAFDrivers_DocumentRetrievalDriver;
     return model_rd;
index 5b026cfd482e9e9007cf491254a94d98b79d98f9..8a5e251de132ea6d32762ca0bcf7383c667125ff 100644 (file)
@@ -190,7 +190,7 @@ static void  Solve(math_FunctionWithDerivative& F,
     F.Value(b,fb);
     fb-=K;
   }
-#ifdef DEB
+#ifdef MATH_DEB
   cout<<" Non Convergence dans math_FunctionRoots.cxx "<<endl;
 #endif
 }
index b38b945434795c103a2ada3dff788150978b9c25..4d4668d45f7537f0e27e866fa390763f7f5104d5 100755 (executable)
@@ -1,11 +1,11 @@
-puts "========"\r
-puts "OCC24533"\r
-puts "========"\r
-puts ""\r
-####################################################\r
-## Use 0 to check null handle instead of UndefinedHandleAccess\r
-####################################################\r
-\r
-pload QAcommands\r
-\r
-OCC24533\r
+puts "========"
+puts "OCC24533"
+puts "========"
+puts ""
+####################################################
+## Use 0 to check null handle instead of UndefinedHandleAccess
+####################################################
+
+pload QAcommands
+
+OCC24533
index 35c0bad4b08a7716e53cac143509c56192ce84b1..1d9e7d54ec6673f23d802e0aeb1d62ca9b5e97ce 100755 (executable)
@@ -1,21 +1,21 @@
-puts "============"\r
-puts "OCC23884"\r
-puts "============"\r
-puts ""\r
-######################################################\r
-# Boolean Fuse between two faces fails\r
-######################################################\r
-\r
-restore [locate_data_file bug23884_fz72] b1\r
-restore [locate_data_file bug23884_fz124] b2\r
-\r
-bop b1 b2\r
-bopfuse result\r
-\r
-set square 2415.65\r
-set 2dviewer 0\r
-\r
-\r
-\r
-\r
-\r
+puts "============"
+puts "OCC23884"
+puts "============"
+puts ""
+######################################################
+# Boolean Fuse between two faces fails
+######################################################
+
+restore [locate_data_file bug23884_fz72] b1
+restore [locate_data_file bug23884_fz124] b2
+
+bop b1 b2
+bopfuse result
+
+set square 2415.65
+set 2dviewer 0
+
+
+
+
+
index c8f9cd1fa8440a0a31488dafbda2098a12410642..ede60a2d1d08da92593c55e6c67e8af5c4b3dda8 100644 (file)
@@ -1,82 +1,82 @@
-puts "========="\r
-puts "OCC24612"\r
-puts "========="\r
-puts ""\r
-###########################################################\r
-# Wrong pcurve of the section curve\r
-###########################################################\r
-\r
-set MaxTol 5.0e-7\r
-set NbCurv_OK 1\r
-restore [locate_data_file bug24612_b1.brep] b1\r
-restore [locate_data_file bug24612_b2.brep] b2\r
-\r
-mksurface s1 b1\r
-bounds s1 U1f_exp U1l_exp V1f_exp V1l_exp\r
-\r
-dval U1f_exp\r
-dval U1l_exp\r
-dval V1f_exp\r
-dval V1l_exp\r
-\r
-set log [bopcurves b1 b2 -2d]\r
-\r
-regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv\r
-\r
-if {${NbCurv} != ${NbCurv_OK}} {\r
-  puts "Error: ${NbCurv_OK} curve(s) expected, but ${NbCurv} found."\r
-}\r
-\r
-if {${Toler} > ${MaxTol}} {\r
-  puts "Error: Tolerance is too big!"\r
-}\r
-\r
-#Theoretically, c2d1_1 must cover V-diapason of surface s1 fully.\r
-\r
-set log [dump c2d1_1]\r
-\r
-regexp {Degree +([-0-9.+eE]+), +([-0-9.+eE]+) Poles, +([-0-9.+eE]+)} ${log} full Degree Poles KnotsPoles\r
-puts "Degree=${Degree}"\r
-puts "Poles=${Poles}"\r
-puts "KnotsPoles=${KnotsPoles}"\r
-puts ""\r
-\r
-set Pole 1\r
-set exp_string " +${Pole} : +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+)"\r
-regexp ${exp_string} ${log} full U_begin V_begin\r
-\r
-puts "Pole=${Pole}"\r
-puts "U_begin=${U_begin}"\r
-puts "V_begin=${V_begin}"\r
-dset V_begin ${V_begin}\r
-puts ""\r
-\r
-set Pole ${Poles}\r
-set exp_string " +${Pole} : +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+)"\r
-regexp ${exp_string} ${log} full U_end V_end\r
-\r
-puts "Pole=${Pole}"\r
-puts "U_end=${U_end}"\r
-puts "V_end=${V_end}"\r
-dset V_end ${V_end}\r
-puts ""\r
-\r
-set delta_f [dval V1l_exp-V_begin]\r
-\r
-#ATTENTION!!! V_begin must be strictly equal V1l_exp (without any tolerance)\r
-if {${delta_f} != 0} {\r
-  puts "Error: Bad value. V_begin = [dval V_begin], Vlast = [dval V1l_exp]."\r
-} else {\r
-  puts "OK: Good value. V_begin matches with Vlast of surface."\r
-}\r
-\r
-puts ""\r
-\r
-set delta_l [dval V1f_exp-V_end]\r
-\r
-#ATTENTION!!! V_end must be strictly equal V1f_exp (without any tolerance)\r
-if {${delta_l} != 0} {\r
-  puts "Error: Bad value. V_end = [dval V_end], Vfirst = [dval V1f_exp]."\r
-} else {\r
-  puts "OK: Good value. V_end matches with Vfirst of surface."\r
-}\r
+puts "========="
+puts "OCC24612"
+puts "========="
+puts ""
+###########################################################
+# Wrong pcurve of the section curve
+###########################################################
+
+set MaxTol 5.0e-7
+set NbCurv_OK 1
+restore [locate_data_file bug24612_b1.brep] b1
+restore [locate_data_file bug24612_b2.brep] b2
+
+mksurface s1 b1
+bounds s1 U1f_exp U1l_exp V1f_exp V1l_exp
+
+dval U1f_exp
+dval U1l_exp
+dval V1f_exp
+dval V1l_exp
+
+set log [bopcurves b1 b2 -2d]
+
+regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
+
+if {${NbCurv} != ${NbCurv_OK}} {
+  puts "Error: ${NbCurv_OK} curve(s) expected, but ${NbCurv} found."
+}
+
+if {${Toler} > ${MaxTol}} {
+  puts "Error: Tolerance is too big!"
+}
+
+#Theoretically, c2d1_1 must cover V-diapason of surface s1 fully.
+
+set log [dump c2d1_1]
+
+regexp {Degree +([-0-9.+eE]+), +([-0-9.+eE]+) Poles, +([-0-9.+eE]+)} ${log} full Degree Poles KnotsPoles
+puts "Degree=${Degree}"
+puts "Poles=${Poles}"
+puts "KnotsPoles=${KnotsPoles}"
+puts ""
+
+set Pole 1
+set exp_string " +${Pole} : +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+)"
+regexp ${exp_string} ${log} full U_begin V_begin
+
+puts "Pole=${Pole}"
+puts "U_begin=${U_begin}"
+puts "V_begin=${V_begin}"
+dset V_begin ${V_begin}
+puts ""
+
+set Pole ${Poles}
+set exp_string " +${Pole} : +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+)"
+regexp ${exp_string} ${log} full U_end V_end
+
+puts "Pole=${Pole}"
+puts "U_end=${U_end}"
+puts "V_end=${V_end}"
+dset V_end ${V_end}
+puts ""
+
+set delta_f [dval V1l_exp-V_begin]
+
+#ATTENTION!!! V_begin must be strictly equal V1l_exp (without any tolerance)
+if {${delta_f} != 0} {
+  puts "Error: Bad value. V_begin = [dval V_begin], Vlast = [dval V1l_exp]."
+} else {
+  puts "OK: Good value. V_begin matches with Vlast of surface."
+}
+
+puts ""
+
+set delta_l [dval V1f_exp-V_end]
+
+#ATTENTION!!! V_end must be strictly equal V1f_exp (without any tolerance)
+if {${delta_l} != 0} {
+  puts "Error: Bad value. V_end = [dval V_end], Vfirst = [dval V1f_exp]."
+} else {
+  puts "OK: Good value. V_end matches with Vfirst of surface."
+}
index fa72e3258c28c469e4d258cb29de170c2e6c4f42..ecc2e8c2eccfb14ea51d8c2cc94d776d689931a1 100755 (executable)
@@ -1,53 +1,53 @@
-\r
-puts "========================"\r
-puts "OCC137"\r
-puts "========================"                                                                                         \r
-###############################################################\r
-#Patch description:\r
-#\r
-#MIT010717 : 3D selection management\r
-#>>>     MIT010717 : Selection management \r
-#\r
-#        * Package OpenGl (OpenGl_execstruct.c) \r
-#\r
-#          @ Avoid drawing quality problem on selected face, \r
-#            enable/disable Z offset on highlighted faces. \r
-#\r
-#>>>     MIT010717 : drawing management \r
-#\r
-#        * Package OpenGl (OpenGl_indexpolygon.c, ...) \r
-#\r
-#          @ Avoid to undraw faces with confused points \r
-###############################################################\r
-puts "========================"\r
-\r
-vinit\r
-box b 10 10 10\r
-vdisplay b\r
-vfit\r
-vsetdispmode 1\r
-\r
-puts "Only bottom face should be highlighted."\r
-\r
-vselmode 4 1\r
-\r
-OCC137 1\r
-OCC137_z\r
-\r
-set x_coord 105\r
-set y_coord 348\r
-\r
-vmoveto $x_coord $y_coord\r
-\r
-set x_coord 105\r
-set y_coord 340\r
-\r
-checkcolor $x_coord $y_coord 0 1 1\r
-\r
-set x_coord 105\r
-set y_coord 340\r
-vviewparams -scale 60.6309 -proj 0.592163 -0.60038 -0.537482 -up 0.369921 -0.390032 0.843228 -at 3.29057034725635 6.73314999296002 6.55157729015654\r
-\r
-checkcolor $x_coord $y_coord 0.78 0.54 0.09\r
-       \r
-set only_screen 1\r
+
+puts "========================"
+puts "OCC137"
+puts "========================"                                                                                         
+###############################################################
+#Patch description:
+#
+#MIT010717 : 3D selection management
+#>>>     MIT010717 : Selection management 
+#
+#        * Package OpenGl (OpenGl_execstruct.c) 
+#
+#          @ Avoid drawing quality problem on selected face, 
+#            enable/disable Z offset on highlighted faces. 
+#
+#>>>     MIT010717 : drawing management 
+#
+#        * Package OpenGl (OpenGl_indexpolygon.c, ...) 
+#
+#          @ Avoid to undraw faces with confused points 
+###############################################################
+puts "========================"
+
+vinit
+box b 10 10 10
+vdisplay b
+vfit
+vsetdispmode 1
+
+puts "Only bottom face should be highlighted."
+
+vselmode 4 1
+
+OCC137 1
+OCC137_z
+
+set x_coord 105
+set y_coord 348
+
+vmoveto $x_coord $y_coord
+
+set x_coord 105
+set y_coord 340
+
+checkcolor $x_coord $y_coord 0 1 1
+
+set x_coord 105
+set y_coord 340
+vviewparams -scale 60.6309 -proj 0.592163 -0.60038 -0.537482 -up 0.369921 -0.390032 0.843228 -at 3.29057034725635 6.73314999296002 6.55157729015654
+
+checkcolor $x_coord $y_coord 0.78 0.54 0.09
+       
+set only_screen 1
index feff6df430f40716e808d3f54b0df5d7176fadf7..0c9367dfcd2bd5afb76bc66adf4c2817c49b20e3 100755 (executable)
@@ -1,53 +1,53 @@
-\r
-puts "========================"\r
-puts "OCC137"\r
-puts "========================"                                                                                         \r
-###############################################################\r
-#Patch description:\r
-#\r
-#MIT010717 : 3D selection management\r
-#>>>     MIT010717 : Selection management \r
-#\r
-#        * Package OpenGl (OpenGl_execstruct.c) \r
-#\r
-#          @ Avoid drawing quality problem on selected face, \r
-#            enable/disable Z offset on highlighted faces. \r
-#\r
-#>>>     MIT010717 : drawing management \r
-#\r
-#        * Package OpenGl (OpenGl_indexpolygon.c, ...) \r
-#\r
-#          @ Avoid to undraw faces with confused points \r
-###############################################################\r
-puts "========================"\r
-\r
-vinit\r
-box b 10 10 10\r
-vdisplay b\r
-vfit\r
-vsetdispmode 1\r
-\r
-puts "Only bottom face should be highlighted."\r
-\r
-OCC137 1\r
-OCC137_z\r
-\r
-vselmode 4 1\r
-\r
-set x_coord 105\r
-set y_coord 348\r
-\r
-vmoveto $x_coord $y_coord\r
-\r
-set x_coord 105\r
-set y_coord 340\r
-\r
-checkcolor $x_coord $y_coord 0 1 1\r
-\r
-vviewparams -scale 60.6309 -proj 0.592163 -0.60038 -0.537482 -up 0.369921 -0.390032 0.843228 -at 3.29057034725635 6.73314999296002 6.55157729015654\r
-set x_coord 105\r
-set y_coord 340\r
-\r
-checkcolor $x_coord $y_coord 0.78 0.54 0.09\r
-\r
-set only_screen 1\r
+
+puts "========================"
+puts "OCC137"
+puts "========================"                                                                                         
+###############################################################
+#Patch description:
+#
+#MIT010717 : 3D selection management
+#>>>     MIT010717 : Selection management 
+#
+#        * Package OpenGl (OpenGl_execstruct.c) 
+#
+#          @ Avoid drawing quality problem on selected face, 
+#            enable/disable Z offset on highlighted faces. 
+#
+#>>>     MIT010717 : drawing management 
+#
+#        * Package OpenGl (OpenGl_indexpolygon.c, ...) 
+#
+#          @ Avoid to undraw faces with confused points 
+###############################################################
+puts "========================"
+
+vinit
+box b 10 10 10
+vdisplay b
+vfit
+vsetdispmode 1
+
+puts "Only bottom face should be highlighted."
+
+OCC137 1
+OCC137_z
+
+vselmode 4 1
+
+set x_coord 105
+set y_coord 348
+
+vmoveto $x_coord $y_coord
+
+set x_coord 105
+set y_coord 340
+
+checkcolor $x_coord $y_coord 0 1 1
+
+vviewparams -scale 60.6309 -proj 0.592163 -0.60038 -0.537482 -up 0.369921 -0.390032 0.843228 -at 3.29057034725635 6.73314999296002 6.55157729015654
+set x_coord 105
+set y_coord 340
+
+checkcolor $x_coord $y_coord 0.78 0.54 0.09
+
+set only_screen 1
index 721eb8da2de7437d42262e1e7187194c276b9840..215e0b2f73ac8b4de0d39e4633ca4d1cdf6b4ccd 100755 (executable)
@@ -1,28 +1,28 @@
-puts "============"\r
-puts "CR24901"\r
-puts "============"\r
-puts ""\r
-#######################################################################\r
-#  Visualization - Incorrect area filled with capping color\r
-#######################################################################\r
-\r
-vinit View1\r
-box b 10 10 10\r
-vdisplay b\r
-vsetdispmode 1\r
-\r
-vclipplane create pln1\r
-vclipplane set pln1 object b\r
-vclipplane change pln1 equation 0 1 0 -5\r
-vclipplane change pln1 capping on\r
-vfit\r
-vmoveto 304 146\r
-\r
-set x_coord 304\r
-set y_coord 146\r
-checkcolor $x_coord $y_coord 0 1 1\r
-if { $stat != 1 } {\r
-   puts "Error : Highlighting is broken."\r
-}\r
-\r
-set only_screen 1\r
+puts "============"
+puts "CR24901"
+puts "============"
+puts ""
+#######################################################################
+#  Visualization - Incorrect area filled with capping color
+#######################################################################
+
+vinit View1
+box b 10 10 10
+vdisplay b
+vsetdispmode 1
+
+vclipplane create pln1
+vclipplane set pln1 object b
+vclipplane change pln1 equation 0 1 0 -5
+vclipplane change pln1 capping on
+vfit
+vmoveto 304 146
+
+set x_coord 304
+set y_coord 146
+checkcolor $x_coord $y_coord 0 1 1
+if { $stat != 1 } {
+   puts "Error : Highlighting is broken."
+}
+
+set only_screen 1
index 4a8390413e72cfb94223a28f439ec73def839ce5..0ba2cc42287d56b783534a3e9c324bdb6af3d60b 100644 (file)
@@ -4,16 +4,16 @@ puts "============"
 puts ""
 #######################################################################
 #  Cappings have gray tint if setting color with vclipplane command.
-#######################################################################\r
-box b 100 100 100\r
-vinit\r
-vsetdispmode 1\r
-vdisplay b\r
-vclipplane create pln1\r
-vclipplane change pln1 equation 0 0 -1 20\r
-vclipplane set pln1 object b\r
-vclipplane change pln1 capping on\r
-vclipplane change pln1 capping color 1.0 1.0 1.0\r
+#######################################################################
+box b 100 100 100
+vinit
+vsetdispmode 1
+vdisplay b
+vclipplane create pln1
+vclipplane change pln1 equation 0 0 -1 20
+vclipplane set pln1 object b
+vclipplane change pln1 capping on
+vclipplane change pln1 capping color 1.0 1.0 1.0
 vtop
 vfit