]> OCCT Git - occt-copy.git/commitdiff
0025266: Debug statements in the source are getting flushed on to the console
authordbv <dbv@opencascade.com>
Thu, 9 Oct 2014 10:32:26 +0000 (14:32 +0400)
committerdbv <dbv@opencascade.com>
Thu, 9 Oct 2014 10:32:26 +0000 (14:32 +0400)
Most of debug statements have been placed into #ifdef PACKAGE_DEB operator

376 files changed:
src/AIS/AIS_AngleDimension.cxx
src/AIS/AIS_ConnectedShape.cxx
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_MultipleConnectedShape.cxx
src/AIS/AIS_RadiusDimension.cxx
src/AIS/AIS_Shape.cxx
src/AIS/AIS_TexturedShape.cxx
src/AdvApp2Var/AdvApp2Var_Context.cxx
src/AlienImage/AlienImage_BMPAlienData.cxx
src/AlienImage/AlienImage_GIFAlienData.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_Loop.cxx
src/BRepAlgo/BRepAlgo_NormalProjection.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_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_Offset.cxx
src/BRepOffset/BRepOffset_Tool.cxx
src/BRepTest/BRepTest_CurveCommands.cxx
src/BRepTest/BRepTest_ExtremaCommands.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_4.gxx
src/BlendFunc/BlendFunc_ConstRad.cxx
src/BlendFunc/BlendFunc_ConstRadInv.cxx
src/BlendFunc/BlendFunc_EvolRad.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/FSD/FSD_CmpFile.cxx
src/Font/Font_FTFont.cxx
src/Geom/Geom_OsculatingSurface.cxx
src/GeomFill/GeomFill_ConstrainedFilling.cxx
src/GeomFill/GeomFill_CorrectedFrenet.cxx
src/GeomFill/GeomFill_GuideTrihedronAC.cxx
src/GeomFill/GeomFill_LocationGuide.cxx
src/GeomFill/GeomFill_NSections.cxx
src/GeomFill/GeomFill_Pipe.cxx
src/GeomFill/GeomFill_SweepSectionGenerator.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_Structure.cxx
src/Graphic3d/Graphic3d_TextureRoot.cxx
src/HLRBRep/HLRBRep_Data.cxx
src/HLRBRep/HLRBRep_Hider.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/IntStart/IntStart_SearchOnBoundaries_1.gxx
src/IntWalk/IntWalk_IWalking_2.gxx
src/IntWalk/IntWalk_PWalking_1.gxx
src/IntWalk/IntWalk_PWalking_4.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/Materials/Materials_MaterialsDictionary.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/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Display.cxx
src/OpenGl/OpenGl_FrameBuffer.cxx
src/OpenGl/OpenGl_telem_util.cxx
src/Plugin/Plugin.cxx
src/Poly/Poly.cxx
src/ProjLib/ProjLib_CompProjectedCurve.cxx
src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx
src/Prs3d/Prs3d_WFShape.gxx
src/PrsMgr/PrsMgr_Presentation3d.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/RWHeaderSection/RWHeaderSection_ReadWriteModule.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_ErrorHandler.cxx
src/Standard/Standard_MMgrOpt.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/TCollection/TCollection_ExtendedString.cxx
src/TCollection/TCollection_Queue.gxx
src/TCollection/TCollection_Stack.gxx
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/WNT/WNT_Allocator.cxx
src/XCAFDoc/XCAFDoc_ShapeTool.cxx
src/XCAFDrivers/XCAFDrivers.cxx
src/XCAFPrs/XCAFPrs.cxx
src/XCAFPrs/XCAFPrs_AISObject.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

index 9736e2c5971c39ad493a533901bf9e648915e36e..f708ba04b07ee2f1921f78b0cec17e5149c3d197 100755 (executable)
@@ -139,9 +139,9 @@ AIS_AngleDimension::AIS_AngleDimension( const TopoDS_Face& aCone,
                                        const TCollection_ExtendedString& aText):
 myNbShape(1)
 {
-//#ifdef DEB
+#ifdef AIS_DEB
   cout << "Call new AngleDimension for cone's angle" << endl;
-//#endif
+#endif
 
   gp_Pnt tmpPnt(0., 0., 0.); 
 
@@ -171,7 +171,7 @@ AIS_AngleDimension::AIS_AngleDimension(const TopoDS_Edge& aFirstEdge,
 :AIS_Relation(),
  myNbShape(2)
 {
-#ifdef DEB
+#ifdef AIS_DEB
   cout << endl << "Call new AngleDimension for edges, default" << endl;
 #endif
 
@@ -201,7 +201,7 @@ AIS_AngleDimension::AIS_AngleDimension( const TopoDS_Edge& aFirstEdge,
                                        const Standard_Real anArrowSize):
 myNbShape(2)
 {
-#ifdef DEB
+#ifdef AIS_DEB
   cout << endl << "Call new AngleDimension for edges" << endl;
 #endif
 
@@ -234,7 +234,7 @@ AIS_AngleDimension::AIS_AngleDimension( const TopoDS_Face& aFirstFace,
 myNbShape(2),
 myAxis(anAxis)
 {
-#ifdef DEB
+#ifdef AIS_DEB
   cout << endl << "Call new AngleDimension for planar faces, default" << endl;
 #endif
 
@@ -271,7 +271,7 @@ AIS_AngleDimension::AIS_AngleDimension( const TopoDS_Face& aFirstFace,
 myNbShape(2),
 myAxis(anAxis)
 {
-#ifdef DEB
+#ifdef AIS_DEB
   cout << endl << "Call new AngleDimension for planar faces" << endl;
 #endif
 
@@ -308,7 +308,7 @@ AIS_AngleDimension::AIS_AngleDimension( const TopoDS_Face& aFFace,
                                        const TCollection_ExtendedString& aText ):
 myNbShape(2)
 {
-#ifdef DEB
+#ifdef AIS_DEB
   cout << endl << "Call new AngleDimension for curvilinear faces, default" << endl;
 #endif
 
@@ -337,7 +337,7 @@ AIS_AngleDimension::AIS_AngleDimension( const TopoDS_Face& aFFace,
                                        const Standard_Real anArrowSize):
 myNbShape(2)
 {
-#ifdef DEB
+#ifdef AIS_DEB
   cout << endl << "Call new AngleDimension for curvilinear faces" << endl;
 #endif
 
index c79a6b8ce311495151877b0f9d41a0014f2655e4..a36b1ac6628bbb5355cc04d6add5af76284be52a 100755 (executable)
@@ -152,7 +152,7 @@ void AIS_ConnectedShape::Compute(const Handle(Prs3d_Projector)& aProjector,
       Standard_Real prevangl = myDrawer->HLRAngle();
       Standard_Real newangl = defdrawer->HLRAngle();
       if (Abs(newangl- prevangl) > Precision::Angular()) {
-#ifdef DEB
+#ifdef AIS_DEB
        cout << "AIS_MultipleConnectedShape : compute"<<endl;
        cout << "newangl   : " << newangl << " # de " << "prevangl  : " << prevangl << endl;
 #endif 
index bd1620a5f4aa408f438e4b6813ab4b91118563ae..d218a6d2f280dd8613850a5c9d8aa02edaafa5c0 100755 (executable)
@@ -254,7 +254,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
 
@@ -272,7 +272,7 @@ 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
 
@@ -281,7 +281,7 @@ void AIS_InteractiveContext::DisplayedObjects(AIS_ListOfInteractive& aListOfIO,
     for(AIS_DataMapIteratorOfDataMapOfILC it1(myLocalContexts);it1.More();it1.Next()){
       const Handle(AIS_LocalContext)& LC = it1.Value();
       NbDisp =  LC->DisplayedObjects(theMap);
-#ifdef DEBUG
+#ifdef AIS_DEB
       cout<<"\tIn Local Context "<<it1.Key()<<" : "<<NbDisp<<endl;
 #endif
       
@@ -1948,7 +1948,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
     }
@@ -2023,7 +2023,7 @@ void AIS_InteractiveContext::SetDeviationCoefficient(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -2067,7 +2067,7 @@ void AIS_InteractiveContext::SetHLRDeviationCoefficient(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -2110,7 +2110,7 @@ void AIS_InteractiveContext::SetDeviationAngle(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -2181,7 +2181,7 @@ void AIS_InteractiveContext::SetHLRAngleAndDeviation(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -2223,7 +2223,7 @@ void AIS_InteractiveContext::SetHLRDeviationAngle(
           NbDisp++;
         }
       anIObj->SetRecomputeOk();
-#ifdef DEB
+#ifdef AIS_DEB
       cout<<"nb of modes to recalculate : "<<NbDisp<<endl;
 #endif
     }
@@ -2251,7 +2251,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();
@@ -2322,7 +2322,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 b9341e143f3ff17870b9f5aa54d15d89cdcb00d5..8064dc2d0d16b7c194d54e3776fbe6a9adc7489d 100755 (executable)
@@ -699,7 +699,7 @@ void AIS_InteractiveContext::SetCurrentObject(const Handle(AIS_InteractiveObject
       UpdateCurrentViewer();
   }
   else{
-#ifdef DEB
+#ifdef AIS_DEB
     cout<<"Nothing Done : Opened Local Context"<<endl;
 #endif
   }
@@ -739,7 +739,7 @@ AddOrRemoveCurrentObject(const Handle(AIS_InteractiveObject)& anIObj,
       UpdateCurrentViewer();
   }
   else{
-#ifdef DEB
+#ifdef AIS_DEB
     cout<<"Nothing Done : Opened Local Context"<<endl;
 #endif
   }
@@ -1000,7 +1000,7 @@ void AIS_InteractiveContext::SetSelectedCurrent()
 {
 
 
-#ifdef DEB
+#ifdef AIS_DEB
   cout<<"Not Yet Implemented"<<endl;
 #endif
 }
@@ -1057,7 +1057,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;
@@ -1076,7 +1076,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 4159a3b5fd37b7e0e6fcc6650d63b14bc6a7598b..71138694694326bbb0d589ca304d17122c397930 100755 (executable)
@@ -87,7 +87,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;
@@ -112,7 +112,7 @@ void AIS_InteractiveContext::CloseLocalContext(const Standard_Integer Index,
 {
 
  Standard_Boolean debugmode(Standard_False);
-#ifdef DEB 
+#ifdef AIS_DEB 
  debugmode = Standard_True;
 #endif
  
index e2b914bcc66184c076a295ce4e6533ac22b02c0d..b2bd9805da7fc4f580ca40f608f8527cb17f33b2 100755 (executable)
@@ -157,7 +157,7 @@ void AIS_InteractiveObject::SetContext(const Handle(AIS_InteractiveContext)& aCt
   myCTXPtr = aCtx.operator->();
   if (myDrawer.IsNull()) {
     myDrawer = new AIS_Drawer;
-#ifdef DEB
+#ifdef AIS_DEB
     cout << "AIS_InteractiveObject::SetContext DRAWER NUL!" << endl;
 #endif
   }
index 17592abbe69be72ca9b21c690bf82a33dd6a657f..3dd1bc8aaa4b41ca724ee6f0520628c5e02dca3c 100755 (executable)
@@ -1474,7 +1474,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
@@ -1523,7 +1523,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 b61967cf57ff104e2947dcd00420a9ea9488e38b..cc3480dba1e778f464a19c342dad60ff93904821 100755 (executable)
@@ -141,7 +141,7 @@ void AIS_MultipleConnectedShape::Compute(const Handle(Prs3d_Projector)& aProject
       Standard_Real prevangl = myDrawer->HLRAngle();
       Standard_Real newangl = defdrawer->HLRAngle();
       if (Abs(newangl- prevangl) > Precision::Angular()) {
-#ifdef DEB
+#ifdef AIS_DEB
        cout << "AIS_MultipleConnectedShape : compute"<<endl;
        cout << "newangl   : " << newangl << " # de " << "prevangl  : " << prevangl << endl;
 #endif 
index afbb4d836a2c975576e2860955e3d2df668cec1d..df0fe4e07ce2fe58b612b012934bdf3fd1ecd935 100755 (executable)
@@ -239,7 +239,7 @@ void AIS_RadiusDimension::InitFirstShape()
          myFirstPar = AdaptedCurve.FirstParameter();
          myLastPar = AdaptedCurve.LastParameter();
        }
-#ifdef DEB
+#ifdef AIS_DEB
        else {
          cout << "AIS_RadiusDimension::InitFirstShape ==> myFShape.ShapeType() == " << myFShape.ShapeType()  << endl;
        }
index 01cf77f01a0576e6853d92033ef2fd05b5c984d5..b978bdf8854b3301329024c8209a6e8548a62b82 100755 (executable)
@@ -209,10 +209,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);
     }
@@ -230,7 +230,7 @@ void AIS_Shape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentat
           OwnDeviationCoefficient(newcoeff,prevcoeff))
         if (Abs (newangle - prevangle) > Precision::Angular() ||
             Abs (newcoeff - prevcoeff) > Precision::Confusion()  ) { 
-#ifdef DEB
+#ifdef AIS_DEB
           cout << "AIS_Shape : compute"<<endl;
           cout << "newangl   : " << newangle << " # de " << "prevangl  : " << prevangle << " OU "<<endl;
           cout << "newcoeff  : " << newcoeff << " # de " << "prevcoeff : " << prevcoeff << endl;
@@ -251,7 +251,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);
@@ -329,7 +329,7 @@ void AIS_Shape::Compute(const Handle(Prs3d_Projector)& aProjector,
   if (OwnHLRDeviationAngle(newangle,prevangle) || OwnHLRDeviationCoefficient(newcoeff, prevcoeff))
     if (Abs (newangle - prevangle) > Precision::Angular() ||
         Abs (newcoeff - prevcoeff) > Precision::Confusion()  ) { 
-#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;
@@ -351,7 +351,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 600eef83ff67c7ad7a062afdf7fa2765c02f0b4a..14dd0f70ea6a06ac547646b439dfcbfde3824073 100755 (executable)
@@ -80,8 +80,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 = "";
@@ -211,7 +213,9 @@ void AIS_TexturedShape::UpdateAttributes()
   myAspect->SetTextureMap (mytexture);
   if (!mytexture->IsDone())
   {
+#ifdef AIS_DEB
     std::cout << "An error occured while building texture \n";
+#endif
     return;
   }
 
@@ -298,7 +302,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;
@@ -349,7 +355,9 @@ void AIS_TexturedShape::Compute (const Handle(PrsMgr_PresentationManager3d)& /*t
 
       if (!mytexture->IsDone())
       {
+#ifdef AIS_DEB
         std::cout << "An error occured while building texture \n";
+#endif
         return;
       }
 
@@ -382,7 +390,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 8a654ce7e541ce0863930f797a97495dbd8bcf3f..b602fa6ec14d5bd891cb7eb78e20433ad69cec2c 100755 (executable)
@@ -50,7 +50,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 75154c5d450a9a4c971bd498f876e971ae5aa7ff..60bbc846683f9d50499fd787fed8aa09e27e3a56 100755 (executable)
@@ -113,15 +113,19 @@ Standard_Boolean AlienImage_BMPAlienData::Read (OSD_File& file)
   lpVoid = Standard_Address(&bmfh);
   file.Read ((void*&)lpVoid, sizeof(AlienImage_BMPHeader), nBytes);
   if (file.Failed () || nBytes != sizeof(AlienImage_BMPHeader)) {
+#ifdef ALIENIMAGE_DEB
     cout << "AlienImage_BMPAlienData::Read() : Reading AlienImage_BMPHeader."
          << endl << flush;
+#endif
     goto _ExitReadError;
   }
 
   lpVoid = Standard_Address (&dwSize);
   file.Read ((void*&)lpVoid, sizeof (DWORD), nBytes);
   if (file.Failed() || nBytes != sizeof (DWORD)) {
+#ifdef ALIENIMAGE_DEB
     cout << "AlienImage_BMPAlienData::Read() : BAD file size." << endl << flush;
+#endif
     goto _ExitReadError;
   }
   file.Seek (-(int)sizeof(DWORD), OSD_FromHere);
@@ -131,16 +135,20 @@ Standard_Boolean AlienImage_BMPAlienData::Read (OSD_File& file)
     lpVoid = Standard_Address(&bmch);
     file.Read ((void*&)lpVoid, sizeof(BITMAPCOREHEADER), nBytes);
     if (file.Failed() || nBytes != sizeof(BITMAPCOREHEADER)) {
+#ifdef ALIENIMAGE_DEB
       cout << "AlienImage_BMPAlienData::Read() : Reading BITMAPCOREHEADER."
            << endl << flush;
+#endif
       goto _ExitReadError;
     }
   } else {
     lpVoid = Standard_Address(&bmih);
     file.Read ((void*&)lpVoid, sizeof(BITMAPINFOHEADER), nBytes);
     if (file.Failed() || nBytes != sizeof(BITMAPINFOHEADER)) {
+#ifdef ALIENIMAGE_DEB
       cout << "AlienImage_BMPAlienData::Read() : Reading BITMAPINFOHEADER."
            << endl << flush;
+#endif
       goto _ExitReadError;
     }
   }
@@ -149,8 +157,10 @@ Standard_Boolean AlienImage_BMPAlienData::Read (OSD_File& file)
   if ((nBitCount != 1 &&  nBitCount != 4 && nBitCount != 8 &&
        nBitCount != 16 && nBitCount != 24 && nBitCount != 32) ||
        isOS2Format && (nBitCount == 16 || nBitCount == 32)) {
+#ifdef ALIENIMAGE_DEB
     cout << "AlienImage_BMPAlienData::Read() : Bad <nBitCount> value :"
          << nBitCount << " " << isOS2Format << endl << flush;
+#endif
     goto _ExitReadError;
   }
 
@@ -178,8 +188,10 @@ Standard_Boolean AlienImage_BMPAlienData::Read (OSD_File& file)
 
     file.Read ((void*&)pColors256, isize, nBytes);
     if (file.Failed() || nBytes != isize) {
+#ifdef ALIENIMAGE_DEB
       cout << "AlienImage_BMPAlienData::Read() : Reading ColorMap."
            << endl << flush;
+#endif
       goto _ExitReadError;
     }
     // Build colormap
@@ -199,24 +211,32 @@ Standard_Boolean AlienImage_BMPAlienData::Read (OSD_File& file)
     // Retrieve three DWORD's that contain the masks for R, G and B respectively
     file.Read ((void*&)(pdw = &dwRMask), sizeof (DWORD), nBytes);
     if (file.Failed() || nBytes != sizeof(DWORD)) {
+#ifdef ALIENIMAGE_DEB
       cout << "AlienImage_BMPAlienData::Read() : BAD file size." << endl << flush;
+#endif
       goto _ExitReadError;
     }
 
     file.Read ((void*&)(pdw = &dwGMask), sizeof (DWORD), nBytes);
     if (file.Failed() || nBytes != sizeof(DWORD)) {
+#ifdef ALIENIMAGE_DEB
       cout << "AlienImage_BMPAlienData::Read() : BAD file size." << endl << flush;
+#endif
       goto _ExitReadError;
     }
 
     file.Read ((void*&)(pdw = &dwBMask), sizeof (DWORD), nBytes);
     if (file.Failed() || nBytes != sizeof(DWORD)) {
+#ifdef ALIENIMAGE_DEB
       cout << "AlienImage_BMPAlienData::Read() : BAD file size." << endl << flush;
+#endif
       goto _ExitReadError;
     }
 
     if (hasColormap || !dwRMask || !dwGMask || !dwBMask) {
+#ifdef ALIENIMAGE_DEB
       cout << "AlienImage_BMPAlienData::Read() : BAD image colormap." << endl << flush;
+#endif
       goto _ExitReadError;
     }
     
@@ -246,8 +266,10 @@ Standard_Boolean AlienImage_BMPAlienData::Read (OSD_File& file)
   file.Seek (i, OSD_FromBeginning);
   file.Read ((void*&)pData, iDataSize, nBytes);
   if (file.Failed () || nBytes != iDataSize) {
+#ifdef ALIENIMAGE_DEB
     cout << "AlienImage_BMPAlienData::Read() : Image data."
          << endl << flush;
+#endif
     goto _ExitReadError;
   }
 
@@ -457,7 +479,9 @@ Standard_Boolean AlienImage_BMPAlienData::Write (OSD_File& file) const
   return Standard_True;
         
 _ExitWriteError:
+#ifdef ALIENIMAGE_DEB
   cout << "AlienImage_BMPAlienData::Write() : Write file error." << endl << flush;
+#endif
   STGMGR_FREE (pbData, isize);
   return Standard_False;
 }
index 8dcb7393ce39092162374513dd59f19ce901c666..89dc9faab797eaa56d4582ebeadf2d1009377f40 100755 (executable)
@@ -141,7 +141,9 @@ Standard_Boolean AlienImage_GIFAlienData::Read (OSD_File& file)
   // Read file into memory
   file.Read ((void*&)pFileBuffer, nFileSize, nReadCount);
   if (nFileSize != nReadCount) {
+#ifdef ALIENIMAGE_DEB
     cout << "GIFAlienData::Read() : BAD file size." << endl << flush;
+#endif
     goto _ExitReadError;
   }
 
@@ -172,8 +174,10 @@ Standard_Boolean AlienImage_GIFAlienData::Read (OSD_File& file)
       BLUE [i] = ((BYTE)(hasColormap ? *pFileStream++: i));
     }
   } else {
+#ifdef ALIENIMAGE_DEB
     cout << "GIFAlienData::Read() : There's no colormap"
          << " in the image (or too big): " << ncolors << endl << flush;
+#endif
     goto _ExitReadError;
   }
 
@@ -187,8 +191,10 @@ Standard_Boolean AlienImage_GIFAlienData::Read (OSD_File& file)
   }
 
   if (*pFileStream++ != ',') { // must be an image descriptor
+#ifdef ALIENIMAGE_DEB
     cout << "GIFAlienData::Read() : There's no separator"
          << " following the colormap" << endl << flush;
+#endif
     goto _ExitReadError;
   }
 
@@ -201,8 +207,10 @@ Standard_Boolean AlienImage_GIFAlienData::Read (OSD_File& file)
   byte = *pFileStream++;
   isInterlace = byte & 0x40;
   if (byte & 0x80) {
+#ifdef ALIENIMAGE_DEB
     cout << "GIFAlienData::Read() : Can't read GIF image"
          << " with locally defined colormap" << endl << flush;
+#endif
     goto _ExitReadError;
   }
 
@@ -231,7 +239,9 @@ Standard_Boolean AlienImage_GIFAlienData::Read (OSD_File& file)
     while (byte--)
       *ptr1++ = *pFileStream++;
     if ((long) (ptr1 - rasterPtr) > nFileSize) {// Currupt file
+#ifdef ALIENIMAGE_DEB
       cout << "GIFAlienData::Read() : BAD file size." << endl << flush;
+#endif
       goto _ExitReadError;
     }
   } while (byte1);
@@ -284,7 +294,9 @@ Standard_Boolean AlienImage_GIFAlienData::Read (OSD_File& file)
       }
       while (CurCode > BitMask) {
         if (OutCount > 1024) {
+#ifdef ALIENIMAGE_DEB
           cout << "GIFAlienData::Read() : BAD file size." << endl << flush;
+#endif
           goto _ExitReadError;
        }
         OutCode [OutCount++] = Suffix [CurCode];
index 844bdf7812babe3f53d22f74b34b5fcbce77b38e..db6815aa6d586912d81a3101d7481a6de552bc83 100755 (executable)
@@ -403,7 +403,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
@@ -448,7 +448,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    
@@ -510,7 +510,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    
@@ -830,7 +830,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
@@ -855,7 +855,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 fb11906ff70b2b16639593d2a843716fd158805d..84bca933ff34c39d9a434f4b9f4ca76cbe3aaf8c 100755 (executable)
@@ -664,7 +664,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 6c9e58acfb5e2cd17f05cac2a3be76aab5425c8d..33467129c39fa299215cc1c9015db6aa787d87d7 100755 (executable)
@@ -533,7 +533,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
        }
       }
       else {
-#ifdef DEB 
+#ifdef APPROX_DEB 
        // JAG
        cout << "Projection not done" << endl;
 #endif
@@ -547,7 +547,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;
@@ -705,7 +705,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
          }
        }
        else {
-#ifdef DEB 
+#ifdef APPROX_DEB 
          // JAG
          cout << "Projection not done" << endl;
 #endif
@@ -735,7 +735,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;
@@ -808,7 +808,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
          }
        }
        else {
-#ifdef DEB 
+#ifdef APPROX_DEB 
          // JAG
          cout << "Projection not done" << endl;
 #endif
index b129760bf1e442af4359b91342c994026757f9f8..46de3b8d53b44a255a03245dcf2cd25e9c64c9b2 100755 (executable)
@@ -159,7 +159,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 bdeb62700f73c3e764a6dcd24cf20ea27ce5070e..e98a1bb980dcf326a8963e41996b3f0379998d0f 100755 (executable)
@@ -552,7 +552,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 9021eca6e57c642799c9d9015f70711b92d6fa00..ab7c83931c150e887fded2cd9519714947427214 100755 (executable)
@@ -667,9 +667,11 @@ void BRepAlgo_Loop::Perform()
       myNewWires.Append (NW);
     else {
 #ifdef DEB
-      cout <<"BRepAlgo_Loop: Open Wire"<<endl;
       if (AffichLoop)
-       cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<endl;
+      {
+        cout <<"BRepAlgo_Loop: Open Wire"<<endl;
+        cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<endl;
+      }
 #endif
     }
 #ifdef DRAW
index acb9e17b96254d96ebda0f3e6ae732af6199e814..e8cfd9fe72628f2316b548dcdb93d31e92d51138 100755 (executable)
@@ -295,7 +295,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
@@ -313,7 +313,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
@@ -330,7 +330,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
@@ -443,7 +443,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
@@ -492,7 +492,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()) {
@@ -522,7 +522,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
               }
             }
             else {
-#ifdef DEB
+#ifdef BREPALGO_DEB
                  cout << " BooleanOperations : no solution " << endl;
 #endif
 
index 522dfee4efdfee21ff64be4886b98e6d616ec8dc..cf2484c11beaefcd309db04189f9563b34f85e01 100755 (executable)
@@ -332,7 +332,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;
@@ -344,7 +344,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 db3320d7098457ca4f86f3346092a39ba7d7387d..8ae9a8cc86cb89511248f9ff324e9f6f7227bb4e 100755 (executable)
@@ -915,7 +915,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 2282c918521c9e8f769e2ffb47fc3285454ca1cd..44802838f14a6d73b617d3ed66a7ac541220ced6 100755 (executable)
@@ -928,7 +928,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 4906ae5f3b12df1104d8f4adf36a6d3e7a66849a..60f5e5633d558c3e031bf3374ab34cf29f22b5cc 100755 (executable)
@@ -708,7 +708,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;
@@ -763,7 +763,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
          }
@@ -869,7 +869,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);
@@ -942,7 +942,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
   }
@@ -981,7 +981,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
     }
@@ -1042,7 +1042,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;
@@ -1126,7 +1126,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 74a067f8fe896071ba5f3c44e8239221a0dc9beb..5416329e131b8476c246f7b82f0dafe70450b6fb 100755 (executable)
@@ -157,7 +157,7 @@ Handle(Geom2d_Curve) BRepBuilderAPI_Sewing::SameRange(const Handle(Geom2d_Curve)
                       RequestedFirst,RequestedLast,NewCurvePtr);
   }
   catch (Standard_Failure) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
     cout << "Exception in BRepBuilderAPI_Sewing::SameRange: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -329,7 +329,7 @@ void BRepBuilderAPI_Sewing::SameParameter(const TopoDS_Edge& edge) const
     BRepLib::SameParameter(edge);
   }
   catch (Standard_Failure) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
     cout << "Exception in BRepBuilderAPI_Sewing::SameParameter: ";
     Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -1776,7 +1776,7 @@ void BRepBuilderAPI_Sewing::Add(const TopoDS_Shape& aShape)
 //purpose  : 
 //=======================================================================
 
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
 #include <OSD_Timer.hxx>
 #endif
 
@@ -1784,7 +1784,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();
@@ -1794,7 +1794,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();
@@ -1803,7 +1803,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;
@@ -1818,7 +1818,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();
@@ -1827,14 +1827,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();
@@ -1843,13 +1843,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();
@@ -1858,7 +1858,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;
@@ -1877,7 +1877,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
@@ -1897,7 +1897,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
         mySewedShape.Nullify();
         return;
       }
-#if DEB
+#if BREPBUILDERAPI_DEB
       cout << "Sewed shape created" << endl;
 #endif
     }
@@ -1910,7 +1910,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;
@@ -2261,7 +2261,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
            Standard_Real first, last;
            Handle(Geom_Curve) c3d = BRep_Tool::Curve(edge,first,last);
            if (c3d.IsNull()) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
              cout << "Warning: Possibly small edge can be sewed: No 3D curve" << endl;
 #endif
            }
@@ -2341,7 +2341,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
 
          // Replace small edge
          if (isSmall) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
            cout << "Warning: Small edge made degenerated by FaceAnalysis" << endl;
 #endif
            nbSmall++;
@@ -2378,7 +2378,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
 
       // Remove small face
       if (nbSmall == nbEdges) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
        cout << "Warning: Small face removed by FaceAnalysis" << endl;
 #endif
        myLittleFace.Add(face);
@@ -2766,7 +2766,7 @@ static Standard_Boolean GlueVertices(TopTools_IndexedDataMapOfShapeShape& aVerte
     }
   }
   Standard_Integer nbNodes = NodeVertices.Extent();
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
   cout << "Glueing " << nbNodes << " nodes..." << endl;
 #endif
   // Merge nearest nodes
@@ -2927,7 +2927,7 @@ void BRepBuilderAPI_Sewing::VerticesAssembling(const Handle(Message_ProgressIndi
     }
     // Glue vertices
     if (nbVert) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
       cout << "Assemble " << nbVert << " vertices on faces..." << endl;
 #endif
       while (GlueVertices(myVertexNode,myNodeSections,myBoundFaces,myTolerance, thePI));
@@ -2936,7 +2936,7 @@ void BRepBuilderAPI_Sewing::VerticesAssembling(const Handle(Message_ProgressIndi
       return;
     aPS.Next();
     if (nbVertFree) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
       cout << "Assemble " << nbVertFree << " vertices on floating edges..." << endl;
 #endif
       while (GlueVertices(myVertexNodeFree,myNodeSections,myBoundFaces,myTolerance, thePI));
@@ -3708,7 +3708,7 @@ void BRepBuilderAPI_Sewing::Cutting(const Handle(Message_ProgressIndicator)& the
       myBoundSections.Bind(bound,listSections);
     }
   }
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
   cout << "From " << nbBounds << " bounds " << myBoundSections.Extent()
     << " were cut into " << mySectionBound.Extent() << " sections" << endl;
 #endif
@@ -4311,7 +4311,7 @@ void BRepBuilderAPI_Sewing::ProjectPointsOnCurve(const TColgp_Array1OfPnt& arrPn
     }
     catch (Standard_Failure) {
       worktol = MinTolerance();
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
       cout << "Exception in BRepBuilderAPI_Sewing::ProjectPointsOnCurve: ";
       Standard_Failure::Caught()->Print(cout); cout << endl;
 #endif
@@ -4691,7 +4691,7 @@ void BRepBuilderAPI_Sewing::SameParameterShape()
       BRepLib::SameParameter(sec, BRep_Tool::Tolerance(sec));
     }
     catch (Standard_Failure) {
-#ifdef DEB
+#ifdef BREPBUILDERAPI_DEB
       cout << "Fail: BRepBuilderAPI_Sewing::SameParameterShape exception in BRepLib::SameParameter" << endl;
 #endif
       continue;
index 3e138296791007de3b4c28f258e6f9b2ed9e5767..a5f6ae798e97c93d5a24f0d5c346740928563198 100755 (executable)
@@ -145,7 +145,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;
@@ -185,7 +185,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;
@@ -232,7 +232,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;
@@ -274,7 +274,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;
@@ -311,7 +311,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)
        myMap(aShell)->InContext(S);
       }
       catch(Standard_Failure) {
-#ifdef DEB
+#ifdef BREPCHECK_DEB
        cout<<"BRepCheck_Analyzer : ";
        Standard_Failure::Caught()->Print(cout);  
        cout<<endl;
index 9f09795da78228a1ad28b00d54738737e54919e3..10bd364ceddd824833d2868a175fa75c0e4e747e 100755 (executable)
@@ -385,7 +385,7 @@ Standard_Boolean IsDistanceIn3DTolerance (const BRepAdaptor_Surface& aFaceSurfac
   if (Dist < aTol3d)
     return Standard_True;
 
-#ifdef DEB
+#ifdef BREPCHECK_DEB
   cout << endl;
   cout << "--------Function IsDistanceIn3DTolerance(...)----------"                                                                                            << endl;
   cout << "--- BRepCheck Wire: Closed3d -> Error"                                                                                                                                                                      << endl;
@@ -1062,7 +1062,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
              BRepCheck::Add(myMap(myShape),BRepCheck_SelfIntersectingWire);
              }
            delete [] tabDom;
-#ifdef DEB
+#ifdef BREPCHECK_DEB
            static Standard_Integer numpoint=0;
            cout<<"point p"<<++numpoint<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;cout.flush();
 #endif
@@ -1095,7 +1095,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
        }
        else {
          delete [] tabDom;
-#ifdef DEB
+#ifdef BREPCHECK_DEB
          cout<<"BRepCheck_NoCurveOnSurface or BRepCheck_InvalidRange"<<endl;cout.flush();
 #endif
          if(tabCur(j).IsNull()) {
@@ -1217,7 +1217,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
            //-- Check distance from edges to the curve joining 
            //-- the point of intersection with vertex (if exists)
            if (localok == Standard_False && !CommonVertices.IsEmpty()) {
-#ifdef DEB     
+#ifdef BREPCHECK_DEB   
              cout << "\n------------------------------------------------------\n" <<endl;
              cout << "\n--- BRepCheck Wire: AutoIntersection Phase1 -> Erreur \n" <<endl;
              
@@ -1325,7 +1325,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);
@@ -1351,7 +1351,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
              if (Update) {
                BRepCheck::Add(myMap(myShape),BRepCheck_SelfIntersectingWire);
                }
-#ifdef DEB
+#ifdef BREPCHECK_DEB
              static Standard_Integer numpoint1=0;
              cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;
              cout.flush();
@@ -1486,7 +1486,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
              if (Update) {
                BRepCheck::Add(myMap(myShape),BRepCheck_SelfIntersectingWire);
              }
-#ifdef DEB
+#ifdef BREPCHECK_DEB
              static Standard_Integer numpoint1=0;
              cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;
              cout.flush();
index d4758ee6c7b37ba52a1df3c9e3b403a5b553f602..09d7ba1c4ba93ae940a9be45a65c3e17810d5cf2 100755 (executable)
@@ -397,7 +397,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 f7205a188b94fd50546d26eebe735437502b0721..b2ecd674e9b61b1437523c8a4a7e86730d2b64f4 100755 (executable)
@@ -562,7 +562,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;
@@ -760,7 +760,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 ddab4dc7377e3663c2a15cbe5795df7b37d7db9b..ae1c302fa74d62807417a297f5e29d058431e8ba 100755 (executable)
@@ -1225,7 +1225,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 c47e5246f83698178d53f2dc40b5b6e64191583a..6a2323ca498663864613e288cb27add71c197393 100755 (executable)
@@ -405,8 +405,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();
@@ -420,7 +423,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;
@@ -738,8 +741,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();
@@ -753,7 +759,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;
@@ -898,8 +904,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();
@@ -1228,7 +1237,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 c4cb4522a1438984196c8d971d59a134f21b60b4..98243bdd807b7ed32e71c16e76c393be01025b79 100755 (executable)
@@ -532,8 +532,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();
@@ -547,7 +550,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;
@@ -943,7 +946,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;
@@ -963,8 +966,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();
@@ -978,7 +984,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;
@@ -1282,8 +1288,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();
@@ -1767,7 +1776,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 2322cec9d6bf6458c7540dd03b79a642c0105495..6d99ce1ea6b8c5769da31cd2e9d524c229363a81 100755 (executable)
@@ -127,8 +127,11 @@ void BRepFeat_RibSlot::LFPerform()
   if (mySbase.IsNull() || myPbase.IsNull() || mySkface.IsNull() 
       || myGShape.IsNull() || myLFMap.IsEmpty()) {
 #ifdef DEB
-    cout << "Topological reconstruction is impossible" << endl;
-    if (trc) cout << " Fields not initialized" << endl;
+    if (trc)
+    {
+      cout << "Topological reconstruction is impossible" << endl;
+      cout << " Fields not initialized" << endl;
+    }
 #endif
     myStatusError = BRepFeat_NotInitialized;
     NotDone();
@@ -208,7 +211,7 @@ void BRepFeat_RibSlot::LFPerform()
         (!Collage)) {
       theOpe = 2;
       ChangeOpe = Standard_True;
-#ifdef DEB
+#ifdef BREPFEAT_DEB
       cout << "Passage to topological operations" << endl;
 #endif
     }
@@ -230,7 +233,7 @@ void BRepFeat_RibSlot::LFPerform()
     else {
       theOpe = 2;
       ChangeOpe = Standard_True;
-#ifdef DEB
+#ifdef BREPFEAT_DEB
       cout << "Passage to topologic operation" << endl;
 #endif
     }
index fcfb9772007eddc11bb7b053d68c7b0de37ed017..f43c3a2e546882958e26929b63519ec941e2956b 100755 (executable)
@@ -862,7 +862,7 @@ void BRepFill::SearchOrigin(TopoDS_Wire & W,
       }
     }
   } 
-#if DEB
+#if BREPFILL_DEB
   else {
     cout << "BRepFill::SearchOrigine : Echec Distance" << endl;
   }
index fb63cfd0fcea11b201644fd9d8bf34c274ff3c01..cf220b16a0e63ce029257352b58eece7faa24b4a 100755 (executable)
@@ -273,14 +273,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 a189a2f66be64042ef36f87599a003a97c31bc64..0befd4c8a0a0a3af4e3e59740e2b034f3b9654e2 100755 (executable)
@@ -619,7 +619,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 c02477ba7e2789adbcd40e332b40e638f4653acf..f436c5998874713c1d12bd895ac52492d660ba69 100755 (executable)
@@ -632,7 +632,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
@@ -685,7 +685,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
@@ -705,7 +705,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 74e52086e647818c3ff78053a6a89ce844830e54..8a6c72ee45fbb57e84e116a877bcaa3a7f842418 100755 (executable)
@@ -355,7 +355,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;
@@ -363,7 +363,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  
@@ -2313,7 +2313,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;
@@ -2797,7 +2797,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
     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;
@@ -2890,7 +2890,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
   }
   else if ((TheTransition == BRepFill_Right) ||
           aTrim.HasSection() ) { 
-#if DEB
+#if BREPFILL_DEB
     cout << "Fail of TrimCorner" << endl;
 #endif
     return; // Nothing is touched
@@ -2958,7 +2958,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
          if (ii==1) BordFirst = Bord1;
        }
       }
-#if DEB
+#if BREPFILL_DEB
       else cout << "PerformCorner : Unsymmetry of free border" << endl;
 #endif
     }
index a1a009bb2cca4ffab659599daf3bc037109442b3..9a64bc6ee49478a5023080b6e5d16ba2cbe22cc5 100755 (executable)
@@ -370,7 +370,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
 
@@ -384,7 +384,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;
@@ -460,11 +460,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++;
@@ -531,7 +531,7 @@ const
   }
   
   if (ToProj) {
-#ifdef DEB
+#ifdef BREPFILL_DEB
     cout << " project extremity bissectrice on parallel."<<endl;
 #endif
 
@@ -545,25 +545,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 dd62446d6b807d983524d177aaf076bdf74daac0..39dc3b6a22c4aec3eff2eeb2b0ea207eb9114a96 100755 (executable)
@@ -278,7 +278,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
@@ -473,11 +473,11 @@ 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  
+#ifdef BREPFILL_DEB  
   Standard_Real Dist = 
 #endif
     Projector.LowerDistance();
-#ifdef DEB
+#ifdef BREPFILL_DEB
   if ( Dist > Precision::Confusion() ) {
     cout << " *** WARNING  TrimSurfaceTool:  *** " << endl;
     cout << "      --> the point is not on the edge" <<endl;
index 8e333839589927eec2f1d3dfea62727756c0b9b4..9a989f1656b7614e4b368a8d35f0b4c7c8cb28fa 100755 (executable)
@@ -845,7 +845,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 8ad87f90b43f41dca4af9a81d5f985173272def2..faaf3a8dda177682e0968b01254068d51548e64c 100755 (executable)
@@ -357,7 +357,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;
@@ -365,7 +365,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
@@ -375,7 +375,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 0f45f1ae213e27222d08c9b94fe09683d55f0b9e..13749d17e05ddfd5de9eedf890352c910e385797 100755 (executable)
@@ -156,7 +156,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);
@@ -263,7 +263,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 2183a4d1c950dd82ba3ddfb078c51cc5e1e40ee7..4891f949c22a7081c1438bcf0b727b9668730e5a 100755 (executable)
@@ -369,7 +369,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;
@@ -390,7 +390,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;
@@ -425,7 +425,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
@@ -638,7 +638,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;
@@ -659,7 +659,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;
@@ -694,7 +694,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
@@ -1160,7 +1160,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
@@ -1173,7 +1173,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 f38da21a7be0284269e7c9847a8afbbee5f50ae0..72fd019f69889b05fbc211420f1e9227a20bbd59 100755 (executable)
@@ -1113,7 +1113,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;
@@ -1177,7 +1177,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 80efa30f8f39bbd2a041030d08181c9dc7a8c86a..8f9db7305dbe2833d7d88b93729f82116b212344 100755 (executable)
@@ -1896,7 +1896,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)
@@ -1906,7 +1906,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
               }
@@ -2333,7 +2333,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face&    F,
 //        if (j == 1)  C2 = BRep_Tool::CurveOnSurface(E2,F,fl2[0],fl2[1]);
 //        else         C2 = BRep_Tool::CurveOnSurface(TopoDS::Edge(E2.Reversed()),
 //                                                    F,fl2[0],fl2[1]);
-#ifdef DEB
+#ifdef BREPOFFSET_DEB
         if (C1.IsNull() || C2.IsNull()) {
           cout <<"Inter2d : Pas de pcurve"<<endl;
 #ifdef DRAW
@@ -2445,7 +2445,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;
@@ -2503,7 +2503,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 4bd0fb7f09ef7a2b97474b045c8b207e7698be8b..1ea06b718e00f9a7187425808ed41e7cd9799a9f 100755 (executable)
@@ -1143,10 +1143,6 @@ static Standard_Integer bsplineprof(Draw_Interpretor& di,
   
   return 0;
 
-#ifdef DEB  
-  di << "profile : bad number of arguments";
-  return 1;
-#endif
 }
 
 
index 347a04b405a70ee23f064e3a827f19c4821b252b..c82eea9394c44cd17102ee53a4481d85ad9318b8 100755 (executable)
@@ -76,7 +76,7 @@ static Standard_Integer distmini(Draw_Interpretor& di, Standard_Integer n, const
 
   if (dst.IsDone()) 
       { 
-#ifdef DEB
+#ifdef BREPTEST_DEB
          //dst.Dump(cout);
        Standard_SStream aSStream;
        dst.Dump(aSStream);
index c9beab57ad96ae4e6354b9b720643a30098e3769..b5583a6fc3eefebffbd35e8471c9d4db3652e1bb 100755 (executable)
@@ -154,7 +154,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 15f9732f730e6421ae3be9f53c91a5ed9bfc742c..479651c4792f327ddd142b9c34df6657cff078bf 100755 (executable)
@@ -344,7 +344,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;
@@ -693,7 +693,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 710b3a0428176e4ad4d38caa847df1fc268877b4..3d917f670c90d8c52e6c264f803a4e2b3c110b27 100755 (executable)
@@ -74,7 +74,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);
   }
 }
@@ -84,7 +86,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 97053ae578dd77b237d9c6031447d949abb19e45..46b2b37961ed49542c5796551320117b53ae339d 100755 (executable)
@@ -3482,7 +3482,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 1cafb07758f0e349f1d26458f126319b8ec4749a..943ed57c94551194301a66e83e19ceb114938788 100755 (executable)
@@ -1843,7 +1843,7 @@ void BiTgte_Blend::ComputeCenters()
     }
   }
 
-#ifdef DEB
+#ifdef BITGTE_DEB
   if ( myResult.IsNull()) {
     cout << " No Lines of Generated Centers" << endl;
   }
index fd6e8416922e4071c80fd1afb757bc9d579fad8e..7a68b86a10ae0a12f003d26bf7a55f30992e5ab6 100755 (executable)
@@ -48,7 +48,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;
@@ -56,7 +58,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 7b16bb01067003543c436b01d91114cb5255ab14..8e1e8bcae536f7b3ec6c26b861368b895931a630 100755 (executable)
@@ -46,7 +46,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;
@@ -54,7 +56,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 420e2d134d9324544c76a7dfb544634b8ec05ea1..40ec4886fadfc6c3bc6020e19a60b8bcaa6eee6b 100755 (executable)
@@ -114,7 +114,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
@@ -440,7 +440,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 eb072ee99efaa695a06623230d61e87fc10f1b45..34d86d6051c60e3a71b507b6118afefc958825c0 100755 (executable)
@@ -50,9 +50,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;
@@ -69,9 +66,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;
@@ -92,9 +87,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 7befd9d2ab7c0a0bbe161e5f7c2b3caa57ba2ddd..81de81275a267ecdd3cb1a11ef84b3f2fbdab847 100755 (executable)
@@ -79,16 +79,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 f6ee931898f4ce889609f3f4382346e3c024bd10..8e29c6cc49110494d37c8a9bbc305a35d3d62192 100755 (executable)
@@ -87,9 +87,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 e4c69d772d0f3ad1d65cc0a3a223debe609b69d3..9e034b1ffc3e20569ad30c7e8f2f89ea9c502ea7 100755 (executable)
@@ -68,9 +68,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))
@@ -78,7 +75,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 87c5f29dc1142e0176b92220efe626861ef387b7..502a103339273761decc5465d6db59d4e8b45d9f 100755 (executable)
@@ -67,9 +67,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 9484c8d58cebf03c9d97eb609e22b50e552bd589..737aaae261c59bf792f15d3a392c05bf62d958d4 100755 (executable)
@@ -239,14 +239,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
         
@@ -260,7 +257,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 c019343bc20f172f078caae5963a2198f5fbc59b..5360619e4f90ce848bb453237be1692f21c60185 100755 (executable)
@@ -177,7 +177,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 ec6b3986a74888710d98bd2555260cda825b5da9..196fd56bea52961f09d74017c3b5e9ea6f792931 100755 (executable)
@@ -43,7 +43,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;
@@ -51,7 +53,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 3db5f89a964812b57c4ecbf1253b3d2bf334c396..1def366957fb2f9c99ab1db22d8f453717bb61af 100755 (executable)
@@ -704,15 +704,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 f22baeafd6bb49da14b1e124f88a8203aeee9252..96aef2dd008143726fc4a09418b29317a35b416a 100755 (executable)
@@ -726,7 +726,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 4c41df54accf1c28f2905f41baf872df3d59faea..42ef491250c15987a444c61cd17625e760dbcf3e 100755 (executable)
@@ -1238,22 +1238,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);
@@ -1345,7 +1334,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 ecedad555664ec00bf52e55c4ccb80c7576e80d0..5c355cb7da3700bdccd0a603c1577b09eae9b832 100755 (executable)
@@ -282,29 +282,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;
 }
 
@@ -782,9 +769,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 :
@@ -906,7 +890,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 ab1903479f81d746f5d55d599f72c1c7a17114b1..bd85dee1d5edc6d3bde9aa660d562031dbaf284f 100755 (executable)
@@ -44,7 +44,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;
@@ -52,7 +54,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 e9afc1499960012f58289ed549cc9483b5b7b6a3..9cac7c3c604fab6a2ba9f8a62cfe6e65089c88f5 100755 (executable)
@@ -160,11 +160,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;
 }
 
@@ -546,11 +541,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 2fb2e541ffec4c27f127d732626405d0f8036b6b..4ae9e973342f6313e64cb7fa2b76bb56c73dfb58 100755 (executable)
@@ -320,7 +320,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;
@@ -525,7 +525,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 5a3b41b52efed91aac93d3b774c25ac1e2811637..2c04c4d7d5d50f4f52325b3327e15607ecb73859 100755 (executable)
@@ -288,14 +288,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
  }
@@ -883,7 +883,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;
@@ -1487,13 +1487,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
  }
@@ -1829,13 +1829,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 ca334dc377194f1e468d258ae86f17d7887ebcbf..4546b370ce38d73f5472dace7f3045c1439ae903 100755 (executable)
@@ -305,13 +305,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
   } 
@@ -486,13 +486,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 0e0376e3b30f1777a7510bcd423d1655b4ccf787..3c6dc360086ca2fdaa61d46813de52d83cac04db 100755 (executable)
@@ -354,14 +354,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
   }
@@ -953,7 +953,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;
@@ -1078,7 +1078,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);  
@@ -1455,13 +1455,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
   }
@@ -1588,13 +1588,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
   }
@@ -1934,13 +1934,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 b3314956539d066d09900471ca1ab43563ca8e1a..52ac4248c4b8b0453aad0376be6570a9e4e936a4 100755 (executable)
@@ -306,7 +306,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 4d6e8f3487097863462e900a199d38110cfd6da0..2e06a6cb9472148527e78e002de49f997606d07f 100755 (executable)
@@ -158,7 +158,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 c9f6bf50f0ee4a36561d87d27f4913a082008207..656744a0fc7f8ec5d9744533560c09a1d165f648 100755 (executable)
@@ -256,7 +256,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());
@@ -287,7 +287,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));
@@ -342,7 +342,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());
@@ -494,16 +494,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 6aebf22f09a2ad748f2da8f5fb25b22b8ac6c40b..3ef7dd6a9a000ef16c9175160bc953e12afa5c95 100755 (executable)
@@ -568,7 +568,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;
@@ -599,7 +599,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
     }
@@ -615,7 +615,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 408310190628510cef187aa73c62ae5e271289c5..3eb3943384ef2bd58e7ad9398bf277efe4510fdf 100755 (executable)
@@ -1332,7 +1332,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
@@ -1377,7 +1377,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;
@@ -1597,7 +1597,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
     }
@@ -1662,7 +1662,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
     }
@@ -1724,7 +1724,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
     }
@@ -1748,7 +1748,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 = 
@@ -2340,12 +2340,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();
@@ -2879,7 +2879,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++){
@@ -2888,7 +2888,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;
@@ -2899,7 +2899,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 566af9e52c4b4e66f499907a6d47162b2b044d60..1cf57f357ed582f0ef0b57da340d064808a37e8b 100755 (executable)
@@ -278,7 +278,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;
@@ -293,7 +293,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  
        }
@@ -315,7 +315,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;
@@ -325,7 +325,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
     }
@@ -546,12 +546,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);
@@ -582,12 +582,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
 
@@ -619,12 +619,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
 
@@ -730,7 +730,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;
@@ -783,7 +783,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;
@@ -963,7 +963,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;
@@ -978,7 +978,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;
@@ -986,7 +986,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
       }
@@ -997,14 +997,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();
@@ -1014,7 +1014,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;
@@ -1095,7 +1095,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;
@@ -1110,7 +1110,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;
@@ -1118,7 +1118,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
       }
@@ -1129,14 +1129,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();
@@ -1145,7 +1145,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;
@@ -1225,7 +1225,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
@@ -1240,14 +1240,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
       }
@@ -1256,14 +1256,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();
@@ -1272,7 +1272,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;
@@ -1351,7 +1351,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
@@ -1366,14 +1366,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
       }
@@ -1382,14 +1382,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();
@@ -1398,7 +1398,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;
@@ -1547,7 +1547,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;
@@ -1580,7 +1580,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;
@@ -1596,7 +1596,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;
@@ -1607,7 +1607,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;
@@ -1632,7 +1632,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;
@@ -1640,14 +1640,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);
@@ -1655,7 +1655,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;
@@ -1665,13 +1665,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;
@@ -1686,13 +1686,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 18e7db28d186cacc4ebdc72d9fc4b62e30d510ff..02817d2b62e73833decbedac57522ca421ca8f69 100755 (executable)
@@ -1736,7 +1736,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;
     }
@@ -1745,7 +1745,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
@@ -3622,7 +3622,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
   }
@@ -3647,7 +3647,7 @@ Standard_Boolean ChFi3d_Builder::FindFace(const TopoDS_Vertex& V,
       }
     }
   }
-#ifdef DEB
+#ifdef CHFI3D_DEB
   if(!ContainsV){
     cout<<"FindFace : the extremity of the spine is not in the end face"<<endl;
   }
index 9bdbd459dffd37f95d9566fec701a5afb5185799..c19c12ff7683eb1ad1b41ea82490ca72788bb472 100755 (executable)
@@ -195,7 +195,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;
@@ -210,14 +210,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;
@@ -232,7 +232,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;
@@ -240,7 +240,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;
@@ -284,7 +284,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;
@@ -331,7 +331,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;
@@ -340,7 +340,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;
@@ -476,7 +476,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;
@@ -490,7 +490,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;
@@ -579,7 +579,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;
@@ -612,7 +612,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 a736a10ce02e3a66a949ea0ffd6a1a09e43be751..216a2b63b217eeda821ca2d514d975840f0cf2fa 100755 (executable)
@@ -519,7 +519,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);
@@ -1325,7 +1325,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 2a6960bdc9427b6135b89b7a830ac6fc62b4321e..c233ac88459087fb5c62d4e607a62a4386053366 100755 (executable)
@@ -271,14 +271,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;
@@ -516,7 +516,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;
@@ -686,7 +686,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;
@@ -712,7 +712,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;
@@ -754,7 +754,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;
@@ -976,7 +976,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
@@ -1071,7 +1071,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 7a28702d7da82a742a1359c4f84d2ab38718f3b5..747e7d2ca668396e66be7cb3921a671326c7caab 100755 (executable)
@@ -569,7 +569,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 9895d7940f842f86cf1d7c14c1de008d393272b9..b59e5fa440fc8f4cd1385672501c871f5e9d779c 100755 (executable)
@@ -1773,7 +1773,7 @@ void ChFi3d_FilBuilder::SplitSurf(ChFiDS_SequenceOfSurfData&    SeqData,
        }
       }
       else {
-# if DEB
+# if CHFI3D_DEB
        cout << "Failed calculation of the minimum length" << endl;
 # endif
       }
index b2e31b4124d54d307e4ab5707ca659716c8c8fca..3fee69173a7d4b62b071e5c3966475f9a8d91d90 100755 (executable)
@@ -296,7 +296,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);
@@ -318,14 +318,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 2d8eafe52ad8d23b8d6c935e26734b481a467c91..14274f25f95ec9c83b4638efa82271b5135c5cc3 100755 (executable)
@@ -178,7 +178,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())
@@ -196,7 +196,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;
@@ -351,7 +351,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
@@ -375,7 +375,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;
@@ -495,7 +495,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 74e24001a792c2ccfd47f893743fe57fadc05d98..225809d9b963352a5f4e96d0993f193a873011a7 100755 (executable)
@@ -139,7 +139,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;
@@ -153,7 +153,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; 
       } 
     }
@@ -165,7 +167,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));
@@ -197,7 +201,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 f7f69273ac2bc93e21fd53e7b96293db2bb6de61..ced21662415799150c172f0c0d740d5e36168e9d 100755 (executable)
@@ -155,7 +155,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;
     }
   }
@@ -409,7 +411,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 916afd377bd09ff6c2bb8b90afb5ba3b38da3232..d31362e2b45a1f3b2ddd1201dd00d0243d945154 100755 (executable)
@@ -137,7 +137,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 2401a289411cfd917531237911a3f1c7e31822a3..5c0894d5c11e2d042b015addd694058cdfcf1eb8 100755 (executable)
@@ -129,7 +129,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 eb3b6380238a6de783ce485c1bea8e91e04159ed..637fb82fd9cd777c9fc83659d6bd9e262df75125 100755 (executable)
@@ -91,7 +91,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
     ROff-=Radius;dedans = Standard_True;
   }
   else {
-#ifdef DEB
+#ifdef CHFIKPART_DEB
     cout<<"the fillet does not pass"<<endl; 
 #endif
     return Standard_False;
@@ -299,7 +299,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 6380e7b72b789e0ecb59a8cfa9cdcd579c541136..a94f2f857f4958e772e4a08c4b2154133becd954 100755 (executable)
@@ -90,7 +90,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 38d598c30829804509589b3ac670948f6cebd112..7d0e6c0e9ed551e6f85314969b4af59bcd66aa47 100755 (executable)
@@ -349,7 +349,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
@@ -399,7 +399,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 fbadd0ee45b72a3697ee841c8d680d585c158cd8..30555ba444af008524f02e4677eb85c63a65ec40 100755 (executable)
@@ -114,14 +114,14 @@ DBRep_IsoBuilder::DBRep_IsoBuilder (const TopoDS_Face&     TopologicalFace,
 
     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;
@@ -146,7 +146,7 @@ DBRep_IsoBuilder::DBRep_IsoBuilder (const TopoDS_Face&     TopologicalFace,
               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";
@@ -158,7 +158,7 @@ DBRep_IsoBuilder::DBRep_IsoBuilder (const TopoDS_Face&     TopologicalFace,
         {
           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
@@ -166,7 +166,7 @@ DBRep_IsoBuilder::DBRep_IsoBuilder (const TopoDS_Face&     TopologicalFace,
           }
           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
@@ -174,7 +174,7 @@ DBRep_IsoBuilder::DBRep_IsoBuilder (const TopoDS_Face&     TopologicalFace,
           }
           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
@@ -182,7 +182,7 @@ DBRep_IsoBuilder::DBRep_IsoBuilder (const TopoDS_Face&     TopologicalFace,
           }
           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 13356120e7d82e4cf43e8c5449f407890bde37e0..60634fd4dde8f84d1d69f4e04f00045d6dad6b7a 100755 (executable)
@@ -75,7 +75,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 83fbbf929217b6f30be7463b1b1f189602aba9f3..10e96455aaddedf9635a2d1b0d6d553f34700e9f 100755 (executable)
@@ -647,7 +647,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;
@@ -1347,7 +1347,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 8174246525d3b163f38419bf2f624f6d29574ee5..7a4b8db59e72fd2adde6b6f783eba8cce94c8545 100755 (executable)
@@ -1118,7 +1118,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 5cd8485ae51c0a8ff4f7c3119f5d19d0eb38d97c..c3899cbaf6268c2f1cbd2cf25ed98c04ce61728b 100755 (executable)
@@ -131,7 +131,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) { 
@@ -139,7 +141,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;
@@ -566,13 +570,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 3d4cd1a0888e6af02df345f7746a4359c8792523..cfce14182319b5282dd0bf3e1e5f4948f9e534dd 100644 (file)
@@ -109,7 +109,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);
@@ -120,7 +120,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);
@@ -130,7 +130,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;
index 829d6d40fcf1be21cb5fe46908b09c89a1a7b987..8de9df634fea8c0d5995815d16ac7a8e26f5974b 100644 (file)
@@ -85,7 +85,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);
@@ -93,7 +93,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);
@@ -101,7 +101,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);
@@ -125,7 +125,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 1c0a4a267563c881587a0d4d40cafcee1a6d63ad..b5a6a87f11129925c3e6e203698bbe78b65e299d 100644 (file)
@@ -84,7 +84,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);
@@ -97,7 +97,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;
@@ -107,7 +107,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);
@@ -117,7 +117,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 f710a5f4471c11fe0b2f30bc5e10cdfcf2d0de4f..72b4a96655b46910058bfee5dec5d8524e815fa5 100644 (file)
@@ -219,13 +219,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;  
 }
 
@@ -502,7 +504,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);
@@ -530,7 +532,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) {
@@ -558,13 +560,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
     }
@@ -629,7 +631,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;
@@ -687,7 +689,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
@@ -701,7 +703,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;
@@ -1010,7 +1012,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;   
@@ -1057,7 +1059,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;   
@@ -1900,7 +1902,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
        }
@@ -2036,7 +2038,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 fe0c2d24a4700e5de510844103e0d4cead693d58..318994e3f0717418cc53ebcbe959784c9e933418 100644 (file)
@@ -91,7 +91,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 3730410dc1df4260de117154f39369c5b24ec5a6..4b73a69def0f9866a723f4216245777ab4fc6f32 100644 (file)
@@ -85,7 +85,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);
@@ -102,7 +102,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 5e774a592dec850be8d19a2b86f598ea28ef771f..74eeb4476c4b16fcac2ca323d9073f736715a366 100644 (file)
@@ -116,7 +116,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);
@@ -343,7 +343,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 5836397a5df8da9a64f1abd62bd9d589f9328bec..cc94f780abd78d2c1828c7cdd3467638f0c8ed6a 100755 (executable)
@@ -139,7 +139,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 f31643168b77ec0a08962afd56f1bb3078f84b81..4200158b7956e4ae125ad7f60b336c94be59f0cf 100755 (executable)
@@ -183,7 +183,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
@@ -204,7 +204,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";
@@ -249,7 +249,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 a2ca0bff83516f9ad9f1a570c67e0b99fe1041d4..ce1c4d09b65198ae743b0a64d6789682b002551e 100755 (executable)
@@ -1381,7 +1381,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;
@@ -1400,7 +1400,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;
@@ -1614,7 +1614,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;     
@@ -1622,7 +1622,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;
@@ -1631,7 +1631,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
       IntAna_QuadQuadGeo i2s;
       i2s.Perform(NeutralPlane,Cy,Precision::Angular(),Precision::Confusion());
       if (!i2s.IsDone() || i2s.TypeInter() != IntAna_Circle) {
-#ifdef DEB
+#ifdef DRAFT_DEB
     cout << "NewSurfaceCyl:Draft_Intersection_Neutral_Cylinder_NotDone" << endl;
 #endif
        return NewS;
@@ -1668,7 +1668,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;     
@@ -1678,7 +1678,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;
@@ -1688,7 +1688,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;
@@ -1729,7 +1729,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     }
   }
   else {
-#ifdef DEB
+#ifdef DRAFT_DEB
     cout << "NewSurface:Draft_SurfNotYetImplemented" << endl;
 #endif
   }
index d654dd22e61e211e6fabfeb3017048de9daa2735..cf942dc3d8059ea7534d3e609fda14f03d2775d3 100755 (executable)
@@ -184,10 +184,6 @@ void Draw_Appli(Standard_Integer argc, char** argv,const FDraw_InitAppli Draw_In
     {
       aFunc (aUserDllPath.ToCString());
     }
-    else
-    {
-      //std::cerr << "SetDllDirectoryA() is not available on this system!\n";
-    }
     if (aKern32Module != NULL)
     {
       FreeLibrary (aKern32Module);
@@ -529,7 +525,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);
@@ -602,7 +598,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 41fa96e0e358313d36b99205e9d6480d9b57d972..557db7119a5be43517045b7e9a61f90ced5ff490 100755 (executable)
@@ -625,7 +625,7 @@ void Draw_Interpretor::Destroy()
     Tcl_Exit(0);
   }
   catch (Standard_Failure) {
-#ifdef DEB
+#ifdef DRAW_DEB
     cout <<"Tcl_Exit have an exeption" << endl;
 #endif
   }
index 61bc1c8a57489310ae61929f9b5665a4a2f0e3e1..45a9f13e401b7e2f36273f7db9b6dec6897b6cfd 100755 (executable)
@@ -53,7 +53,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
   }
@@ -87,7 +87,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() ) {
@@ -120,7 +120,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()));
@@ -128,7 +128,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;
@@ -216,12 +216,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
        
@@ -239,12 +239,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 0caae1af397e4044d967e9889527bc10532a5f44..b1bb0dbc8493837eabc7141a66d9499137e8b4f7 100755 (executable)
@@ -82,5 +82,7 @@ void DrawDim_PlanarDiameter::DrawOn(Draw_Display& dis) const
       return;
     }
   }  
+#ifdef DRAWDIM_DEB
   cout << " DrawDim_PlanarDiameter::DrawOn : dimension error" << endl;
+#endif
 }
index 237c9b4d83a57f07eebcbdc7225727ba03f35b8e..05c48c7b18a2989c88290d0a7a27666150d761b7 100755 (executable)
@@ -118,5 +118,7 @@ void DrawDim_PlanarDistance::DrawOn(Draw_Display& dis) const
       }
     }
   } 
+#ifdef DRAWDIM_DEB
   cout << " DrawDim_PlanarDistance::DrawOn : dimension error" << endl;
+#endif
 }
index 30994032599002c475b940a1c5f9fdb59b4281ff..2eef882ee38a691197092a8dc52a0886933bb9fd 100755 (executable)
@@ -80,5 +80,7 @@ void DrawDim_PlanarRadius::DrawOn(Draw_Display& dis) const
       return;
     }
   }  
+#ifdef DRAWDIM_DEB
   cout << " DrawDim_PlanarRadius::DrawOn : dimension error" << endl;
+#endif
 }
index 01e782e33a54218481c58f6b25eea67632067333..0b61acd1420bda8a3c86d9c11fcf4008dd8818f1 100755 (executable)
@@ -84,8 +84,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 7dea71241d281e6a6e2578a901b66378ce15414a..a43c5871ef55237c7fd753a2624ec02e875984d4 100755 (executable)
@@ -625,13 +625,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 03e5110a698723b6a0a3484ded9ea5aadbd621f8..7e10eb6884cd386b91cea6e8b71f640a52dc78f8 100644 (file)
@@ -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 5cc6f50a3269788b6841012644c1c5c4a4ff3d14..e32a7d618545bbc1b9493f62853d69825cfbcb53 100755 (executable)
@@ -78,7 +78,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
       myAlong.SetValue(2,IsQPunctual(BS,V2,GeomAbs_IsoV,TolMin,Tol));
       myAlong.SetValue(3,IsQPunctual(BS,U1,GeomAbs_IsoU,TolMin,Tol));
       myAlong.SetValue(4,IsQPunctual(BS,U2,GeomAbs_IsoU,TolMin,Tol));
-#ifdef DEB
+#ifdef GEOM_DEB
       cout<<myAlong(1)<<endl<<myAlong(2)<<endl<<myAlong(3)<<endl<<myAlong(4)<<endl;
 #endif
       if (myAlong(1) || myAlong(2) || myAlong(3) || myAlong(4)) 
@@ -111,7 +111,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
            {
              InitSurf = Handle(Geom_BSplineSurface)::DownCast(myBasisSurf);
            }
-#ifdef DEB
+#ifdef GEOM_DEB
          cout<<"UDEG: "<<InitSurf->UDegree()<<endl;
          cout<<"VDEG: "<<InitSurf->VDegree()<<endl;
 #endif
@@ -139,7 +139,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                              OsculSurf  = BuildOsculatingSurface(V1,UKnot,VKnot,S,L);
                              if(!OsculSurf) break;
                              k++;
-#ifdef DEB
+#ifdef GEOM_DEB
                              cout<<"1.k = "<<k<<endl;
 #endif
                              IsQPunc=IsQPunctual(L,V1,GeomAbs_IsoV,0.,Tol);
@@ -163,7 +163,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                                  OsculSurf = BuildOsculatingSurface(V2,UKnot,VKnot,S,L);
                                  if(!OsculSurf) break;
                                  k++;
-#ifdef DEB
+#ifdef GEOM_DEB
                                  cout<<"2.k = "<<k<<endl;
 #endif
                                  IsQPunc=IsQPunctual(L,V2,GeomAbs_IsoV,0.,Tol);
@@ -189,7 +189,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                              OsculSurf = BuildOsculatingSurface(V2,UKnot,VKnot,S,L);
                              if(!OsculSurf) break;
                              k++;
-#ifdef DEB
+#ifdef GEOM_DEB
                              cout<<"2.k = "<<k<<endl;
 #endif
                              IsQPunc=IsQPunctual(L,V2,GeomAbs_IsoV,0.,Tol);
@@ -222,7 +222,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                              OsculSurf = BuildOsculatingSurface(U1,UKnot,VKnot,S,L);
                              if(!OsculSurf) break;
                              k++;
-#ifdef DEB
+#ifdef GEOM_DEB
                              cout<<"1.k = "<<k<<endl;
 #endif
                              IsQPunc=IsQPunctual(L,U1,GeomAbs_IsoU,0.,Tol);
@@ -244,7 +244,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                                  OsculSurf  = BuildOsculatingSurface(U2,UKnot,VKnot,S,L);
                                  if(!OsculSurf) break;
                                  k++;
-#ifdef DEB
+#ifdef GEOM_DEB
                                  cout<<"2.k = "<<k<<endl;
 #endif
                                  IsQPunc=IsQPunctual(L,U2,GeomAbs_IsoU,0.,Tol);
@@ -269,7 +269,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                              OsculSurf  = BuildOsculatingSurface(U2,UKnot,VKnot,S,L);
                              if(!OsculSurf) break;
                              k++;
-#ifdef DEB
+#ifdef GEOM_DEB
                              cout<<"2.k = "<<k<<endl;
 #endif
                              IsQPunc=IsQPunctual(L,U2,GeomAbs_IsoU,0.,Tol);
@@ -447,7 +447,7 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
 {
   Standard_Integer i, j;
   Standard_Boolean OsculSurf=Standard_True;
-#ifdef DEB
+#ifdef GEOM_DEB
   cout<<"t = "<<Param<<endl;
   cout<<"======================================"<<endl<<endl;
 #endif
@@ -460,7 +460,7 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
   vdeg = BS->VDegree();
   if( (IsAlongU() && vdeg <=1) || (IsAlongV() && udeg <=1))
   {
-#ifdef DEB
+#ifdef GEOM_DEB
       cout<<" surface osculatrice nulle "<<endl;
 #endif
       //Standard_ConstructionError::Raise("Geom_OsculatingSurface");
@@ -503,7 +503,7 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
       Standard_Integer OscUNumCoeff=0, OscVNumCoeff=0;
       if (IsAlongU()) 
       {
-#ifdef DEB
+#ifdef GEOM_DEB
         cout<<">>>>>>>>>>> AlongU"<<endl;
 #endif
         OscUNumCoeff = (Standard_Integer ) udeg + 1;  
@@ -511,7 +511,7 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
       }
       if (IsAlongV()) 
       {
-#ifdef DEB
+#ifdef GEOM_DEB
         cout<<">>>>>>>>>>> AlongV"<<endl;
 #endif
         OscUNumCoeff = (Standard_Integer ) udeg;  
@@ -650,7 +650,7 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
                                Data.UDegree(),
                                Data.VDegree(),
                                0, 0);
-#ifdef DEB
+#ifdef GEOM_DEB
       cout<<"^====================================^"<<endl<<endl;
 #endif
 
@@ -687,7 +687,7 @@ Standard_Boolean Geom_OsculatingSurface::IsQPunctual
         D1NormMax=Max(D1NormMax,D1U.Magnitude());
       }
 
-#ifdef DEB
+#ifdef GEOM_DEB
       cout << " D1NormMax = " << D1NormMax << endl;
 #endif
       if (D1NormMax >TolMax || D1NormMax < TolMin ) 
@@ -702,7 +702,7 @@ Standard_Boolean Geom_OsculatingSurface::IsQPunctual
        S->D1(Param,T,P,D1U,D1V);
         D1NormMax=Max(D1NormMax,D1V.Magnitude());
       }
-#ifdef DEB
+#ifdef GEOM_DEB
       cout << " D1NormMax = " << D1NormMax << endl;
 #endif
       if (D1NormMax >TolMax || D1NormMax < TolMin ) 
index d5d64820803c4e771f120995e327e459da58ba05..1141aabf6eb22813b9500914f51a1f20708f5bab 100755 (executable)
@@ -222,7 +222,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
        }
@@ -566,23 +566,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 862bae8d2005e55fd48962f2365ee0a665025657..15607c8d4e73eaa21a1c7065d1734476c950461a 100755 (executable)
@@ -148,7 +148,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
@@ -176,7 +176,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 7a4c61a60d1c828519c3a8bd43519c743b76e810..b8a3363d2cdcc55a046625d9c1a8f445fc53cb91 100755 (executable)
@@ -125,7 +125,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 fa0f40e7945513bf4b80caba71387470811127e6..30c205c432a86f70ea51cadd03bb3fc5da4423e1 100755 (executable)
@@ -370,7 +370,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;
@@ -381,7 +381,7 @@ static void InGoodPeriod(const Standard_Real Prec,
           theV = PInt.V();
        }  
        else {
-#if DEB
+#if GEOMFILL_DEB
          cout << "Echec du Ratrappage !" << endl;
 #endif
        }
@@ -427,7 +427,7 @@ static void InGoodPeriod(const Standard_Real Prec,
        }
       }
       
-#if DEB                
+#if GEOMFILL_DEB               
       if (Abs(Diff) > DeltaG) {
        cout << "Location :: Diff on Guide : " << 
          Diff << endl;
@@ -443,7 +443,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;
       } 
@@ -459,7 +459,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) > DeltaU) {
        cout << "Diff sur section trop grand !!" << endl;
       } 
index 98a1f33ea0cedf194c9d92295fa750c65d290aef..b7549bab6463ca1405221719d25e345c6bb55fec 100755 (executable)
@@ -55,7 +55,7 @@
 #include <gp_Lin.hxx>
 #include <gp_Circ.hxx>
 
-#ifdef DEB
+#ifdef GEOMFILL_DEB
 # ifdef DRAW
 #  include <DrawTrSurf.hxx>
 # endif
@@ -63,7 +63,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,
@@ -367,7 +367,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;
@@ -461,7 +461,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;
@@ -623,7 +623,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 8012694d6ce2b82c1838e971e6cefae5ab5eb7c2..6e0b43998e4d119836a75f4ba46466a6d7aff41b 100755 (executable)
@@ -502,7 +502,7 @@ void GeomFill_Pipe::Init(const Handle(Geom_Curve)& Path,
     }
 
   case GeomFill_IsDarboux :
-#if DEB
+#if GEOMFILL_DEB
     {
       cout << "Option Darboux: non realisable" << endl; 
     }
@@ -883,7 +883,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 f4ca11959de52ab6cae09a608bfd914555c7417a..1a44d7caa33d81ede7c9492f065adb1a1cad6273 100755 (executable)
@@ -359,7 +359,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 748c4bf5a34f26b55a7c31e01f0a504f3a3e44ed..2de89bd5327349ac49d6530a07270c57bb63cec9 100755 (executable)
@@ -326,7 +326,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);
@@ -840,7 +840,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 4eef276252de59e6be8a33940f84ef86cc7578a3..59875532575f831cd4927c381646913e24919e3d 100755 (executable)
@@ -72,7 +72,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 8c072cc3d93b313318d59f2f4d0cba0f4b1910e0..1a64acfe37d7b4abc6a7dc8ad08205afd09c3182 100755 (executable)
@@ -64,7 +64,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;
@@ -101,7 +101,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 992b6ccebae8b2aae96a8a8e8f126a8da2791556..8b1e667b3675a3725574f68ffacff79b021c3401 100755 (executable)
@@ -78,7 +78,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
@@ -119,7 +119,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 = 
@@ -137,7 +137,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 c2249cbea93cd38832659bdf86e3f5f7f1ef10d1..65b8cfced75bdbddaa69ddb798eeaa651f5f0cc4 100755 (executable)
@@ -73,7 +73,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 5737f1fc29ccd3f432c2504763716c011bc1d04c..bcaa32ee888ce40789c09ea1ab7308d8096ceb36 100755 (executable)
@@ -826,7 +826,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 ffebaf43cefce1f15897df877874f33b3d92efe8..4115b20f159fdb8fb7d65bc43ba685c8cc227e37 100755 (executable)
@@ -846,7 +846,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 ec321c2213391200690f3b017a8d263ffd03d6d6..53b074070506091d092a1d643ae87c9403d48fd5 100755 (executable)
@@ -1036,7 +1036,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 f8eeeb69c066779937fde866ceff7a679ac01078..5d90f9485678a463501d49de2512afb0cb5f3210 100755 (executable)
@@ -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 71a80049ba0adfef1e76025702fcf295600502fa..227bcc16b548aeab9dae01c77c71c0aa89cb39fd 100755 (executable)
@@ -428,7 +428,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);
@@ -473,7 +473,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 831caad9ae57227b25677b0a057a131bcb8989e7..61d4e71fd11e2dc9c29d0047627a91646d2bb659 100755 (executable)
@@ -644,7 +644,7 @@ void Graphic3d_Structure::GroupsWithFacet (const Standard_Integer ADelta) {
   MyCStructure.ContainsFacet = MyCStructure.ContainsFacet + ADelta;
   if (MyCStructure.ContainsFacet < 0) MyCStructure.ContainsFacet = 0;
 
-#ifdef DEBUG
+#ifdef GRAPHIC3D_DEB
   cout << "MyCStructure.ContainsFacet " << MyCStructure.ContainsFacet;
   cout << endl << flush;
 #endif
index 4f1795ab5f01872595c545008459481c7e1283ec..a3f91f1297c481efa54e1777a62108d152479a92 100755 (executable)
@@ -60,8 +60,10 @@ TCollection_AsciiString Graphic3d_TextureRoot::TexturesFolder()
 
     if (VarName.IsEmpty())
     {
+#ifdef GRAPHIC3D_DEB
       std::cerr << " CSF_MDTVTexturesDirectory and CASROOT not setted\n";
       std::cerr << " one of these variable are mandatory to use this functionality\n";
+#endif
       Standard_Failure::Raise ("CSF_MDTVTexturesDirectory and CASROOT not setted");
       return VarName;
     }
@@ -72,8 +74,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 5f4ee8ceabeb302736aed69d208e86aca2f60829..071d6c34b5e37b80ed0e58acf6fcdcd140a489c8 100755 (executable)
@@ -205,7 +205,7 @@ public:
   }
   //-- ============================================================
   void SetDim(const Standard_Integer n) {
-#ifdef DEB
+#ifdef HLRBREP_DEB
     cout<<"\n@#@#@#@#@# SetDim "<<n<<endl;
 #endif
     if(UV) 
@@ -1379,7 +1379,7 @@ void HLRBRep_Data::NextInterference ()
                  }
                  else {
                    myNbPoints = myNbSegments = 0;
-#ifdef DEB
+#ifdef HLRBREP_DEB
                    cout << "HLRBRep_Data::NextInterference : "; 
                    if (myLE == myFE) 
                      cout << "Edge " << myLE 
@@ -1545,7 +1545,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
     }
@@ -1553,7 +1553,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
   }
@@ -1618,7 +1618,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
@@ -1701,7 +1701,7 @@ HLRBRep_Data::OrientOutLine (const Standard_Integer I,
            (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;
@@ -1714,7 +1714,7 @@ HLRBRep_Data::OrientOutLine (const Standard_Integer I,
          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;
@@ -1736,7 +1736,7 @@ HLRBRep_Data::OrientOutLine (const Standard_Integer I,
          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 44b8338305a3f88c8a27846d36a9a950153b1298..f19205a2e5bf534775b36e5094e6aa9fc3395d4e 100755 (executable)
@@ -587,7 +587,7 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
     }
 
     catch(Standard_Failure) {
-#ifdef DEB
+#ifdef HLRBREP_DEB
       cout << "An exception was catched when hiding edge " << E;
       cout << " by the face " << FI << endl;
       Handle(Standard_Failure) fail = Standard_Failure::Caught();
index 4d02250e39b8e1cbd184bf992a9606d8a30b7e96..62e41e2c642ff19ac3382c5799fcbf93c62aacfa 100755 (executable)
@@ -1286,7 +1286,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;
@@ -1338,7 +1338,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;
@@ -1456,7 +1456,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;
@@ -1905,7 +1905,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;
@@ -1943,7 +1943,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;
@@ -2068,7 +2068,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;
@@ -2082,7 +2082,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;
@@ -2125,7 +2125,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;
@@ -2139,7 +2139,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;
@@ -2289,7 +2289,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;
@@ -2303,7 +2303,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;
@@ -2346,7 +2346,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;
@@ -2360,7 +2360,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 4e4500134067d591cadd87808275cb78e1ae48b7..073eb7ba63e6403915327e9498a91ccf0bb59536 100755 (executable)
@@ -46,7 +46,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 1a2f5cb5ad75862053196461018414a82a972cd3..8b10484acca4ded3030eb8bd64f14f90634768f7 100755 (executable)
@@ -139,7 +139,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 f83c0f49235c57d3433b216111591186d2be39ed..8b58faa308a0326f264ed9793665bdac0c5a0100 100755 (executable)
@@ -317,11 +317,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 ef2e2837e874105e238a844d6affca697e96dad5..77047620b9c2d43d2199b0773c4c8199efb600e7 100755 (executable)
@@ -310,7 +310,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
          }
@@ -330,19 +330,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;
@@ -353,7 +353,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 db7553fcebc2b4191023809907743bff62de5acd..fa78e312964048517087216a1b5af21ca5c20dd8 100755 (executable)
@@ -249,7 +249,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)
@@ -257,12 +257,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;
@@ -273,7 +273,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 24e2ed199770dd6a43dea779ad9b714a7e11cc3e..90a65943377e4dca5f0e020a9376352ef756591f 100755 (executable)
@@ -36,7 +36,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 c2c531fc8f462050b0631f9277f484c672dba8bb..7ef3e547fab8a69617cd1edb1fcd26b1c1873fe8 100755 (executable)
@@ -48,7 +48,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 9aabe26570bc1b20f34a17587645261fceb23090..ab5578d55c4f0e800c2cea0b0c8df0e88a6e31a4 100755 (executable)
@@ -336,14 +336,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 fe86fdedef3b13c0d02fe8e99c29644a72e62ae8..6053f8071905e1b5ab0cc0e640a7ebb76e1f467a 100755 (executable)
@@ -234,7 +234,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
@@ -297,7 +297,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
@@ -1105,7 +1105,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 562a17364f501ffc0c6ffabfda5d714ebbb70576..93ecff56e8ff2f7f5a19e90b7af61d8a61450fb8 100755 (executable)
@@ -225,7 +225,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 06cd79568c98336d6e436840a159dad586aa121c..5c82d483625f72f3f61ebaa9f9f1235cb894bafc 100755 (executable)
@@ -787,7 +787,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;
 #endif
@@ -914,7 +914,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
@@ -1264,7 +1264,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 3de0eb6414604542ed0f8699155c1ea5fee2f0fc..f7350d45e81139b9853e1b0f734caf0bc14d009d 100644 (file)
@@ -356,7 +356,9 @@ bool Image_AlienPixMap::Save (const TCollection_AsciiString& theFileName)
   FREE_IMAGE_FORMAT anImageFormat = FreeImage_GetFIFFromFilename (theFileName.ToCString());
   if (anImageFormat == FIF_UNKNOWN)
   {
+#ifdef IMAGE_DEB
     std::cerr << "Image_PixMap, image format doesn't supported!\n";
+#endif
     return false;
   }
 
@@ -496,7 +498,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 f9249ee87693531439510054fdef4bdff72fa9e6..7d0c028f9d9d3be948597349303cdd5eb622b686 100644 (file)
@@ -156,18 +156,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;
   }
 
@@ -215,7 +221,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 29c79e4bda8d03a0105d13e24cccdc69a117e6e0..704271702f2e959f204406979fa5db2e3291eaab 100755 (executable)
@@ -1924,7 +1924,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;
@@ -2051,7 +2051,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 27ae51f8156741e81e31702d3b0733285d883286..c96671002d9c110a05e0d1cccff1b9e4ea69afe9 100755 (executable)
@@ -201,16 +201,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 31a93b8c62baff97c8c4ddc7ad7ad106e4dabf94..e62bffab58e1c2104b3468b895661df63f249e65 100755 (executable)
@@ -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;
index 89b3557eae3e87157efe4c1a007b2b32691573e8..d53852842ac875b05bd545bb615b8ca3cddc41d9 100755 (executable)
@@ -1230,11 +1230,6 @@ void IntPatch_RstInt::PutVertexOnLine (Handle(IntPatch_Line)& L,
     wlin->ComputeVertexParameters(Tol);
   }
   else {
-#ifdef DEB
-    //if(rlin->NbVertex()==0) { 
-    //  cout<<" \n *** IntPatch RstInt.gxx  : nbvtx = 0 sur rline *** \n"<<endl;
-    //}
-#endif
     rlin->ComputeVertexParameters(Tol);
   }
 }
index 606ac41f307496f8a8d202a33b067fc3b0af97a6..5550b8c1a94f39ad31e4595839635544b41131f7 100755 (executable)
@@ -241,9 +241,6 @@ void BoundedArc (const TheArc& A,
       }
     }
     if(aelargir && maxdist<0.01) { 
-#ifdef DEB 
-      //--    cout<<"\n Tolerance elargie a "<<maxdist<<" dans IntStart_SearchOnBoundaries_1.gxx"<<endl;
-#endif
     }
     else { 
       maxdist = TolBoundary;
index 61b23c5a7eae67e01d66f52d436deffb5e61375e..2e9d0e9c38440fd555515308d59b76c467e08ef0 100755 (executable)
@@ -684,7 +684,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 a2614394eae49604bd5193107627f707352e0190..46ebd2be89d3a63d0dfd0c6233ecb86c4daa5e60 100755 (executable)
@@ -802,7 +802,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
            // See grid CTO 909 A1 which infinitely loops 
            if(Arrive==Standard_False && Status==IntWalk_ArretSurPoint) { 
              Arrive=Standard_True;
-#ifdef DEB
+#ifdef INTWALK_DEB
              cout << "Compile avec option DEB :Si Pb d intersection : ";
              cout << "IntWalk_PWalking_1.gxx (lbr le 1erdec98)"<<endl;
 #endif
@@ -1076,7 +1076,7 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop
     nbIterWithoutAppend++;
 
     if((nbIterWithoutAppend > 20) || (nbEqualPoints > 20)) {
-#ifdef DEB
+#ifdef INTWALK_DEB
       cout<<"Compile with option DEB:";
       cout<<"Infinite loop has detected. Stop iterations (IntWalk_PWalking_1.gxx)" << endl;
 #endif
index b04f7136ce2d6cff81aab14464661063f600deca..033cdc4a3177f6e8fdbd1ba921fd46d9301e4f2e 100755 (executable)
@@ -162,7 +162,7 @@ Standard_Boolean IntWalk_PWalking::
        close = (P1.XYZ() - previousPoint.Value().XYZ())*
          (P1.XYZ() - myIntersectionOn2S.Point().Value().XYZ()) < 0;  
        if(close != close2d) { 
-#ifdef DEB
+#ifdef INTWALK_DEB
          cout<<"\n PWalking_4 TestArret - close2d"<<close2d<<endl;
 #endif
        }
index 7b43d645844ec1fdf4ae13ae4311cf9001c77dbd..62c44214ba5b63b2dababbd9a371e8950396b1aa 100755 (executable)
@@ -306,7 +306,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 "";
@@ -319,7 +319,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;
@@ -332,7 +332,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 15dd4e812631971ff0c7102ba4b28a6bed38998f..4f63224f3b98537e9afcb9c068499a018cd8f831 100755 (executable)
@@ -239,7 +239,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 5c043a493d2d646abaa9e942329142a3e6e19532..c8d425fee808a248647bd357e495836d14a07326 100755 (executable)
@@ -420,7 +420,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 215f5a2445b36bfcfc3a3842a3d15e93ebd521b7..5cc61ef412bab236d63f09e41ac8777b57009b36 100755 (executable)
@@ -158,7 +158,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
 
@@ -210,7 +210,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);
@@ -293,7 +293,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
              }
 
              if (IsSame) {
-#ifdef DEB
+#ifdef LOCOPE_DEB
                cout <<"memes bsplines."<< endl;
 #endif
                myLFrom.Append(edgf);
@@ -353,7 +353,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 a3758818d9decdc295be0b85d1359e88f84e4477..3d39c31dcd9d43dc12a4a15a13c732ce480efa43 100755 (executable)
@@ -1262,7 +1262,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 87cfbbbf2dc7425e310c859f600ab09ee7dab137..b787e9824ec7fb4e75333519a8e23b1308e511c1 100755 (executable)
@@ -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;
@@ -1164,7 +1164,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;
   }
@@ -1281,7 +1281,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 9f23592c1a8702c16d219ca91ad66ac707ddd10e..30db252782632efaf44a882954b699747e512bfd 100755 (executable)
@@ -296,7 +296,7 @@ void LocOpe_Spliter::Perform(const Handle(LocOpe_ProjectedWires)& PW)
       theSubs.Substitute(ebase.Oriented(TopAbs_FORWARD),lsubs);
     }
     else {
-#ifdef DEB
+#ifdef LOCOPE_DEB
       cout << "Pb pour substitution" << endl;
 #endif
     }
index 92bf22ec82a461b4414ff4199f42be82ca667434..c0c17902275ece0251fefe369fa3c5311052abed 100755 (executable)
@@ -143,7 +143,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 =
@@ -156,7 +156,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 =
@@ -408,7 +408,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 860f2d43e6ad3f78cb5a8c4c4af47e820761be13..47e68f6fb31bfca0596a4ed9432474a41556baa3 100755 (executable)
@@ -182,14 +182,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 e9d273752d6df8e4c16c7619c422d1d3abf62266..6f88db49fbbb6ab098df4b1f3f3be8ba562fac73 100755 (executable)
@@ -72,7 +72,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 b770cde7939a1f32d64c7525257a59e8f7ff5b1a..eff3472cf7b472ce347de17efbbf2a2ff43ce08e 100755 (executable)
@@ -74,7 +74,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 7161f7906c7c00681cac0984041d4cd752b7a768..f70e698237c9afffb773a6bf00b9247353b298a0 100755 (executable)
@@ -88,7 +88,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 b5db77308ceef49785b7088e9e9db78e377f5dd4..f8d4a96791011c733dfb199ad54ef02105f13168 100755 (executable)
@@ -80,7 +80,9 @@ Materials_MaterialsDictionary::Materials_MaterialsDictionary()
   ifstream file(filename);
   if(!file)
     {
+#ifdef MATERIALS_DEB
       cout<<"unable to open "<<filename<<" for input"<<endl;
+#endif
       return;
     }
   
index 4e02cc8084db0f1ff3e54fe16ffc8dcb5db7fb1f..f48c824d171e44b24f47b56d7189d0b4b1213487 100755 (executable)
@@ -61,7 +61,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;
@@ -78,7 +78,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 4b61e400288ec5328d80d3ee29e5c58373646793..f9b09a7330e1c456baa8cba8f3636f1903c6fc33 100755 (executable)
@@ -70,7 +70,9 @@ Message_PrinterOStream::Message_PrinterOStream (const Standard_CString theFileNa
     }
     else {
       myStream = &cout;
+#ifdef MESSAGE_DEB
       cerr << "Error opening " << theFileName << endl << flush;
+#endif
     }
   }
 }
index acc30cceced53fcf6f2807b3c7b6e17d950c772b..1f3d1d2df8d82e82c222a2c028776d2bf0bfa683 100755 (executable)
@@ -797,7 +797,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
@@ -861,7 +863,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");
 
   }
@@ -1276,7 +1280,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");
 
   }
@@ -1351,7 +1357,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 107921fa674b727b8013c13340466b655e2a8b60..73f6619a3cc81e2857bea2498984b62b804da0da 100755 (executable)
@@ -570,7 +570,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
@@ -634,7 +636,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 bbbbc71c74dca148c4bf988644adddc0c92e86a8..3532f258f6afc5a7b4caf344404f72f360c2367d 100755 (executable)
@@ -1045,7 +1045,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 aed1864c62bc3f4b09ae14a4681b736b097bbe9d..f8fc9ea056cc8ec2234be5ca059649b7e619d4a8 100755 (executable)
@@ -212,7 +212,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 bc4156fccb879a0d40096d9f2475b1634cdd1902..e7e11704d15359eaee33ab086a84e938a74b0c2b 100755 (executable)
@@ -376,7 +376,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 0262971c48e3d97e52a0db333c20dc1775169006..969fa4fa5d6dfb5d2080696d17e45877437700a1 100644 (file)
@@ -296,7 +296,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;
   }
   int anExtNameLen = strlen (theExtName);
@@ -323,7 +325,9 @@ Standard_Boolean OpenGl_Context::CheckExtension (const char* theExtName) const
   const char* anExtString = (const char* )glGetString (GL_EXTENSIONS);
   if (anExtString == NULL)
   {
+#ifdef OPENGL_DEB
     std::cerr << "glGetString (GL_EXTENSIONS) returns NULL! No GL context?\n";
+#endif
     return Standard_False;
   }
 
index 57be18606ff1df6e436744e3de5d7bc0bd2d4efc..e136ebd6ab6bf4e3546c9d9bad5bd68342e1064f 100644 (file)
@@ -227,7 +227,7 @@ void OpenGl_Display::Init()
     int aDummy;
     if (!XQueryExtension ((Display* )myDisplay, "GLX", &aDummy, &aDummy, &aDummy))
     {
-    #ifdef DEBUG
+    #ifdef OPENGL_DEB
       std::cerr << "This system doesn't appear to support OpenGL\n";
     #endif
     }
index 1dd334d91125666c321d914ccaa9bebc2a6d5eb6..a9d5d32f7891d318b8e2c2f009b75529c2caf2c3 100644 (file)
@@ -59,7 +59,7 @@ Standard_Boolean OpenGl_FrameBuffer::Init (const Handle(OpenGl_Context)& theGlCo
 {
   if (theGlContext->extFBO == NULL)
   {
-  #ifdef DEB
+  #ifdef OPENGL_DEB
     std::cerr << "OpenGl_FrameBuffer, FBO extension not supported!\n";
   #endif
     return Standard_False;
@@ -121,7 +121,7 @@ Standard_Boolean OpenGl_FrameBuffer::Init (const Handle(OpenGl_Context)& theGlCo
   UnbindTexture();
   theGlContext->extFBO->glBindRenderbufferEXT (GL_RENDERBUFFER_EXT, NO_RENDERBUFFER);
 
-  #ifdef DEB
+  #ifdef OPENGL_DEB
     std::cerr << "OpenGl_FrameBuffer, created FBO " << mySizeX << "x" << mySizeY
               << " for viewport " << theViewportSizeX << "x" << theViewportSizeY << "\n";
   #endif
@@ -137,10 +137,12 @@ void OpenGl_FrameBuffer::Release (const Handle(OpenGl_Context)& theGlContext)
       theGlContext->extFBO->glDeleteRenderbuffersEXT (1, &myGlDepthRBId);
       myGlDepthRBId = NO_RENDERBUFFER;
     }
+#ifdef OPENGL_DEB
     else
     {
       std::cerr << "OpenGl_FrameBuffer::Release() called with invalid OpenGl_Context!\n";
     }
+#endif
   }
   if (IsValidTexture())
   {
@@ -155,10 +157,12 @@ void OpenGl_FrameBuffer::Release (const Handle(OpenGl_Context)& theGlContext)
       theGlContext->extFBO->glDeleteFramebuffersEXT (1, &myGlFBufferId);
       myGlFBufferId = NO_FRAMEBUFFER;
     }
+#ifdef OPENGL_DEB
     else
     {
       std::cerr << "OpenGl_FrameBuffer::Release() called with invalid OpenGl_Context!\n";
     }
+#endif
   }
 }
 
index ff170916eb28270085d460304febf60231d644b2..c3e30011d32d43f0c28eba8830dcaa114164d8d4 100755 (executable)
@@ -104,7 +104,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
@@ -125,7 +125,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 a4940037d3dca6c743eaf41d03b19e3906e5fcff..c6e8f73ca97bfa1496d849ff11a821eed6f2b647 100755 (executable)
@@ -53,7 +53,9 @@ Handle(Standard_Transient) Plugin::Load(const Standard_GUID& aGUID)
     if(!PluginResource->Find(theResource.ToCString())) {
       Standard_SStream aMsg; aMsg << "could not find the resource:";
       aMsg << theResource.ToCString()<< endl;
+#ifdef PLUGIN_DEB
       cout << "could not find the resource:"<<theResource.ToCString()<< endl;
+#endif
       Plugin_Failure::Raise(aMsg);
     }
     
@@ -78,7 +80,9 @@ Handle(Standard_Transient) Plugin::Load(const Standard_GUID& aGUID)
       aMsg << PluginResource->Value(theResource.ToCString());
       aMsg << "; reason:";
       aMsg << error.ToCString();
+#ifdef PLUGIN_DEB
       cout << "could not open: "  << PluginResource->Value(theResource.ToCString())<< " ; reason: "<< error.ToCString() << endl;
+#endif
       Plugin_Failure::Raise(aMsg);
     }
     f = theSharedLibrary.DlSymb("PLUGINFACTORY");
index b1e117918547514c5622530761d7f0c23f4754a8..4bbca0f1528051ee007b3053d6d94ad70bebcfed 100755 (executable)
@@ -295,7 +295,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)();
   }
 
@@ -359,7 +361,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)();
   }
 
@@ -412,7 +416,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 5d32f2514ae1943e6ed7a0adf023c0a0c592323b..f48ef4a07d49f7745c9b68c24722c030b77f2c37 100755 (executable)
@@ -715,7 +715,7 @@ static Standard_Boolean InitialPoint(const gp_Pnt& Point,
          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, 
@@ -788,7 +788,7 @@ static Standard_Boolean InitialPoint(const gp_Pnt& Point,
              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 207a523c0eb3b1683ff0ee1245563267a8f1c736..72638c6f33507c90e221185d396b3c399b6b78e3 100755 (executable)
@@ -1590,7 +1590,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 88359b08eaa34096a08784b7a3d910bf068fe186..ae1b5584bc231c3bb8b909fb2b99b559cac5f39f 100755 (executable)
@@ -240,7 +240,7 @@ void Prs3d_WFShape::Add(const Handle (Prs3d_Presentation)& aPresentation,
            }
            catch (Standard_Failure)
            {
-#ifdef DEB
+#ifdef PRS3D_DEB
              const TopoDS_Face& FF = S.Face();
              cout <<"probleme pour les isos de la face "<< (void*) &(*(FF).TShape()) << endl;
 #endif
@@ -273,7 +273,7 @@ void Prs3d_WFShape::Add(const Handle (Prs3d_Presentation)& aPresentation,
            }
            catch (Standard_Failure)
            {
-#ifdef DEB
+#ifdef PRS3D_DEB
              const TopoDS_Face& FF = S.Face();
              cout <<"probleme pour les isos de la face "<< (void*) &(*(FF).TShape()) << endl;
 #endif
@@ -446,7 +446,7 @@ void Prs3d_WFShape::Add(const Handle (Prs3d_Presentation)& aPresentation,
       }
       catch(Standard_Failure)
       {
-#ifdef DEB
+#ifdef PRS3D_DEB
        cout <<"probleme sur l'edge "<< (void*) &(*(E).TShape()) << endl;
 #endif
       }
@@ -474,7 +474,7 @@ void Prs3d_WFShape::Add(const Handle (Prs3d_Presentation)& aPresentation,
        }
        catch(Standard_Failure)
        {
-#ifdef DEB
+#ifdef PRS3D_DEB
          cout <<"probleme sur l'edge "<< (void*) &(*(E).TShape()) << endl;
 #endif
        }  
@@ -504,7 +504,7 @@ void Prs3d_WFShape::Add(const Handle (Prs3d_Presentation)& aPresentation,
       }
       catch(Standard_Failure)
       {
-#ifdef DEB
+#ifdef PRS3D_DEB
        cout <<"probleme sur l'edge "<< (void*) &(*(E).TShape()) << endl;
 #endif
       }
index 38004c60ffb3a608affac860bfdd0503611ac3ba..88e126d7d7bf5b423e21a529ea73f3ce8420280b 100755 (executable)
@@ -154,7 +154,7 @@ void PrsMgr_Presentation3d::SetShadingAspect(const Handle(Prs3d_ShadingAspect)&
 Handle(Graphic3d_Structure) PrsMgr_Presentation3d::
 Compute(const Handle(Graphic3d_DataStructureManager)& aProjector)
 {
-#ifdef DEB
+#ifdef PRSMGR_DEB
   cout<<"passage in g = Compute(P) "<<endl;
 #endif
   Handle(Prs3d_Presentation) g = new Prs3d_Presentation(Handle(PrsMgr_PresentationManager3d)::DownCast(PresentationManager())->StructureManager());
@@ -170,7 +170,7 @@ Compute(const Handle(Graphic3d_DataStructureManager)& aProjector)
 void PrsMgr_Presentation3d::Compute(const Handle(Graphic3d_DataStructureManager)& aProjector,
                                    const Handle(Graphic3d_Structure)& TheStructToFill)
 {
-#ifdef DEB
+#ifdef PRSMGR_DEB
   cout<<"passage in Compute(P,Str)"<<endl;
 #endif
   TheStructToFill->Clear();
@@ -186,14 +186,14 @@ Handle(Graphic3d_Structure) PrsMgr_Presentation3d::
 Compute(const Handle(Graphic3d_DataStructureManager)& aProjector,
        const Handle(Geom_Transformation)& TheTrsf)
 {
-#ifdef DEB
+#ifdef PRSMGR_DEB
   cout<<"passage in G =  Compute(P,Trsf)"<<endl;
 #endif
   Handle(Prs3d_Presentation) g = new Prs3d_Presentation(Handle(PrsMgr_PresentationManager3d)::DownCast(PresentationManager())->StructureManager());
 
 
   if(TheTrsf->Form()== gp_Translation){
-#ifdef DEB
+#ifdef PRSMGR_DEB
     cout<<"\tla Trsf est une translation"<<endl;
 #endif
    
@@ -213,7 +213,7 @@ Compute(const Handle(Graphic3d_DataStructureManager)& aProjector,
     }
     
     if(good){
-#ifdef DEB
+#ifdef PRSMGR_DEB
       cout<<"\t it is checked if Trsf is a Translation"<<endl;
 #endif
     myPresentableObject->Compute(Projector(aProjector),g);
@@ -221,7 +221,7 @@ Compute(const Handle(Graphic3d_DataStructureManager)& aProjector,
       
     }
     else{
-#ifdef DEB
+#ifdef PRSMGR_DEB
       cout<<"\t Trsf is not only translation..."<<endl;
 #endif
       myPresentableObject->Compute(Projector(aProjector),TheTrsf,g);
@@ -239,7 +239,7 @@ void PrsMgr_Presentation3d::Compute(const Handle(Graphic3d_DataStructureManager)
                                    const Handle(Graphic3d_Structure)& TheStructToFill)
 {
   
-#ifdef DEB
+#ifdef PRSMGR_DEB
   cout<<"passage in Compute(P,Trsf,Str)"<<endl;
 #endif
 
@@ -250,7 +250,7 @@ void PrsMgr_Presentation3d::Compute(const Handle(Graphic3d_DataStructureManager)
   myPresentableObject->Compute(Projector(aProjector),TheTrsf,P);
 #else  //Does not work properly, HLR seems deactivated for view rotation 
   if(TheTrsf->Form()== gp_Translation){
-#ifdef DEB
+#ifdef PRSMGR_DEB
     cout<<"\t Trsf is a translation"<<endl;
 #endif
 //    myPresentableObject->Compute(Projector(aProjector),P);
@@ -268,7 +268,7 @@ void PrsMgr_Presentation3d::Compute(const Handle(Graphic3d_DataStructureManager)
       }
     }
     if(good && !TheStructToFill->IsEmpty()){
-#ifdef DEB
+#ifdef PRSMGR_DEB
       cout<<"\t it is checked if Trsf is a Translation"<<endl;
 #endif
       
@@ -277,7 +277,7 @@ void PrsMgr_Presentation3d::Compute(const Handle(Graphic3d_DataStructureManager)
     else{
       TheStructToFill->Clear();
       
-#ifdef DEB
+#ifdef PRSMGR_DEB
       cout<<"\t Trsf is not only translation..."<<endl;
 #endif
       
index 3e707d5d2be002e164d0a68afc6d14a58c74227f..b6b3e35ccd4ee5b6dc3319bd65cc335fc687013c 100755 (executable)
@@ -499,7 +499,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
@@ -541,7 +541,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;
@@ -993,7 +993,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;
@@ -1001,7 +1001,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); 
@@ -1046,7 +1046,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;
@@ -1336,7 +1336,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 499b2575355e973a516c9d2ee52b81fcc805061a..ea156150673b810c9aa44b6152ee7248290b536a 100755 (executable)
@@ -59,7 +59,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;
@@ -67,7 +67,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 4e4962ddb6360584bbc5de768e3a8e607696998c..9ba195d8e5318d95ff61ea0b3614801c64f65da4 100755 (executable)
@@ -151,7 +151,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 941ac75ff41bd2e0c3f240f0ac469a9f433bb118..6191c2bffeb8ab07353927dcd473496ccd229d68 100755 (executable)
@@ -206,7 +206,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 54bcb616102ae20cb7790cdb6efb07b7d7bd1369..76f782c2b35f41fdd3adef389ab44482c10a1d34 100755 (executable)
@@ -1498,7 +1498,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 ec70fdc38dbc36423eff5716b0018f1d933bcc98..cc4bb53ce06ff20d70f0c59b16c783f953fc399d 100755 (executable)
@@ -68,7 +68,7 @@ Standard_Integer RWHeaderSection_ReadWriteModule::CaseStep
 {
 
   Standard_Integer NbComp = types.Length();
-#ifdef DEB
+#ifdef RWHEADERSECTION_DEB
   if (NbComp < 2) {
     cout << "Plex Instance illegal " << endl;
   }
index 0bc0450778ba0506a78f637e3e09870039462203..78fa0198f00cecc449b2cc591d6b3e03bf095c6b 100755 (executable)
@@ -2804,7 +2804,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
   }
@@ -4068,7 +4068,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 7286b2f5f62d69ebe02598d897d0ff578eb2cd74..d53a19e825ce2eaf6781b050217f74b22e1621e8 100755 (executable)
@@ -191,7 +191,7 @@ void RWStepShape_RWEdgeCurve::Check
       
       Standard_Boolean sharOE1 = aShto.IsShared(theOE1);
       if(!sharOE1){
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
        cout << "OrientedEdge1 not shared" <<endl;
 #endif
       }
@@ -205,7 +205,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
          }
@@ -222,7 +222,7 @@ void RWStepShape_RWEdgeCurve::Check
              theFBOri1 = theFOB1->Orientation();
            }
            else {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
              cout << "EdgeLoop not referenced by FaceBound" << endl;
 #endif
            }
@@ -230,14 +230,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
             }
@@ -249,7 +249,7 @@ void RWStepShape_RWEdgeCurve::Check
 
       Standard_Boolean sharOE2 = aShto.IsShared(theOE2);
       if(!sharOE2){
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
        cout << "OrientedEdge2 not shared" <<endl;
 #endif
       }
@@ -264,7 +264,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
        }
@@ -277,7 +277,7 @@ void RWStepShape_RWEdgeCurve::Check
            theFBOri2 = theFOB2->Orientation();
          }
          else {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
            cout << "EdgeLoop not referenced by FaceBound" << endl;
 #endif
          }
index 22abc777a4d4ba9aee39e7ce1d4c4f6f598425d5..ebdf9e6d26694130e400d56f228fa45f827a5c04 100755 (executable)
@@ -129,7 +129,7 @@ void RWStepShape_RWFaceBound::Check
        
        Standard_Boolean sharOE2 = aShto.IsShared(theOE2);
        if(!sharOE2){
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
          cout << "OrientedEdge2 not shared" <<endl;
 #endif
        }
@@ -141,7 +141,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
          }
@@ -155,7 +155,7 @@ void RWStepShape_RWFaceBound::Check
              theFBOri2 = theFB2->Orientation();
            }
            else {
-#ifdef DEB
+#ifdef RWSTEPSHAPE_DEB
              cout << "EdgeLoop not referenced by FaceBound" << endl;
 #endif
            }
@@ -178,7 +178,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 d6276c22c3aedfe308c23b1232f7bae416d74a61..1c9e80dbdb564f2844d4faee465728ccc7b87c68 100755 (executable)
@@ -311,7 +311,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();
@@ -442,7 +442,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();
@@ -490,7 +490,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 e1a4e05fdb79efbfd71785974d7e0d9d00563746..d7a829a5f60aaa57285a088438de084ba7d8ce91 100755 (executable)
@@ -501,14 +501,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
     
@@ -518,7 +518,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
@@ -661,7 +661,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 ) 
@@ -710,7 +710,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
  
@@ -791,7 +791,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;
@@ -966,7 +966,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;
@@ -974,7 +974,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;
@@ -1152,7 +1152,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;
@@ -1313,7 +1313,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);
@@ -1390,7 +1390,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;
@@ -1449,7 +1449,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;
@@ -1469,7 +1469,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;
@@ -1508,7 +1508,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 468d4f960248d128777d45acdbbf35c971359fbf..b5a7aeeaaa1b679208a8bf1b6d3b0dc0628551ab 100755 (executable)
@@ -271,7 +271,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
     
@@ -422,9 +422,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++ ) {
@@ -698,7 +695,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;
@@ -710,7 +707,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;
@@ -718,7 +715,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;
@@ -947,7 +944,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
@@ -1041,7 +1038,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
@@ -1123,7 +1120,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
       }
@@ -1237,7 +1234,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;
@@ -1485,7 +1482,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;
@@ -1653,7 +1650,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    
@@ -1673,7 +1670,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;
@@ -1757,7 +1754,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
@@ -1774,7 +1771,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;
@@ -1805,7 +1802,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
   }
@@ -1882,7 +1879,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;
@@ -1895,13 +1892,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 1ff68b004e5c0b574137ae389c6a9ec5de917767..37ace40fde59f8ab7f6f1a1eb60be7bc7e6af76a 100755 (executable)
@@ -57,7 +57,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
@@ -84,7 +84,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 12fba7634c6a216f926d9e606237b6aefdaea971..d3fcfed5697c0697331904d5a229cf4a4885e56c 100755 (executable)
@@ -192,7 +192,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;
@@ -227,7 +227,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 69e7d54157a2596b63660fb6e14eb8677c6eff0f..55aa79025297e9a36d77d3a9e87f2696630a70f3 100755 (executable)
@@ -233,10 +233,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 
@@ -349,10 +345,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 74c1bf6304f489f793fe32563f37dc1aa47837f0..bdd701bc149d054d7b2dd20058c17d8004d8a187 100755 (executable)
@@ -314,7 +314,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();
@@ -322,12 +322,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;
@@ -336,7 +336,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;
   }
@@ -485,7 +485,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;
@@ -712,7 +712,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 ff599473d389301fd154f296ae81e57ac7d2e91f..b3de74bcdabd47dc7560e5e89355b445bc561b86 100755 (executable)
@@ -262,7 +262,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;
@@ -275,7 +275,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    
@@ -346,7 +346,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
     }
@@ -371,7 +371,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
     }
@@ -379,7 +379,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;
@@ -396,7 +396,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    
     }
@@ -457,7 +457,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;
@@ -487,7 +487,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeTolerance
     }
   }
 
-#ifdef DEBUG
+#ifdef STEPCONSTRUCT_DEB
   if (hasUncertainty) cout << "UNCERTAINTY read as " << theUncertainty << endl;
 #endif
   return status;
index ba033cf3223b796a8ca343df6bac4db4cbadd7d1..b797577548ecd08fa700253600b94f95e4358e48 100755 (executable)
@@ -122,7 +122,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;
@@ -154,11 +154,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
 */
@@ -174,12 +174,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;
@@ -225,14 +225,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;
@@ -267,7 +267,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
@@ -304,7 +304,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();
@@ -319,11 +319,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
   }
@@ -678,7 +678,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;
@@ -701,7 +701,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 4daff0ecfd78cd3b93eb9b2f2062e854e6b9ebac..0f1b0a7009233f575592ecce9bb0ac9b6c6cae1b 100755 (executable)
@@ -180,7 +180,7 @@ static void DumpWhatIs(const TopoDS_Shape& S) {
         nbVertexes++;
     }
   }
-  #ifdef DEB
+  #ifdef STEPCONTROL_DEB
   cout << "//What is?// NB COMPOUNDS: " << nbCompounds << endl;
   cout << "//What is?// NB SOLIDS: " << nbSolids << endl;
   cout << "//What is?// NB SHELLS: " << nbShells << endl;
@@ -290,12 +290,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);
@@ -776,7 +776,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
@@ -787,11 +787,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
@@ -1768,7 +1768,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 e2c499b2d6f887278c15506c1c9ff2cb49c9c409..8950edcf221d557cbc1b55b1cb228cb183f1e554 100755 (executable)
@@ -163,7 +163,7 @@ static void DumpWhatIs(const TopoDS_Shape& S) {
         nbVertexes++;
     }
   }
-  #ifdef DEB
+  #ifdef STEPCONTROL_DEB
   cout << "//What is?// NB SOLIDS: " << nbSolids << endl;
   cout << "//What is?// NB SHELLS: " << nbShells << endl;
   cout << "//What is?//    OPEN SHELLS: " << nbOpenShells << endl;
@@ -197,7 +197,7 @@ static Standard_Boolean IsManifoldShape(const TopoDS_Shape& theShape) {
       aBrepBuilder.Add(aDirectShapes, aDirectChild);
   }  
 
-  #ifdef DEB
+  #ifdef STEPCONTROL_DEB
   DumpWhatIs(aDirectShapes);
   #endif
 
@@ -205,7 +205,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
 
@@ -221,7 +221,7 @@ static Standard_Boolean IsManifoldShape(const TopoDS_Shape& theShape) {
     }
   }
 
-  #ifdef DEB
+  #ifdef STEPCONTROL_DEB
   cout << "Check result: "
        << (aResult ? "TRUE" : "FALSE") << endl;
   #endif
@@ -282,13 +282,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;
@@ -629,7 +629,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;
@@ -1276,7 +1276,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 1bdeca9ce3434389322e562681345eae35af84b3..74dd4cbb1547bc43d3509d6bdc13e44f544e9184 100755 (executable)
@@ -154,7 +154,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 cb99ace78daafbf4a23f7d108f62d07b21476c7c..800378e5432cba0049937573aee25065a8b5da49 100755 (executable)
@@ -78,7 +78,7 @@ static void ProjectOnSegments (const Adaptor3d_Curve& AC, const gp_Pnt& P3D,
     if (dist < distmin)  {  distmin = dist;  proj = PU;  param = u;  }
   }
 
-#ifdef DEBUG
+#ifdef SHAPEANALYSIS_DEB
   cout<<"ShapeAnalysis_Geom:Project, param="<<param<<" -> distmin="<<distmin<<endl;
 #endif
 
@@ -226,7 +226,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
@@ -462,25 +462,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;
@@ -510,7 +510,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;
@@ -538,7 +538,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;
@@ -548,7 +548,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 );
@@ -562,7 +562,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;
@@ -570,7 +570,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 f365dc891d0659dc83050a486405ad2d66c4c37c..e0d8ff470f3b4459c5c0c295a552abea468ad6a5 100755 (executable)
@@ -477,7 +477,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
@@ -972,12 +972,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;
@@ -1088,7 +1088,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
@@ -1126,7 +1126,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
@@ -1324,7 +1324,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 983846cfe7e3c9c26fee87d9e52e405d62687a1a..2e9fa7ec4ee918dc4792d564a2f247b1373bcc24 100755 (executable)
@@ -629,7 +629,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
@@ -657,7 +657,7 @@ Standard_Boolean ShapeBuild_Edge::BuildCurve3d (const TopoDS_Edge& edge) const
 {
   BRepBuilderAPI_MakeEdge ME (curve, p1, p2);
   if (!ME.IsDone()) {
-#ifdef DEB
+#ifdef SHAPEBUILD_DEB
     cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
 #endif
     return;
@@ -722,7 +722,7 @@ Standard_Boolean ShapeBuild_Edge::BuildCurve3d (const TopoDS_Edge& edge) const
 {
   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 0bd098c478e052fa8291ae4afc601fdd2df78560..b80fb58cbd59389ebdd311ffb00b5faf6c3efbf3 100755 (executable)
@@ -86,7 +86,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 
@@ -217,7 +217,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;
@@ -234,7 +234,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;
@@ -246,7 +246,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;
@@ -254,7 +254,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
@@ -358,7 +358,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 8753202c63fc70321ac4dc6aff175fda262aa915..51d5ac85c6c9939452ec8706ab6e39d0cc96ef65 100755 (executable)
@@ -162,7 +162,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
@@ -183,7 +183,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
@@ -201,7 +201,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
@@ -232,7 +232,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
@@ -253,7 +253,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
@@ -272,7 +272,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 c0af8c674c420973ed0fa0bce36c9937a9d11bfd..eee59ae7d8fecf2896800a228b1358d6037d3b04 100755 (executable)
@@ -247,7 +247,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
@@ -362,12 +362,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()) {
@@ -381,7 +381,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
@@ -460,9 +460,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;
   }
   
@@ -682,7 +680,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;
   }
@@ -835,7 +833,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;
@@ -1065,7 +1063,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();
@@ -1109,7 +1107,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();
@@ -1151,7 +1149,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
@@ -1198,13 +1196,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;
@@ -1269,13 +1267,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.
@@ -1294,7 +1292,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));
@@ -1302,7 +1300,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
     }
@@ -1551,13 +1549,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 fd2ba0819a20bba1f5f18a890b894350e6b62de1..fe56d568edb295f3f532e017c8171fb409323cf0 100755 (executable)
@@ -460,7 +460,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
         }
@@ -661,7 +661,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()
@@ -702,17 +702,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
@@ -739,7 +735,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;
@@ -749,7 +745,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;
@@ -1003,7 +999,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) {
@@ -1019,7 +1015,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) {
@@ -1036,7 +1032,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
@@ -1311,7 +1307,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) {
@@ -1327,7 +1323,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) {
@@ -1344,7 +1340,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 37bcdfe96a325016fac6c0c70ef8a71113d91d7f..11b4ba20eff287b53f6ab3b576802f1f31cf1838 100755 (executable)
@@ -108,7 +108,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 87e536d9e4c25e530c484883f786d2983dfe3a6d..5722383f2378286af054055d162719078d51d13a 100755 (executable)
@@ -209,7 +209,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 !
@@ -308,7 +308,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
@@ -514,7 +514,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 96352006a02c4dbe9a0e4fefb49b6bb7d3ac64a5..b27da64f4be21813f2561532d9a6b387496d49c1 100755 (executable)
@@ -127,7 +127,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 ebc0ec668f5b31ddd1a9be08a363c94778bdee41..b94b8dc83bd1b490ae35ba4bf96e6e59ff2b65ec 100755 (executable)
@@ -85,7 +85,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
   }
@@ -832,7 +832,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 4ae101dae4ec451785eff84552fc753e474058c8..78a79847e336af91c2bb8088b6dd5dda711c3bd9 100755 (executable)
@@ -41,7 +41,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;
@@ -67,7 +67,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 2a0b39c95a1d5e91b6aec442e7c7d1db069e7235..dd091b16a96b37b4e5a9933e43c8189f500511a4 100755 (executable)
@@ -221,7 +221,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;
@@ -258,7 +258,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 e2e2831c02957b0127c2401f7b51a7d5bc37269d..ea6bdf353b3a1228d7d6c7b458828ce71e7afea1 100755 (executable)
@@ -381,7 +381,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
   }
@@ -398,7 +398,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
   
@@ -697,7 +697,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" << cout;
 #endif
   }
@@ -835,7 +835,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--;
@@ -1624,7 +1624,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
     }
@@ -1639,7 +1639,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
@@ -1648,7 +1648,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
       }
@@ -1691,7 +1691,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
   }
@@ -1976,10 +1976,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 );
@@ -1988,7 +1990,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 );
@@ -2189,7 +2191,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
       }
@@ -2246,7 +2248,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;
@@ -2434,7 +2436,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++ ) {
@@ -2453,7 +2455,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
     }
@@ -2505,7 +2507,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 a5f8f1a529f80bd34defc705c376b2b8773a3b6f..e565f7e47752eeafabf1ad7e771d94144e8533b0 100755 (executable)
@@ -258,7 +258,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;
@@ -268,7 +268,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;
@@ -308,9 +308,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);
@@ -597,7 +594,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
@@ -782,7 +779,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 11dc3831cd1cef36292c07feccf5945c8e94d83a..ab7a2445af32a5c5cf64288ba6e3f65a63b3b23f 100755 (executable)
@@ -101,7 +101,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;
@@ -211,7 +211,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
@@ -266,7 +266,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
          return;
        }
       } 
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
       else cout <<"Other type of deg curve"<<endl;
 #endif
       
@@ -337,7 +337,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 
       }
@@ -346,7 +346,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 
     }
@@ -379,7 +379,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;
@@ -420,7 +420,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
        UpdateParam2d(theCurve2d);
       else {
        myLastParam+=period;
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
        cout <<" Added"<<endl;
 #endif 
       }
@@ -429,7 +429,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) {
@@ -542,7 +542,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
@@ -560,7 +560,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 70274608d7535fa8864de081cf9f2d6a6cf471df..2c3dc2e80fabf34a61fad92b95c475eed6783812 100755 (executable)
@@ -318,7 +318,7 @@ static Standard_Boolean SplitWire(const TopoDS_Wire& wire,
   }
 
   if(aResWires.Length()>1) {
-#ifdef DEBUG
+#ifdef SHAPEFIX_DEB
     cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
 #endif
   }
@@ -952,7 +952,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
@@ -1064,7 +1064,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
     }
@@ -1302,7 +1302,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
     }
@@ -1431,18 +1431,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
@@ -1452,7 +1452,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;
@@ -1719,12 +1719,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 );
@@ -1939,7 +1939,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 226dc85394aa37e5b96963939ddccfe5d955c55b..398390e6edd15bc798969699eefd656634dfa65d 100755 (executable)
@@ -172,7 +172,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
   // Clear the temporary map of free edges
   theFreeEdges.Clear();
 
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
   //-------------------------------
   //szv debug - preparation results
   //-------------------------------
@@ -250,7 +250,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
              }
@@ -348,7 +348,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
     // Clear the temporary map of processed faces
     theProcessed.Clear();
 
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
     //-------------------------------
     //szv debug - sewing results
     //-------------------------------
@@ -481,12 +481,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 
       }
@@ -635,13 +635,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 61c387f17297a5ea0e9d671336ae511c7600d6fc..d891d81fef5b8c8284b522cd2748c60a57471362 100755 (executable)
@@ -453,7 +453,7 @@ ShapeFix_FixSmallFace::ShapeFix_FixSmallFace()
          
        } 
       else {
-#ifdef DEB
+#ifdef SHAPEFIX_DEB
        cout << "The face is not strip face"  << endl;
 #endif
        return theNewEdge;
index 586612c4eff41d186780640a3aacf5108a795d20..8f8cf6bdc6dcb1003bcc6f6a8bcf36a32b70c207 100755 (executable)
@@ -219,7 +219,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
@@ -290,7 +290,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
@@ -549,7 +549,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 aeeb063d4f1e0b3f1765fe2a2eb89cb7bcb982ed..3d95c2d201c3ad678e6ed9c4a49bd79c931a9680 100755 (executable)
@@ -569,7 +569,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 );
@@ -658,7 +658,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
     }
@@ -863,7 +863,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
       }
@@ -892,7 +892,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;
@@ -1285,7 +1285,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
     }
@@ -1443,7 +1443,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
        }
@@ -1739,14 +1739,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
       
@@ -1816,7 +1816,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;
@@ -1926,7 +1926,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
 
@@ -2343,10 +2343,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 );
@@ -2684,7 +2680,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;
@@ -2916,7 +2912,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
     }
@@ -2949,7 +2945,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 246ae6f48dee80d1230fca5f119fafb46fbb32b4..64030df2acac50d05129608d367f4211a156daee 100755 (executable)
@@ -244,7 +244,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
@@ -259,7 +259,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;
@@ -275,7 +275,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;
@@ -291,7 +291,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;
@@ -325,7 +325,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 a692a0b364138e851b2bc61cd56ba04e269184ce..ebe384843c5bb93cbe757a72b2fb89fa750429da 100755 (executable)
@@ -364,7 +364,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  
@@ -639,7 +639,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
@@ -947,7 +947,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  
@@ -1527,7 +1527,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 c6592cc2a131db7982d9b41a632cfa870114d6f6..952417789bc3ab12f1cab36cc0450e1234f56074 100755 (executable)
@@ -390,7 +390,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 7c3cef84628b119b64ef2ffd48b6295450685103..94209f0d7d6c04e4d2a9586c6682195a96b3a97c 100755 (executable)
@@ -43,7 +43,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;
@@ -62,7 +62,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;
@@ -84,7 +84,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 41983d2bb650d41bf84b3d9ebb2be140dab2b404..9a0eb39fd61cee1cde195530ddc12b9b8366bfb2 100755 (executable)
@@ -88,7 +88,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
@@ -171,7 +171,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;
@@ -205,7 +205,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;
@@ -216,7 +216,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;
@@ -247,7 +247,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;
@@ -258,7 +258,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;
@@ -279,7 +279,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
@@ -337,7 +337,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 e015485111e88b30f4ee5473742fa7b3da38f579..91b37736e8a7de9fac91d67ea9754a413d1d56bc 100755 (executable)
@@ -191,7 +191,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;
@@ -347,7 +347,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;
@@ -412,7 +412,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; 
@@ -449,7 +449,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; 
@@ -671,7 +671,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 dc7995fae6885587be50e93302ee1dbf254c6591..151e2b6917d464e03cef2cec06477b7624fc4e3d 100755 (executable)
@@ -182,7 +182,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
       }
@@ -203,7 +203,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 6d2607bd229e409924be43eac7092f0ca487e538..7b50ada687259bc717bfc2bd4df8b6647d03e6fe 100755 (executable)
@@ -161,14 +161,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 e41639ff7533a661d8d9bdb620de48836e4beadf..8a85700fbb5611e925bec82cd0a0f0e806afb247 100755 (executable)
@@ -144,14 +144,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 060cdb3c461754ba3434784d0592f1d8526b003d..fafdfa38d1361c3fff3842822b4e4315c3f7d876 100755 (executable)
@@ -189,7 +189,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
@@ -456,7 +456,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 14ff345ebf65774423d21a72e2b9354826475819..4218b9399bf1dcf039efeacb9158efc7ba56b894 100755 (executable)
@@ -83,7 +83,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
@@ -119,7 +119,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
@@ -156,7 +156,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 df80a5fb9d1c23de8612194b2b6ca35b566a799c..e68b40c894b236dc2dbf9e524ab4eefe5aec51c2 100755 (executable)
@@ -219,7 +219,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 19a23d4eb0437af0e82b1ed86ee8d31f15d9306a..ef0e5848b38398f3293b0433eac9689026f4257a 100755 (executable)
@@ -81,13 +81,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;
@@ -176,7 +176,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
@@ -229,7 +229,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 11be936165b78c2845d136c6c3d2551e8dcd4912..face951e9bbf9d4682abe2dc8d497d77c13a6e78 100755 (executable)
@@ -111,7 +111,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 bb78de0b059c365e0ce47c7f0e1884d54533d762..a3f391a0b7dd16a541f358754a303b5ae414f8d1 100755 (executable)
@@ -81,13 +81,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;
@@ -168,14 +168,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;
@@ -253,7 +253,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 07bdbfdc7c8e93cda0ea0fd2ccb45919e75456b7..c157496310489cc73551ccdf4b22ab5741d37c39 100755 (executable)
@@ -109,7 +109,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 9f30767d9dc375291107285f54dbd98d2089d0d3..89c35bc0eb22ba987b97cec23106863142b554c7 100755 (executable)
@@ -439,7 +439,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 f4a8acd23c3d7b97d70c5598ce7463c4c8aba135..9524e42a2715a2bae51f01b4652abd216bf63d78 100755 (executable)
@@ -179,7 +179,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 fb50b3a24c85dd372e5785bc0aa877c0ae5e0ad0..46fc0d327cbce1a578df0e67c28747305379e912 100644 (file)
@@ -551,7 +551,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;
@@ -669,7 +669,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;
@@ -694,7 +694,7 @@ 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);
@@ -716,7 +716,7 @@ static Standard_Boolean MergeEdges(const TopTools_SequenceOfShape& SeqEdges,
       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 bf55c99dd2fa04d5891042e97729ea9127c1f513..28fe7bcce4d3abb6375175af6e343a00af2b6e53 100755 (executable)
@@ -371,7 +371,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
          }
@@ -451,7 +451,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 8ee470eda9a564c0e01e6251feeb0c17f4c43a75..9df75026da2fc1040706a076cd7700fcc6262e91 100755 (executable)
@@ -163,9 +163,11 @@ void Standard_ErrorHandler::Abort (const Handle(Standard_Failure)& theError)
 
   //==== Check if can do the "longjmp" =======================================
   if(anActive == NULL || anActive->myLabel == NULL) {
+#ifdef STANDARD_DEB
     cerr << "*** Abort *** an exception was raised, but no catch was found." << endl;
     if (!theError.IsNull())
       cerr << "\t... The exception is:" << theError->GetMessageString() << endl;
+#endif
     exit(1);
   }
 
index 13f246c8a3442f70551cb9f7064e4619befe76df..0f1e190ed55861f3df519bc26f2f25c22fad3e7a 100755 (executable)
@@ -195,7 +195,9 @@ Standard_MMgrOpt::Standard_MMgrOpt(const Standard_Boolean aClear,
   // check basic assumption
   if ( sizeof(Standard_Size) != sizeof(Standard_Address) )
   {
+#ifdef STANDARD_DEB
     cerr << "Fatal error: Open CASCADE Optimized Memory manager: this platform is not supported!" << endl;
+#endif
     exit(1);
   }
 
index 81a4504f049731f32325052bcc5f059cde6bbfe1..4ac0bec280d9173c3ec1c900a9e6a6dfda28c488 100755 (executable)
@@ -269,7 +269,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); 
 }
@@ -281,7 +283,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); 
 }
@@ -292,7 +296,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); 
 }
@@ -303,7 +309,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 1a7c15537930acd81e2b59934ff1108c0abe58da..4a0dc4ca38511157926fb4de2ad2c6575a5487d2 100755 (executable)
@@ -42,14 +42,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;
@@ -63,14 +63,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 ec8e4ec6c5517f2eeeeb0a6c8c3ebce83fa7e7f8..0e4b1b0db46f052d86abe6d9d9ee21e024e9f96a 100755 (executable)
@@ -41,7 +41,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;
@@ -54,14 +54,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 da03c7de50e45861272963d2af815281f4f8896e..7acee340bf3841f20140a90f49059269392fa23c 100755 (executable)
@@ -185,9 +185,11 @@ void StdPrs_WFDeflectionRestrictedFace::Add
            }
          }
        }
+#ifdef STDPRS_DEB
        else {
          cout << "Cannot evaluate curve on surface"<<endl;
        }
+#endif
       }
       else {
        U1 = TheRCurve->FirstParameter();
@@ -456,9 +458,11 @@ Standard_Boolean StdPrs_WFDeflectionRestrictedFace::Match
          }
        }
       }
+#ifdef STDPRS_DEB
       else {
        cout << "Cannot evaluate curve on surface"<<endl;
       }
+#endif
     }
   }
   
index 57dca4231cd107767d45567bee3dcb76aa54fac9..6810558d7d451b79ab311165773c109ca69ddbe0 100755 (executable)
@@ -658,7 +658,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 1d359e562994e2e3dfa3d6ecd843092447464b9c..6ca9bb85da27b2ae62477fefa6b7a39fbc5db1e0 100755 (executable)
@@ -818,14 +818,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 8276cc0723f68ce00734a53d862057b9a7098e85..ea3ac42b2db82875389d658ce976e1fb023efe92 100755 (executable)
@@ -82,7 +82,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 05450c37c1b58d14c897fa5179ce96085da653d7..31c6c0c6fbc4740d74f5155a430f5cd518dc2fb5 100755 (executable)
@@ -121,7 +121,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 e61c1edc9b4ddc5f7d218deb80859a00791d9830..2ffe57d473a7ad49b80f487ecf4e9251284fba9f 100755 (executable)
   // 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 a2b2e3e7c95b433d93e0df096bc61b5d9d7a6701..4251f45d93398c40f785ad2b55bbfe796c74d829 100755 (executable)
@@ -85,9 +85,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());
@@ -108,9 +105,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;
@@ -134,9 +128,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 = 
@@ -156,9 +147,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 5478872e346d3e1e3b49e17a45a95b8f5ffcf1f9..e6398ad5283b67ccbdae1b1de91bf1bbfbf3b6ec 100755 (executable)
@@ -100,9 +100,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());
@@ -135,9 +132,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;
@@ -175,9 +169,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 = 
@@ -207,9 +198,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 475d45648d5f0b62a1cf52faf7068a4191c2ad8d..5ce3120894c899f5cbbd556f27cb515edccbdd17 100755 (executable)
@@ -60,9 +60,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;
   }
 
@@ -129,7 +126,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 0374a6883467c9f52145cc793e04dfcbed724079..2ed887c41ffa97653d8dcc8c67aa85067897b7c1 100755 (executable)
@@ -263,9 +263,6 @@ Standard_Boolean StepToGeom_MakeTrimmedCurve::Convert (const Handle(StepGeom_Tri
         }
       }
       else {
-//#ifdef DEBUG
-//     cout << "Trimming Failed" << endl;
-//#endif
         return Standard_False;
       }
     }
index 0b9060968bb22d9d2293a90edc62c6a49746f9f3..552830f2b5761230bd046476f1327603e93f7907 100755 (executable)
@@ -101,8 +101,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 6a6be78446bd8717e8f075c3102db9d1daaaf0eb..daeed0fdfb7a2e8f8acab3e0c6915ae2227e2d39 100755 (executable)
@@ -241,25 +241,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;
@@ -288,7 +288,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;
@@ -316,7 +316,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;
@@ -326,7 +326,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 );
@@ -340,7 +340,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;
@@ -348,7 +348,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 cc60493cca9065b0251bf0e7d9a6daef85e4069a..2fe98c374b5d82b44a44ed65881e4d37ae24d026 100755 (executable)
@@ -196,7 +196,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
@@ -233,7 +233,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 abf6d160b394250dcee0c5b9a29b7caf9109fabf..39e0f4eaace4afa8b0787519c0e287d397a58201 100755 (executable)
@@ -95,7 +95,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
@@ -124,7 +124,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 23ffeda149f1ddf474f5658e9803b52b4967db48..c2a0e1453ce845157c78f9f425885ace3d486cc5 100755 (executable)
@@ -153,7 +153,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;
@@ -422,7 +422,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
 
@@ -692,7 +692,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 c6fe3599459e1b25509f51d1b4758a06227e81ff..b582a9c54801d1cd04cf71c86ac1e12e73165865 100755 (executable)
@@ -227,7 +227,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);
@@ -372,7 +372,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 7e48f2ff8e5c5e7bbaed9b56e5719567c64abfd6..8fb92ed684a5920da6724bf6d89e8d0159d51908 100755 (executable)
@@ -86,7 +86,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 a3748939257855affbeb403a01f78056bc03f1f8..be78649a85f15fa1ca01db5efab81b4cebdcda90 100755 (executable)
@@ -183,7 +183,7 @@ void StlTransfer::BuildIncrementalMesh (const TopoDS_Shape&  Shape,
     }
     catch(Standard_Failure)
       {
-#ifdef DEB
+#ifdef STLTRANSFER_DEB
        cout << "Fail in StlTransfer::BuildIncrementalMesh"   << endl;
 #endif
       }
index 7436a45d64da68e35bc189a922af01b14b38f56e..2dc6db638b7cb4afa51abc86cff9465278e37e3d 100755 (executable)
@@ -1552,12 +1552,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 62235535d7789fa536e4a40115bab651e870541f..98dab36afb851dcdff868a74fe6a2015d0092cbb 100755 (executable)
@@ -167,7 +167,7 @@ TCollection_ExtendedString::TCollection_ExtendedString
       mystring = Allocate(ROUNDMEM((mylength+1)*2));
       if(!ConvertToUnicode (astring))
       {
-#ifdef DEB
+#ifdef TCOLLECTION_DEB
        cout <<"UTF8 decoding failure..." <<endl;
 #endif
       }
index f8c27afe148786997357d9a7aa0a12cb91430bf9..ee1b887ed061306fed241d27d9fb774756b1ef2e 100755 (executable)
@@ -40,9 +40,11 @@ TCollection_Queue::TCollection_Queue() :
 
 TCollection_Queue::TCollection_Queue(const TCollection_Queue& Other)
 {
+#ifdef TCOLLECTION_DEB
   if (!Other.IsEmpty()) {
     cout << "WARNING copy constructor of non empty Queue !"<<endl;
   }
+#endif
   TCollection_QueueNode* p = (TCollection_QueueNode*) Other.myFront;
   TCollection_QueueNode* q = NULL;
   TCollection_QueueNode* r = NULL;
index a588685f3f0280f31b2a50dee2b4097d29c876fd..72429fec6875637da6cf835a5e5ee8731595a202 100755 (executable)
@@ -39,9 +39,11 @@ TCollection_Stack::TCollection_Stack() :
 
 TCollection_Stack::TCollection_Stack(const TCollection_Stack& Other)
 {
+#ifdef TCOLLECTION_DEB
   if (!Other.IsEmpty()) {
     cout << "WARNING copy constructor of non empty stack !"<<endl;
   }
+#endif
   TCollection_StackNode* p = (TCollection_StackNode*) Other.myTop;
   TCollection_StackNode* q;
   TCollection_StackNode* r = NULL;
index 824f788bfa2707eb7faa75ba2d9a9824c3c555d5..1b11e5886babec56340b7671e59e88479c8d688c 100755 (executable)
@@ -148,7 +148,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;
@@ -177,7 +177,7 @@ void TDF_CopyLabel::Perform()
      !TDF_Tool::IsSelfContained(mySL)) return;
 #endif
   else {
-#ifdef DEB
+#ifdef TDF_DEB
     cout << "THE SAME Data" <<endl;
 #endif
   }
@@ -196,7 +196,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 4ae144f255bdc510c42fb7b4fc6f7a3fb596f2d6..7d16c1066e019e285088e43574bc5747f3389298 100755 (executable)
@@ -112,7 +112,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 5cd75cdbbe51ee887922c63be3b468de9bb4fa27..21cc6c1dd4a2237605522fdd83c0e84cb27a2091 100755 (executable)
@@ -50,7 +50,7 @@ void TDF_DeltaOnForget::Apply()
   // Undo = Resume.
   Label().ResumeAttribute(Attribute());
   Attribute()->mySavedTransaction = 0;
-#ifdef DEB
+#ifdef TDF_DEB
   cout<<"Resume attribute"<<endl;
 #endif
 }
index 59eb12e57ecc11c6f793ccdda4d746775e94b6ee..71721797c3c72d6c42fc054ed0c1da8087df035d 100755 (executable)
@@ -49,7 +49,7 @@ void TDF_DeltaOnResume::Apply()
 {
   // Undo = Forget.
   Label().ForgetAttribute (Attribute());
-#ifdef DEB
+#ifdef TDF_DEB
   cout<<"Forget attribute"<<endl;
 #endif
 }
index 085581a3caed0a3c4e0700ec67af5f5ef9201083..335b749672f6546ac839899c3bbda832365e9543 100755 (executable)
@@ -85,7 +85,7 @@ TDataStd_DeltaOnModificationOfByteArray::TDataStd_DeltaOnModificationOfByteArray
       }
     }
     OldAtt->RemoveArray();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(OldAtt->InternalArray().IsNull())
       cout << "BackUp Arr is Nullified" << endl;
 #endif
@@ -104,7 +104,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;
@@ -117,7 +117,7 @@ void TDataStd_DeltaOnModificationOfByteArray::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfByteArray::Apply: CurAtt is Null" <<endl;
 #endif
     return;
@@ -158,7 +158,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;
@@ -168,7 +168,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 bd7933088c560c53d0c1252778481c2e3f0bd6a3..9ac4a63e5cab3f2a219bf602cc31b03e4d34220e 100755 (executable)
@@ -44,7 +44,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())
@@ -84,7 +84,7 @@ TDataStd_DeltaOnModificationOfExtStringArray::TDataStd_DeltaOnModificationOfExtS
       }
     }
     OldAtt->RemoveArray();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(OldAtt->Array().IsNull())
       cout << "BackUp Arr is Nullified" << endl;
 #endif
@@ -103,7 +103,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;
@@ -116,7 +116,7 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfExtStringArray::Apply: CurAtt is Null" <<endl;
 #endif
     return;
@@ -160,7 +160,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;
@@ -171,7 +171,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 dd543477da9e4a12e2db1e9343d0e158ad4f337a..2ec68cd20a01d6904cb8d4d330b0ba8884f39a59 100755 (executable)
@@ -43,7 +43,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())
@@ -82,7 +82,7 @@ TDataStd_DeltaOnModificationOfIntArray::TDataStd_DeltaOnModificationOfIntArray(c
       }
     }
     OldAtt->RemoveArray();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(OldAtt->Array().IsNull())
       cout << "BackUp Arr is Nullified" << endl;
 #endif
@@ -101,7 +101,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;
@@ -114,7 +114,7 @@ void TDataStd_DeltaOnModificationOfIntArray::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfIntArray::Apply: CurAtt is Null" <<endl;
 #endif
     return;
@@ -155,7 +155,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;
@@ -165,7 +165,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 878b2cd3c399dc96b251a078051b6c393e14d45f..dbebfb07c796f41a2eb8332d709fb7fe23acc841 100755 (executable)
@@ -44,7 +44,7 @@ TDataStd_DeltaOnModificationOfIntPackedMap::TDataStd_DeltaOnModificationOfIntPac
       Handle(TColStd_HPackedMapOfInteger) aMap1, aMap2;
       aMap1 = OldAtt->GetHMap();
       aMap2 = CurrAtt->GetHMap();
-#ifdef DEB
+#ifdef TDATASTD_DEB
       if(aMap1.IsNull())
        cout <<"DeltaOnModificationOfIntPackedMap:: Old Map is Null" <<endl;
       if(aMap2.IsNull())
@@ -71,7 +71,7 @@ TDataStd_DeltaOnModificationOfIntPackedMap::TDataStd_DeltaOnModificationOfIntPac
       }
     }
     OldAtt->RemoveMap();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(OldAtt->GetHMap().IsNull())
       cout << "BackUp Arr is Nullified" << endl;
 #endif
@@ -90,7 +90,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;
@@ -103,7 +103,7 @@ void TDataStd_DeltaOnModificationOfIntPackedMap::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfIntAPckedMAp::Apply: CurAtt is Null" <<endl;
 #endif
     return;
@@ -130,7 +130,7 @@ void TDataStd_DeltaOnModificationOfIntPackedMap::Apply()
     }
   }
   
-#ifdef DEB    
+#ifdef TDATASTD_DEB
   cout << " << Map Dump after Delta Apply >>" <<endl;
   Handle(TColStd_HPackedMapOfInteger) aIntMap = aCurAtt->GetHMap();
   TColStd_MapIteratorOfPackedMapOfInteger it(aIntMap->Map());
index 4c2b4e9aee63fd8a6c5fbce2f396ec069b6b160e..da0a1509b6bbe29e06f7d57249cdd914a2627331 100755 (executable)
@@ -43,7 +43,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())
@@ -81,7 +81,7 @@ TDataStd_DeltaOnModificationOfRealArray::
       }
     }
     OldAtt->RemoveArray();
-#ifdef DEB
+#ifdef TDATASTD_DEB
     if(OldAtt->Array().IsNull())
       cout << "BackUp Arr is Nullified" << endl;
 #endif
@@ -100,7 +100,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;
@@ -113,7 +113,7 @@ void TDataStd_DeltaOnModificationOfRealArray::Apply()
   }
 
   if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef TDATASTD_DEB
     cout << "DeltaOnModificationOfRealArray::Apply: CurAtt is Null" <<endl;
 #endif
     return;
@@ -154,7 +154,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;
@@ -165,7 +165,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 ef86bfe0ccfbd5182efc55947c81a9bb14d1c673..ea76465f9b05c0fa91b18f8d4d841cc4f7b781bc 100755 (executable)
@@ -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 c3cb24c84fa9d63c3e358f8ab4984635a94d4716..233a0231a02522796e28e21e44d29e22c4678544 100755 (executable)
@@ -104,7 +104,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 c252268d887c65d7649876dd37db167b2b07f9b7..a2e9fe1b08fad8480c86e3cf105c27da85cbeb86 100755 (executable)
@@ -763,7 +763,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 03c8332d24e4df6d547e20996d53efe67fc4c5a3..5b6ce5ba1ed2e4cd8e15082d84990a84e92a051f 100755 (executable)
@@ -313,7 +313,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 7d0e52964c739029d883545c39eecc65a70bb417..6cabcf004b43e0086a83981b2e417456e2400789 100755 (executable)
@@ -143,7 +143,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
       }
@@ -151,7 +151,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
   }
@@ -219,7 +219,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();
@@ -238,7 +238,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
        }
@@ -264,7 +264,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
   }
@@ -290,7 +290,7 @@ Standard_Boolean TNaming_Localizer::IsNew (const TopoDS_Shape&    S,
       break;
     }
   }
-#ifdef DEB
+#ifdef TNAMING_DEB
   cout <<"TNaming_Localizer:IsNewInLab : Shape n est pas dans le Label."<<endl;
 #endif
   return Standard_False;
@@ -346,7 +346,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 8667b3612ae33c032acc4076fd6581c2c024fe90..1c865e44a4adb74e81211600f3bfa938ad7492ab 100755 (executable)
@@ -2239,7 +2239,7 @@ case TNaming_SHELLIN:
     }
   }
 } catch (...) {
-#ifdef DEB  
+#ifdef TNAMING_DEB  
   cout << "Name::Solve: EXCEPTION==> NameType = " << NameTypeToString(myType) << "  ";
   PrintEntry(aLab);
 #endif
index b57ccbfb6a9a7ddd8a0f70c07c5979ade67d0bff..58f1e5751251bc854c1a48f5001828ba784b581f 100755 (executable)
@@ -263,7 +263,7 @@ static void RemoveNode(Standard_Boolean                   MapExist ,
 void TNaming_NamedShape::Clear()
 {
   if (Label().IsNull()) {
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout << "attention etat fantomatique" << endl;
 #endif
     return;
@@ -479,7 +479,7 @@ static TopLoc_Location GetLocation(const TopLoc_Location& L,
   if (!L.IsIdentity()) {
     Handle(TopLoc_Datum3D) TD;
     if(!RT->HasTransientRelocation(L.FirstDatum(), TD))
-#ifdef DEB
+#ifdef TNAMING_DEB
       cout <<"TNaming_Named_Shape::Paste : Relocation for TopLocation don't exist" << endl;
 #endif
     result = GetLocation(L.NextLocation(), RT) * 
@@ -694,7 +694,7 @@ void TNaming_Builder::Generated(const TopoDS_Shape& newShape)
   TNaming_RefShape* pns;
   
   if (myShapes->myMap.IsBound(newShape)) {
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout <<"TNaming_Builder::Generate : the shape is already in the attribute"<<endl;
 #endif
     pns = myShapes->myMap.ChangeFind(newShape);
@@ -735,7 +735,7 @@ void TNaming_Builder::Delete(const TopoDS_Shape& oldShape)
   if (myShapes->myMap.IsBound(oldShape)) 
     pos = myShapes->myMap.ChangeFind(oldShape); 
   else {
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout <<"TNaming_Builder::Delete : the shape is not in the data"<<endl;
 #endif
     pos = new TNaming_RefShape(oldShape);  
@@ -761,7 +761,7 @@ void TNaming_Builder::Generated(const TopoDS_Shape& oldShape,
   }
 
   if (oldShape.IsSame(newShape)) {
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout <<"TNaming_Builder::Generate : oldShape IsSame newShape"<<endl;
 #endif
     return;
@@ -804,7 +804,7 @@ void TNaming_Builder::Modify(const TopoDS_Shape& oldShape,
   }
 
   if (oldShape.IsSame(newShape)) {
-#ifdef DEB
+#ifdef TNAMING_DEB
     cout <<"TNaming_Builder::Modify : oldShape IsSame newShape"<<endl;
 #endif
     return;
@@ -949,7 +949,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 45d2d38b880d1be9236b62758ca1d4f1bdf685da..e94672b2c67b7baf1b376fbb26ee4e9425b567e5 100755 (executable)
@@ -637,7 +637,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;
@@ -736,7 +736,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 c8c67eb8295afdc460ff25f1296f10fe9f748e77..2b7c3542de09c699f371b8a3b0d375cc22e15001 100755 (executable)
@@ -242,7 +242,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
 {
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout <<  "TPrsStd_ConstraintTools::ComputeDistance: at least 2 geometries are needed" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -264,7 +264,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
     GetTwoShapes (aConst,shape1,shape2);    
 
   if (shape1.IsNull() || shape2.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
     cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << endl;
 #endif
     NullifyAIS(anAIS);
@@ -276,7 +276,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
     if (nbgeom != 2) {
       is_directed = !shape3.IsNull();
       if (!is_directed)  {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
        cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << endl;
 #endif
        NullifyAIS(anAIS);
@@ -289,7 +289,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
 
     aplane = Handle(Geom_Plane)::DownCast(ageom3);
     if (aplane.IsNull()) {
-#ifdef DEB
+#ifdef TPRSSTD_DEB
       cout << "TPrsStd_ConstraintTools::ComputeDistance : null plane" << endl;
 #endif
       NullifyAIS(anAIS);
@@ -425,7 +425,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);
@@ -439,7 +439,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);
@@ -464,7 +464,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);
@@ -484,7 +484,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);
@@ -492,7 +492,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);
@@ -504,7 +504,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);
@@ -512,7 +512,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);
@@ -545,7 +545,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);
@@ -554,7 +554,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);
@@ -566,7 +566,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);
@@ -577,7 +577,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);
@@ -611,7 +611,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);
@@ -621,7 +621,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);
@@ -634,7 +634,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);
@@ -647,7 +647,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);
@@ -684,14 +684,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);
@@ -702,7 +702,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);
@@ -712,7 +712,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);
@@ -757,7 +757,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);
@@ -805,7 +805,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);
@@ -820,7 +820,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);
@@ -832,7 +832,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);
@@ -856,7 +856,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
@@ -882,7 +882,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);
@@ -903,7 +903,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
@@ -926,7 +926,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);
@@ -943,7 +943,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);
@@ -951,7 +951,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);
@@ -970,7 +970,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);
@@ -1050,7 +1050,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);
@@ -1061,7 +1061,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);
@@ -1073,7 +1073,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);
@@ -1082,7 +1082,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);
@@ -1117,7 +1117,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);
@@ -1127,7 +1127,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);
@@ -1139,7 +1139,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);
@@ -1176,7 +1176,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);
@@ -1197,7 +1197,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);
@@ -1207,7 +1207,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);
@@ -1219,7 +1219,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);
@@ -1256,7 +1256,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);
@@ -1276,7 +1276,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);
@@ -1286,7 +1286,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);
@@ -1298,7 +1298,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);
@@ -1335,7 +1335,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);
@@ -1364,7 +1364,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);
@@ -1378,7 +1378,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);
@@ -1392,7 +1392,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);
@@ -1447,7 +1447,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;
@@ -1458,14 +1458,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;
@@ -1487,7 +1487,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;
@@ -1506,7 +1506,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);
@@ -1517,7 +1517,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);
@@ -1561,7 +1561,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);
@@ -1598,7 +1598,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);
@@ -1608,7 +1608,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);
@@ -1640,7 +1640,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);
@@ -1661,14 +1661,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);
@@ -1680,7 +1680,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);
@@ -1690,7 +1690,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);
@@ -1726,7 +1726,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);
@@ -1753,7 +1753,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);
@@ -1799,7 +1799,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
       BRepAdaptor_Curve CURVE(OE);
       if (CURVE.GetType() == GeomAbs_Line)  {
        // Works only with line !!
-//#ifndef DEB
+//#ifndef TPRSSTD_DEB
         Handle_Geom_Geometry aGeomGeometry = CURVE.Curve().Curve()->Transformed(CURVE.Trsf()) ;
         gp_Lin OLin = ((Handle(Geom_Line)&) aGeomGeometry)->Lin();
 //#else
@@ -1807,7 +1807,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
 //#endif
        TopoDS_Edge NE = TopoDS::Edge(S2);
        CURVE.Initialize (NE);
-//#ifndef DEB
+//#ifndef TPRSSTD_DEB
         aGeomGeometry = CURVE.Curve().Curve()->Transformed(CURVE.Trsf()) ;
         gp_Lin NLin = ((Handle(Geom_Line)&)aGeomGeometry)->Lin();
 //#else
@@ -1831,7 +1831,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
       }
       else
       if (CURVE.GetType() == GeomAbs_Circle)  {
-//#ifndef DEB
+//#ifndef TPRSSTD_DEB
         Handle_Geom_Geometry aGeomGeometry = CURVE.Curve().Curve()->Transformed(CURVE.Trsf()) ;
         gp_Ax1 ax = ((Handle(Geom_Circle)&) aGeomGeometry)->Circ().Axis();
 //#else
@@ -1857,7 +1857,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
 
       BRepBuilderAPI_MakeFace MkF (w1,Standard_True);
       if (MkF.IsDone())  {
-//#ifndef DEB
+//#ifndef TPRSSTD_DEB
         Handle_Geom_Surface aGeomSurface = BRep_Tool::Surface(MkF.Face());
         aplane = (Handle(Geom_Plane)&) aGeomSurface ;
 //#else
@@ -1903,7 +1903,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);
@@ -1926,7 +1926,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);
@@ -2057,7 +2057,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);
@@ -2065,7 +2065,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() ; 
@@ -2076,7 +2076,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);
@@ -2086,7 +2086,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);
@@ -2119,7 +2119,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);
@@ -2128,7 +2128,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);
@@ -2175,7 +2175,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;
@@ -2195,7 +2195,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 e2f480c949cb949e7d0e489ee86fb90cda5bbf36..96111ff10482d945823009b9b86a9ba40cc35eb2 100755 (executable)
@@ -52,7 +52,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 c9058a6343b7dcbd6ea63b14c885c8ef8f41c4e3..a2bd603c27019f4245f1cf41f74819781655ce27 100755 (executable)
@@ -122,7 +122,7 @@ void TestTopOpe::Factory(Draw_Interpretor& theDI)
 
   BOPTest::Factory(theDI);
 
-#ifdef DEB
+#ifdef TESTTOPOPE_DEB
       cout << "Draw Plugin : All topological operations kernel commands are loaded" << endl;
 #endif
 }
index 35f8d38b6e12d9018ddb1c98f87f8cc4e554a1a6..0a3902519b7117afa844d9b1be8d9a4bf440c370 100755 (executable)
@@ -136,7 +136,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 7717f673540d4d36b40c6ff0e7c4d95c29c9a347..9c89c3c001d8a57b8bc1732bcc290387111b979d 100755 (executable)
@@ -43,7 +43,9 @@ void TopClass_Classifier3d::Reset(const gp_Lin&       L,
 void TopClass_Classifier3d::Compare(const TopoDS_Face&        Face,
                                    const TopAbs_Orientation  Orientation) {  
   if(!isSet) { 
+#ifdef TOPCLASS_DEB
     cout<<" Call to TopClass_Classifier3d::Compare  without a Reset ! ";
+#endif
     return;
   }
 
@@ -57,7 +59,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;
        }
@@ -71,9 +75,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 a9bd4ff8b9fef63a186bb21f94c692bc0203973a..83e2960f548294566a3d0e53eed1a9a6a9728c58 100755 (executable)
@@ -108,7 +108,7 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
                      myState = 4; //-- OUT --
                    }
                    else {
-#ifdef DEB
+#ifdef TOPCLASS_DEB
                      cout<<"*Probleme ds TopClass_SolidClassifier.gxx"<<endl;
 #endif
                    }
@@ -127,7 +127,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 62c661c4fe7f0442b1551ad2e4f83fc7ffa6a77f..3f8c16fd5a17e3a55645e31408f0f32753d5f473 100755 (executable)
@@ -102,19 +102,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 78bb3c1aec446b854f8c95c90c1bf5990aada800..ffe201972a8864b7da427c0c265b996849f7b376 100755 (executable)
@@ -292,7 +292,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;
@@ -887,7 +887,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;
@@ -945,7 +945,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 849bf1fec38adb38456fd01137d73a42a7066ddd..03fe573632af2a4f359947b92246bf2cc4358160 100755 (executable)
@@ -177,7 +177,7 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
 
     Standard_Boolean faulty =  (isvertex && isnewpoint) || (!isvertex && isnewvertex);
     if (faulty) {
-#ifdef DEB
+#ifdef TOPOPEBREP_DEB
       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 aba7ac663506d8b39d3eb4923f2da64aec9c6cbb..6af609853b94a47382449fea2603e9c47f5dc4bd 100755 (executable)
@@ -232,7 +232,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;
@@ -364,7 +364,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 63446a6a9d1b25b07fc170b1ec49820a6e9084c6..68a2c6e387feece22768156f99a791d16ff71596 100755 (executable)
@@ -454,7 +454,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;
@@ -761,7 +761,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 f1470c502b34837eded692ad8fbcc2609f12a73e..a364d3f578765fcc48c2456e8f1fd0cff3e93c1f 100755 (executable)
@@ -1182,7 +1182,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();
@@ -1198,7 +1198,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 f058fbd7fe5982cb9011533d30ea53c939c30cf7..296a28adabf8805dd10d321807446740173e3b70 100755 (executable)
@@ -1181,7 +1181,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 6ddcf41b62f12644d08ba7efdce450c83e4423eb..4849590f0deff748715dd6c9163e503fb01f7f3b 100755 (executable)
@@ -255,7 +255,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 0797018f921631ccc1f88d34bb662a2b73862475..06ddfdab2b113ae9cd60d683349ff601612c4961 100755 (executable)
@@ -791,7 +791,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;
@@ -817,7 +817,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 dcf43e89cc619d063aa5af468bb82a89b841b6d5..a82bb6068f0d4e0c8e0a2af1f0a65c6f7d5f6948 100755 (executable)
@@ -807,7 +807,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
@@ -930,7 +930,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 a705954819406f24cea92d7ddfc3278b0be27cef..33054685dc9aba2e9418cb14ffa2d09ebfe2010e 100755 (executable)
@@ -478,7 +478,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 3f628c4b837034701e9bb03cc2af3b89e733bd71..67ffbf17229c321bb32c9d96cb013e10a23a3f8a 100755 (executable)
@@ -788,7 +788,7 @@ void TopOpeBRepBuild_Builder::MergeKPartisdisj()
        return;
       }    
       else {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
        cout<<"TopOpeBRepBuild_MergeKPart soldisj : ires = "<<ires<<endl;
 #endif
        return;
index bed95e8cbde4a0fe0476d1f40684f71448d2205c..b88e787bd8c64625745138fcaa5dbc892e912497 100755 (executable)
@@ -167,7 +167,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 32f4eeac3d297dbe31b037084cc34a439ac2ee66..927a0b702e496fac6956b415843ea2137f5bd23d 100755 (executable)
@@ -141,7 +141,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 958caf58fed1abe7569b21bc2081c45981fc41a4..536716830f024920f293e1b686a54e146f24849f 100755 (executable)
@@ -451,7 +451,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 955c4ad850da966ad086c2d81435860fde5a3794..430d67a29554c72a64a5d93c2229c3be3bc83afe 100755 (executable)
@@ -192,7 +192,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 23de2ce37ca25259ee34df27493e2d1098a6bff1..075367b20df3ed247e4aa0707dc2cee435543adc 100755 (executable)
@@ -335,7 +335,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
   } // === fin RESNEWSHE 
   
   else {
-#ifdef DEB
+#ifdef TOPOPEBREPBUILD_DEB
     cout<<"MergeKPartiskole : ires = "<<ires<<endl;
 #endif
   }
index 46cc4870aee96fe233f372b466ec642e6d12fc50..9b29134e5521a921ea86b900561a0b589b3b655b 100755 (executable)
@@ -565,7 +565,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
 
     Standard_Boolean topurge = FUN_purgeFon1nonoriE(newFace);
     if (topurge) {
-#ifdef DEB      
+#ifdef TOPOPEBREPBUILD_DEB      
       if (strange) cout<<"Builder::GFABUMakeFaces -> purgeFon1nonoriE\n";
 #endif
       continue;
index 616f1c433112ce293ec67dc49397010e417cd7f3..30fd50453f494432124f15fa9e6495064d5b5294 100755 (executable)
@@ -720,7 +720,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 b9174897022ace742a462acc8b3b88d567a867db..28e980637176ddeac1e8ae3f595f9f863f36ab19 100755 (executable)
@@ -118,7 +118,7 @@ Standard_Boolean TopOpeBRepDS_Check::ChkIntg()
     bI = bI && ChkIntgInterf(LI);
   }
   
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
   PrintIntg(cout);
 #endif
 //  CheckEdgeParameter();
@@ -160,7 +160,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
@@ -176,7 +176,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
@@ -193,7 +193,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
@@ -213,7 +213,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
@@ -239,7 +239,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 ";
@@ -271,7 +271,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
@@ -282,7 +282,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
@@ -293,7 +293,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);
@@ -319,7 +319,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;
@@ -389,7 +389,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;
@@ -400,7 +400,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;
@@ -419,7 +419,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;
@@ -437,7 +437,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 34bc635a22a29c4de4280b9c4bff6dac9d347274..ce755eb3fe0bf3269008630a3ccf366e915de068 100755 (executable)
@@ -962,7 +962,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
     }
@@ -1184,7 +1184,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");
@@ -1203,7 +1203,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 684f16effc3b47b78dbad6aa8f122ceb42fe3009..53bec948b8e2472c46b3b5684e5dacb6c4f9238c 100755 (executable)
@@ -401,7 +401,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 a0f18e38976d411ab90b9cbcfee16fc826c3b550..4bd7885310480d9b3940f9fd7c054deff80d3276 100755 (executable)
@@ -40,7 +40,7 @@
 static void FUN_Raise()
 {
   Standard_ProgramError::Raise("Edge3dInterferenceTool");
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
   cout <<" ************** Failure in Edge3dInterferenceTool"<<endl;
 #endif
 }
index fde57459d515bd545b0d681334c033cdd7104d92..869cc838ad340fdf065ec3d4244d72cfb90624f0 100755 (executable)
@@ -52,7 +52,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 a9cd70e5006b8b57ea623a3c7f5c254d229c5fd8..b46083466d39378796cdc0d4f7d2760fc3623e30 100755 (executable)
@@ -34,7 +34,7 @@
 
 static void FUN_Raise()
 {
-#ifdef DEB
+#ifdef TOPOPEBREPDS_DEB
   cout<<"****************************** TopOpeBRepDS_TOOL"<<endl;
 #endif
 }
index 08ff9b37f6c1d9de1cc9f62b432d3deeb2223d09..d89c25f1843c13e60cdd4c7365d6b9e65871404f 100755 (executable)
@@ -655,7 +655,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 7be5dffedf6046ba89c52640c76c77ab1c5f40ce..5c1fca24c5648cb843d808e38780c5231b02a519 100755 (executable)
@@ -159,7 +159,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 9aa03c9a16cd978a73f8f4347b3e09b9c2232077..efcdc8d53c60e6671c5b25cbc635cf4bbd930e30 100755 (executable)
@@ -230,7 +230,7 @@ const TopOpeBRepTool_IndexedDataMapOfShapeBox& TopOpeBRepTool_HBoxTool::IMS() co
 //=======================================================================
 void TopOpeBRepTool_HBoxTool::DumpB (const Bnd_Box& B)
 {
-#ifdef DEB
+#ifdef TOPOPEBREPTOOL_DEB
   if      (B.IsVoid()) cout<<"# IsVoid";
   else if (B.IsWhole()) cout<<"# IsWhole";
   else {
index 133ac7f5ed1d32e418468cafbc4e1881838eac45..4e7450db9c1c488067efb39f5897dc8df7ceed48 100755 (executable)
@@ -560,7 +560,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 44b4d1b201d614d44c4923e811c5b487efac29d4..da1ae84c8897a1dbb923969f91e5e36a86599f5d 100755 (executable)
@@ -1281,7 +1281,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 f6036ccff5cc37aeaa7f393a8b0be3b8288dc0bf..620742338e8a9df74c2d0ce6f3ae15c281e85822 100755 (executable)
@@ -88,7 +88,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
            }
@@ -99,11 +99,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 ae0341a05eee2c92f40137c8bddf51f36c6f7b5d..d02a7636d658f70eb68dea106566e5d3613a7bf5 100755 (executable)
@@ -209,7 +209,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 0e3a06a7bd4b970884d8fcaa9619fcbab63cc70b..0124859dd158ae0b6e09121515dbf840be90433a 100755 (executable)
@@ -183,7 +183,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");
@@ -281,7 +281,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 b0d41435acc6514a0820adf7e886007678045522..0774a23dffdaa61f057d515ce3aaef39cfcfacde 100755 (executable)
@@ -106,7 +106,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())
     {
@@ -146,7 +146,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())
     {
@@ -189,7 +189,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())
     {
@@ -229,7 +229,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 24120838a6283dfb4b79748d647cbb621dd3fbda..8475b6cb99ff5b0ef7a1617a74223e6bee2e9f9a 100755 (executable)
@@ -164,7 +164,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;
@@ -267,7 +267,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
     }
@@ -360,7 +360,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 3f0fd80a1dc365910355f0a947418a5e11daedf7..ca2abbf43d5b672ad12f6845d93037e0a230c14a 100755 (executable)
@@ -125,7 +125,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;
 }
 
@@ -165,7 +167,9 @@ Standard_CString Units::FirstQuantity(const Standard_CString aunit)
     }
   }
 
+#ifdef UNITS_DEB
   cout<<"Warning: BAD Quantity = Units::Quantity(unit('" << symbol << "'))" << endl;
+#endif
   return NULL;
 }
 
@@ -266,7 +270,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();
@@ -313,7 +319,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 9f9c944017bbe8fa8d742943eca5b68819856c4e..9a06ba0b70ebaddffeebda0d40d0be2ef4620e24 100755 (executable)
@@ -137,7 +137,9 @@ void Units_Explorer::Init(const Handle(Units_UnitsSystem)& aunitssystem,
        }
     }
 
+#ifdef UNITS_DEB
   cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+#endif
 }
 
 //=======================================================================
@@ -170,7 +172,9 @@ void Units_Explorer::Init(const Handle(Units_UnitsDictionary)& aunitsdictionary,
        }
     }
 
+#ifdef UNITS_DEB
   cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+#endif
 }
 
 //=======================================================================
index 13b3cbc3809da40002d242148faea4ab9e2cf6df..22f545182a3ef6bbc1e03cbdfc129930396a58a4 100755 (executable)
@@ -61,7 +61,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 1e37b05c8a046007ba2830377ab4de1241079167..473af12e8e2175d7573116471408b43d27aa9665 100755 (executable)
@@ -65,7 +65,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 {
@@ -101,9 +103,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 e2272cf8f7c1803125c384660f6bfd83cdb334b3..afac4308dcc68f2625f949470af970dd58f6b57b 100755 (executable)
@@ -97,7 +97,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;
@@ -118,7 +118,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 9d7f71abfbfb4ee5f578c4837d76f1430987f83c..7d997c5e02ecc587df3223b82e03512726a61750 100755 (executable)
@@ -288,7 +288,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 f80220016c0cd951c81beca5ef695d1eea1aeed5..21407f41f191e3f15c551c75a4b8c16f7fd147ba 100755 (executable)
@@ -87,7 +87,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;
   }
   
@@ -190,16 +192,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);
@@ -366,7 +358,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 1a76ed1b21b48c0060cf1602c5d00db0d5b97fd4..e74860a297e02e033ebccb5ba2648dd511815954 100755 (executable)
@@ -274,7 +274,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 4d55462d1617996304cda80ae714a80a02a9ee33..2aa4b00ee9ccdad58f444f0298400902731e77ea 100755 (executable)
@@ -183,9 +183,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;
 }
@@ -205,9 +207,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;
 }
@@ -228,9 +232,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;
 }
@@ -250,9 +256,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;
 }
@@ -272,9 +280,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;
 }
@@ -295,9 +305,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;
 }
@@ -321,8 +333,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;
 }
 
@@ -345,8 +359,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;
 }
 
@@ -398,8 +414,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;
 }
@@ -449,9 +467,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;
 }
@@ -470,9 +490,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 3894a5bbd1e01e91f183d6e58b7fe56c30d36385..e1958a15d632c9734d41bc31efc1f16d25068926 100755 (executable)
@@ -195,13 +195,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
@@ -230,7 +230,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
@@ -306,14 +306,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
@@ -360,7 +360,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 cca7e9ba3fd1156a92ed56bb5e2dc93245956e9e..ae0c9dbebabd646b666ae49103580b137c5d8d72 100755 (executable)
@@ -3589,14 +3589,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 3756d10e95192640d01c6a7c4663a9babc74cbf2..f38809d476eda9c0a83c97fed24722d881594926 100755 (executable)
@@ -69,7 +69,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;
@@ -109,7 +109,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;
@@ -125,7 +125,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)
@@ -388,7 +388,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 a16cf8bd5ffce8613c185e2adebfcab5385067a2..1afcf055323e529e4156e0ef8f9fcc0da9a4fe6a 100755 (executable)
@@ -1115,7 +1115,7 @@ WNT_LineAttribNote :: ~WNT_LineAttribNote ( void )
 {
 #ifdef PRO19042
   if ( myPen ) {
-#ifdef DEB
+#ifdef WNT_DEB
 printf(" *** Destroy:WNT_LineAttribNote %x/%x\n",myPen,ALLOCATOR->myLinePen);
 #endif
     DeletePen( myPen );
@@ -1152,7 +1152,7 @@ WNT_PolyAttribNote :: ~WNT_PolyAttribNote ( void )
 {
 #ifdef PRO19042
   if ( myBrush ) {
-#ifdef DEB
+#ifdef WNT_DEB
 printf(" *** Destroy:WNT_PolyAttribNote %x/%x\n",myBrush,ALLOCATOR->myPolyBrush);
 #endif
     DeleteBrush( myBrush );
@@ -1202,21 +1202,21 @@ WNT_TextAttribNote :: ~WNT_TextAttribNote ()
 {
 #ifdef PRO19042
   if ( myFont && (myFlags & W32F_TFREE) ) {
-#ifdef DEB
+#ifdef WNT_DEB
 printf(" *** Destroy:WNT_TextAttribNote_FONT %x/%x\n",myFont,ALLOCATOR->myTextFont);
 #endif
     DeleteFont  ( myFont  );
     myFont = NULL;
   }
   if ( myPen ) {
-#ifdef DEB
+#ifdef WNT_DEB
 printf(" *** Destroy:WNT_TextAttribNote_PEN %x/%x\n",myPen,ALLOCATOR->myTextPen);
 #endif
     DeletePen   ( myPen   );
     myPen = NULL;
   }
   if ( myBrush ) {
-#ifdef DEB
+#ifdef WNT_DEB
 printf(" *** Destroy:WNT_TextAttribNote_BRUSH %x/%x\n",myBrush,ALLOCATOR->myTextBrush);
 #endif
     DeleteBrush ( myBrush );
@@ -1270,7 +1270,7 @@ WNT_MarkerAttribNote :: ~WNT_MarkerAttribNote ( void )
 {
 #ifdef PRO19042
   if ( myPen ) {
-#ifdef DEB
+#ifdef WNT_DEB
 printf(" *** Destroy:WNT_MarkerAttribNote %x/%x\n",myPen,ALLOCATOR->myMarkerPen);
 #endif
     DeletePen( myPen );
index 484c318d9146799cc684e0ef565bd5265622f952..73593527ea74678f343e13fc40c0f2aed89186e4 100755 (executable)
@@ -152,7 +152,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 f527ec777556045037bc739dd4020aff95f8c16b..b40368310fc86ad300642591960998acb05c6ac0 100755 (executable)
@@ -46,7 +46,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)
@@ -66,14 +68,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 ae261540acea837cb0394210bd4b5b5715438760..3d8d88e3f43a341c32e2cf088cfc9e169c697c83 100755 (executable)
@@ -174,7 +174,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 4e579b928f1874b88b8fc481ff4122c75b1f3e4c..abb578374a9276b17ee0fc91d582fbcacd3368de 100755 (executable)
@@ -242,7 +242,7 @@ void XCAFPrs_AISObject::AddStyledItem (const XCAFPrs_Style &style,
   case 0:{
     try { OCC_CATCH_SIGNALS  StdPrs_WFDeflectionShape::Add(aPrs,shape,myDrawer); }
     catch (Standard_Failure) { 
-#ifdef DEB
+#ifdef XCAFPRS_DEB
       cout << "AIS_Shape::Compute() failed: exception " <<
              Standard_Failure::Caught()->DynamicType()->Name() << ": " <<
              Standard_Failure::Caught()->GetMessageString() << endl;
@@ -264,7 +264,7 @@ void XCAFPrs_AISObject::AddStyledItem (const XCAFPrs_Style &style,
          OwnDeviationCoefficient(newcoeff,prevcoeff))
        if (Abs (newangle - prevangle) > Precision::Angular() ||
            Abs (newcoeff - prevcoeff) > Precision::Confusion()  ) { 
-#ifdef DEB
+#ifdef XCAFPRS_DEB
          cout << "AIS_Shape : compute"<<endl;
          cout << "newangl   : " << newangle << " # de " << "prevangl  : " << prevangle << " OU "<<endl;
          cout << "newcoeff  : " << newcoeff << " # de " << "prevcoeff : " << prevcoeff << endl;
@@ -286,7 +286,7 @@ void XCAFPrs_AISObject::AddStyledItem (const XCAFPrs_Style &style,
        }
       }
       catch (Standard_Failure) {
-#ifdef DEB
+#ifdef XCAFPRS_DEB
        cout << "AIS_Shape::Compute() in ShadingMode failed: exception " <<
                Standard_Failure::Caught()->DynamicType()->Name() << ": " <<
                Standard_Failure::Caught()->GetMessageString() << endl;
@@ -394,9 +394,6 @@ void XCAFPrs_AISObject::Compute (const Handle(PrsMgr_PresentationManager3d)& aPr
                                  const Handle(Prs3d_Presentation)& aPrs,
                                  const Standard_Integer aMode)
 {  
-#ifdef DEB
-  //cout << "XCAFPrs_AISObject: Update called" << endl;
-#endif
   aPrs->Clear();
 
   // abv: 06 Mar 00: to have good colors
@@ -426,33 +423,17 @@ void XCAFPrs_AISObject::Compute (const Handle(PrsMgr_PresentationManager3d)& aPr
   TopLoc_Location L;
   XCAFPrs_DataMapOfShapeStyle settings;
   XCAFPrs::CollectStyleSettings ( myLabel, L, settings );
-#ifdef DEB
-  //cout << "Styles collected" << endl;
-#endif
 
   // dispatch (sub)shapes by their styles
   XCAFPrs_DataMapOfStyleShape items;
   XCAFPrs_Style DefStyle;
   DefaultStyle (DefStyle);
   XCAFPrs::DispatchStyles ( shape, settings, items, DefStyle );
-#ifdef DEB
-  //cout << "Dispatch done" << endl;
-#endif
 
   // add subshapes to presentation (one shape per style)
   XCAFPrs_DataMapIteratorOfDataMapOfStyleShape it ( items );
-#ifdef DEB
-  //Standard_Integer i=1;
-#endif
   for ( ; it.More(); it.Next() ) {
     XCAFPrs_Style s = it.Key();
-#ifdef DEB
-    //cout << "Style " << i << ": [" << 
-    //  ( s.IsSetColorSurf() ? Quantity_Color::StringName ( s.GetColorSurf().Name() ) : "" ) << ", " <<
-    //  ( s.IsSetColorCurv() ? Quantity_Color::StringName ( s.GetColorCurv().Name() ) : "" ) << "]" <<
-       //" --> si_" << i << ( s.IsVisible() ? "" : " <invisible>" ) << endl;
-    //i++;
-#endif
     if (! s.IsVisible() ) continue;
     Prs3d_Root::NewGroup(aPrs);
     AddStyledItem ( s, it.Value(), aPresentationManager, aPrs, aMode );
@@ -460,15 +441,9 @@ void XCAFPrs_AISObject::Compute (const Handle(PrsMgr_PresentationManager3d)& aPr
   
   if ( XCAFPrs::GetViewNameMode() ) {
   // Displaying Name attributes
-#ifdef DEB
-    //cout << "Now display name of shapes" << endl;
-#endif
     aPrs->SetDisplayPriority(10);
     DisplayText (myLabel, aPrs, Attributes()->LengthAspect()->TextAspect(), TopLoc_Location());//no location
   }
-#ifdef DEB
-  //cout << "Compute finished" << endl;
-#endif
   
   aPrs->ReCompute(); // for hidden line recomputation if necessary...
 }
index ded190cef849fb6a2239488cf3fb18c1a44f2862..03b5bda3090bb70e133a3b502c3ee1a4247311a9 100755 (executable)
@@ -122,7 +122,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 )
@@ -152,7 +152,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
@@ -304,7 +304,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;
@@ -329,7 +329,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;
@@ -502,7 +502,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 7b95ab1c2b5a8d74e64a1669f1507e568388bc21..1dc5fb21a3513e8ba00fb5c31df0b3fceb8f832d 100755 (executable)
@@ -54,7 +54,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
@@ -63,7 +65,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 4137e245e2cffa09cc96870ed625a9b1d6e7d59e..dca3ce01d848a79d09ea260663563f65b3deaea5 100755 (executable)
@@ -53,9 +53,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 8d4fc6f21751f3bb95c2840716d47b7d86b2238c..73aead77a317645846a1ff8f94e3e8958c0db65a 100755 (executable)
@@ -50,7 +50,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
@@ -59,7 +61,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;
@@ -81,12 +85,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 f8e5fb564c47e2b566440fbcb0a8766d0fb4548f..7c05459e1d3aa9b02bb601de4f5c8ab42dcd6a4a 100755 (executable)
@@ -507,9 +507,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 38257068defd71002e9d43247712fe71b5e8471a..26c2fbdf184bdc5a198de401ae3ba5b0639c3dcd 100755 (executable)
@@ -357,7 +357,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 3e9da07ddc05018825ba659e31f76ac55b2c2530..1a6a94b125a8539293b42befa7eefdfdd880c481 100755 (executable)
@@ -106,7 +106,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;
@@ -265,7 +265,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 f0a359b64d52e1f717bfc3e8fe97aa861f036af6..af37fbdbb91c6d3989efb6f6d901ca3f4fd58123 100755 (executable)
@@ -112,9 +112,6 @@ Standard_Boolean XmlMDataStd_ByteArrayDriver::Paste(const XmlObjMgt_Persistent&
   }
   aByteArray->ChangeArray(array);
   
-#ifdef DEB
-  //cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <<endl;
-#endif
   Standard_Boolean aDelta(Standard_False);
   
   if(XmlMDataStd::DocumentVersion() > 2) {
@@ -131,7 +128,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 2d393a373c6c3c1d1e4fca2118e5fbd6fed92b06..2b8047427050f3d51ba8064b5a27bb10f896cb42 100755 (executable)
@@ -112,9 +112,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) {
@@ -131,7 +128,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 9aa07def037566a7fd6dba652841af6c8e1e8d7a..3e2a038aa5ae99bf8ac21375a7d7e687928d44b7 100755 (executable)
@@ -103,10 +103,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);
   
@@ -124,7 +120,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 a1f4596f18d4acc2b83c7ec9ff7a96814606d321..ef9862540322ee1ff79de76da0935156987100c6 100755 (executable)
@@ -115,9 +115,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) {
@@ -134,7 +131,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 eb4cfef45e5375f0de55911893f57ddb0ff6f12a..8b07f5ab5d8fb78c32e24724c50e5e86a89c68eb 100755 (executable)
@@ -494,12 +494,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()) {
@@ -524,11 +518,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 d0edf72ed963f740d89f1a52cccdbdd14a572a73..da1c2ffe75c695b2e38b5653acc0275d28eab0de 100755 (executable)
@@ -120,9 +120,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) {
@@ -139,7 +136,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 229b7e9091adc7aef4208d0de85e1b4d7a2469d4..d0bc5f43fdaaff87e0d3929942149128af95b968 100755 (executable)
@@ -172,9 +172,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)
@@ -194,17 +191,17 @@ 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
   }
-#ifdef DEB
+#ifdef XMLMNAMING_DEB
   else if(XmlMNaming::DocumentVersion() == -1)
     cout << "Current DocVersion field is not initialized. "  <<endl;
   else 
@@ -277,7 +274,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 52ac272968d7f7bb8b0fa40236625e19d02102e3..ad1b55dd6805f60f8e8231f59f29861b6e4622e7 100755 (executable)
@@ -104,7 +104,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 81f47505f4dfd8334f5d82bcc0bc1c7c6f2c1120..1c47991a61df15a706fd9049c515943787b003b5 100755 (executable)
@@ -44,7 +44,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
@@ -53,7 +55,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 99b78c3c674865e5dec5121a87b5ef4a77b3e17e..18bfd78f15e36bbe7f38ca6c17a21f7941d431d4 100755 (executable)
@@ -39,7 +39,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
@@ -47,7 +49,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 07a7cf8ae7eef3ba542e27ff41d30e7a9c13ac3e..fc4cc7f5a4448eb948be36e56da5991c684b27fc 100755 (executable)
@@ -194,7 +194,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
 }