From c3db4a9459450feb2a58cd4bf0d54dbe5666651f Mon Sep 17 00:00:00 2001 From: dbv Date: Thu, 9 Oct 2014 14:32:26 +0400 Subject: [PATCH] 0025266: Debug statements in the source are getting flushed on to the console Most of debug statements have been placed into #ifdef PACKAGE_DEB operator --- src/AIS/AIS_AngleDimension.cxx | 16 +- src/AIS/AIS_ConnectedShape.cxx | 2 +- src/AIS/AIS_InteractiveContext.cxx | 22 +-- src/AIS/AIS_InteractiveContext_1.cxx | 10 +- src/AIS/AIS_InteractiveContext_2.cxx | 4 +- src/AIS/AIS_InteractiveObject.cxx | 2 +- src/AIS/AIS_LocalContext_1.cxx | 4 +- src/AIS/AIS_MultipleConnectedShape.cxx | 2 +- src/AIS/AIS_RadiusDimension.cxx | 2 +- src/AIS/AIS_Shape.cxx | 12 +- src/AIS/AIS_TexturedShape.cxx | 10 ++ src/AdvApp2Var/AdvApp2Var_Context.cxx | 2 +- src/AlienImage/AlienImage_BMPAlienData.cxx | 24 +++ src/AlienImage/AlienImage_GIFAlienData.cxx | 12 ++ src/AppBlend/AppBlend_AppSurf.gxx | 10 +- src/Approx/Approx_CurvilinearParameter.cxx | 2 +- src/Approx/Approx_SameParameter.cxx | 10 +- src/BRepAlgo/BRepAlgo_BooleanOperation.cxx | 2 +- src/BRepAlgo/BRepAlgo_DSAccess.cxx | 2 +- src/BRepAlgo/BRepAlgo_Loop.cxx | 6 +- src/BRepAlgo/BRepAlgo_NormalProjection.cxx | 12 +- src/BRepBlend/BRepBlend_AppFuncRoot.cxx | 4 +- src/BRepBlend/BRepBlend_SurfRstConstRad.cxx | 2 +- src/BRepBlend/BRepBlend_SurfRstEvolRad.cxx | 2 +- .../BRepBlend_SurfRstLineBuilder.cxx | 14 +- src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx | 48 ++--- src/BRepCheck/BRepCheck_Analyzer.cxx | 12 +- src/BRepCheck/BRepCheck_Wire.cxx | 14 +- src/BRepClass3d/BRepClass3d_SClassifier.cxx | 2 +- src/BRepClass3d/BRepClass3d_SolidExplorer.cxx | 4 +- src/BRepFeat/BRepFeat_MakeDPrism.cxx | 2 +- src/BRepFeat/BRepFeat_MakeLinearForm.cxx | 27 ++- src/BRepFeat/BRepFeat_MakeRevolutionForm.cxx | 29 +-- src/BRepFeat/BRepFeat_RibSlot.cxx | 11 +- src/BRepFill/BRepFill.cxx | 2 +- src/BRepFill/BRepFill_Draft.cxx | 6 +- src/BRepFill/BRepFill_LocationLaw.cxx | 2 +- src/BRepFill/BRepFill_MultiLine.cxx | 6 +- src/BRepFill/BRepFill_Sweep.cxx | 12 +- src/BRepFill/BRepFill_TrimEdgeTool.cxx | 18 +- src/BRepFill/BRepFill_TrimSurfaceTool.cxx | 6 +- src/BRepLib/BRepLib_FuseEdges.cxx | 2 +- src/BRepLib/BRepLib_MakeWire.cxx | 6 +- src/BRepOffset/BRepOffset_Analyse.cxx | 4 +- src/BRepOffset/BRepOffset_Inter2d.cxx | 16 +- src/BRepOffset/BRepOffset_Offset.cxx | 4 +- src/BRepOffset/BRepOffset_Tool.cxx | 10 +- src/BRepTest/BRepTest_CurveCommands.cxx | 4 - src/BRepTest/BRepTest_ExtremaCommands.cxx | 2 +- src/BRepTools/BRepTools_ReShape.cxx | 2 +- .../BRepTopAdaptor_FClass2d.cxx | 4 +- src/BRepTopAdaptor/BRepTopAdaptor_Tool.cxx | 4 + src/BSplCLib/BSplCLib.cxx | 2 +- src/BiTgte/BiTgte_Blend.cxx | 2 +- src/BinDrivers/BinDrivers.cxx | 4 + src/BinLDrivers/BinLDrivers.cxx | 4 + .../BinLDrivers_DocumentStorageDriver.cxx | 4 +- .../BinMDataStd_ByteArrayDriver.cxx | 10 +- .../BinMDataStd_ExtStringArrayDriver.cxx | 6 - .../BinMDataStd_IntPackedMapDriver.cxx | 4 +- .../BinMDataStd_IntegerArrayDriver.cxx | 5 +- .../BinMDataStd_RealArrayDriver.cxx | 4 +- src/BinMNaming/BinMNaming_NamingDriver.cxx | 7 +- .../BinMXCAFDoc_LocationDriver.cxx | 2 +- src/BinTObjDrivers/BinTObjDrivers.cxx | 4 + src/BinTools/BinTools_Curve2dSet.cxx | 7 +- src/BinTools/BinTools_CurveSet.cxx | 2 +- src/BinTools/BinTools_ShapeSet.cxx | 13 +- src/BinTools/BinTools_SurfaceSet.cxx | 18 +- src/BinXCAFDrivers/BinXCAFDrivers.cxx | 4 + src/Blend/Blend_Walking_1.gxx | 10 -- src/Blend/Blend_Walking_4.gxx | 4 +- src/BlendFunc/BlendFunc_ConstRad.cxx | 14 +- src/BlendFunc/BlendFunc_ConstRadInv.cxx | 8 +- src/BlendFunc/BlendFunc_EvolRad.cxx | 20 +-- src/CSLib/CSLib_Class2d.cxx | 2 + src/ChFi3d/ChFi3d.cxx | 2 +- src/ChFi3d/ChFi3d_Builder.cxx | 24 +-- src/ChFi3d/ChFi3d_Builder_1.cxx | 6 +- src/ChFi3d/ChFi3d_Builder_2.cxx | 22 +-- src/ChFi3d/ChFi3d_Builder_6.cxx | 114 ++++++------ src/ChFi3d/ChFi3d_Builder_C1.cxx | 8 +- src/ChFi3d/ChFi3d_Builder_C2.cxx | 24 +-- src/ChFi3d/ChFi3d_Builder_CnCrn.cxx | 4 +- src/ChFi3d/ChFi3d_Builder_SpKP.cxx | 16 +- src/ChFi3d/ChFi3d_ChBuilder_C3.cxx | 2 +- src/ChFi3d/ChFi3d_FilBuilder.cxx | 2 +- src/ChFi3d/ChFi3d_FilBuilder_C3.cxx | 6 +- src/ChFiDS/ChFiDS_Spine.cxx | 10 +- .../ChFiKPart_ComputeData_ChAsymPlnCon.cxx | 8 +- .../ChFiKPart_ComputeData_ChAsymPlnCyl.cxx | 4 + .../ChFiKPart_ComputeData_ChPlnCyl.cxx | 2 + .../ChFiKPart_ComputeData_FilPlnCon.cxx | 2 + .../ChFiKPart_ComputeData_FilPlnCyl.cxx | 4 +- .../ChFiKPart_ComputeData_Sphere.cxx | 2 +- src/DBRep/DBRep.cxx | 4 +- src/DBRep/DBRep_IsoBuilder.cxx | 14 +- src/DDF/DDF_BrowserCommands.cxx | 2 +- src/DDF/DDF_IOStream.cxx | 4 +- src/DDataStd/DDataStd_BasicCommands.cxx | 2 +- src/DNaming/DNaming.cxx | 12 +- .../DNaming_BooleanOperationDriver.cxx | 8 +- src/DNaming/DNaming_CylinderDriver.cxx | 8 +- src/DNaming/DNaming_FilletDriver.cxx | 8 +- src/DNaming/DNaming_ModelingCommands.cxx | 26 +-- src/DNaming/DNaming_PointDriver.cxx | 2 +- src/DNaming/DNaming_SphereDriver.cxx | 4 +- src/DNaming/DNaming_TransformationDriver.cxx | 4 +- src/DPrsStd/DPrsStd.cxx | 2 +- .../DPrsStd_AISPresentationCommands.cxx | 6 +- src/Draft/Draft_Modification_1.cxx | 18 +- src/Draw/Draw.cxx | 8 +- src/Draw/Draw_Interpretor.cxx | 2 +- src/Draw/Draw_PloadCommands.cxx | 16 +- src/DrawDim/DrawDim_PlanarDiameter.cxx | 2 + src/DrawDim/DrawDim_PlanarDistance.cxx | 2 + src/DrawDim/DrawDim_PlanarRadius.cxx | 2 + src/DrawDim/DrawDim_Radius.cxx | 3 +- src/FSD/FSD_CmpFile.cxx | 4 + src/Font/Font_FTFont.cxx | 2 +- src/Geom/Geom_OsculatingSurface.cxx | 30 ++-- src/GeomFill/GeomFill_ConstrainedFilling.cxx | 10 +- src/GeomFill/GeomFill_CorrectedFrenet.cxx | 4 +- src/GeomFill/GeomFill_GuideTrihedronAC.cxx | 2 +- src/GeomFill/GeomFill_LocationGuide.cxx | 10 +- src/GeomFill/GeomFill_NSections.cxx | 10 +- src/GeomFill/GeomFill_Pipe.cxx | 4 +- .../GeomFill_SweepSectionGenerator.cxx | 2 + src/GeomToIGES/GeomToIGES_GeomCurve.cxx | 4 +- .../GeomToStep_MakeBoundedCurve.cxx | 2 +- src/GeomToStep/GeomToStep_MakeConic.cxx | 4 +- src/GeomToStep/GeomToStep_MakeCurve.cxx | 6 +- src/GeomToStep/GeomToStep_MakeSurface.cxx | 2 +- src/GeomTools/GeomTools_Curve2dSet.cxx | 2 +- src/GeomTools/GeomTools_CurveSet.cxx | 2 +- src/GeomTools/GeomTools_SurfaceSet.cxx | 2 +- .../GeomliteTest_API2dCommands.cxx | 2 + .../GeomliteTest_ApproxCommands.cxx | 4 +- src/Graphic3d/Graphic3d_Structure.cxx | 2 +- src/Graphic3d/Graphic3d_TextureRoot.cxx | 4 + src/HLRBRep/HLRBRep_Data.cxx | 16 +- src/HLRBRep/HLRBRep_Hider.cxx | 2 +- src/HLRBRep/HLRBRep_PolyAlgo.cxx | 26 +-- src/IFSelect/IFSelect_Activator.cxx | 2 +- src/IGESCAFControl/IGESCAFControl_Reader.cxx | 2 +- src/IGESCAFControl/IGESCAFControl_Writer.cxx | 5 +- src/IGESControl/IGESControl_IGESBoundary.cxx | 10 +- src/IGESControl/IGESControl_Writer.cxx | 8 +- src/IGESData/IGESData_ReadWriteModule.cxx | 2 +- src/IGESSelect/IGESSelect_SplineToBSpline.cxx | 2 +- src/IGESToBRep/IGESToBRep.cxx | 4 +- src/IGESToBRep/IGESToBRep_BasicCurve.cxx | 6 +- src/IGESToBRep/IGESToBRep_BasicSurface.cxx | 2 +- src/IGESToBRep/IGESToBRep_TopoSurface.cxx | 6 +- src/Image/Image_AlienPixMap.cxx | 4 + src/Image/Image_Diff.cxx | 8 + src/IntCurveSurface/IntCurveSurface_Inter.gxx | 4 +- .../IntCurveSurface_Polygon.gxx | 4 + src/IntPatch/IntPatch_LineConstructor.cxx | 8 +- src/IntPatch/IntPatch_RstInt.cxx | 5 - .../IntStart_SearchOnBoundaries_1.gxx | 3 - src/IntWalk/IntWalk_IWalking_2.gxx | 2 +- src/IntWalk/IntWalk_PWalking_1.gxx | 4 +- src/IntWalk/IntWalk_PWalking_4.gxx | 2 +- src/Interface/Interface_Static.cxx | 6 +- src/LDOM/LDOM_MemManager.cxx | 2 +- src/LocOpe/LocOpe_BuildShape.cxx | 2 +- src/LocOpe/LocOpe_FindEdges.cxx | 8 +- src/LocOpe/LocOpe_SplitDrafts.cxx | 2 +- src/LocOpe/LocOpe_SplitShape.cxx | 6 +- src/LocOpe/LocOpe_Spliter.cxx | 2 +- src/MDF/MDF_Tool.cxx | 6 +- src/MDocStd/MDocStd.cxx | 4 +- ...MPrsStd_AISPresentationRetrievalDriver.cxx | 2 +- ...rsStd_AISPresentationRetrievalDriver_1.cxx | 2 +- .../MPrsStd_AISPresentationStorageDriver.cxx | 2 +- .../Materials_MaterialsDictionary.cxx | 2 + src/MeshTest/MeshTest_CheckTopology.cxx | 4 +- src/Message/Message_PrinterOStream.cxx | 2 + src/MgtGeom/MgtGeom.cxx | 8 + src/MgtGeom2d/MgtGeom2d.cxx | 4 + src/OSD/OSD_File.cxx | 2 + src/OSD/OSD_FileIterator.cxx | 2 +- src/OSD/OSD_Path.cxx | 2 +- src/OpenGl/OpenGl_Context.cxx | 4 + src/OpenGl/OpenGl_Display.cxx | 2 +- src/OpenGl/OpenGl_FrameBuffer.cxx | 8 +- src/OpenGl/OpenGl_telem_util.cxx | 4 +- src/Plugin/Plugin.cxx | 4 + src/Poly/Poly.cxx | 6 + src/ProjLib/ProjLib_CompProjectedCurve.cxx | 4 +- .../ProjLib_ComputeApproxOnPolarSurface.cxx | 2 +- src/Prs3d/Prs3d_WFShape.gxx | 10 +- src/PrsMgr/PrsMgr_Presentation3d.cxx | 20 +-- .../QANewBRepNaming_BooleanOperationFeat.cxx | 12 +- src/QANewBRepNaming/QANewBRepNaming_Cut.cxx | 4 +- .../QANewBRepNaming_Cylinder.cxx | 2 +- .../QANewBRepNaming_Fillet.cxx | 2 +- .../QANewModTopOpe_Glue_shell.cxx | 2 +- .../RWHeaderSection_ReadWriteModule.cxx | 2 +- .../RWStepAP214_ReadWriteModule.cxx | 4 +- src/RWStepShape/RWStepShape_RWEdgeCurve.cxx | 16 +- src/RWStepShape/RWStepShape_RWFaceBound.cxx | 8 +- src/RWStl/RWStl.cxx | 6 +- src/STEPCAFControl/STEPCAFControl_Reader.cxx | 28 +-- src/STEPCAFControl/STEPCAFControl_Writer.cxx | 37 ++-- src/STEPConstruct/STEPConstruct.cxx | 4 +- src/STEPConstruct/STEPConstruct_Assembly.cxx | 4 +- .../STEPConstruct_ExternRefs.cxx | 8 - src/STEPConstruct/STEPConstruct_Styles.cxx | 12 +- .../STEPConstruct_UnitContext.cxx | 16 +- .../STEPConstruct_ValidationProps.cxx | 26 +-- src/STEPControl/STEPControl_ActorRead.cxx | 14 +- src/STEPControl/STEPControl_ActorWrite.cxx | 16 +- src/STEPControl/STEPControl_Reader.cxx | 2 +- src/ShapeAnalysis/ShapeAnalysis_Curve.cxx | 22 +-- src/ShapeAnalysis/ShapeAnalysis_Surface.cxx | 12 +- src/ShapeBuild/ShapeBuild_Edge.cxx | 6 +- src/ShapeConstruct/ShapeConstruct.cxx | 12 +- src/ShapeConstruct/ShapeConstruct_Curve.cxx | 12 +- .../ShapeConstruct_ProjectCurveOnSurface.cxx | 38 ++-- .../ShapeCustom_BSplineRestriction.cxx | 26 ++- src/ShapeCustom/ShapeCustom_Curve.cxx | 2 +- src/ShapeCustom/ShapeCustom_Surface.cxx | 6 +- src/ShapeExtend/ShapeExtend_ComplexCurve.cxx | 2 +- .../ShapeExtend_CompositeSurface.cxx | 4 +- .../ShapeExtend_MsgRegistrator.cxx | 4 +- src/ShapeFix/ShapeFix.cxx | 4 +- src/ShapeFix/ShapeFix_ComposeShell.cxx | 36 ++-- src/ShapeFix/ShapeFix_Edge.cxx | 11 +- src/ShapeFix/ShapeFix_EdgeProjAux.cxx | 20 +-- src/ShapeFix/ShapeFix_Face.cxx | 22 +-- src/ShapeFix/ShapeFix_FaceConnect.cxx | 14 +- src/ShapeFix/ShapeFix_FixSmallFace.cxx | 2 +- src/ShapeFix/ShapeFix_Solid.cxx | 6 +- src/ShapeFix/ShapeFix_Wire.cxx | 30 ++-- src/ShapeFix/ShapeFix_WireSegment.cxx | 10 +- src/ShapeFix/ShapeFix_Wire_1.cxx | 8 +- src/ShapeFix/ShapeFix_Wireframe.cxx | 2 +- src/ShapeProcess/ShapeProcess.cxx | 6 +- src/ShapeProcess/ShapeProcess_Context.cxx | 16 +- src/ShapeProcess/ShapeProcess_OperLibrary.cxx | 10 +- .../ShapeUpgrade_ClosedFaceDivide.cxx | 4 +- .../ShapeUpgrade_ConvertCurve2dToBezier.cxx | 4 +- .../ShapeUpgrade_ConvertCurve3dToBezier.cxx | 4 +- ...apeUpgrade_ConvertSurfaceToBezierBasis.cxx | 4 +- .../ShapeUpgrade_FixSmallBezierCurves.cxx | 6 +- src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.cxx | 2 +- .../ShapeUpgrade_SplitCurve2d.cxx | 8 +- .../ShapeUpgrade_SplitCurve2dContinuity.cxx | 2 +- .../ShapeUpgrade_SplitCurve3d.cxx | 10 +- .../ShapeUpgrade_SplitCurve3dContinuity.cxx | 2 +- .../ShapeUpgrade_SplitSurface.cxx | 2 +- .../ShapeUpgrade_SplitSurfaceContinuity.cxx | 2 +- .../ShapeUpgrade_UnifySameDomain.cxx | 8 +- src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx | 4 +- src/Standard/Standard_ErrorHandler.cxx | 2 + src/Standard/Standard_MMgrOpt.cxx | 2 + src/Standard/Standard_Real.cxx | 8 + src/StdDrivers/StdDrivers.cxx | 8 +- src/StdLDrivers/StdLDrivers.cxx | 6 +- .../StdPrs_WFDeflectionRestrictedFace.cxx | 4 + src/StdSelect/StdSelect_BRepSelectionTool.cxx | 2 +- src/StepAP209/StepAP209_Construct.cxx | 4 +- src/StepBasic/StepBasic_SiUnit.cxx | 2 +- src/StepData/StepData_StepWriter.cxx | 2 +- .../StepToGeom_MakeBSplineCurve.pxx | 3 - .../StepToGeom_MakeBoundedCurve.cxx | 12 -- .../StepToGeom_MakeBoundedSurface.cxx | 12 -- src/StepToGeom/StepToGeom_MakeSurface.cxx | 5 +- .../StepToGeom_MakeTrimmedCurve.cxx | 3 - .../StepToGeom_MakeTrimmedCurve2d.cxx | 3 - .../StepToTopoDS_GeometricTool.cxx | 18 +- .../StepToTopoDS_TranslateCompositeCurve.cxx | 4 +- .../StepToTopoDS_TranslateEdge.cxx | 4 +- .../StepToTopoDS_TranslateEdgeLoop.cxx | 6 +- .../StepToTopoDS_TranslateFace.cxx | 4 +- .../StepToTopoDS_TranslateShell.cxx | 2 +- src/StlTransfer/StlTransfer.cxx | 2 +- src/Storage/Storage_Schema.cxx | 8 + .../TCollection_ExtendedString.cxx | 2 +- src/TCollection/TCollection_Queue.gxx | 2 + src/TCollection/TCollection_Stack.gxx | 2 + src/TDF/TDF_CopyLabel.cxx | 6 +- src/TDF/TDF_Delta.cxx | 2 +- src/TDF/TDF_DeltaOnForget.cxx | 2 +- src/TDF/TDF_DeltaOnResume.cxx | 2 +- ...DataStd_DeltaOnModificationOfByteArray.cxx | 10 +- ...td_DeltaOnModificationOfExtStringArray.cxx | 12 +- ...TDataStd_DeltaOnModificationOfIntArray.cxx | 12 +- ...aStd_DeltaOnModificationOfIntPackedMap.cxx | 10 +- ...DataStd_DeltaOnModificationOfRealArray.cxx | 12 +- src/TDocStd/TDocStd_Application.cxx | 6 +- .../TDocStd_MultiTransactionManager.cxx | 2 +- src/TNaming/TNaming.cxx | 2 +- src/TNaming/TNaming_Identifier.cxx | 2 +- src/TNaming/TNaming_Localizer.cxx | 14 +- src/TNaming/TNaming_Name.cxx | 2 +- src/TNaming/TNaming_NamedShape.cxx | 14 +- src/TNaming/TNaming_Naming.cxx | 4 +- src/TPrsStd/TPrsStd_ConstraintTools.cxx | 166 +++++++++--------- src/TPrsStd/TPrsStd_DriverTable.cxx | 2 +- src/TestTopOpe/TestTopOpe.cxx | 2 +- src/TestTopOpe/TestTopOpe_HDSDisplayer.cxx | 2 +- src/TopClass/TopClass_Classifier3d.gxx | 10 +- src/TopClass/TopClass_SolidClassifier.gxx | 4 +- src/TopCnx/TopCnx_EdgeFaceTransition.cxx | 6 + src/TopOpeBRep/TopOpeBRep_DSFiller.cxx | 6 +- src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx | 2 +- src/TopOpeBRep/TopOpeBRep_FacesFiller.cxx | 4 +- src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx | 4 +- .../TopOpeBRep_FacesIntersector.cxx | 4 +- .../TopOpeBRep_ShapeIntersector.cxx | 2 +- src/TopOpeBRepBuild/TopOpeBRepBuild_End.cxx | 2 +- .../TopOpeBRepBuild_GridEE.cxx | 4 +- .../TopOpeBRepBuild_GridFF.cxx | 4 +- .../TopOpeBRepBuild_HBuilder.cxx | 2 +- src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx | 2 +- src/TopOpeBRepBuild/TopOpeBRepBuild_Merge.cxx | 2 +- src/TopOpeBRepBuild/TopOpeBRepBuild_Pave.cxx | 2 +- src/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx | 2 +- .../TopOpeBRepBuild_fctwes.cxx | 2 +- .../TopOpeBRepBuild_kpkole.cxx | 2 +- .../TopOpeBRepBuild_makefaces.cxx | 2 +- src/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx | 2 +- src/TopOpeBRepDS/TopOpeBRepDS_Check.cxx | 28 +-- .../TopOpeBRepDS_DataStructure.cxx | 6 +- src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx | 2 +- .../TopOpeBRepDS_Edge3dInterferenceTool.cxx | 2 +- .../TopOpeBRepDS_EdgeInterferenceTool.cxx | 2 +- src/TopOpeBRepDS/TopOpeBRepDS_TOOL.cxx | 2 +- .../TopOpeBRepTool_FuseEdges.cxx | 2 +- .../TopOpeBRepTool_GEOMETRY.cxx | 2 +- .../TopOpeBRepTool_HBoxTool.cxx | 2 +- .../TopOpeBRepTool_ShapeClassifier.cxx | 2 +- src/TopOpeBRepTool/TopOpeBRepTool_TOOL.cxx | 2 +- .../TopoDSToStep_MakeBrepWithVoids.cxx | 6 +- .../TopoDSToStep_MakeStepEdge.cxx | 2 +- .../TopoDSToStep_MakeStepFace.cxx | 4 +- src/TopoDSToStep/TopoDSToStep_Tool.cxx | 8 +- .../TopoDSToStep_WireframeBuilder.cxx | 6 +- src/Units/Units.cxx | 8 + src/Units/Units_Explorer.cxx | 4 + src/Units/Units_Lexicon.cxx | 2 + src/Units/Units_Measurement.cxx | 4 + src/Units/Units_Sentence.cxx | 4 +- src/Units/Units_Token.cxx | 2 +- src/Units/Units_UnitsDictionary.cxx | 14 +- src/Units/Units_UnitsSystem.cxx | 2 + src/UnitsAPI/UnitsAPI.cxx | 22 +++ src/UnitsMethods/UnitsMethods.cxx | 12 +- src/ViewerTest/ViewerTest.cxx | 4 +- src/Visual3d/Visual3d_Layer.cxx | 8 +- src/WNT/WNT_Allocator.cxx | 12 +- src/XCAFDoc/XCAFDoc_ShapeTool.cxx | 2 + src/XCAFDrivers/XCAFDrivers.cxx | 6 + src/XCAFPrs/XCAFPrs.cxx | 2 +- src/XCAFPrs/XCAFPrs_AISObject.cxx | 31 +--- src/XSAlgo/XSAlgo_AlgoContainer.cxx | 10 +- src/XmlDrivers/XmlDrivers.cxx | 4 + .../XmlDrivers_DocumentRetrievalDriver.cxx | 3 - src/XmlLDrivers/XmlLDrivers.cxx | 12 ++ .../XmlLDrivers_DocumentRetrievalDriver.cxx | 3 - .../XmlLDrivers_DocumentStorageDriver.cxx | 2 +- src/XmlMDF/XmlMDF.cxx | 4 +- .../XmlMDataStd_ByteArrayDriver.cxx | 5 +- .../XmlMDataStd_ExtStringArrayDriver.cxx | 5 +- .../XmlMDataStd_IntPackedMapDriver.cxx | 6 +- .../XmlMDataStd_IntegerArrayDriver.cxx | 5 +- .../XmlMDataStd_NamedDataDriver.cxx | 11 -- .../XmlMDataStd_RealArrayDriver.cxx | 5 +- src/XmlMNaming/XmlMNaming_NamingDriver.cxx | 11 +- .../XmlMXCAFDoc_LocationDriver.cxx | 2 +- src/XmlTObjDrivers/XmlTObjDrivers.cxx | 4 + src/XmlXCAFDrivers/XmlXCAFDrivers.cxx | 4 + src/math/math_FunctionRoots.cxx | 2 +- 376 files changed, 1465 insertions(+), 1383 deletions(-) diff --git a/src/AIS/AIS_AngleDimension.cxx b/src/AIS/AIS_AngleDimension.cxx index 9736e2c597..f708ba04b0 100755 --- a/src/AIS/AIS_AngleDimension.cxx +++ b/src/AIS/AIS_AngleDimension.cxx @@ -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 diff --git a/src/AIS/AIS_ConnectedShape.cxx b/src/AIS/AIS_ConnectedShape.cxx index c79a6b8ce3..a36b1ac662 100755 --- a/src/AIS/AIS_ConnectedShape.cxx +++ b/src/AIS/AIS_ConnectedShape.cxx @@ -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"<GraphicStatus()==AIS_DS_Displayed) theMap.Add(It.Key()); } -#ifdef DEBUG +#ifdef AIS_DEB cout<<"\tFrom Neutral Point : "<DisplayedObjects(theMap); -#ifdef DEBUG +#ifdef AIS_DEB cout<<"\tIn Local Context "<SetRecomputeOk(); -#ifdef DEB +#ifdef AIS_DEB cout<<"nb of modes to recalculate : "<SetRecomputeOk(); -#ifdef DEB +#ifdef AIS_DEB cout<<"nb of modes to recalculate : "<SetRecomputeOk(); -#ifdef DEB +#ifdef AIS_DEB cout<<"nb of modes to recalculate : "<SetRecomputeOk(); -#ifdef DEB +#ifdef AIS_DEB cout<<"nb of modes to recalculate : "<SetRecomputeOk(); -#ifdef DEB +#ifdef AIS_DEB cout<<"nb of modes to recalculate : "<SetRecomputeOk(); -#ifdef DEB +#ifdef AIS_DEB cout<<"nb of modes to recalculate : "<Update(ITI.Value(),Standard_False); NbDisp++; } -#ifdef DEB +#ifdef AIS_DEB cout<<"nb of modes to recalculate : "<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 : "<SetRecomputeOk(); diff --git a/src/AIS/AIS_InteractiveContext_1.cxx b/src/AIS/AIS_InteractiveContext_1.cxx index b9341e143f..8064dc2d0d 100755 --- a/src/AIS/AIS_InteractiveContext_1.cxx +++ b/src/AIS/AIS_InteractiveContext_1.cxx @@ -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"<MainSelector()->UpdateConversion(); -#ifdef DEB +#ifdef AIS_DEB cout<<"\tOpen Local Context No "<(); if (myDrawer.IsNull()) { myDrawer = new AIS_Drawer; -#ifdef DEB +#ifdef AIS_DEB cout << "AIS_InteractiveObject::SetContext DRAWER NUL!" << endl; #endif } diff --git a/src/AIS/AIS_LocalContext_1.cxx b/src/AIS/AIS_LocalContext_1.cxx index 17592abbe6..3dd1bc8aaa 100755 --- a/src/AIS/AIS_LocalContext_1.cxx +++ b/src/AIS/AIS_LocalContext_1.cxx @@ -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 " <HLRAngle(); Standard_Real newangl = defdrawer->HLRAngle(); if (Abs(newangl- prevangl) > Precision::Angular()) { -#ifdef DEB +#ifdef AIS_DEB cout << "AIS_MultipleConnectedShape : compute"< myFShape.ShapeType() == " << myFShape.ShapeType() << endl; } diff --git a/src/AIS/AIS_Shape.cxx b/src/AIS/AIS_Shape.cxx index 01cf77f01a..b978bdf885 100755 --- a/src/AIS/AIS_Shape.cxx +++ b/src/AIS/AIS_Shape.cxx @@ -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"< Precision::Angular() || Abs (newcoeff - prevcoeff) > Precision::Confusion() ) { -#ifdef DEB +#ifdef AIS_DEB cout << "AIS_Shape : compute"<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; diff --git a/src/AdvApp2Var/AdvApp2Var_Context.cxx b/src/AdvApp2Var/AdvApp2Var_Context.cxx index 8a654ce7e5..b602fa6ec1 100755 --- a/src/AdvApp2Var/AdvApp2Var_Context.cxx +++ b/src/AdvApp2Var/AdvApp2Var_Context.cxx @@ -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 } diff --git a/src/AlienImage/AlienImage_BMPAlienData.cxx b/src/AlienImage/AlienImage_BMPAlienData.cxx index 75154c5d45..60bbc84668 100755 --- a/src/AlienImage/AlienImage_BMPAlienData.cxx +++ b/src/AlienImage/AlienImage_BMPAlienData.cxx @@ -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 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; } diff --git a/src/AlienImage/AlienImage_GIFAlienData.cxx b/src/AlienImage/AlienImage_GIFAlienData.cxx index 8dcb7393ce..89dc9faab7 100755 --- a/src/AlienImage/AlienImage_GIFAlienData.cxx +++ b/src/AlienImage/AlienImage_GIFAlienData.cxx @@ -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]; diff --git a/src/AppBlend/AppBlend_AppSurf.gxx b/src/AppBlend/AppBlend_AppSurf.gxx index 844bdf7812..db6815aa6d 100755 --- a/src/AppBlend/AppBlend_AppSurf.gxx +++ b/src/AppBlend/AppBlend_AppSurf.gxx @@ -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 diff --git a/src/Approx/Approx_CurvilinearParameter.cxx b/src/Approx/Approx_CurvilinearParameter.cxx index fb11906ff7..84bca933ff 100755 --- a/src/Approx/Approx_CurvilinearParameter.cxx +++ b/src/Approx/Approx_CurvilinearParameter.cxx @@ -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 diff --git a/src/Approx/Approx_SameParameter.cxx b/src/Approx/Approx_SameParameter.cxx index 6c9e58acfb..33467129c3 100755 --- a/src/Approx/Approx_SameParameter.cxx +++ b/src/Approx/Approx_SameParameter.cxx @@ -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"< 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 } diff --git a/src/BRepAlgo/BRepAlgo_Loop.cxx b/src/BRepAlgo/BRepAlgo_Loop.cxx index 9021eca6e5..ab7c83931c 100755 --- a/src/BRepAlgo/BRepAlgo_Loop.cxx +++ b/src/BRepAlgo/BRepAlgo_Loop.cxx @@ -667,9 +667,11 @@ void BRepAlgo_Loop::Perform() myNewWires.Append (NW); else { #ifdef DEB - cout <<"BRepAlgo_Loop: Open Wire"<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 diff --git a/src/BRepBlend/BRepBlend_AppFuncRoot.cxx b/src/BRepBlend/BRepBlend_AppFuncRoot.cxx index 522dfee4ef..cf2484c11b 100755 --- a/src/BRepBlend/BRepBlend_AppFuncRoot.cxx +++ b/src/BRepBlend/BRepBlend_AppFuncRoot.cxx @@ -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 diff --git a/src/BRepBlend/BRepBlend_SurfRstConstRad.cxx b/src/BRepBlend/BRepBlend_SurfRstConstRad.cxx index db3320d709..8ae9a8cc86 100755 --- a/src/BRepBlend/BRepBlend_SurfRstConstRad.cxx +++ b/src/BRepBlend/BRepBlend_SurfRstConstRad.cxx @@ -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 } diff --git a/src/BRepBlend/BRepBlend_SurfRstEvolRad.cxx b/src/BRepBlend/BRepBlend_SurfRstEvolRad.cxx index 2282c91852..44802838f1 100755 --- a/src/BRepBlend/BRepBlend_SurfRstEvolRad.cxx +++ b/src/BRepBlend/BRepBlend_SurfRstEvolRad.cxx @@ -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 } diff --git a/src/BRepBlend/BRepBlend_SurfRstLineBuilder.cxx b/src/BRepBlend/BRepBlend_SurfRstLineBuilder.cxx index 4906ae5f3b..60f5e5633d 100755 --- a/src/BRepBlend/BRepBlend_SurfRstLineBuilder.cxx +++ b/src/BRepBlend/BRepBlend_SurfRstLineBuilder.cxx @@ -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"<NbPoints()>=2) { // Indicate that one stops during the processing -#if DEB +#if BREPBLEND_DEB cout<<"SurfRstLineBuilder : No advancement in the processing"<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 #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; diff --git a/src/BRepCheck/BRepCheck_Analyzer.cxx b/src/BRepCheck/BRepCheck_Analyzer.cxx index 3e13829679..a5f6ae798e 100755 --- a/src/BRepCheck/BRepCheck_Analyzer.cxx +++ b/src/BRepCheck/BRepCheck_Analyzer.cxx @@ -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<Print(cout); cout<Print(cout); cout<Print(cout); cout<Print(cout); cout<InContext(S); } catch(Standard_Failure) { -#ifdef DEB +#ifdef BREPCHECK_DEB cout<<"BRepCheck_Analyzer : "; Standard_Failure::Caught()->Print(cout); cout< 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<<" "< Erreur \n" < 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<<" "< " << par << endl; #endif return par; diff --git a/src/BRepFeat/BRepFeat_MakeLinearForm.cxx b/src/BRepFeat/BRepFeat_MakeLinearForm.cxx index c47e5246f8..6a2323ca49 100755 --- a/src/BRepFeat/BRepFeat_MakeLinearForm.cxx +++ b/src/BRepFeat/BRepFeat_MakeLinearForm.cxx @@ -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 } diff --git a/src/BRepFeat/BRepFeat_MakeRevolutionForm.cxx b/src/BRepFeat/BRepFeat_MakeRevolutionForm.cxx index c4cb4522a1..98243bdd80 100755 --- a/src/BRepFeat/BRepFeat_MakeRevolutionForm.cxx +++ b/src/BRepFeat/BRepFeat_MakeRevolutionForm.cxx @@ -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 } diff --git a/src/BRepFeat/BRepFeat_RibSlot.cxx b/src/BRepFeat/BRepFeat_RibSlot.cxx index 2322cec9d6..6d99ce1ea6 100755 --- a/src/BRepFeat/BRepFeat_RibSlot.cxx +++ b/src/BRepFeat/BRepFeat_RibSlot.cxx @@ -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 } diff --git a/src/BRepFill/BRepFill.cxx b/src/BRepFill/BRepFill.cxx index fcfb977200..f43c3a2e54 100755 --- a/src/BRepFill/BRepFill.cxx +++ b/src/BRepFill/BRepFill.cxx @@ -862,7 +862,7 @@ void BRepFill::SearchOrigin(TopoDS_Wire & W, } } } -#if DEB +#if BREPFILL_DEB else { cout << "BRepFill::SearchOrigine : Echec Distance" << endl; } diff --git a/src/BRepFill/BRepFill_Draft.cxx b/src/BRepFill/BRepFill_Draft.cxx index fb63cfd0fc..cf220b16a0 100755 --- a/src/BRepFill/BRepFill_Draft.cxx +++ b/src/BRepFill/BRepFill_Draft.cxx @@ -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; diff --git a/src/BRepFill/BRepFill_LocationLaw.cxx b/src/BRepFill/BRepFill_LocationLaw.cxx index a189a2f66b..0befd4c8a0 100755 --- a/src/BRepFill/BRepFill_LocationLaw.cxx +++ b/src/BRepFill/BRepFill_LocationLaw.cxx @@ -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 diff --git a/src/BRepFill/BRepFill_MultiLine.cxx b/src/BRepFill/BRepFill_MultiLine.cxx index c02477ba7e..f436c59988 100755 --- a/src/BRepFill/BRepFill_MultiLine.cxx +++ b/src/BRepFill/BRepFill_MultiLine.cxx @@ -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 diff --git a/src/BRepFill/BRepFill_Sweep.cxx b/src/BRepFill/BRepFill_Sweep.cxx index 74e52086e6..8a6c72ee45 100755 --- a/src/BRepFill/BRepFill_Sweep.cxx +++ b/src/BRepFill/BRepFill_Sweep.cxx @@ -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"< tolreached ){ -#ifdef DEB +#ifdef BREPFILL_DEB cout<<"SameParameter : Tolerance not reached!"< 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."< 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" < l[1]+Tol) { cout << "out of limit"< l[1]+Tol) { cout << "out of limit"< 0) l = Projector.LowerDistanceParameter(); -#ifdef DEB +#ifdef BREPOFFSET_DEB else cout<<"ProjectPointOnCurve not done"< 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"<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"<> 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() < 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(); diff --git a/src/BinMDataStd/BinMDataStd_ExtStringArrayDriver.cxx b/src/BinMDataStd/BinMDataStd_ExtStringArrayDriver.cxx index 7befd9d2ab..81de81275a 100755 --- a/src/BinMDataStd/BinMDataStd_ExtStringArrayDriver.cxx +++ b/src/BinMDataStd/BinMDataStd_ExtStringArrayDriver.cxx @@ -79,16 +79,10 @@ Standard_Boolean BinMDataStd_ExtStringArrayDriver::Paste } if(ok) { -//#ifdef DEB -// cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() < 2) { Standard_Byte aDeltaValue; if (! (theSource >> aDeltaValue)) { -//#ifdef DEB -// cout <<"DeltaValue = " << (Standard_Integer)aDeltaValue <ChangeMap(aHMap); } -#ifdef DEB - //cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() < 2) { Standard_Byte aDeltaValue; diff --git a/src/BinMDataStd/BinMDataStd_IntegerArrayDriver.cxx b/src/BinMDataStd/BinMDataStd_IntegerArrayDriver.cxx index e4c69d772d..9e034b1ffc 100755 --- a/src/BinMDataStd/BinMDataStd_IntegerArrayDriver.cxx +++ b/src/BinMDataStd/BinMDataStd_IntegerArrayDriver.cxx @@ -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() < 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. " <Array()->ChangeArray1(); if(!theSource.GetRealArray (&aTargetArray(aFirstInd), aLength)) return Standard_False; -#ifdef DEB - //cout << "CurDocVersion = " << BinMDataStd::DocumentVersion() < 2) { Standard_Byte aDeltaValue; diff --git a/src/BinMNaming/BinMNaming_NamingDriver.cxx b/src/BinMNaming/BinMNaming_NamingDriver.cxx index 9484c8d58c..737aaae261 100755 --- a/src/BinMNaming/BinMNaming_NamingDriver.cxx +++ b/src/BinMNaming/BinMNaming_NamingDriver.cxx @@ -239,14 +239,11 @@ Standard_Boolean BinMNaming_NamingDriver::Paste WriteMessage (aMsg); } -#ifdef DEB - //cout << "CurDocVersion = " << 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() <> 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 <UDegree(); vdegree = S->VDegree(); -#ifdef DEB -// cout << "\tudegree = " << udegree << ", vdegree = "<< vdegree<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()<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 <NbPoints()<<" sections gardees"<NbPoints()<<" sections gardees"< 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(), diff --git a/src/BlendFunc/BlendFunc_ConstRad.cxx b/src/BlendFunc/BlendFunc_ConstRad.cxx index 5a3b41b52e..2c04c4d7d5 100755 --- a/src/BlendFunc/BlendFunc_ConstRad.cxx +++ b/src/BlendFunc/BlendFunc_ConstRad.cxx @@ -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"< 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"<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 } diff --git a/src/CSLib/CSLib_Class2d.cxx b/src/CSLib/CSLib_Class2d.cxx index b331495653..52ac4248c4 100755 --- a/src/CSLib/CSLib_Class2d.cxx +++ b/src/CSLib/CSLib_Class2d.cxx @@ -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"<3) { Spine->SetFirstStatus(ChFiDS_BreakPoint); -#if DEB +#if CHFI3D_DEB cout<<"top has : "<3) { Spine->SetLastStatus(ChFiDS_BreakPoint); -#if DEB +#if CHFI3D_DEB cout<<"top has : "<Vertex(isfirst,opp).IsOnArc() || SD->TwistOnS1() || SD->TwistOnS2() ) { -#ifdef DEB +#ifdef CHFI3D_DEB cout<<"ChFi3d_Purge : No output on extension."<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 : "< 0 ){ -#ifdef DEB +#ifdef CHFI3D_DEB cout<< "segments of intersection on the restrictions"<NbPoints(); if (Nbpnt <= 1 && again == 0) { again++; -#ifdef DEB +#ifdef CHFI3D_DEB cout <<"one point of the path MS/50 is attempted."<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"<NbPoints(); if (Nbpnt <= 1 && again == 0) { again++; -#ifdef DEB +#ifdef CHFI3D_DEB cout <<"one point of path MS/50 is attempted."<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"<NbPoints(); if (Nbpnt <= 1 && again == 0) { again++; -#ifdef DEB +#ifdef CHFI3D_DEB cout <<"one point of path MS/50 is attempted."<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"<NbPoints(); if (Nbpnt <= 1 && again == 0) { again++; -#ifdef DEB +#ifdef CHFI3D_DEB cout <<"only one point of path MS/50 is attempted."<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"<NbPoints(); if (Nbpnt == 0){ -#ifdef DEB +#ifdef CHFI3D_DEB cout <<"0 point of path, quit."<=TolGuide || Abs(lpointpar-u2sov)>=TolGuide){ -#ifdef DEB +#ifdef CHFI3D_DEB cout <<"Number of points is still too small, the step is reduced"<TwistOnS1(Standard_True); -#ifdef DEB +#ifdef CHFI3D_DEB cout<<"Path completed, but TWIST on S1"<TwistOnS2(Standard_True); -#ifdef DEB +#ifdef CHFI3D_DEB cout<<"Parh completed, but TWIST on S2"<NbPoints(); Standard_Real factor = 1./(NbSecMin + 1); if (Nbpnt == 0){ -#ifdef DEB +#ifdef CHFI3D_DEB cout <<"0 point of path, quit."<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"< 0) { trafil1 = DStr.Shape(Ishape1).Orientation(); } -#ifdef DEB +#ifdef CHFI3D_DEB else { cout<<"erreur"<ChangeVertex(isfirst2,IFaArc2); if (!CP1.IsOnArc() || !CP2.IsOnArc()) { -#if DEB +#if CHFI3D_DEB cout<<"fail 1 of 2 fillets are not on arc"<Absc(Nl,ii); point = Spine->Value(Nl); -#ifdef DEB +#ifdef CHFI3D_DEB if (found) cout << "found by edge " << ii << " : "; cout< 1) { -#ifdef DEB +#ifdef CHFI3D_DEB cout<<"trop d'intersection entre les surfaces"<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"<= Precision::Confusion()) cout<<"Interior extension at the start of guideline"<Value(abscissa->Upper()); if((Par - lll) <= -Precision::Confusion()) cout<<"Interior extension at the end of guideline"<= Precision::Confusion()) cout<<"Interior extension at start of the guideline"<Value(abscissa->Upper()); if(L <= -Precision::Confusion()) cout<<"Interior extension at the end of guideline"< -Precision::Confusion() ) { +#ifdef CHFIKPART_DEB cout<<"wrong choice of angle for the chamfer"<ptol){ -#ifdef DEB +#ifdef CHFIKPART_DEB cout<<"center of the spherical corner not found"<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 diff --git a/src/DDF/DDF_BrowserCommands.cxx b/src/DDF/DDF_BrowserCommands.cxx index 13356120e7..60634fd4dd 100755 --- a/src/DDF/DDF_BrowserCommands.cxx +++ b/src/DDF/DDF_BrowserCommands.cxx @@ -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() ); diff --git a/src/DDF/DDF_IOStream.cxx b/src/DDF/DDF_IOStream.cxx index 83fbbf9292..10e96455aa 100755 --- a/src/DDF/DDF_IOStream.cxx +++ b/src/DDF/DDF_IOStream.cxx @@ -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"<ID(); -// aGd.ShallowDump(cout); -#endif + if(!theObject.IsNull() && theObject->ID() == GEOMOBJECT_GUID) { Handle(TDF_Reference) aReference; diff --git a/src/DNaming/DNaming_BooleanOperationDriver.cxx b/src/DNaming/DNaming_BooleanOperationDriver.cxx index 3d4cd1a088..cfce141823 100644 --- a/src/DNaming/DNaming_BooleanOperationDriver.cxx +++ b/src/DNaming/DNaming_BooleanOperationDriver.cxx @@ -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"<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"<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"<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"<IsEmpty()) { -#ifdef DEB +#ifdef DNAMING_DEB cout<<"CylinderDriver:: Axis is empty"<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"<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() <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"<SetFailure(WRONG_AXIS); diff --git a/src/DNaming/DNaming_FilletDriver.cxx b/src/DNaming/DNaming_FilletDriver.cxx index 1c0a4a2675..b5a6a87f11 100644 --- a/src/DNaming/DNaming_FilletDriver.cxx +++ b/src/DNaming/DNaming_FilletDriver.cxx @@ -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"<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"<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"<SetFailure(WRONG_ARGUMENT); diff --git a/src/DNaming/DNaming_ModelingCommands.cxx b/src/DNaming/DNaming_ModelingCommands.cxx index f710a5f447..72b4a96655 100644 --- a/src/DNaming/DNaming_ModelingCommands.cxx +++ b/src/DNaming/DNaming_ModelingCommands.cxx @@ -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" <IsEmpty()) cout <<"Wrong Context ..." <Label(), entry); cout << "ContextNS Label = " << entry < 3) { -#ifdef DEBUG +#ifdef DNAMING_DEB cout << "NB = " << nb < 4) { -#ifdef DEBUG +#ifdef DNAMING_DEB cout << "NB = " << nb <Label(), entry); -#ifdef DEBUG +#ifdef DNAMING_DEB cout << "First Selection function at " << entry <Label(), entry); cout << "First Selection function at " << entry <IsEmpty()) { -#ifdef DEB +#ifdef DNAMING_DEB cout<<"PointDriver:: Ref Point is empty"<SetFailure(WRONG_ARGUMENT); diff --git a/src/DNaming/DNaming_SphereDriver.cxx b/src/DNaming/DNaming_SphereDriver.cxx index 3730410dc1..4b73a69def 100644 --- a/src/DNaming/DNaming_SphereDriver.cxx +++ b/src/DNaming/DNaming_SphereDriver.cxx @@ -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"<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"<SetFailure(WRONG_ARGUMENT); diff --git a/src/DNaming/DNaming_TransformationDriver.cxx b/src/DNaming/DNaming_TransformationDriver.cxx index 5e774a592d..74eeb4476c 100644 --- a/src/DNaming/DNaming_TransformationDriver.cxx +++ b/src/DNaming/DNaming_TransformationDriver.cxx @@ -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"<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"<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 diff --git a/src/Draft/Draft_Modification_1.cxx b/src/Draft/Draft_Modification_1.cxx index a2ca0bff83..ce1c4d09b6 100755 --- a/src/Draft/Draft_Modification_1.cxx +++ b/src/Draft/Draft_Modification_1.cxx @@ -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 } diff --git a/src/Draw/Draw.cxx b/src/Draw/Draw.cxx index d654dd22e6..cf942dc3d8 100755 --- a/src/Draw/Draw.cxx +++ b/src/Draw/Draw.cxx @@ -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); diff --git a/src/Draw/Draw_Interpretor.cxx b/src/Draw/Draw_Interpretor.cxx index 41fa96e0e3..557db7119a 100755 --- a/src/Draw/Draw_Interpretor.cxx +++ b/src/Draw/Draw_Interpretor.cxx @@ -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 } diff --git a/src/Draw/Draw_PloadCommands.cxx b/src/Draw/Draw_PloadCommands.cxx index 61bc1c8a57..45a9f13e40 100755 --- a/src/Draw/Draw_PloadCommands.cxx +++ b/src/Draw/Draw_PloadCommands.cxx @@ -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() ); diff --git a/src/DrawDim/DrawDim_PlanarDiameter.cxx b/src/DrawDim/DrawDim_PlanarDiameter.cxx index 0caae1af39..b1bb0dbc84 100755 --- a/src/DrawDim/DrawDim_PlanarDiameter.cxx +++ b/src/DrawDim/DrawDim_PlanarDiameter.cxx @@ -82,5 +82,7 @@ void DrawDim_PlanarDiameter::DrawOn(Draw_Display& dis) const return; } } +#ifdef DRAWDIM_DEB cout << " DrawDim_PlanarDiameter::DrawOn : dimension error" << endl; +#endif } diff --git a/src/DrawDim/DrawDim_PlanarDistance.cxx b/src/DrawDim/DrawDim_PlanarDistance.cxx index 237c9b4d83..05c48c7b18 100755 --- a/src/DrawDim/DrawDim_PlanarDistance.cxx +++ b/src/DrawDim/DrawDim_PlanarDistance.cxx @@ -118,5 +118,7 @@ void DrawDim_PlanarDistance::DrawOn(Draw_Display& dis) const } } } +#ifdef DRAWDIM_DEB cout << " DrawDim_PlanarDistance::DrawOn : dimension error" << endl; +#endif } diff --git a/src/DrawDim/DrawDim_PlanarRadius.cxx b/src/DrawDim/DrawDim_PlanarRadius.cxx index 3099403259..2eef882ee3 100755 --- a/src/DrawDim/DrawDim_PlanarRadius.cxx +++ b/src/DrawDim/DrawDim_PlanarRadius.cxx @@ -80,5 +80,7 @@ void DrawDim_PlanarRadius::DrawOn(Draw_Display& dis) const return; } } +#ifdef DRAWDIM_DEB cout << " DrawDim_PlanarRadius::DrawOn : dimension error" << endl; +#endif } diff --git a/src/DrawDim/DrawDim_Radius.cxx b/src/DrawDim/DrawDim_Radius.cxx index 01e782e33a..0b61acd142 100755 --- a/src/DrawDim/DrawDim_Radius.cxx +++ b/src/DrawDim/DrawDim_Radius.cxx @@ -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(); diff --git a/src/FSD/FSD_CmpFile.cxx b/src/FSD/FSD_CmpFile.cxx index 7dea71241d..a43c5871ef 100755 --- a/src/FSD/FSD_CmpFile.cxx +++ b/src/FSD/FSD_CmpFile.cxx @@ -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(); } diff --git a/src/Font/Font_FTFont.cxx b/src/Font/Font_FTFont.cxx index 03e5110a69..7e10eb6884 100644 --- a/src/Font/Font_FTFont.cxx +++ b/src/Font/Font_FTFont.cxx @@ -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; } diff --git a/src/Geom/Geom_OsculatingSurface.cxx b/src/Geom/Geom_OsculatingSurface.cxx index 5cc6f50a32..e32a7d6185 100755 --- a/src/Geom/Geom_OsculatingSurface.cxx +++ b/src/Geom/Geom_OsculatingSurface.cxx @@ -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<UDegree()<VDegree()<VDegree(); if( (IsAlongU() && vdeg <=1) || (IsAlongV() && udeg <=1)) { -#ifdef DEB +#ifdef GEOM_DEB cout<<" surface osculatrice nulle "<>>>>>>>>>> AlongU"<>>>>>>>>>> AlongV"< 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; } diff --git a/src/GeomFill/GeomFill_NSections.cxx b/src/GeomFill/GeomFill_NSections.cxx index 98a1f33ea0..b7549bab64 100755 --- a/src/GeomFill/GeomFill_NSections.cxx +++ b/src/GeomFill/GeomFill_NSections.cxx @@ -55,7 +55,7 @@ #include #include -#ifdef DEB +#ifdef GEOMFILL_DEB # ifdef DRAW # include # 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 diff --git a/src/GeomFill/GeomFill_Pipe.cxx b/src/GeomFill/GeomFill_Pipe.cxx index 8012694d6c..6e0b43998e 100755 --- a/src/GeomFill/GeomFill_Pipe.cxx +++ b/src/GeomFill/GeomFill_Pipe.cxx @@ -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; diff --git a/src/GeomFill/GeomFill_SweepSectionGenerator.cxx b/src/GeomFill/GeomFill_SweepSectionGenerator.cxx index f4ca11959d..1a44d7caa3 100755 --- a/src/GeomFill/GeomFill_SweepSectionGenerator.cxx +++ b/src/GeomFill/GeomFill_SweepSectionGenerator.cxx @@ -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; diff --git a/src/GeomToIGES/GeomToIGES_GeomCurve.cxx b/src/GeomToIGES/GeomToIGES_GeomCurve.cxx index 748c4bf5a3..2de89bd532 100755 --- a/src/GeomToIGES/GeomToIGES_GeomCurve.cxx +++ b/src/GeomToIGES/GeomToIGES_GeomCurve.cxx @@ -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."<Print(cout); diff --git a/src/GeomToStep/GeomToStep_MakeBoundedCurve.cxx b/src/GeomToStep/GeomToStep_MakeBoundedCurve.cxx index 4eef276252..5987553257 100755 --- a/src/GeomToStep/GeomToStep_MakeBoundedCurve.cxx +++ b/src/GeomToStep/GeomToStep_MakeBoundedCurve.cxx @@ -72,7 +72,7 @@ GeomToStep_MakeBoundedCurve::GeomToStep_MakeBoundedCurve ( const Handle(Geom_Bou } } else { -#ifdef DEB +#ifdef GEOMTOSTEP_DEB cout<<"MakeBoundedCurve, type : "<DynamicType()->Name()<<" not processed"<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; diff --git a/src/GeomToStep/GeomToStep_MakeCurve.cxx b/src/GeomToStep/GeomToStep_MakeCurve.cxx index 992b6cceba..8b1e667b36 100755 --- a/src/GeomToStep/GeomToStep_MakeCurve.cxx +++ b/src/GeomToStep/GeomToStep_MakeCurve.cxx @@ -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"<DynamicType()->Name()<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 = diff --git a/src/GeomToStep/GeomToStep_MakeSurface.cxx b/src/GeomToStep/GeomToStep_MakeSurface.cxx index c2249cbea9..65b8cfced7 100755 --- a/src/GeomToStep/GeomToStep_MakeSurface.cxx +++ b/src/GeomToStep/GeomToStep_MakeSurface.cxx @@ -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 } diff --git a/src/GeomTools/GeomTools_Curve2dSet.cxx b/src/GeomTools/GeomTools_Curve2dSet.cxx index 5737f1fc29..bcaa32ee88 100755 --- a/src/GeomTools/GeomTools_Curve2dSet.cxx +++ b/src/GeomTools/GeomTools_Curve2dSet.cxx @@ -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; diff --git a/src/GeomTools/GeomTools_CurveSet.cxx b/src/GeomTools/GeomTools_CurveSet.cxx index ffebaf43ce..4115b20f15 100755 --- a/src/GeomTools/GeomTools_CurveSet.cxx +++ b/src/GeomTools/GeomTools_CurveSet.cxx @@ -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; diff --git a/src/GeomTools/GeomTools_SurfaceSet.cxx b/src/GeomTools/GeomTools_SurfaceSet.cxx index ec321c2213..53b0740705 100755 --- a/src/GeomTools/GeomTools_SurfaceSet.cxx +++ b/src/GeomTools/GeomTools_SurfaceSet.cxx @@ -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; diff --git a/src/GeomliteTest/GeomliteTest_API2dCommands.cxx b/src/GeomliteTest/GeomliteTest_API2dCommands.cxx index f8eeeb69c0..5d90f94856 100755 --- a/src/GeomliteTest/GeomliteTest_API2dCommands.cxx +++ b/src/GeomliteTest/GeomliteTest_API2dCommands.cxx @@ -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]"<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); diff --git a/src/Graphic3d/Graphic3d_Structure.cxx b/src/Graphic3d/Graphic3d_Structure.cxx index 831caad9ae..61d4e71fd1 100755 --- a/src/Graphic3d/Graphic3d_Structure.cxx +++ b/src/Graphic3d/Graphic3d_Structure.cxx @@ -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 diff --git a/src/Graphic3d/Graphic3d_TextureRoot.cxx b/src/Graphic3d/Graphic3d_TextureRoot.cxx index 4f1795ab5f..a3f91f1297 100755 --- a/src/Graphic3d/Graphic3d_TextureRoot.cxx +++ b/src/Graphic3d/Graphic3d_TextureRoot.cxx @@ -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; } diff --git a/src/HLRBRep/HLRBRep_Data.cxx b/src/HLRBRep/HLRBRep_Data.cxx index 5f4ee8ceab..071d6c34b5 100755 --- a/src/HLRBRep/HLRBRep_Data.cxx +++ b/src/HLRBRep/HLRBRep_Data.cxx @@ -205,7 +205,7 @@ public: } //-- ============================================================ void SetDim(const Standard_Integer n) { -#ifdef DEB +#ifdef HLRBREP_DEB cout<<"\n@#@#@#@#@# SetDim "< 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; diff --git a/src/HLRBRep/HLRBRep_Hider.cxx b/src/HLRBRep/HLRBRep_Hider.cxx index 44b8338305..f19205a2e5 100755 --- a/src/HLRBRep/HLRBRep_Hider.cxx +++ b/src/HLRBRep/HLRBRep_Hider.cxx @@ -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(); diff --git a/src/HLRBRep/HLRBRep_PolyAlgo.cxx b/src/HLRBRep/HLRBRep_PolyAlgo.cxx index 4d02250e39..62e41e2c64 100755 --- a/src/HLRBRep/HLRBRep_PolyAlgo.cxx +++ b/src/HLRBRep/HLRBRep_PolyAlgo.cxx @@ -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; diff --git a/src/IFSelect/IFSelect_Activator.cxx b/src/IFSelect/IFSelect_Activator.cxx index 4e45001340..073eb7ba63 100755 --- a/src/IFSelect/IFSelect_Activator.cxx +++ b/src/IFSelect/IFSelect_Activator.cxx @@ -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 "<Color() ); if ( color.IsNull() ) { -#ifdef DEB +#ifdef IGESCAFCONTROL_DEB cout << "Error: Unrecognized type of color definition" << endl; #endif IsColor = Standard_False; diff --git a/src/IGESCAFControl/IGESCAFControl_Writer.cxx b/src/IGESCAFControl/IGESCAFControl_Writer.cxx index f83c0f4923..8b58faa308 100755 --- a/src/IGESCAFControl/IGESCAFControl_Writer.cxx +++ b/src/IGESCAFControl/IGESCAFControl_Writer.cxx @@ -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 } diff --git a/src/IGESControl/IGESControl_IGESBoundary.cxx b/src/IGESControl/IGESControl_IGESBoundary.cxx index ef2e2837e8..77047620b9 100755 --- a/src/IGESControl/IGESControl_IGESBoundary.cxx +++ b/src/IGESControl/IGESControl_IGESBoundary.cxx @@ -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; diff --git a/src/IGESControl/IGESControl_Writer.cxx b/src/IGESControl/IGESControl_Writer.cxx index db7553fceb..fa78e31296 100755 --- a/src/IGESControl/IGESControl_Writer.cxx +++ b/src/IGESControl/IGESControl_Writer.cxx @@ -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 : "<TypeNumber(); if (it == 112 || it == 126) { thefound = Standard_True; -#ifdef DEB +#ifdef IGESSELECT_DEB cout<<"IGESSelect_SplineToBSpline : n0."<Print(cout); #endif diff --git a/src/IGESToBRep/IGESToBRep_BasicCurve.cxx b/src/IGESToBRep/IGESToBRep_BasicCurve.cxx index fe86fdedef..6053f80719 100755 --- a/src/IGESToBRep/IGESToBRep_BasicCurve.cxx +++ b/src/IGESToBRep/IGESToBRep_BasicCurve.cxx @@ -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 diff --git a/src/IGESToBRep/IGESToBRep_BasicSurface.cxx b/src/IGESToBRep/IGESToBRep_BasicSurface.cxx index 562a17364f..93ecff56e8 100755 --- a/src/IGESToBRep/IGESToBRep_BasicSurface.cxx +++ b/src/IGESToBRep/IGESToBRep_BasicSurface.cxx @@ -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 diff --git a/src/IGESToBRep/IGESToBRep_TopoSurface.cxx b/src/IGESToBRep/IGESToBRep_TopoSurface.cxx index 06cd79568c..5c82d48362 100755 --- a/src/IGESToBRep/IGESToBRep_TopoSurface.cxx +++ b/src/IGESToBRep/IGESToBRep_TopoSurface.cxx @@ -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; diff --git a/src/Image/Image_AlienPixMap.cxx b/src/Image/Image_AlienPixMap.cxx index 3de0eb6414..f7350d45e8 100644 --- a/src/Image/Image_AlienPixMap.cxx +++ b/src/Image/Image_AlienPixMap.cxx @@ -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 } diff --git a/src/Image/Image_Diff.cxx b/src/Image/Image_Diff.cxx index f9249ee876..7d0c028f9d 100644 --- a/src/Image/Image_Diff.cxx +++ b/src/Image/Image_Diff.cxx @@ -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); diff --git a/src/IntCurveSurface/IntCurveSurface_Inter.gxx b/src/IntCurveSurface/IntCurveSurface_Inter.gxx index 29c79e4bda..704271702f 100755 --- a/src/IntCurveSurface/IntCurveSurface_Inter.gxx +++ b/src/IntCurveSurface/IntCurveSurface_Inter.gxx @@ -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; diff --git a/src/IntCurveSurface/IntCurveSurface_Polygon.gxx b/src/IntCurveSurface/IntCurveSurface_Polygon.gxx index 27ae51f815..c96671002d 100755 --- a/src/IntCurveSurface/IntCurveSurface_Polygon.gxx +++ b/src/IntCurveSurface/IntCurveSurface_Polygon.gxx @@ -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 = "< NbPntIn) { cout << "OutOfRange Polygon::ApproxParamOnCurve " <Vertex(iv2).*pParOnArc)() : paramsResolved(iv2)); -#ifdef DEB +#ifdef INTPATCH_DEB cout<<"****** Parameters on arc on S"<ComputeVertexParameters(Tol); } else { -#ifdef DEB - //if(rlin->NbVertex()==0) { - // cout<<" \n *** IntPatch RstInt.gxx : nbvtx = 0 sur rline *** \n"<ComputeVertexParameters(Tol); } } diff --git a/src/IntStart/IntStart_SearchOnBoundaries_1.gxx b/src/IntStart/IntStart_SearchOnBoundaries_1.gxx index 606ac41f30..5550b8c1a9 100755 --- a/src/IntStart/IntStart_SearchOnBoundaries_1.gxx +++ b/src/IntStart/IntStart_SearchOnBoundaries_1.gxx @@ -241,9 +241,6 @@ void BoundedArc (const TheArc& A, } } if(aelargir && maxdist<0.01) { -#ifdef DEB - //-- cout<<"\n Tolerance elargie a "<SetTangentVector(previousd3d,j-1); } -#ifdef DEB +#ifdef INTWALK_DEB else { cout<<" IntWalk_IWalking_2.gxx : bizarrerie 30 10 97 "< 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 diff --git a/src/IntWalk/IntWalk_PWalking_4.gxx b/src/IntWalk/IntWalk_PWalking_4.gxx index b04f7136ce..033cdc4a31 100755 --- a/src/IntWalk/IntWalk_PWalking_4.gxx +++ b/src/IntWalk/IntWalk_PWalking_4.gxx @@ -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"<Upper()) { -#ifdef DEB +#ifdef MDF_DEB cout<<"MDF_Tool::WriteLabels LABEL array resizing from "<Upper()<<" to "<Upper()) { -#ifdef DEB +#ifdef MDF_DEB cout<<"MDF_Tool::WriteLabels ATTRIBUTES array resizing from "<Upper()<<" to "<Width() != -1. ) T->SetWidth( S->Width() ); else T->UnsetWidth(); -#ifdef DEB +#ifdef MPRSSTD_DEB cout << "AISPresentationRetrievalDriver " << "retrieved DriverGUID ==> "; guid.ShallowDump(cout); cout << endl; diff --git a/src/MPrsStd/MPrsStd_AISPresentationRetrievalDriver_1.cxx b/src/MPrsStd/MPrsStd_AISPresentationRetrievalDriver_1.cxx index b770cde793..eff3472cf7 100755 --- a/src/MPrsStd/MPrsStd_AISPresentationRetrievalDriver_1.cxx +++ b/src/MPrsStd/MPrsStd_AISPresentationRetrievalDriver_1.cxx @@ -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; diff --git a/src/MPrsStd/MPrsStd_AISPresentationStorageDriver.cxx b/src/MPrsStd/MPrsStd_AISPresentationStorageDriver.cxx index 7161f7906c..f70e698237 100755 --- a/src/MPrsStd/MPrsStd_AISPresentationStorageDriver.cxx +++ b/src/MPrsStd/MPrsStd_AISPresentationStorageDriver.cxx @@ -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 } diff --git a/src/Materials/Materials_MaterialsDictionary.cxx b/src/Materials/Materials_MaterialsDictionary.cxx index b5db77308c..f8d4a96791 100755 --- a/src/Materials/Materials_MaterialsDictionary.cxx +++ b/src/Materials/Materials_MaterialsDictionary.cxx @@ -80,7 +80,9 @@ Materials_MaterialsDictionary::Materials_MaterialsDictionary() ifstream file(filename); if(!file) { +#ifdef MATERIALS_DEB cout<<"unable to open "<d_name); // LD debug -#ifdef DEBUG +#ifdef OSD_DEB cout << "Place : " << myPlace << endl; cout << "FName : " << full_name << endl; #endif diff --git a/src/OSD/OSD_Path.cxx b/src/OSD/OSD_Path.cxx index bc4156fccb..e7e11704d1 100755 --- a/src/OSD/OSD_Path.cxx +++ b/src/OSD/OSD_Path.cxx @@ -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 ; diff --git a/src/OpenGl/OpenGl_Context.cxx b/src/OpenGl/OpenGl_Context.cxx index 0262971c48..969fa4fa5d 100644 --- a/src/OpenGl/OpenGl_Context.cxx +++ b/src/OpenGl/OpenGl_Context.cxx @@ -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; } diff --git a/src/OpenGl/OpenGl_Display.cxx b/src/OpenGl/OpenGl_Display.cxx index 57be18606f..e136ebd6ab 100644 --- a/src/OpenGl/OpenGl_Display.cxx +++ b/src/OpenGl/OpenGl_Display.cxx @@ -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 } diff --git a/src/OpenGl/OpenGl_FrameBuffer.cxx b/src/OpenGl/OpenGl_FrameBuffer.cxx index 1dd334d911..a9d5d32f78 100644 --- a/src/OpenGl/OpenGl_FrameBuffer.cxx +++ b/src/OpenGl/OpenGl_FrameBuffer.cxx @@ -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 } } diff --git a/src/OpenGl/OpenGl_telem_util.cxx b/src/OpenGl/OpenGl_telem_util.cxx index ff170916eb..c3e30011d3 100755 --- a/src/OpenGl/OpenGl_telem_util.cxx +++ b/src/OpenGl/OpenGl_telem_util.cxx @@ -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 diff --git a/src/Plugin/Plugin.cxx b/src/Plugin/Plugin.cxx index a4940037d3..c6e8f73ca9 100755 --- a/src/Plugin/Plugin.cxx +++ b/src/Plugin/Plugin.cxx @@ -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:"<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"); diff --git a/src/Poly/Poly.cxx b/src/Poly/Poly.cxx index b1e1179185..4bbca0f152 100755 --- a/src/Poly/Poly.cxx +++ b/src/Poly/Poly.cxx @@ -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)(); } diff --git a/src/ProjLib/ProjLib_CompProjectedCurve.cxx b/src/ProjLib/ProjLib_CompProjectedCurve.cxx index 5d32f2514a..f48ef4a07d 100755 --- a/src/ProjLib/ProjLib_CompProjectedCurve.cxx +++ b/src/ProjLib/ProjLib_CompProjectedCurve.cxx @@ -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"<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"<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)"<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)"<StructureManager()); if(TheTrsf->Form()== gp_Translation){ -#ifdef DEB +#ifdef PRSMGR_DEB cout<<"\tla Trsf est une translation"<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..."<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)"<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"<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"<Clear(); -#ifdef DEB +#ifdef PRSMGR_DEB cout<<"\t Trsf is not only translation..."<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" <Orientation(); } else { -#ifdef DEB +#ifdef RWSTEPSHAPE_DEB cout << "EdgeLoop not referenced by FaceBound" << endl; #endif } diff --git a/src/RWStepShape/RWStepShape_RWFaceBound.cxx b/src/RWStepShape/RWStepShape_RWFaceBound.cxx index 22abc777a4..ebdf9e6d26 100755 --- a/src/RWStepShape/RWStepShape_RWFaceBound.cxx +++ b/src/RWStepShape/RWStepShape_RWFaceBound.cxx @@ -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" <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 } diff --git a/src/RWStl/RWStl.cxx b/src/RWStl/RWStl.cxx index d6276c22c3..1c9e80dbdb 100755 --- a/src/RWStl/RWStl.cxx +++ b/src/RWStl/RWStl.cxx @@ -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); diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index e1a4e05fdb..d7a829a5f6 100755 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -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="<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"<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; diff --git a/src/STEPCAFControl/STEPCAFControl_Writer.cxx b/src/STEPCAFControl/STEPCAFControl_Writer.cxx index 468d4f9602..b5a7aeeaaa 100755 --- a/src/STEPCAFControl/STEPCAFControl_Writer.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Writer.cxx @@ -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"< 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; diff --git a/src/STEPConstruct/STEPConstruct.cxx b/src/STEPConstruct/STEPConstruct.cxx index 1ff68b004e..37ace40fde 100755 --- a/src/STEPConstruct/STEPConstruct.cxx +++ b/src/STEPConstruct/STEPConstruct.cxx @@ -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; diff --git a/src/STEPConstruct/STEPConstruct_Assembly.cxx b/src/STEPConstruct/STEPConstruct_Assembly.cxx index 12fba7634c..d3fcfed569 100755 --- a/src/STEPConstruct/STEPConstruct_Assembly.cxx +++ b/src/STEPConstruct/STEPConstruct_Assembly.cxx @@ -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; diff --git a/src/STEPConstruct/STEPConstruct_ExternRefs.cxx b/src/STEPConstruct/STEPConstruct_ExternRefs.cxx index 69e7d54157..55aa790252 100755 --- a/src/STEPConstruct/STEPConstruct_ExternRefs.cxx +++ b/src/STEPConstruct/STEPConstruct_ExternRefs.cxx @@ -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 diff --git a/src/STEPConstruct/STEPConstruct_Styles.cxx b/src/STEPConstruct/STEPConstruct_Styles.cxx index 74c1bf6304..bdd701bc14 100755 --- a/src/STEPConstruct/STEPConstruct_Styles.cxx +++ b/src/STEPConstruct/STEPConstruct_Styles.cxx @@ -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; diff --git a/src/STEPConstruct/STEPConstruct_UnitContext.cxx b/src/STEPConstruct/STEPConstruct_UnitContext.cxx index ff599473d3..b3de74bcda 100755 --- a/src/STEPConstruct/STEPConstruct_UnitContext.cxx +++ b/src/STEPConstruct/STEPConstruct_UnitContext.cxx @@ -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"<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."<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;; diff --git a/src/STEPControl/STEPControl_ActorRead.cxx b/src/STEPControl/STEPControl_ActorRead.cxx index 4daff0ecfd..0f1b0a7009 100755 --- a/src/STEPControl/STEPControl_ActorRead.cxx +++ b/src/STEPControl/STEPControl_ActorRead.cxx @@ -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 } diff --git a/src/STEPControl/STEPControl_ActorWrite.cxx b/src/STEPControl/STEPControl_ActorWrite.cxx index e2c499b2d6..8950edcf22 100755 --- a/src/STEPControl/STEPControl_ActorWrite.cxx +++ b/src/STEPControl/STEPControl_ActorWrite.cxx @@ -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 diff --git a/src/STEPControl/STEPControl_Reader.cxx b/src/STEPControl/STEPControl_Reader.cxx index 1bdeca9ce3..74dd4cbb15 100755 --- a/src/STEPControl/STEPControl_Reader.cxx +++ b/src/STEPControl/STEPControl_Reader.cxx @@ -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; diff --git a/src/ShapeAnalysis/ShapeAnalysis_Curve.cxx b/src/ShapeAnalysis/ShapeAnalysis_Curve.cxx index cb99ace78d..800378e543 100755 --- a/src/ShapeAnalysis/ShapeAnalysis_Curve.cxx +++ b/src/ShapeAnalysis/ShapeAnalysis_Curve.cxx @@ -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="< distmin="<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 ); diff --git a/src/ShapeAnalysis/ShapeAnalysis_Surface.cxx b/src/ShapeAnalysis/ShapeAnalysis_Surface.cxx index f365dc891d..e0d8ff470f 100755 --- a/src/ShapeAnalysis/ShapeAnalysis_Surface.cxx +++ b/src/ShapeAnalysis/ShapeAnalysis_Surface.cxx @@ -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"<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 diff --git a/src/ShapeBuild/ShapeBuild_Edge.cxx b/src/ShapeBuild/ShapeBuild_Edge.cxx index 983846cfe7..2e9fa7ec4e 100755 --- a/src/ShapeBuild/ShapeBuild_Edge.cxx +++ b/src/ShapeBuild/ShapeBuild_Edge.cxx @@ -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; diff --git a/src/ShapeConstruct/ShapeConstruct.cxx b/src/ShapeConstruct/ShapeConstruct.cxx index 0bd098c478..b80fb58cbd 100755 --- a/src/ShapeConstruct/ShapeConstruct.cxx +++ b/src/ShapeConstruct/ShapeConstruct.cxx @@ -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 <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<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 diff --git a/src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.cxx b/src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.cxx index c0af8c674c..eee59ae7d8 100755 --- a/src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.cxx +++ b/src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.cxx @@ -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"<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<<"["<Print(cout); cout << endl; #endif diff --git a/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx b/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx index fd2ba0819a..fe56d568ed 100755 --- a/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx +++ b/src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx @@ -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() <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<GMaxDegree(); aC = aC1; continue; } else { -#ifdef DEB +#ifdef SHAPECUSTOM_DEB cout << "Curve is not aproxed with continuity "<< aCont<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<GMaxDegree(); aC =aC1; continue; } else { -#ifdef DEB +#ifdef SHAPECUSTOM_DEB cout << "Curve is not aproxed with continuity "<< aCont<Print(cout); cout << endl; #endif diff --git a/src/ShapeCustom/ShapeCustom_Curve.cxx b/src/ShapeCustom/ShapeCustom_Curve.cxx index 37bcdfe96a..11b4ba20ef 100755 --- a/src/ShapeCustom/ShapeCustom_Curve.cxx +++ b/src/ShapeCustom/ShapeCustom_Curve.cxx @@ -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; diff --git a/src/ShapeCustom/ShapeCustom_Surface.cxx b/src/ShapeCustom/ShapeCustom_Surface.cxx index 87e536d9e4..5722383f23 100755 --- a/src/ShapeCustom/ShapeCustom_Surface.cxx +++ b/src/ShapeCustom/ShapeCustom_Surface.cxx @@ -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"<UReverse(); anObject->D1 (0.,0.,resPnt,resD1U,resD1V); -#ifdef DEBUG +#ifdef SHAPECUSTOM_DEB if (resD1U.Dot(origD1U) < 0 && j != 2) cout<<" Tore a inverser !"<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; diff --git a/src/ShapeExtend/ShapeExtend_CompositeSurface.cxx b/src/ShapeExtend/ShapeExtend_CompositeSurface.cxx index ebc0ec668f..b94b8dc83b 100755 --- a/src/ShapeExtend/ShapeExtend_CompositeSurface.cxx +++ b/src/ShapeExtend/ShapeExtend_CompositeSurface.cxx @@ -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; diff --git a/src/ShapeExtend/ShapeExtend_MsgRegistrator.cxx b/src/ShapeExtend/ShapeExtend_MsgRegistrator.cxx index 4ae101dae4..78a79847e3 100755 --- a/src/ShapeExtend/ShapeExtend_MsgRegistrator.cxx +++ b/src/ShapeExtend/ShapeExtend_MsgRegistrator.cxx @@ -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; diff --git a/src/ShapeFix/ShapeFix.cxx b/src/ShapeFix/ShapeFix.cxx index 2a0b39c95a..dd091b16a9 100755 --- a/src/ShapeFix/ShapeFix.cxx +++ b/src/ShapeFix/ShapeFix.cxx @@ -221,7 +221,7 @@ Standard_Boolean ShapeFix::SameParameter(const TopoDS_Shape& shape, } if (!status) { -#ifdef DEB +#ifdef SHAPEFIX_DEB cout<<"** SameParameter not complete. On "< 0) cout<<" "<Print ( cout ); cout << endl; diff --git a/src/ShapeFix/ShapeFix_ComposeShell.cxx b/src/ShapeFix/ShapeFix_ComposeShell.cxx index e2e2831c02..ea6bdf353b 100755 --- a/src/ShapeFix/ShapeFix_ComposeShell.cxx +++ b/src/ShapeFix/ShapeFix_ComposeShell.cxx @@ -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"<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++ ) { diff --git a/src/ShapeFix/ShapeFix_Edge.cxx b/src/ShapeFix/ShapeFix_Edge.cxx index a5f8f1a529..e565f7e477 100755 --- a/src/ShapeFix/ShapeFix_Edge.cxx +++ b/src/ShapeFix/ShapeFix_Edge.cxx @@ -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 diff --git a/src/ShapeFix/ShapeFix_EdgeProjAux.cxx b/src/ShapeFix/ShapeFix_EdgeProjAux.cxx index 11dc3831cd..ab7a2445af 100755 --- a/src/ShapeFix/ShapeFix_EdgeProjAux.cxx +++ b/src/ShapeFix/ShapeFix_EdgeProjAux.cxx @@ -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"<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"< wmid) { myLastParam -=period; UpdateParam2d(theCurve2d); -#ifdef DEBUG +#ifdef SHAPEFIX_DEB cout <<" Added & Inverted"<1) { -#ifdef DEBUG +#ifdef SHAPEFIX_DEB cout<<"Wire was splitted on "<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"<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 "<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"<Status(ShapeExtend_FAIL1)) { -#ifdef DEB +#ifdef SHAPEFIX_DEB cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on edges"<Status(ShapeExtend_FAIL1)) { -#ifdef DEB +#ifdef SHAPEFIX_DEB cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on vertices"<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 diff --git a/src/ShapeFix/ShapeFix_Wire.cxx b/src/ShapeFix/ShapeFix_Wire.cxx index aeeb063d4f..3d95c2d201 100755 --- a/src/ShapeFix/ShapeFix_Wire.cxx +++ b/src/ShapeFix/ShapeFix_Wire.cxx @@ -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-" <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"<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 diff --git a/src/ShapeFix/ShapeFix_Wire_1.cxx b/src/ShapeFix/ShapeFix_Wire_1.cxx index a692a0b364..ebe384843c 100755 --- a/src/ShapeFix/ShapeFix_Wire_1.cxx +++ b/src/ShapeFix/ShapeFix_Wire_1.cxx @@ -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" <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 :"<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" <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 :"<Print(cout); cout << endl; #endif diff --git a/src/ShapeFix/ShapeFix_Wireframe.cxx b/src/ShapeFix/ShapeFix_Wireframe.cxx index c6592cc2a1..952417789b 100755 --- a/src/ShapeFix/ShapeFix_Wireframe.cxx +++ b/src/ShapeFix/ShapeFix_Wireframe.cxx @@ -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<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(); diff --git a/src/ShapeProcess/ShapeProcess_Context.cxx b/src/ShapeProcess/ShapeProcess_Context.cxx index 41983d2bb6..9a0eb39fd6 100755 --- a/src/ShapeProcess/ShapeProcess_Context.cxx +++ b/src/ShapeProcess/ShapeProcess_Context.cxx @@ -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 diff --git a/src/ShapeProcess/ShapeProcess_OperLibrary.cxx b/src/ShapeProcess/ShapeProcess_OperLibrary.cxx index e015485111..91b37736e8 100755 --- a/src/ShapeProcess/ShapeProcess_OperLibrary.cxx +++ b/src/ShapeProcess/ShapeProcess_OperLibrary.cxx @@ -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"<GetBoolean ( "EdgeMode", EdgeMode ) ) SCB.SetEdgeMode(EdgeMode); if ( ! SCB.Perform() && SCB.Status (ShapeExtend_FAIL) ) { -#ifdef DEB +#ifdef SHAPEPROCESS_DEB cout<<"Shape::ShapeConvertToBezier failed"<GetReal ( "MaxTolerance", maxTol ) ) tool.SetMaxTolerance(maxTol); if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) { -#ifdef DEB +#ifdef SHAPEPROCESS_DEB cout<<"SplitContinuity failed"<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 } diff --git a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx index 6d2607bd22..7b50ada687 100755 --- a/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx @@ -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" <SetValue(1,First); } if(Last > bl){ -#ifdef DEB +#ifdef SHAPEUPGRADE_DEB cout <<"Warning: The range of the edge exceeds the pcurve domain" <SetValue(1,First); } if(Last > bl){ -#ifdef DEB +#ifdef SHAPEUPGRADE_DEB cout <<"Warning: The range of the edge exceeds the curve domain" <Segment(V1,V2); } else { -#ifdef DEB +#ifdef SHAPEUPGRADE_DEB cout <<"Warning: Resulting path is not surface of revolution basis on bezier curve"<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 diff --git a/src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.cxx b/src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.cxx index df80a5fb9d..e68b40c894 100755 --- a/src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.cxx @@ -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 diff --git a/src/ShapeUpgrade/ShapeUpgrade_SplitCurve2d.cxx b/src/ShapeUpgrade/ShapeUpgrade_SplitCurve2d.cxx index 19a23d4eb0..ef0e5848b3 100755 --- a/src/ShapeUpgrade/ShapeUpgrade_SplitCurve2d.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_SplitCurve2d.cxx @@ -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" < lP){ -#ifdef DEB +#ifdef SHAPEUPGRADE_DEB cout <<"Warning: The range of the edge exceeds the curve domain" <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 diff --git a/src/ShapeUpgrade/ShapeUpgrade_SplitCurve2dContinuity.cxx b/src/ShapeUpgrade/ShapeUpgrade_SplitCurve2dContinuity.cxx index 11be936165..face951e9b 100755 --- a/src/ShapeUpgrade/ShapeUpgrade_SplitCurve2dContinuity.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_SplitCurve2dContinuity.cxx @@ -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"< lP){ -#ifdef DEB +#ifdef SHAPEUPGRADE_DEB cout <<"Warning: The range of the edge exceeds the curve domain" <SetValue(1,First); } if(Last > lastPar){ -#ifdef DEB +#ifdef SHAPEUPGRADE_DEB cout <<"Warning: The range of the edge exceeds the curve domain" <Print(cout); cout << endl; #endif diff --git a/src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx b/src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx index 07bdbfdc7c..c157496310 100755 --- a/src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx @@ -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"<Print(cout); cout << endl; #endif diff --git a/src/ShapeUpgrade/ShapeUpgrade_SplitSurfaceContinuity.cxx b/src/ShapeUpgrade/ShapeUpgrade_SplitSurfaceContinuity.cxx index f4a8acd23c..9524e42a27 100755 --- a/src/ShapeUpgrade/ShapeUpgrade_SplitSurfaceContinuity.cxx +++ b/src/ShapeUpgrade/ShapeUpgrade_SplitSurfaceContinuity.cxx @@ -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"< make approximation"<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."<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); } diff --git a/src/Standard/Standard_MMgrOpt.cxx b/src/Standard/Standard_MMgrOpt.cxx index 13f246c8a3..0f1e190ed5 100755 --- a/src/Standard/Standard_MMgrOpt.cxx +++ b/src/Standard/Standard_MMgrOpt.cxx @@ -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); } diff --git a/src/Standard/Standard_Real.cxx b/src/Standard/Standard_Real.cxx index 81a4504f04..4ac0bec280 100755 --- a/src/Standard/Standard_Real.cxx +++ b/src/Standard/Standard_Real.cxx @@ -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); } diff --git a/src/StdDrivers/StdDrivers.cxx b/src/StdDrivers/StdDrivers.cxx index 1a7c155379..4a0dc4ca38 100755 --- a/src/StdDrivers/StdDrivers.cxx +++ b/src/StdDrivers/StdDrivers.cxx @@ -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; diff --git a/src/StdLDrivers/StdLDrivers.cxx b/src/StdLDrivers/StdLDrivers.cxx index ec8e4ec6c5..0e4b1b0db4 100755 --- a/src/StdLDrivers/StdLDrivers.cxx +++ b/src/StdLDrivers/StdLDrivers.cxx @@ -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; diff --git a/src/StdPrs/StdPrs_WFDeflectionRestrictedFace.cxx b/src/StdPrs/StdPrs_WFDeflectionRestrictedFace.cxx index da03c7de50..7acee340bf 100755 --- a/src/StdPrs/StdPrs_WFDeflectionRestrictedFace.cxx +++ b/src/StdPrs/StdPrs_WFDeflectionRestrictedFace.cxx @@ -185,9 +185,11 @@ void StdPrs_WFDeflectionRestrictedFace::Add } } } +#ifdef STDPRS_DEB else { cout << "Cannot evaluate curve on surface"<FirstParameter(); @@ -456,9 +458,11 @@ Standard_Boolean StdPrs_WFDeflectionRestrictedFace::Match } } } +#ifdef STDPRS_DEB else { cout << "Cannot evaluate curve on surface"<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"<ClosedCurve() && CC->Degree() >1 && CC->IsClosed() ) { CC->SetPeriodic(); -//#ifdef DEB -// cout << "Warning: "__FILE__": Closed curve made periodic" << endl; -//#endif } return Standard_True; } diff --git a/src/StepToGeom/StepToGeom_MakeBoundedCurve.cxx b/src/StepToGeom/StepToGeom_MakeBoundedCurve.cxx index a2b2e3e7c9..4251f45d93 100755 --- a/src/StepToGeom/StepToGeom_MakeBoundedCurve.cxx +++ b/src/StepToGeom/StepToGeom_MakeBoundedCurve.cxx @@ -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 = diff --git a/src/StepToGeom/StepToGeom_MakeBoundedSurface.cxx b/src/StepToGeom/StepToGeom_MakeBoundedSurface.cxx index 5478872e34..e6398ad528 100755 --- a/src/StepToGeom/StepToGeom_MakeBoundedSurface.cxx +++ b/src/StepToGeom/StepToGeom_MakeBoundedSurface.cxx @@ -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 = diff --git a/src/StepToGeom/StepToGeom_MakeSurface.cxx b/src/StepToGeom/StepToGeom_MakeSurface.cxx index 475d45648d..5ce3120894 100755 --- a/src/StepToGeom/StepToGeom_MakeSurface.cxx +++ b/src/StepToGeom/StepToGeom_MakeSurface.cxx @@ -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 diff --git a/src/StepToGeom/StepToGeom_MakeTrimmedCurve.cxx b/src/StepToGeom/StepToGeom_MakeTrimmedCurve.cxx index 0374a68834..2ed887c41f 100755 --- a/src/StepToGeom/StepToGeom_MakeTrimmedCurve.cxx +++ b/src/StepToGeom/StepToGeom_MakeTrimmedCurve.cxx @@ -263,9 +263,6 @@ Standard_Boolean StepToGeom_MakeTrimmedCurve::Convert (const Handle(StepGeom_Tri } } else { -//#ifdef DEBUG -// cout << "Trimming Failed" << endl; -//#endif return Standard_False; } } diff --git a/src/StepToGeom/StepToGeom_MakeTrimmedCurve2d.cxx b/src/StepToGeom/StepToGeom_MakeTrimmedCurve2d.cxx index 0b9060968b..552830f2b5 100755 --- a/src/StepToGeom/StepToGeom_MakeTrimmedCurve2d.cxx +++ b/src/StepToGeom/StepToGeom_MakeTrimmedCurve2d.cxx @@ -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; } diff --git a/src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx b/src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx index 6a6be78446..daeed0fdfb 100755 --- a/src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx +++ b/src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx @@ -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 ); diff --git a/src/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx b/src/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx index cc60493cca..2fe98c374b 100755 --- a/src/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx +++ b/src/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx @@ -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 diff --git a/src/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx b/src/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx index abf6d160b3..39e0f4eaac 100755 --- a/src/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx +++ b/src/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx @@ -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; diff --git a/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx b/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx index 23ffeda149..c2a0e1453c 100755 --- a/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx +++ b/src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx @@ -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"<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; diff --git a/src/StepToTopoDS/StepToTopoDS_TranslateShell.cxx b/src/StepToTopoDS/StepToTopoDS_TranslateShell.cxx index 7e48f2ff8e..8fb92ed684 100755 --- a/src/StepToTopoDS/StepToTopoDS_TranslateShell.cxx +++ b/src/StepToTopoDS/StepToTopoDS_TranslateShell.cxx @@ -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); diff --git a/src/StlTransfer/StlTransfer.cxx b/src/StlTransfer/StlTransfer.cxx index a374893925..be78649a85 100755 --- a/src/StlTransfer/StlTransfer.cxx +++ b/src/StlTransfer/StlTransfer.cxx @@ -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 } diff --git a/src/Storage/Storage_Schema.cxx b/src/Storage/Storage_Schema.cxx index 7436a45d64..2dc6db638b 100755 --- a/src/Storage/Storage_Schema.cxx +++ b/src/Storage/Storage_Schema.cxx @@ -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; diff --git a/src/TCollection/TCollection_ExtendedString.cxx b/src/TCollection/TCollection_ExtendedString.cxx index 62235535d7..98dab36afb 100755 --- a/src/TCollection/TCollection_ExtendedString.cxx +++ b/src/TCollection/TCollection_ExtendedString.cxx @@ -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..." <SetRelocation(att, att); -#ifdef DEB +#ifdef TDF_DEB PrintEntry(att->Label(), Standard_True); #endif } diff --git a/src/TDF/TDF_Delta.cxx b/src/TDF/TDF_Delta.cxx index 4ae144f255..7d16c1066e 100755 --- a/src/TDF/TDF_Delta.cxx +++ b/src/TDF/TDF_Delta.cxx @@ -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:"<mySavedTransaction = 0; -#ifdef DEB +#ifdef TDF_DEB cout<<"Resume attribute"<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" <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 >>" <InternalArray(); for(i=BArr2->Lower(); i<=BArr2->Upper() && i<= MAXUP;i++) diff --git a/src/TDataStd/TDataStd_DeltaOnModificationOfExtStringArray.cxx b/src/TDataStd/TDataStd_DeltaOnModificationOfExtStringArray.cxx index bd7933088c..9ac4a63e5c 100755 --- a/src/TDataStd/TDataStd_DeltaOnModificationOfExtStringArray.cxx +++ b/src/TDataStd/TDataStd_DeltaOnModificationOfExtStringArray.cxx @@ -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" <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" <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 >>" <Array(); for(i=aStrArr2->Lower(); i<= aStrArr2->Upper() && i<= MAXUP;i++) diff --git a/src/TDataStd/TDataStd_DeltaOnModificationOfIntArray.cxx b/src/TDataStd/TDataStd_DeltaOnModificationOfIntArray.cxx index dd543477da..2ec68cd20a 100755 --- a/src/TDataStd/TDataStd_DeltaOnModificationOfIntArray.cxx +++ b/src/TDataStd/TDataStd_DeltaOnModificationOfIntArray.cxx @@ -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" <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" <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 >>" <Array(); for(i=IntArr2->Lower(); i<=IntArr2->Upper() && i <= MAXUP;i++) diff --git a/src/TDataStd/TDataStd_DeltaOnModificationOfIntPackedMap.cxx b/src/TDataStd/TDataStd_DeltaOnModificationOfIntPackedMap.cxx index 878b2cd3c3..dbebfb07c7 100755 --- a/src/TDataStd/TDataStd_DeltaOnModificationOfIntPackedMap.cxx +++ b/src/TDataStd/TDataStd_DeltaOnModificationOfIntPackedMap.cxx @@ -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" <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" <>" <GetHMap(); TColStd_MapIteratorOfPackedMapOfInteger it(aIntMap->Map()); diff --git a/src/TDataStd/TDataStd_DeltaOnModificationOfRealArray.cxx b/src/TDataStd/TDataStd_DeltaOnModificationOfRealArray.cxx index 4c2b4e9aee..da0a1509b6 100755 --- a/src/TDataStd/TDataStd_DeltaOnModificationOfRealArray.cxx +++ b/src/TDataStd/TDataStd_DeltaOnModificationOfRealArray.cxx @@ -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" <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" <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 >>" <Array(); for(i=aRArr->Lower(); i<=aRArr->Upper() && i <= MAXUP;i++) diff --git a/src/TDocStd/TDocStd_Application.cxx b/src/TDocStd/TDocStd_Application.cxx index ef86bfe0cc..ea76465f9b 100755 --- a/src/TDocStd/TDocStd_Application.cxx +++ b/src/TDocStd/TDocStd_Application.cxx @@ -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 = "<SetSaved(); #ifdef BUC60867 -#ifdef DEB +#ifdef TDOCSTD_DEB cout<<"TDocStd_Application::SaveAs(): The status = "< NameType = " << NameTypeToString(myType) << " "; PrintEntry(aLab); #endif diff --git a/src/TNaming/TNaming_NamedShape.cxx b/src/TNaming/TNaming_NamedShape.cxx index b57ccbfb6a..58f1e57512 100755 --- a/src/TNaming/TNaming_NamedShape.cxx +++ b/src/TNaming/TNaming_NamedShape.cxx @@ -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"<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"<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" <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"<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"<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()"<Shape(S,FindKeep); cout<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**********"< newtol) { -#ifdef DEB +#ifdef TOPOPEBREPBUILD_DEB cout<<"\npoint P"< "< purgeFon1nonoriE\n"; #endif continue; diff --git a/src/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx b/src/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx index 616f1c4331..30fd50453f 100755 --- a/src/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx +++ b/src/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx @@ -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" <NbSurfaces() < I) { -#ifdef DEB +#ifdef TOPOPEBREPDS_DEB cout<<"Surpassed index of TopOpeBRepDS_SURFACE. actual index : "<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 : "<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 : "<NbPoints()<NbShapes() < I) { -#ifdef DEB +#ifdef TOPOPEBREPDS_DEB cout<<"Surpassed index of TopOpeBRepDS_Shape_. actual index : "<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 "<Shape(i); const TopTools_ListOfShape& losi = BDS.ShapeSameDomain(Sind); if(!CheckShapes(losi)) { -#ifdef DEB +#ifdef TOPOPEBREPDS_DEB cout<<"Shape of ShapeSameDomain (n*n "< myNbPoints ) { -#ifdef DEB +#ifdef TOPOPEBREPDS_DEB cout<<"acces au POINT "< myNbPoints ) { -#ifdef DEB +#ifdef TOPOPEBREPDS_DEB cout<<"acces au POINT "<IsKind(STANDARD_TYPE(TopOpeBRepDS_CurvePointInterference)) ) p = Handle(TopOpeBRepDS_CurvePointInterference)::DownCast(I)->Parameter(); else { -#ifdef DEB +#ifdef TOPOPEBREPDS_DEB cout<<"EdgeInterference : mauvais type d'interference"<IsKind(STANDARD_TYPE(TopOpeBRepDS_CurvePointInterference)) ) p = Handle(TopOpeBRepDS_CurvePointInterference)::DownCast(I)->Parameter(); else { -#ifdef DEB +#ifdef TOPOPEBREPDS_DEB cout<<"EdgeInterference : mauvais type d'interference"<E,I"<Init (aOShell->Name(),aOShell->CfsFaces()); -#ifdef DEBUG +#ifdef TOPODSTOSTEP_DEB cout<<"Warning: MakeBRepWithVoids: Open shell in the solid; treated as closed"<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"); diff --git a/src/TopoDSToStep/TopoDSToStep_Tool.cxx b/src/TopoDSToStep/TopoDSToStep_Tool.cxx index b0d41435ac..0774a23dff 100755 --- a/src/TopoDSToStep/TopoDSToStep_Tool.cxx +++ b/src/TopoDSToStep/TopoDSToStep_Tool.cxx @@ -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()) { diff --git a/src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx b/src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx index 24120838a6..8475b6cb99 100755 --- a/src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx +++ b/src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx @@ -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<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"< return 0.0"<Multiplied(themeasurement); themeasurement = newtoken->Divided(themeasurement); } +#ifdef UNITS_DEB else { cout<<" The units don't have the same physical dimensions"<Clear(); -#ifdef DEB +#ifdef UNITS_DEB cout<<"Warning: can not create correct sentence from string: "<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: "<Value())<1.e-40) { -#ifdef DEB +#ifdef UNITS_DEB cout<<"Warning: division on token with value=0 => return initial token."<Length()) return unitssequence->Value(1)->SymbolsSequence()->Value(1)->String(); else { +#ifdef UNITS_DEB cout<<" Pas d'unite active pour "<Value(index2)->SymbolsSequence()->Value(1)->String(); else { +#ifdef UNITS_DEB cout<<" Pas d'unite active pour "<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; } diff --git a/src/UnitsMethods/UnitsMethods.cxx b/src/UnitsMethods/UnitsMethods.cxx index 3894a5bbd1..e1958a15d6 100755 --- a/src/UnitsMethods/UnitsMethods.cxx +++ b/src/UnitsMethods/UnitsMethods.cxx @@ -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 diff --git a/src/ViewerTest/ViewerTest.cxx b/src/ViewerTest/ViewerTest.cxx index cca7e9ba3f..ae0c9dbeba 100755 --- a/src/ViewerTest/ViewerTest.cxx +++ b/src/ViewerTest/ViewerTest.cxx @@ -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 :"<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; diff --git a/src/WNT/WNT_Allocator.cxx b/src/WNT/WNT_Allocator.cxx index a16cf8bd5f..1afcf05532 100755 --- a/src/WNT/WNT_Allocator.cxx +++ b/src/WNT/WNT_Allocator.cxx @@ -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 ); diff --git a/src/XCAFDoc/XCAFDoc_ShapeTool.cxx b/src/XCAFDoc/XCAFDoc_ShapeTool.cxx index 484c318d91..73593527ea 100755 --- a/src/XCAFDoc/XCAFDoc_ShapeTool.cxx +++ b/src/XCAFDoc/XCAFDoc_ShapeTool.cxx @@ -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"<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"<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() ? "" : " " ) << 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... } diff --git a/src/XSAlgo/XSAlgo_AlgoContainer.cxx b/src/XSAlgo/XSAlgo_AlgoContainer.cxx index ded190cef8..03b5bda309 100755 --- a/src/XSAlgo/XSAlgo_AlgoContainer.cxx +++ b/src/XSAlgo/XSAlgo_AlgoContainer.cxx @@ -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"<NbTransients() > 1 ) { resBinder->AddResult(TransientListBinder); // resBinder->SetNext(TransientListBinder, Standard_True); -#ifdef DEB +#ifdef XSALGO_DEB cout<<"Info: TransientListBinder created for splitted shape"< 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; diff --git a/src/XmlMDataStd/XmlMDataStd_ByteArrayDriver.cxx b/src/XmlMDataStd/XmlMDataStd_ByteArrayDriver.cxx index f0a359b64d..af37fbdbb9 100755 --- a/src/XmlMDataStd/XmlMDataStd_ByteArrayDriver.cxx +++ b/src/XmlMDataStd/XmlMDataStd_ByteArrayDriver.cxx @@ -112,9 +112,6 @@ Standard_Boolean XmlMDataStd_ByteArrayDriver::Paste(const XmlObjMgt_Persistent& } aByteArray->ChangeArray(array); -#ifdef DEB - //cout << "CurDocVersion = " << 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. " <SetValue( aLastInd, aValueStr ); -#ifdef DEB - //cout << "CurDocVersion = " << 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. " <ChangeMap(aHMap)) Ok = Standard_True; } - // -#ifdef DEB - //cout << "CurDocVersion = " << XmlMDataStd::DocumentVersion() <SetValue(ind, aValue); } } -#ifdef DEB - //cout << "CurDocVersion = " << 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. " <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 = " <getAttribute(::Value()); Handle(TColStd_HArray1OfInteger) aValue = BuildIntArray(aValueString, aLen); if(aValue.IsNull()) { diff --git a/src/XmlMDataStd/XmlMDataStd_RealArrayDriver.cxx b/src/XmlMDataStd/XmlMDataStd_RealArrayDriver.cxx index d0edf72ed9..da1c2ffe75 100755 --- a/src/XmlMDataStd/XmlMDataStd_RealArrayDriver.cxx +++ b/src/XmlMDataStd/XmlMDataStd_RealArrayDriver.cxx @@ -120,9 +120,6 @@ Standard_Boolean XmlMDataStd_RealArrayDriver::Paste aRealArray->SetValue(ind, aValue); } } -#ifdef DEB - //cout << "CurDocVersion = " << 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. " <