]> OCCT Git - occt.git/commitdiff
Coding - Isolate long attached comments for clang-format #259
authordpasukhi <dpasukhi@opencascade.com>
Thu, 16 Jan 2025 20:15:29 +0000 (20:15 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Thu, 16 Jan 2025 20:15:29 +0000 (20:15 +0000)
Automatically update code with clang-format disabling for avoiding formatting.
You can check the python script in GitHub PR

475 files changed:
src/AIS/AIS_Animation.hxx
src/AIS/AIS_ColorScale.cxx
src/AIS/AIS_ColorScale.hxx
src/AIS/AIS_ColoredShape.cxx
src/AIS/AIS_InteractiveObject.hxx
src/AIS/AIS_LightSource.hxx
src/AIS/AIS_Manipulator.cxx
src/AIS/AIS_Manipulator.hxx
src/AIS/AIS_Trihedron.cxx
src/AIS/AIS_ViewController.cxx
src/AIS/AIS_ViewController.hxx
src/AIS/AIS_ViewCube.cxx
src/AIS/AIS_ViewCube.hxx
src/APIHeaderSection/APIHeaderSection_MakeHeader.cxx
src/AppDef/AppDef_Variational.cxx
src/Aspect/Aspect_OpenVRSession.cxx
src/Aspect/Aspect_Touch.hxx
src/Aspect/Aspect_XRAnalogActionData.hxx
src/Aspect/Aspect_XRDigitalActionData.hxx
src/Aspect/Aspect_XRPoseActionData.hxx
src/Aspect/Aspect_XRSession.hxx
src/BOPAlgo/BOPAlgo_Builder.hxx
src/BOPAlgo/BOPAlgo_CellsBuilder.hxx
src/BOPAlgo/BOPAlgo_MakePeriodic.hxx
src/BOPAlgo/BOPAlgo_PaveFiller.hxx
src/BOPAlgo/BOPAlgo_RemoveFeatures.cxx
src/BOPTools/BOPTools_Parallel.hxx
src/BRepAlgo/BRepAlgo.cxx
src/BRepAlgoAPI/BRepAlgoAPI_Check.hxx
src/BRepBuilderAPI/BRepBuilderAPI_FindPlane.cxx
src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx
src/BRepClass3d/BRepClass3d_SClassifier.cxx
src/BRepClass3d/BRepClass3d_SolidExplorer.cxx
src/BRepExtrema/BRepExtrema_ProximityDistTool.cxx
src/BRepExtrema/BRepExtrema_ProximityDistTool.hxx
src/BRepExtrema/BRepExtrema_ProximityValueTool.hxx
src/BRepFill/BRepFill_Filling.cxx
src/BRepFill/BRepFill_Sweep.cxx
src/BRepGProp/BRepGProp_EdgeTool.cxx
src/BRepGProp/BRepGProp_Gauss.cxx
src/BRepLib/BRepLib.cxx
src/BRepMesh/BRepMesh_DelaunayNodeInsertionMeshAlgo.hxx
src/BRepMesh/delabella.pxx
src/BRepOffset/BRepOffset.cxx
src/BRepOffset/BRepOffset_Analyse.hxx
src/BRepOffset/BRepOffset_MakeOffset.cxx
src/BRepOffset/BRepOffset_MakeOffset_1.cxx
src/BRepToIGES/BRepToIGES_BRShell.cxx
src/BRepToIGESBRep/BRepToIGESBRep_Entity.cxx
src/BRepTools/BRepTools_ReShape.cxx
src/BRepTools/BRepTools_ShapeSet.cxx
src/BRepTools/BRepTools_ShapeSet.hxx
src/BSplCLib/BSplCLib_Cache.cxx
src/BSplCLib/BSplCLib_Cache.hxx
src/BSplSLib/BSplSLib_Cache.cxx
src/BSplSLib/BSplSLib_Cache.hxx
src/BVH/BVH_BinnedBuilder.hxx
src/BVH/BVH_SweepPlaneBuilder.hxx
src/BVH/BVH_Traverse.lxx
src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx
src/BinMDF/BinMDF_DerivedDriver.hxx
src/BinMNaming/BinMNaming_NamedShapeDriver.cxx
src/BinMNaming/BinMNaming_NamingDriver.cxx
src/BinObjMgt/BinObjMgt_Persistent.hxx
src/BinTools/BinTools_OStream.hxx
src/BinTools/BinTools_ShapeSet.cxx
src/BinTools/BinTools_ShapeSet.hxx
src/ChFi3d/ChFi3d_Builder_C1.cxx
src/Contap/Contap_Contour.cxx
src/D3DHost/D3DHost_FrameBuffer.hxx
src/D3DHost/D3DHost_View.cxx
src/DE/DE_ConfigurationNode.hxx
src/DE/DE_Wrapper.hxx
src/DEBRepCascade/DEBRepCascade_ConfigurationNode.hxx
src/DEXCAFCascade/DEXCAFCascade_ConfigurationNode.hxx
src/DNaming/DNaming.cxx
src/DNaming/DNaming_ModelingCommands.cxx
src/DsgPrs/DsgPrs_AnglePresentation.cxx
src/DsgPrs/DsgPrs_EllipseRadiusPresentation.cxx
src/DsgPrs/DsgPrs_MidPointPresentation.cxx
src/Express/Express_Entity.cxx
src/Extrema/Extrema_ExtElCS.cxx
src/FairCurve/FairCurve_MinimalVariation.cxx
src/Font/Font_FTFont.hxx
src/Font/Font_FontMgr.cxx
src/Font/Font_TextFormatter.cxx
src/Font/Font_TextFormatter.hxx
src/GccAna/GccAna_Circ2d3Tan_4.cxx
src/GccAna/GccAna_Circ2d3Tan_7.cxx
src/Geom2dConvert/Geom2dConvert.cxx
src/GeomAdaptor/GeomAdaptor_Surface.hxx
src/GeomConvert/GeomConvert.cxx
src/GeomInt/GeomInt_LineTool.cxx
src/GeomLib/GeomLib.cxx
src/GeomPlate/GeomPlate_BuildAveragePlane.cxx
src/GeomPlate/GeomPlate_BuildPlateSurface.cxx
src/GeomToIGES/GeomToIGES_GeomCurve.cxx
src/GeometryTest/GeometryTest_CurveCommands.cxx
src/Graphic3d/Graphic3d_AttribBuffer.hxx
src/Graphic3d/Graphic3d_Buffer.hxx
src/Graphic3d/Graphic3d_BvhCStructureSet.hxx
src/Graphic3d/Graphic3d_CLight.hxx
src/Graphic3d/Graphic3d_CStructure.hxx
src/Graphic3d/Graphic3d_CView.cxx
src/Graphic3d/Graphic3d_CView.hxx
src/Graphic3d/Graphic3d_Camera.hxx
src/Graphic3d/Graphic3d_CameraTile.hxx
src/Graphic3d/Graphic3d_ClipPlane.hxx
src/Graphic3d/Graphic3d_CubeMap.hxx
src/Graphic3d/Graphic3d_CullingTool.hxx
src/Graphic3d/Graphic3d_FrameStats.cxx
src/Graphic3d/Graphic3d_FrameStats.hxx
src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx
src/Graphic3d/Graphic3d_Layer.cxx
src/Graphic3d/Graphic3d_LightSet.hxx
src/Graphic3d/Graphic3d_MarkerImage.hxx
src/Graphic3d/Graphic3d_MaterialAspect.cxx
src/Graphic3d/Graphic3d_MediaTextureSet.hxx
src/Graphic3d/Graphic3d_RenderingParams.hxx
src/Graphic3d/Graphic3d_ShaderManager.cxx
src/Graphic3d/Graphic3d_ShaderManager.hxx
src/Graphic3d/Graphic3d_ShaderProgram.hxx
src/Graphic3d/Graphic3d_TextureParams.hxx
src/Graphic3d/Graphic3d_TextureRoot.hxx
src/Graphic3d/Graphic3d_TransformPers.hxx
src/Graphic3d/Graphic3d_ZLayerSettings.hxx
src/HLRBRep/HLRBRep_Data.cxx
src/HLRBRep/HLRBRep_PolyAlgo.cxx
src/HLRBRep/HLRBRep_ThePolygonOfInterCSurf.hxx
src/Hermit/Hermit.cxx
src/IFSelect/IFSelect_WorkSession.cxx
src/IGESAppli/IGESAppli_ToolElementResults.cxx
src/IGESBasic/IGESBasic_ToolAssocGroupType.cxx
src/IGESBasic/IGESBasic_ToolExternalRefLibName.cxx
src/IGESBasic/IGESBasic_ToolExternalReferenceFile.cxx
src/IGESBasic/IGESBasic_ToolName.cxx
src/IGESBasic/IGESBasic_ToolOrderedGroup.cxx
src/IGESBasic/IGESBasic_ToolOrderedGroupWithoutBackP.cxx
src/IGESBasic/IGESBasic_ToolSingleParent.cxx
src/IGESCAFControl/IGESCAFControl_ConfigurationNode.hxx
src/IGESControl/IGESControl_IGESBoundary.cxx
src/IGESControl/IGESControl_Reader.cxx
src/IGESData/IGESData.cxx
src/IGESData/IGESData_GlobalSection.cxx
src/IGESDefs/IGESDefs_ToolAttributeDef.cxx
src/IGESDefs/IGESDefs_ToolGenericData.cxx
src/IGESDefs/IGESDefs_ToolMacroDef.cxx
src/IGESDefs/IGESDefs_ToolTabularData.cxx
src/IGESDimen/IGESDimen_ToolAngularDimension.cxx
src/IGESDimen/IGESDimen_ToolBasicDimension.cxx
src/IGESDimen/IGESDimen_ToolCenterLine.cxx
src/IGESDimen/IGESDimen_ToolCurveDimension.cxx
src/IGESDimen/IGESDimen_ToolDiameterDimension.cxx
src/IGESDimen/IGESDimen_ToolDimensionDisplayData.cxx
src/IGESDimen/IGESDimen_ToolDimensionTolerance.cxx
src/IGESDimen/IGESDimen_ToolDimensionUnits.cxx
src/IGESDimen/IGESDimen_ToolDimensionedGeometry.cxx
src/IGESDimen/IGESDimen_ToolFlagNote.cxx
src/IGESDimen/IGESDimen_ToolGeneralNote.cxx
src/IGESDimen/IGESDimen_ToolGeneralSymbol.cxx
src/IGESDimen/IGESDimen_ToolLinearDimension.cxx
src/IGESDimen/IGESDimen_ToolNewDimensionedGeometry.cxx
src/IGESDimen/IGESDimen_ToolNewGeneralNote.cxx
src/IGESDimen/IGESDimen_ToolPointDimension.cxx
src/IGESDimen/IGESDimen_ToolRadiusDimension.cxx
src/IGESDimen/IGESDimen_ToolSection.cxx
src/IGESDimen/IGESDimen_ToolSectionedArea.cxx
src/IGESDimen/IGESDimen_ToolWitnessLine.cxx
src/IGESDraw/IGESDraw_ToolConnectPoint.cxx
src/IGESDraw/IGESDraw_ToolDrawing.cxx
src/IGESDraw/IGESDraw_ToolDrawingWithRotation.cxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigure.cxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigureDef.cxx
src/IGESDraw/IGESDraw_ToolRectArraySubfigure.cxx
src/IGESDraw/IGESDraw_ToolSegmentedViewsVisible.cxx
src/IGESDraw/IGESDraw_ToolView.cxx
src/IGESDraw/IGESDraw_ToolViewsVisibleWithAttr.cxx
src/IGESGeom/IGESGeom_ToolBSplineCurve.cxx
src/IGESGeom/IGESGeom_ToolBSplineSurface.cxx
src/IGESGeom/IGESGeom_ToolBoundary.cxx
src/IGESGeom/IGESGeom_ToolCompositeCurve.cxx
src/IGESGeom/IGESGeom_ToolCurveOnSurface.cxx
src/IGESGeom/IGESGeom_ToolFlash.cxx
src/IGESGeom/IGESGeom_ToolSplineCurve.cxx
src/IGESGeom/IGESGeom_ToolSplineSurface.cxx
src/IGESGraph/IGESGraph_ToolDefinitionLevel.cxx
src/IGESGraph/IGESGraph_ToolDrawingSize.cxx
src/IGESGraph/IGESGraph_ToolDrawingUnits.cxx
src/IGESGraph/IGESGraph_ToolIntercharacterSpacing.cxx
src/IGESGraph/IGESGraph_ToolLineFontDefPattern.cxx
src/IGESGraph/IGESGraph_ToolLineFontDefTemplate.cxx
src/IGESGraph/IGESGraph_ToolLineFontPredefined.cxx
src/IGESGraph/IGESGraph_ToolNominalSize.cxx
src/IGESGraph/IGESGraph_ToolTextDisplayTemplate.cxx
src/IGESGraph/IGESGraph_ToolTextFontDef.cxx
src/IGESSelect/IGESSelect_EditHeader.cxx
src/IGESSolid/IGESSolid_ToolBlock.cxx
src/IGESSolid/IGESSolid_ToolBooleanTree.cxx
src/IGESSolid/IGESSolid_ToolConeFrustum.cxx
src/IGESSolid/IGESSolid_ToolRightAngularWedge.cxx
src/IGESSolid/IGESSolid_ToolSelectedComponent.cxx
src/IGESSolid/IGESSolid_ToolSolidInstance.cxx
src/IGESSolid/IGESSolid_ToolSolidOfLinearExtrusion.cxx
src/IGESSolid/IGESSolid_ToolSolidOfRevolution.cxx
src/IGESSolid/IGESSolid_ToolToroidalSurface.cxx
src/IGESToBRep/IGESToBRep_BRepEntity.cxx
src/IGESToBRep/IGESToBRep_BasicCurve.cxx
src/IGESToBRep/IGESToBRep_IGESBoundary.cxx
src/IGESToBRep/IGESToBRep_TopoCurve.cxx
src/IGESToBRep/IGESToBRep_TopoSurface.cxx
src/IVtkTools/IVtkTools_DisplayModeFilter.hxx
src/IVtkTools/IVtkTools_SubPolyDataFilter.cxx
src/Image/Image_AlienPixMap.cxx
src/Image/Image_CompressedPixMap.hxx
src/Image/Image_Diff.hxx
src/Image/Image_PixMap.cxx
src/Image/Image_PixMap.hxx
src/Image/Image_PixMapData.hxx
src/Image/Image_SupportedFormats.hxx
src/Image/Image_VideoRecorder.cxx
src/Image/Image_VideoRecorder.hxx
src/IntAna/IntAna_Curve.cxx
src/IntAna2d/IntAna2d_AnaIntersection_3.cxx
src/IntCurveSurface/IntCurveSurface_ThePolygonOfHInter.hxx
src/IntPatch/IntPatch_GLine.cxx
src/IntPatch/IntPatch_ImpImpIntersection.cxx
src/IntPatch/IntPatch_LineConstructor.cxx
src/IntPatch/IntPatch_RstInt.cxx
src/IntPolyh/IntPolyh_Intersection.hxx
src/IntTools/IntTools_Context.hxx
src/IntWalk/IntWalk_PWalking.cxx
src/Interface/Interface_Check.cxx
src/Interface/Interface_FileReaderTool.cxx
src/Interface/Interface_Graph.cxx
src/LocOpe/LocOpe_WiresOnShape.cxx
src/Media/Media_PlayerContext.hxx
src/MeshVS/MeshVS_CommonSensitiveEntity.hxx
src/MeshVS/MeshVS_MeshPrsBuilder.cxx
src/MeshVS/MeshVS_NodalColorPrsBuilder.cxx
src/Message/Message_AlertExtended.hxx
src/Message/Message_AttributeMeter.hxx
src/Message/Message_CompositeAlerts.hxx
src/Message/Message_Messenger.hxx
src/Message/Message_ProgressScope.hxx
src/Message/Message_Report.hxx
src/NCollection/NCollection_IncAllocator.cxx
src/NCollection/NCollection_UtfString.hxx
src/OSD/OSD_MAllocHook.hxx
src/OSD/OSD_MemInfo.cxx
src/OSD/OSD_Parallel_Threads.cxx
src/OSD/OSD_Path.cxx
src/OSD/OSD_ThreadPool.hxx
src/OSD/OSD_signal.cxx
src/OpenGl/OpenGl_AspectsSprite.cxx
src/OpenGl/OpenGl_BackgroundArray.hxx
src/OpenGl/OpenGl_Buffer.hxx
src/OpenGl/OpenGl_Caps.hxx
src/OpenGl/OpenGl_Clipping.hxx
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_FrameBuffer.cxx
src/OpenGl/OpenGl_FrameBuffer.hxx
src/OpenGl/OpenGl_FrameStatsPrs.cxx
src/OpenGl/OpenGl_FrameStatsPrs.hxx
src/OpenGl/OpenGl_GlFunctions.cxx
src/OpenGl/OpenGl_GraphicDriver.hxx
src/OpenGl/OpenGl_HaltonSampler.hxx
src/OpenGl/OpenGl_LayerList.cxx
src/OpenGl/OpenGl_LayerList.hxx
src/OpenGl/OpenGl_Material.hxx
src/OpenGl/OpenGl_MatrixState.hxx
src/OpenGl/OpenGl_PBREnvironment.cxx
src/OpenGl/OpenGl_PBREnvironment.hxx
src/OpenGl/OpenGl_PointSprite.hxx
src/OpenGl/OpenGl_PrimitiveArray.cxx
src/OpenGl/OpenGl_Sampler.hxx
src/OpenGl/OpenGl_SceneGeometry.cxx
src/OpenGl/OpenGl_SceneGeometry.hxx
src/OpenGl/OpenGl_SetOfShaderPrograms.hxx
src/OpenGl/OpenGl_ShaderManager.hxx
src/OpenGl/OpenGl_ShaderProgram.cxx
src/OpenGl/OpenGl_ShaderProgram.hxx
src/OpenGl/OpenGl_ShaderStates.hxx
src/OpenGl/OpenGl_ShadowMap.cxx
src/OpenGl/OpenGl_Structure.cxx
src/OpenGl/OpenGl_Structure.hxx
src/OpenGl/OpenGl_Text.cxx
src/OpenGl/OpenGl_Text.hxx
src/OpenGl/OpenGl_Texture.cxx
src/OpenGl/OpenGl_Texture.hxx
src/OpenGl/OpenGl_TileSampler.hxx
src/OpenGl/OpenGl_View.cxx
src/OpenGl/OpenGl_View.hxx
src/OpenGl/OpenGl_View_Raytrace.cxx
src/OpenGl/OpenGl_Window.hxx
src/OpenGl/OpenGl_Workspace.cxx
src/OpenGl/OpenGl_Workspace.hxx
src/ProjLib/ProjLib_CompProjectedCurve.cxx
src/Prs3d/Prs3d_Drawer.hxx
src/Prs3d/Prs3d_ToolTorus.hxx
src/PrsDim/PrsDim_Dimension.hxx
src/PrsMgr/PrsMgr_ListOfPresentableObjects.hxx
src/PrsMgr/PrsMgr_PresentableObject.hxx
src/PrsMgr/PrsMgr_Presentation.cxx
src/QABugs/QABugs_11.cxx
src/QABugs/QABugs_19.cxx
src/QABugs/QABugs_BVH.cxx
src/QANCollection/QANCollection_Handle.cxx
src/QANCollection/QANCollection_Test.cxx
src/RWGltf/RWGltf_CafReader.cxx
src/RWGltf/RWGltf_CafReader.hxx
src/RWGltf/RWGltf_CafWriter.cxx
src/RWGltf/RWGltf_CafWriter.hxx
src/RWGltf/RWGltf_ConfigurationNode.hxx
src/RWGltf/RWGltf_DracoParameters.hxx
src/RWGltf/RWGltf_GltfFace.hxx
src/RWGltf/RWGltf_GltfJsonParser.cxx
src/RWGltf/RWGltf_GltfJsonParser.hxx
src/RWGltf/RWGltf_GltfMaterialMap.cxx
src/RWGltf/RWGltf_MaterialMetallicRoughness.hxx
src/RWGltf/RWGltf_WriterTrsfFormat.hxx
src/RWMesh/RWMesh_CafReader.hxx
src/RWMesh/RWMesh_CoordinateSystemConverter.hxx
src/RWMesh/RWMesh_FaceIterator.hxx
src/RWMesh/RWMesh_MaterialMap.hxx
src/RWMesh/RWMesh_TriangulationReader.hxx
src/RWObj/RWObj_CafReader.hxx
src/RWObj/RWObj_CafWriter.cxx
src/RWObj/RWObj_CafWriter.hxx
src/RWObj/RWObj_ConfigurationNode.hxx
src/RWObj/RWObj_Material.hxx
src/RWObj/RWObj_Reader.hxx
src/RWObj/RWObj_TriangulationReader.hxx
src/RWPly/RWPly_CafWriter.hxx
src/RWPly/RWPly_ConfigurationNode.hxx
src/RWStl/RWStl.cxx
src/STEPConstruct/STEPConstruct_UnitContext.cxx
src/STEPControl/STEPControl_ActorRead.cxx
src/STEPControl/STEPControl_ActorWrite.cxx
src/STEPControl/STEPControl_Controller.cxx
src/SWDRAW/SWDRAW_ShapeProcessAPI.cxx
src/SWDRAW/SWDRAW_ShapeUpgrade.cxx
src/Select3D/Select3D_SensitiveFace.hxx
src/Select3D/Select3D_SensitiveGroup.hxx
src/Select3D/Select3D_SensitivePoly.hxx
src/Select3D/Select3D_SensitivePrimitiveArray.hxx
src/Select3D/Select3D_SensitiveSet.cxx
src/Select3D/Select3D_SensitiveTriangulation.hxx
src/Select3D/Select3D_SensitiveWire.hxx
src/SelectBasics/SelectBasics_PickResult.hxx
src/SelectMgr/SelectMgr_AndOrFilter.hxx
src/SelectMgr/SelectMgr_BVHThreadPool.hxx
src/SelectMgr/SelectMgr_BaseIntersector.hxx
src/SelectMgr/SelectMgr_EntityOwner.hxx
src/SelectMgr/SelectMgr_Frustum.hxx
src/SelectMgr/SelectMgr_RectangularFrustum.cxx
src/SelectMgr/SelectMgr_RectangularFrustum.hxx
src/SelectMgr/SelectMgr_SelectableObject.hxx
src/SelectMgr/SelectMgr_SelectableObjectSet.cxx
src/SelectMgr/SelectMgr_SelectableObjectSet.hxx
src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx
src/SelectMgr/SelectMgr_SelectionImageFiller.cxx
src/SelectMgr/SelectMgr_SensitiveEntitySet.hxx
src/SelectMgr/SelectMgr_SortCriterion.hxx
src/SelectMgr/SelectMgr_TriangularFrustum.hxx
src/SelectMgr/SelectMgr_TriangularFrustumSet.hxx
src/Shaders/Shaders_DeclarationsImpl_glsl.pxx
src/Shaders/Shaders_Declarations_glsl.pxx
src/Shaders/Shaders_PBREnvBaking_fs.pxx
src/Shaders/Shaders_SkydomBackground_fs.pxx
src/ShapeAnalysis/ShapeAnalysis_Curve.cxx
src/ShapeAnalysis/ShapeAnalysis_Edge.cxx
src/ShapeAnalysis/ShapeAnalysis_Wire.cxx
src/ShapeBuild/ShapeBuild_Edge.cxx
src/ShapeConstruct/ShapeConstruct.cxx
src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.cxx
src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx
src/ShapeExtend/ShapeExtend_CompositeSurface.cxx
src/ShapeFix/ShapeFix_ComposeShell.cxx
src/ShapeFix/ShapeFix_EdgeConnect.cxx
src/ShapeFix/ShapeFix_Face.cxx
src/ShapeFix/ShapeFix_Shell.cxx
src/ShapeFix/ShapeFix_Solid.cxx
src/ShapeFix/ShapeFix_Wire.cxx
src/ShapeFix/ShapeFix_Wireframe.cxx
src/ShapeUpgrade/ShapeUpgrade.cxx
src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx
src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.cxx
src/ShapeUpgrade/ShapeUpgrade_ConvertSurfaceToBezierBasis.cxx
src/ShapeUpgrade/ShapeUpgrade_ShapeConvertToBezier.cxx
src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.cxx
src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx
src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx
src/Standard/Standard_MMgrOpt.cxx
src/Standard/Standard_MMgrOpt.hxx
src/Standard/Standard_ReadBuffer.hxx
src/Standard/Standard_ReadLineBuffer.hxx
src/Standard/Standard_TypeDef.hxx
src/StdPrs/StdPrs_BRepFont.hxx
src/StepData/StepData_ConfParameters.hxx
src/StepData/StepData_StepReaderData.cxx
src/StepData/StepData_StepWriter.cxx
src/StepFile/StepFile_Read.cxx
src/StepFile/StepFile_ReadData.hxx
src/StepKinematics/StepKinematics_CylindricalPairWithRange.hxx
src/StepKinematics/StepKinematics_LowOrderKinematicPairWithRange.hxx
src/StepKinematics/StepKinematics_PairRepresentationRelationship.hxx
src/StepKinematics/StepKinematics_PlanarPairWithRange.hxx
src/StepKinematics/StepKinematics_PrismaticPairWithRange.hxx
src/StepKinematics/StepKinematics_RackAndPinionPairWithRange.hxx
src/StepToGeom/StepToGeom.cxx
src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx
src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx
src/TColStd/TColStd_PackedMapOfInteger.hxx
src/TCollection/TCollection_ExtendedString.hxx
src/TDF/TDF_CopyLabel.cxx
src/TDF/TDF_Reference.cxx
src/TDataXtd/TDataXtd_Presentation.cxx
src/TDocStd/TDocStd_Document.cxx
src/TNaming/TNaming_Localizer.cxx
src/TNaming/TNaming_Name.cxx
src/TNaming/TNaming_Naming.cxx
src/TNaming/TNaming_NamingTool.cxx
src/TNaming/TNaming_Selector.cxx
src/TObj/TObj_Object.cxx
src/TObj/TObj_OcafObjectIterator.hxx
src/TopOpeBRep/TopOpeBRep_EdgesIntersector.cxx
src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx
src/TopOpeBRep/TopOpeBRep_kpart.cxx
src/TopOpeBRep/TopOpeBRep_vprdeg.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON2d.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Merge.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Section.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeClassifier.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_ffsfs.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_makefaces.cxx
src/TopOpeBRepDS/TopOpeBRepDS_EIR.cxx
src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.cxx
src/TopOpeBRepDS/TopOpeBRepDS_EXPORT.hxx
src/TopOpeBRepDS/TopOpeBRepDS_redu.cxx
src/TopOpeBRepTool/TopOpeBRepTool_CORRISO.cxx
src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx
src/TopOpeBRepTool/TopOpeBRepTool_ShapeClassifier.cxx
src/TopOpeBRepTool/TopOpeBRepTool_mkTondgE.cxx
src/TopoDS/TopoDS_TShape.hxx
src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx
src/TransferBRep/TransferBRep_BinderOfShape.cxx
src/V3d/V3d_ImageDumpOptions.hxx
src/V3d/V3d_View.cxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_EventManager.hxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/Vrml/Vrml_ConfigurationNode.hxx
src/XCAFDoc/XCAFDoc_AssemblyGraph.hxx
src/XCAFDoc/XCAFDoc_VisMaterial.hxx
src/XCAFDoc/XCAFDoc_VisMaterialCommon.hxx
src/XCAFDoc/XCAFDoc_VisMaterialPBR.hxx
src/XCAFPrs/XCAFPrs_AISObject.cxx
src/XCAFPrs/XCAFPrs_AISObject.hxx
src/XCAFPrs/XCAFPrs_DocumentExplorer.hxx
src/XCAFView/XCAFView_Object.hxx
src/XSControl/XSControl_SelectForTransfer.cxx
src/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx
src/XmlMDF/XmlMDF_DerivedDriver.hxx
src/XmlMDataXtd/XmlMDataXtd_TriangulationDriver.cxx
src/XmlMFunction/XmlMFunction_GraphNodeDriver.cxx
src/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx
src/XmlMXCAFDoc/XmlMXCAFDoc_NoteBinDataDriver.cxx
src/Xw/Xw_Window.hxx
src/gp/gp_Quaternion.cxx
src/math/math_GlobOptMin.cxx

index b11a986d279c6d42963afe949f3c5c88f75e041c..a99644f404fec21fd71d1b4eee43c81e50c58a1b 100644 (file)
@@ -24,7 +24,9 @@ struct AIS_AnimationProgress
 {
   Standard_Real Pts;             //!< global presentation timestamp
   Standard_Real LocalPts;        //!< presentation within current animation
+// clang-format off
   Standard_Real LocalNormalized; //!< normalized position within current animation within 0..1 range
+// clang-format on
 
   AIS_AnimationProgress() : Pts (-1.0), LocalPts (-1.0), LocalNormalized (-1.0) {}
 };
index 704245425d7299f08d0d2dba16c171f10c463764..f666162dea3b282fe1170fb40f7f8229334d2b89 100644 (file)
@@ -650,7 +650,9 @@ void AIS_ColorScale::drawColorBar (const Handle(Prs3d_Presentation)& thePrs,
     // (thus the halves of first and last intervals have solid color)
     aTriangles = new Graphic3d_ArrayOfTriangles ((aColors.Length() + 1) * 4,     // quads
                                                  (aColors.Length() + 1) * 2 * 3, // quads as triangles
+// clang-format off
                                                  false, true);                   // per-vertex colors
+// clang-format on
     Quantity_Color aColor1 (aColors.Value (1)), aColor2;
     Standard_Integer       aSizeY        = Standard_Integer(aStepY / 2);
     const Standard_Integer anYBottom     = theBarBottom + aSizeY;
index ad3ea8a5d6e5f4b9a0d1f7a91126e8999d6c00ee..54a6a493c89267dab040adf2e111c419006ca994 100644 (file)
@@ -465,6 +465,7 @@ private:
 
   Standard_Real                    myMin;             //!< values range - minimal value
   Standard_Real                    myMax;             //!< values range - maximal value
+// clang-format off
   Graphic3d_Vec3d                  myColorHlsMin;     //!< HLS color corresponding to minimum value
   Graphic3d_Vec3d                  myColorHlsMax;     //!< HLS color corresponding to maximum value
   TCollection_ExtendedString       myTitle;           //!< optional title string     
@@ -479,6 +480,7 @@ private:
   Aspect_SequenceOfColor           myColors;          //!< sequence of custom colors
   TColStd_SequenceOfExtendedString myLabels;          //!< sequence of custom text labels
   Aspect_TypeOfColorScalePosition  myLabelPos;        //!< label position relative to the color scale
+// clang-format on
   Aspect_TypeOfColorScalePosition  myTitlePos;        //!< title position
   Standard_Integer                 myXPos;            //!< left   position
   Standard_Integer                 myYPos;            //!< bottom position
index ec68acf92574a817da421505604cb67ded27ee7c..36a70493e300ab6e45f22e634adb9012f05ad7e1 100644 (file)
@@ -583,7 +583,9 @@ void AIS_ColoredShape::addShapesWithCustomProps (const Handle(Prs3d_Presentation
          aMapIter.More(); aMapIter.Next())
     {
       const Handle(AIS_ColoredDrawer)& aCustomDrawer = aMapIter.Key();
+// clang-format off
       const TopoDS_Compound& aShapeDraw = aMapIter.Value(); // compound of subshapes with <aShType> type
+// clang-format on
       Handle(Prs3d_Drawer) aDrawer;
       if (!aCustomDrawer.IsNull())
       {
index 29aa7729e74fed132f818119e1f92a9c2a2838fd..85bc8a19fca3ebec9e474c47d829bd494288dc8c 100644 (file)
@@ -146,7 +146,9 @@ protected:
 
 protected:
 
+// clang-format off
   AIS_InteractiveContext*    myCTXPtr; //!< pointer to Interactive Context, where object is currently displayed; @sa SetContext()
+// clang-format on
   Handle(Standard_Transient) myOwner;  //!< application-specific owner object
 
 };
index 8edf24d471b09d2ce8e25ceb3fef7d86b006ae81..45106bd2eb412b49c8d1c11fba00ea5243424e60 100644 (file)
@@ -252,6 +252,7 @@ protected:
 
   Handle(Graphic3d_CLight)         myLightSource;           //!< displayed light source
 
+// clang-format off
   Handle(Graphic3d_AspectMarker3d) myDisabledMarkerAspect;  //!< disabled light source marker style
   Handle(Graphic3d_AspectLine3d)   myArrowLineAspectShadow; //!< arrow shadow style
   Handle(Graphic3d_MarkerImage)    myMarkerImages[2];       //!< icon of disabled (0) and enabled (1) light
@@ -268,6 +269,7 @@ protected:
   Standard_Integer mySensSphereArcSize; //! sensitive sphere arc size in pixels
   Standard_Boolean myIsZoomable;        //!< flag to allow/disallow transform-persistence when possible
   Standard_Boolean myIsDraggable;       //!< flag to allow/disallow rotate directional light source by dragging
+// clang-format on
   Standard_Boolean myToDisplayName;     //!< flag to show/hide name
   Standard_Boolean myToDisplayRange;    //!< flag to show/hide range of positional/spot light
   Standard_Boolean myToSwitchOnClick;   //!< flag to handle mouse click to turn light on/off
index 76b82782b8b61a3638a3f04ac7870a31fdf2e82d..8aa3cb4c31f1618f646c1b2228644142938923ea 100644 (file)
@@ -1148,8 +1148,10 @@ void AIS_Manipulator::ComputeSelection (const Handle(SelectMgr_Selection)& theSe
   // overlapping of sensitive areas when size of manipulator is small.
   // Sensitivity is calculated relative to the default size of the manipulator (100.0f).
   const Standard_ShortReal aSensitivityCoef = myAxes[0].Size() / 100.0f;
+// clang-format off
   const Standard_Integer aHighSensitivity = Max (Min (RealToInt (aSensitivityCoef * 15), 15), 3); // clamp sensitivity within range [3, 15]
   const Standard_Integer aLowSensitivity  = Max (Min (RealToInt (aSensitivityCoef * 10), 10), 2); // clamp sensitivity within range [2, 10]
+// clang-format on
 
   switch (aMode)
   {
index 513aa747ba15dde795f3bc9af060a9a0e97e41d1..078424c30c59f713938809a8aa2a09bab394ecce 100644 (file)
@@ -678,6 +678,7 @@ protected:
 
   Axis myAxes[3]; //!< Tree axes of the manipulator.
   Sphere myCenter; //!< Visual part displaying the center sphere of the manipulator.
+// clang-format off
   gp_Ax2 myPosition; //!< Position of the manipulator object. it displays its location and position of its axes.
 
   Standard_Integer myCurrentIndex; //!< Index of active axis.
@@ -691,6 +692,7 @@ protected: //! @name Fields for interactive transformation. Fields only for inte
 
   NCollection_Sequence<gp_Trsf> myStartTrsfs; //!< Owning object transformation for start. It is used internally.
   Standard_Boolean myHasStartedTransformation; //!< Shows if transformation is processed (sequential calls of Transform()).
+// clang-format on
   gp_Ax2 myStartPosition; //! Start position of manipulator.
   gp_Pnt myStartPick; //! 3d point corresponding to start mouse pick.
   Standard_Real myPrevState; //! Previous value of angle during rotation.
index 98191cdd19a561eb1ebb096703df9ce7171fa2ac..516e73251f1017a26efa866926685df5122e8f31 100644 (file)
@@ -61,7 +61,9 @@ AIS_Trihedron::AIS_Trihedron (const Handle(Geom_Axis2Placement)& theComponent)
 
   // selection priorities
   memset (mySelectionPriority, 0, sizeof(mySelectionPriority));
+// clang-format off
   mySelectionPriority[Prs3d_DatumParts_None] =    5; // complete trihedron: priority 5 (same as faces)
+// clang-format on
   mySelectionPriority[Prs3d_DatumParts_Origin] =  8; // origin: priority 8
   for (int aPartIter = Prs3d_DatumParts_XAxis; aPartIter <= Prs3d_DatumParts_ZAxis; ++aPartIter)
   {
index 479972103b0bc48e8d9ebfb0f837f67f5ec936a5..8f56c6fbe8e79067da1229d83a8ecff19dcd4f43 100644 (file)
@@ -1525,7 +1525,9 @@ void AIS_ViewController::handlePanning (const Handle(V3d_View)& theView)
   const gp_Dir& aDir = aCam->Direction();
   const gp_Ax3 aCameraCS (aCam->Center(), aDir.Reversed(), aDir ^ aCam->Up());
   const gp_XYZ anEyeToPnt = myPanPnt3d.XYZ() - aCam->Eye().XYZ();
+// clang-format off
   const gp_Pnt aViewDims = aCam->ViewDimensions (anEyeToPnt.Dot (aCam->Direction().XYZ())); // view dimensions at 3D point
+// clang-format on
   const Graphic3d_Vec2d aDxy (-aViewDims.X() * myGL.Panning.Delta.x() / double(aWinSize.x()),
                               -aViewDims.X() * myGL.Panning.Delta.y() / double(aWinSize.x()));
 
@@ -3501,7 +3503,9 @@ void AIS_ViewController::HandleViewEvents (const Handle(AIS_InteractiveContext)&
   }
   handleMoveTo (theCtx, theView);
   handleCameraActions (theCtx, theView, aWalk);
+// clang-format off
   theView->View()->SynchronizeXRPosedToBaseCamera(); // handleCameraActions() may modify posed camera position - copy this modifications also to the base camera
+// clang-format on
   handleXRPresentations (theCtx, theView);
 
   handleViewRedraw (theCtx, theView);
index 2f098da1f3408df63c652a6f1741a34921155b71..e28794be2e1576103b976783d2be6c8754506126 100644 (file)
@@ -703,6 +703,7 @@ protected:
   AIS_ViewInputBuffer myUI;                       //!< buffer for UI thread
   AIS_ViewInputBuffer myGL;                       //!< buffer for rendering thread
 
+// clang-format off
   Standard_Real       myLastEventsTime;           //!< last fetched events timer value for computing delta/progress
   Standard_Boolean    myToAskNextFrame;           //!< flag indicating that another frame should be drawn right after this one
   Standard_Boolean    myIsContinuousRedraw;       //!< continuous redrawing (without immediate rendering optimization)
@@ -743,6 +744,7 @@ protected:
 protected: //! @name XR input variables
 
   NCollection_Array1<Handle(AIS_XRTrackedDevice)> myXRPrsDevices; //!< array of XR tracked devices presentations
+// clang-format on
   Quantity_Color             myXRLaserTeleColor;  //!< color of teleport laser
   Quantity_Color             myXRLaserPickColor;  //!< color of picking  laser
   Aspect_XRTrackedDeviceRole myXRLastTeleportHand;//!< active hand for teleport
@@ -753,6 +755,7 @@ protected: //! @name XR input variables
   Standard_Real       myXRLastPickDepthLeft;      //!< last picking depth for left  hand
   Standard_Real       myXRLastPickDepthRight;     //!< last picking depth for right hand
   Standard_Real       myXRTurnAngle;              //!< discrete turn angle for XR trackpad
+// clang-format off
   Standard_Boolean    myToDisplayXRAuxDevices;    //!< flag to display auxiliary tracked XR devices
   Standard_Boolean    myToDisplayXRHands;         //!< flag to display XR hands
 
@@ -809,6 +812,7 @@ protected: //! @name rotation/panning transient state variables
   gp_Vec              myCamStartOpToCenter;       //!< vector from rotation gravity point to camera Center at the beginning of rotation
   gp_Vec              myCamStartOpToEye;          //!< vector from rotation gravity point to camera Eye    at the beginning of rotation
   Graphic3d_Vec3d     myRotateStartYawPitchRoll;  //!< camera yaw pitch roll at the beginning of rotation
+// clang-format on
 
 };
 
index 25894e1057c5ca128362e158d0b9f2f0bcacb949..b244c1d3117120974a569389aa11f196bfb62876 100644 (file)
@@ -196,8 +196,10 @@ void AIS_ViewCube::setDefaultAttributes()
   myDrawer->TextAspect()->SetColor (Quantity_NOC_BLACK);
   myDrawer->TextAspect()->SetFont (Font_NOF_SANS_SERIF);
   myDrawer->TextAspect()->SetHeight (16.0);
+// clang-format off
   myDrawer->TextAspect()->Aspect()->SetTextZoomable (true); // the whole object is drawn within transformation-persistence
   // this should be forced back-face culling regardless Closed flag
+// clang-format on
   myDrawer->TextAspect()->Aspect()->SetFaceCulling (Graphic3d_TypeOfBackfacingModel_BackCulled);
 
   Graphic3d_MaterialAspect aMat (Graphic3d_NameOfMaterial_UserDefined);
@@ -661,7 +663,9 @@ void AIS_ViewCube::Compute (const Handle(PrsMgr_PresentationManager)& ,
         }
 
         const Standard_Integer aFirstNode = aSegs->VertexNumber();
+// clang-format off
         for (Standard_Integer aVertIter = (aNbTris - aTriFrom) > 2 ? aTriNodesFrom + 2 : aTriNodesFrom + 1; // skip triangle fan center
+// clang-format on
              aVertIter <= aTris->VertexNumber(); ++aVertIter)
         {
           aSegs->AddVertex (aTris->Vertice (aVertIter));
index 9f48214801eabb7526a32344b22c6200e4748b9e..2874680cc4b7dd05d0c7b5ae11eccabba61fcc0c 100644 (file)
@@ -652,6 +652,7 @@ protected:
   Standard_Real                 myBoxEdgeGap;        //!< gap between box side and box edge
   Standard_Real                 myBoxFacetExtension; //!< box facet extension
   Standard_Real                 myAxesPadding;       //!< Padding between box and axes
+// clang-format off
   Standard_Real                 myAxesRadius;        //!< radius of axes of the trihedron; 1.0 by default
   Standard_Real                 myAxesConeRadius;    //!< radius of cone of axes of the trihedron; 3.0 by default
   Standard_Real                 myAxesSphereRadius;  //!< radius of sphere (central point) of the trihedron; 4.0 by default
@@ -661,6 +662,7 @@ protected:
   Standard_Boolean              myToDisplayEdges;    //!< box edges visibility
   Standard_Boolean              myToDisplayVertices; //!< box corners (vertices) visibility
   Standard_Boolean              myIsYup;             //!< flag indicating that application expects Y-up viewer orientation instead of Z-up
+// clang-format on
 
 protected: //! @name Animation options
 
@@ -670,7 +672,9 @@ protected: //! @name Animation options
   Standard_Boolean              myToAutoStartAnim;   //!< start animation automatically on click
   Standard_Boolean              myIsFixedAnimation;  //!< fixed-loop animation
   Standard_Boolean              myToFitSelected;     //!< fit selected or fit entire scene
+// clang-format off
   Standard_Boolean              myToResetCameraUp;   //!< always reset camera up direction to default
+// clang-format on
 
 };
 
index 800fad7bcd7b3c27ec8f9640e49d835fd750b40d..d88a972fe795376d7f947ed6b90a118d09f94218 100644 (file)
@@ -78,7 +78,9 @@ void  APIHeaderSection_MakeHeader::Init (const Standard_CString nameval)
   if (fn.IsNull()) fn = new HeaderSection_FileName;
   Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString(nameval);
   fn->SetName(name);
+// clang-format off
   Interface_MSG::TDate (timestamp,0,0,0,0,0,1,"C:%4.4d-%2.2d-%2.2dT%2.2d:%2.2d:%2.2d");  // actually
+// clang-format on
   Handle(TCollection_HAsciiString) tst = 
     new TCollection_HAsciiString(timestamp);
   fn->SetTimeStamp(tst);
index fb69dae6f700816d9ccb97cf24e60c61f7896a4b..5d9daf3ff72592ea7b31738639f57d8c0ecbb038 100644 (file)
@@ -1666,7 +1666,9 @@ void AppDef_Variational::Project(const Handle(FEmTool_Curve)& C,
     AveErr += Dist;
   }
 
+// clang-format off
   NumPoints = NumPoints + myFirstPoint - 1;// Setting NumPoints to interval [myFirstPoint, myLastPoint]
+// clang-format on
 
 }
 
index 0ff1fdc019be75143502de150e5ffb5e13358fb0..1c0e71248eacfc3638fd1a01826ca11f6868c366 100644 (file)
@@ -164,7 +164,9 @@ IMPLEMENT_STANDARD_RTTIEXT(Aspect_OpenVRSession, Aspect_XRSession)
 struct Aspect_OpenVRSession::VRContext
 {
 #ifdef HAVE_OPENVR
+// clang-format off
   vr::TrackedDevicePose_t TrackedPoses[vr::k_unMaxTrackedDeviceCount]; //!< array of tracked devices poses
+// clang-format on
   vr::IVRSystem*          System; //!< OpenVR session object
 
   //! Empty constructor.
index d2d6e9f2766d672802edddce32661565e00e5112..5c57bf18d3545bc8e070cd6cb604e090185d6f33 100644 (file)
@@ -23,7 +23,9 @@ public:
 
   NCollection_Vec2<Standard_Real> From;            //!< original touch position
   NCollection_Vec2<Standard_Real> To;              //!< current  touch position
+// clang-format off
   Standard_Boolean                IsPreciseDevice; //!< precise device input (e.g. mouse cursor, NOT emulated from touch screen)
+// clang-format on
 
   //! Return values delta.
   NCollection_Vec2<Standard_Real> Delta() const { return To - From; }
index bd6cf03a216a01dc456d25d175e370b7abcfbad0..5ff74b32ddee6cb73f11c214107bc88900fc6bb7 100644 (file)
 struct Aspect_XRAnalogActionData
 {
   uint64_t                ActiveOrigin; //!< The origin that caused this action's current state
+// clang-format off
   float                   UpdateTime;   //!< Time relative to now when this event happened. Will be negative to indicate a past time
   NCollection_Vec3<float> VecXYZ;       //!< the current state of this action
   NCollection_Vec3<float> DeltaXYZ;     //!< deltas since the previous update
   bool                    IsActive;     //!< whether or not this action is currently available to be bound in the active action set
+// clang-format on
 
   //! Return TRUE if delta is non-zero.
   bool IsChanged() { return !DeltaXYZ.IsEqual (NCollection_Vec3<float> (0.0f, 0.0f, 0.0f)); }
index a72bff539ac89f1e1716bb5267e1c971a2ead395..f60078c346491f1e4b14206368026b8cb30a20f7 100644 (file)
 struct Aspect_XRDigitalActionData
 {
   uint64_t ActiveOrigin; //!< The origin that caused this action's current state
+// clang-format off
   float    UpdateTime;   //!< Time relative to now when this event happened. Will be negative to indicate a past time
   bool     IsActive;     //!< whether or not this action is currently available to be bound in the active action set
   bool     IsPressed;    //!< Aspect_InputActionType_Digital state - The current state of this action; will be true if currently pressed
   bool     IsChanged;    //!< Aspect_InputActionType_Digital state - this is true if the state has changed since the last frame
+// clang-format on
 
   //! Empty constructor.
   Aspect_XRDigitalActionData() : ActiveOrigin (0), UpdateTime (0.0f), IsActive (false), IsPressed (false), IsChanged (false) {}
index 56827841743ccf9fd82e53b98facb395391b1576..58c31b382472df3bf6050880a823b98f990dabf8 100644 (file)
@@ -22,7 +22,9 @@ struct Aspect_XRPoseActionData
 {
   Aspect_TrackedDevicePose Pose;         //!< pose state
   uint64_t                 ActiveOrigin; //!< The origin that caused this action's current state
+// clang-format off
   bool                     IsActive;     //!< whether or not this action is currently available to be bound in the active action set
+// clang-format on
 
   //! Empty constructor.
   Aspect_XRPoseActionData() : ActiveOrigin (0), IsActive (false) {}
index 325bbbab50c002cab85d414c745e6ddec0df9ec7..0b0aa7db514de11a6c9b8ed2f6b3fe80607a76e0 100644 (file)
@@ -243,6 +243,7 @@ protected:
 protected:
 
   NCollection_Array1<Handle(Aspect_XRAction)>
+// clang-format off
                                   myRoleActions[Aspect_XRTrackedDeviceRole_NB]; //!< generic actions
   Aspect_XRActionSetMap           myActionSets;   //!< actions sets
   TrackingUniverseOrigin          myTrackOrigin;  //!< tracking origin
@@ -252,6 +253,7 @@ protected:
   Aspect_FrustumLRBT<double>      myFrustumL;     //!< left  eye projection frustum
   Aspect_FrustumLRBT<double>      myFrustumR;     //!< right eye projection frustum
   Standard_Real                   myUnitFactor;   //!< unit scale factor defined as scale factor for m (meters)
+// clang-format on
   Standard_Real                   myAspect;       //!< aspect ratio
   Standard_Real                   myFieldOfView;  //!< field of view
   Standard_Real                   myIod;          //!< intra-ocular distance in meters
index 402c0855e2c4692df4e3da97bdd59cc64bada7e2..574e974386b0f34c99a5d8cae61129f27d587240 100644 (file)
@@ -521,6 +521,7 @@ protected: //! @name Post treatment
 protected: //! @name Fields
 
   TopTools_ListOfShape myArguments;             //!< Arguments of the operation
+// clang-format off
   TopTools_MapOfShape myMapFence;               //!< Fence map providing the uniqueness of the shapes in the list of arguments
   BOPAlgo_PPaveFiller myPaveFiller;             //!< Pave Filler - algorithm for sub-shapes intersection
   BOPDS_PDS myDS;                               //!< Data Structure - holder of intersection information
@@ -533,6 +534,7 @@ protected: //! @name Fields
   Standard_Boolean myNonDestructive;            //!< Safe processing option allows avoiding modification of the input shapes
   BOPAlgo_GlueEnum myGlue;                      //!< Gluing option allows speeding up the intersection of the input shapes
   Standard_Boolean myCheckInverted;             //!< Check inverted option allows disabling the check of input solids on inverted status
+// clang-format on
 
 };
 
index ea922c8881fcf69d46edf18db6288bcdf413204f..13f1ac57614a7ebbf604cbfbf79f812708f65b64 100644 (file)
@@ -256,10 +256,12 @@ class BOPAlgo_CellsBuilder : public BOPAlgo_Builder
 
   // fields
   TopoDS_Shape myAllParts;                           //!< All split parts of the arguments
+// clang-format off
   TopTools_IndexedDataMapOfShapeListOfShape myIndex; //!< Connection map from all splits parts to the argument shapes from which they were created
   TopTools_DataMapOfIntegerListOfShape myMaterials;  //!< Map of assigned materials (material -> list of shape)
   TopTools_DataMapOfShapeInteger myShapeMaterial;    //!< Map of assigned materials (shape -> material)
   TopTools_DataMapOfShapeShape myMapModified;        //!< Local modification map to track unification of the splits
+// clang-format on
 };
 
 #endif //_BOPAlgo_CellsBuilder_HeaderFile
index 1ba2200fe8e1c8ff3e698cb9ae3ebe400c35895d..6d15fc1eaea720c4f31145dfaf754498f688c71c 100644 (file)
@@ -169,9 +169,11 @@ public: //! @name Definition of the structure to keep all periodicity parameters
     Standard_Real myPeriod[3];       //!< Array of XYZ period values. Defining the period for any
                                      //! direction the corresponding flag for that direction in
                                      //! myPeriodic should be set to true
+// clang-format off
     Standard_Boolean myIsTrimmed[3]; //!< Array of flags defining whether the input shape has to be
                                      //! trimmed to fit the required period in the required direction
     Standard_Real myPeriodFirst[3];  //!< Array of start parameters of the XYZ periods: required for trimming
+// clang-format on
   };
 
 
@@ -585,8 +587,10 @@ protected: //! @name Fields
   TopoDS_Shape myShape;                //!< Resulting periodic shape (base for repetitions)
   TopoDS_Shape myRepeatedShape;        //!< Resulting shape after making repetitions of the base
   Standard_Real myRepeatPeriod[3];     //!< XYZ repeat period
+// clang-format off
   TopTools_DataMapOfShapeListOfShape myRepeatedTwins; //!< Map of associations of the identical sub-shapes
                                                       //! after repetition of the periodic shape
+// clang-format on
 
   // Twins
   TopTools_DataMapOfShapeListOfShape myTwins; //!< Map of associations of the identical sub-shapes
index a2fb939abf5caf0cc807398c896961f02cb35473..90a0a517afab29b3c73de93c24ab4b0716048be6 100644 (file)
@@ -648,6 +648,7 @@ protected: //! Fields
   Standard_Boolean myAvoidBuildPCurve;
   BOPAlgo_GlueEnum myGlue;
 
+// clang-format off
   BOPAlgo_DataMapOfIntegerMapOfPaveBlock myFPBDone; //!< Fence map of intersected faces and pave blocks
   TColStd_MapOfInteger myIncreasedSS; //!< Sub-shapes with increased tolerance during the operation
   TColStd_MapOfInteger myVertsToAvoidExtension; //!< Vertices located close to E/E or E/F intersection points
@@ -659,6 +660,7 @@ protected: //! Fields
                        NCollection_List<EdgeRangeDistance>>
                                             myDistances; //!< Map to store minimal distances between shapes
                                                          //!  which have no real intersections
+// clang-format on
 
 };
 
index 12b972b3a18f155bcf2d34b1726f604ff4fbeb09..e0f3dfe2c2ef3f5fa2fc5c56c16a377359e0337d 100644 (file)
@@ -781,6 +781,7 @@ private: //! @name Private methods performing the operation
 private: //! @name Fields
 
   // Inputs
+// clang-format off
   Standard_Boolean myRunParallel;                     //!< Defines the mode of processing of the single feature
   TopoDS_Shape myFeature;                             //!< Feature to remove
   TopTools_IndexedDataMapOfShapeListOfShape* myEFMap; //!< EF Connection map to find adjacent faces
@@ -793,6 +794,7 @@ private: //! @name Fields
   TopTools_IndexedMapOfShape mySolids;                //!< Solids participating in the feature removal
   TopTools_IndexedDataMapOfShapeListOfShape myFaces;  //!< Reconstructed adjacent faces
   Handle(BRepTools_History) myHistory;                //!< History of the adjacent faces reconstruction
+// clang-format on
 };
 
 typedef NCollection_Vector<FillGap> VectorOfFillGap;
index de87a3a0a5a458a878cca4a778c3e94838c33ee8..06afa58ef7b8746a73a48756106cc510ed4ebf6b 100644 (file)
@@ -115,7 +115,9 @@ class BOPTools_Parallel
     //! Binds main thread context
     void SetContext (const opencascade::handle<TypeContext>& theContext)
     {
+// clang-format off
       myContextArray.ChangeLast() = theContext; // OSD_ThreadPool::Launcher::UpperThreadIndex() is reserved for a main thread
+// clang-format on
     }
 
     //! Defines functor interface with serialized thread index.
index 1fc8dc0a2a7acd4169c9b2cd29ef1d47ec3bc994..bf47b69e31419ed22d82587bb186e06f2c79ddca 100644 (file)
@@ -304,7 +304,9 @@ TopoDS_Wire  BRepAlgo::ConcatenateWire(const TopoDS_Wire& W,
       Standard_True,Standard_True, 
       toler, TolAngular)>=GeomAbs_G1)) 
     {
+// clang-format off
       closed_tolerance =toler;                                        //if ClosedG1!=0 it will be True and
+// clang-format on
       closed_flag = Standard_True ;
     }                                                        //with the toler value
     Handle(TColGeom_HArray1OfBSplineCurve)  concatcurve;     //array of the concatenated curves
index e40af63717457a44781011f4fcf8f3923fa3d010..9aa73e546cd893f0147d0ca3fc571567a2c750be 100644 (file)
@@ -167,9 +167,11 @@ protected: //! @name Fields
   // Inputs
   TopoDS_Shape myS1;                        //!< The first shape
   TopoDS_Shape myS2;                        //!< The second shape
+// clang-format off
   Standard_Boolean myTestSE;                //!< Flag defining whether to look for small edges in the given shapes or not
   Standard_Boolean myTestSI;                //!< Flag defining whether to check the input edges on self-interference or not
   BOPAlgo_Operation myOperation;            //!< Type of Boolean operation for which the validity of input shapes should be checked
+// clang-format on
 
   // Results
   BOPAlgo_ListOfCheckResult myFaultyShapes; //!< Found faulty shapes
index 0f4e35eeac8b1d53aec9b87384c144be9cc52003..3216c2a4d21d163cfad9ca918cf5bcf5148295a0 100644 (file)
@@ -148,7 +148,9 @@ void BRepBuilderAPI_FindPlane::Init(const TopoDS_Shape&    S,
        Standard_Real dist = p0.SquareDistance(points(i));
        if (dist > disMax) {
          disMax = dist;
+// clang-format off
          p1 = points(i); // it will be faster to store the point, otherwise it is necessary to find a value in a sequence
+// clang-format on
        }
       }
 
index 275fb1eaa9f8d7524109a0a5535d370b93bbdd81..75fcc9cef4149193c00399882a0deaf32db40d32 100644 (file)
@@ -715,7 +715,9 @@ TopoDS_Edge BRepBuilderAPI_Sewing::SameParameterEdge(const TopoDS_Edge& edgeFirs
     }
     // Add the vertices in the good sense
     TopoDS_Shape anEdge = edge.Oriented(TopAbs_FORWARD);
+// clang-format off
     TopoDS_Shape aLocalEdge = V1New.Oriented(TopAbs_FORWARD); //(listNode.First()).Oriented(TopAbs_FORWARD);
+// clang-format on
     aBuilder.Add(anEdge,aLocalEdge);
     aLocalEdge = V2New.Oriented(TopAbs_REVERSED); //(listNode.Last()).Oriented(TopAbs_REVERSED);
     aBuilder.Add(anEdge,aLocalEdge);
@@ -3857,7 +3859,9 @@ static Standard_Boolean IsDegeneratedWire(const TopoDS_Shape& wire)
     }
   }
   if(isSmall == nume) return Standard_True;
+// clang-format off
   Standard_Real tol = BRep_Tool::Tolerance(V1)+BRep_Tool::Tolerance(V2);//Max(BRep_Tool::Tolerance(V1),BRep_Tool::Tolerance(V2));
+// clang-format on
   if (wireLength > tol) return Standard_False;
   return Standard_True;
 }
@@ -4209,7 +4213,9 @@ void BRepBuilderAPI_Sewing::CreateOutputInformations()
   // Construct edgeSections
   Standard_Integer i;
   //TopTools_DataMapOfShapeListOfShape edgeSections;
+// clang-format off
   TopTools_IndexedDataMapOfShapeListOfShape edgeSections; //use index map for regulating free edges
+// clang-format on
   for (i = 1; i <= myBoundFaces.Extent(); i++) {
     const TopoDS_Shape& bound = myBoundFaces.FindKey(i);
     TopTools_ListOfShape lsect;
@@ -4293,7 +4299,9 @@ void BRepBuilderAPI_Sewing::ProjectPointsOnCurve(const TColgp_Array1OfPnt& arrPn
   locProj.Initialize(GAC, first, last);
   gp_Pnt pfirst = GAC.Value(first), plast = GAC.Value(last);
   Standard_Integer find = 1;//(isConsiderEnds ? 1 : 2);
+// clang-format off
   Standard_Integer lind = arrPnt.Length();//(isConsiderEnds ? arrPnt.Length() : arrPnt.Length() -1);
+// clang-format on
   
   for (Standard_Integer i1 = find; i1 <= lind ; i1++) {
     gp_Pnt pt = arrPnt(i1);
index ae44086e0a4edd5e320fdee190d8ed484a225f4f..4dcdd6cc33a012ee499595bcc977112341d2c4a4 100644 (file)
@@ -644,7 +644,9 @@ static Standard_Integer GetTransi(const TopoDS_Face& f1,
   }
 
   gp_Vec N = nf1^nf2;
+// clang-format off
   gp_Dir ProjL = N.XYZ() ^ LDir.XYZ() ^ N.XYZ(); //proj LDir on the plane defined by nf1/nf2 directions
+// clang-format on
 
   Standard_Real fAD = nf1.Dot(ProjL); 
   Standard_Real sAD = nf2.Dot(ProjL);  
index 56849fe2617361d878a2a764b1e702fef0dd9669..07af2a075e195c6326e9d5ea313f3e90f42e8f57 100644 (file)
@@ -130,7 +130,9 @@ Standard_Boolean BRepClass3d_SolidExplorer::FindAPointInTheFace
 
     T.Normalize();
     P.SetCoord (P.X() + TolInit * T.X(), P.Y() + TolInit * T.Y());
+// clang-format off
     FClassifier.Reset (gp_Lin2d (P, T), ParamInit, RealEpsilon()); //-- Length and Tolerance #######
+// clang-format on
 
     TopExp_Explorer otherfaceexplorer;
     Standard_Integer aNbEdges = 0;
index 54f8cbff846738ca5207839ac067bffd4db5600c..d54967261fad3681fc6e2d7e557b1829f7c34135 100644 (file)
@@ -286,10 +286,12 @@ Standard_Boolean BRepExtrema_ProximityDistTool::IsNodeOnBorder (const Standard_I
     aContTrg = aPolyConnect.Value();
 
     Standard_Integer aContTrgNodes[3];
+// clang-format off
     theTr->Triangle (aContTrg).Get (aContTrgNodes[0], aContTrgNodes[1], aContTrgNodes[2]); //indices of nodes of the triangle
 
     Standard_Integer aAdjTrg[3];
     aPolyConnect.Triangles (aContTrg, aAdjTrg[0], aAdjTrg[1], aAdjTrg[2]); //indices of adjacent triangles
+// clang-format on
   
     for (Standard_Integer j = 0; j < 3; j++)
     {
@@ -320,7 +322,9 @@ Standard_Boolean BRepExtrema_ProximityDistTool::IsEdgeOnBorder (const Standard_I
   Poly_Connect aPolyConnect (theTr);
 
   Standard_Integer aAdjTrg[3];
+// clang-format off
   aPolyConnect.Triangles (theTrgIdx, aAdjTrg[0], aAdjTrg[1], aAdjTrg[2]); //indices of adjacent triangles
+// clang-format on
 
   for (Standard_Integer j = 0; j < 3; j++)
   {
index 78d0de23ab624e9fa66440efa75a94ef999b07bc..6b107f8e87dc243d4ece28d671210e0adb969541 100644 (file)
@@ -82,8 +82,10 @@ public:
 
     Standard_Integer myTrgIdx; //!< Index of triangle on which the projection is located
     BVH_PrjState myPrjState; //!< Position of a projection on the triangle (vertex, edge, inner)
+// clang-format off
     Standard_Integer myNumberOfFirstNode; //!< The 1st vtx of the triangle edge on which the projection is located
     Standard_Integer myNumberOfLastNode; //!< The 2nd vtx of the triangle edge on which the projection is located
+// clang-format on
   };
 
 public:
@@ -181,7 +183,9 @@ private:
 
 protected:
 
+// clang-format off
   Standard_Real myMinDistance; //!< Minimal distance from point to BVH, could be not equal to myDistance
+// clang-format on
   BVH_Vec3d myMinDistPoint; //!< Point on BVH providing the minimal distance
 
   BVH_Vec3d myExtremaPoint; //!< Point on BVH providing the extrema
@@ -211,7 +215,9 @@ private:
   //! Is vertex corresponding to proximity point of 1st shape from additional set
   Standard_Integer myIsProxVtx1FromAddSet;
   BVH_Array3d myAddVertices1; //!< Additional vertices on the 1st shape
+// clang-format off
   NCollection_Vector<ProxPnt_Status> myAddStatus1; //!< Status of additional vertices on the 1st shape
+// clang-format on
 
   //! Vertex index from 1st BVH corresponding to proximity point of 1st shape
   Standard_Integer myProxVtxIdx1;
index 61686624349a6f6377256fb68a7284eba690fdc3..330c6e270c008dd5cd498eaeaf0e5f9d59c6b064 100644 (file)
@@ -204,8 +204,10 @@ private:
   BVH_Array3d myAddVertices1; //!< Additional vertices on the 1st shape if its mesh is coarser.
   BVH_Array3d myAddVertices2; //!< Additional vertices on the 2nd shape if its mesh is coarser.
 
+// clang-format off
   NCollection_Vector<ProxPnt_Status> myAddStatus1; //!< Status of additional vertices on the 1st shape.
   NCollection_Vector<ProxPnt_Status> myAddStatus2; //!< Status of additional vertices on the 2nd shape.
+// clang-format on
 
   Standard_Boolean myIsInitS1; //!< Is the 1st shape initialized?
   Standard_Boolean myIsInitS2; //!< Is the 2nd shape initialized?
index 6266e1ba321a62740968eb0e816b3f8b653f31e2..8cd57eae07bf8dc3792ae8734b5bd7a82338bbd0 100644 (file)
@@ -681,9 +681,11 @@ void BRepFill_Filling::Build()
    }
   else
     {
+// clang-format off
       GeomPlate_MakeApprox Approx( GPlate, myTol3d, myMaxSegments, myMaxDeg, dmax, 0 ); //?????????????
       //GeomConvert_ApproxSurface Approx( GPlate, myTol3d, GeomAbs_C1, GeomAbs_C1, myMaxDeg, myMaxDeg, myMaxSegments, 1 );
       //Approx.Dump( std::cout );
+// clang-format on
       Surface = Approx.Surface();
     }
 
index 6bf311cefb2739a71eaab599239e042065f247d1..39abc23ed1b938033da2061517fbcc34af5a842b 100644 (file)
@@ -2863,7 +2863,9 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
       for (j = 1; j <= NbPath; j++)
         Tapes(StartEdges(isec))->SetValue(6, j, myFaces->Value(isec, j));
       TopoDS_Vertex Vfirst, Vlast;
+// clang-format off
       TopExp::Vertices(TopoDS::Edge(StartEdges(isec)), Vfirst, Vlast, Standard_True); //with orientation
+// clang-format on
       if (!Rails.IsBound(Vfirst))
       {
         Handle(TopTools_HArray2OfShape) anArray = new TopTools_HArray2OfShape(1, 2, 1, NbPath+1);
index 60685eac9f3631b4bd1a19accf7f1528728e5ecc..daa898d62fab479e67d1478fa1940037e03fac5c 100644 (file)
@@ -80,6 +80,7 @@ void  BRepGProp_EdgeTool::D1(const BRepAdaptor_Curve& C,
 // modified by NIZHNY-MKK  Thu Jun  9 12:15:15 2005.BEGIN
 Standard_Integer BRepGProp_EdgeTool::NbIntervals(const BRepAdaptor_Curve& C,const GeomAbs_Shape S) 
 {
+// clang-format off
   BRepAdaptor_Curve* pC = (BRepAdaptor_Curve*) &C; // at the moment actually NbIntervals() does not modify the 
                                                    // object "C". So it is safe to do such a cast.
   return pC->NbIntervals(S);
@@ -89,6 +90,7 @@ void BRepGProp_EdgeTool::Intervals(const BRepAdaptor_Curve& C,TColStd_Array1OfRe
 {
   BRepAdaptor_Curve* pC = (BRepAdaptor_Curve*) &C; // at the moment actually Intervals() does not modify the
                                                    // object "C". So it is safe to do such a cast.
+// clang-format on
   pC->Intervals(T, S);
 }
 // modified by NIZHNY-MKK  Thu Jun  9 12:15:18 2005.END
index 800783d8b173c5cdcc5c30e103463aae26c67f67..1b640c8492262316c68805410a603b42a63be41f 100644 (file)
@@ -583,7 +583,9 @@ Standard_Real BRepGProp_Gauss::Compute(
   //
   const Standard_Integer NumSubs = SUBS_POWER;
   const TopoDS_Face& aF = theSurface.GetFace(); 
+// clang-format off
   const Standard_Boolean isNaturalRestriction = (aF.NbChildren () == 0); //theSurface.NaturalRestriction();
+// clang-format on
 
   Standard_Real CIx, CIy, CIz, CIxy, CIxz, CIyz;
   Standard_Real CDim[2], CIxx[2], CIyy[2], CIzz[2];
index 6dd1c895d77ab09fa7c967cb62d3096eda89b271..3948015e6e39e9e72ddf45634ef3d6c477391156 100644 (file)
@@ -1169,7 +1169,9 @@ static void GetCurve3d(const TopoDS_Edge& theEdge, Handle(Geom_Curve)& theC3d, S
   Standard_Real& theL3d, TopLoc_Location& theLoc3d, BRep_ListOfCurveRepresentation& theCList)
 {
   const Handle(BRep_TEdge)& aTE = *((Handle(BRep_TEdge)*) &theEdge.TShape());
+// clang-format off
   theCList = aTE->ChangeCurves(); // current function (i.e. GetCurve3d()) will not change any of this curves
+// clang-format on
   BRep_ListIteratorOfListOfCurveRepresentation anIt(theCList);
   Standard_Boolean NotDone = Standard_True;
   while (NotDone && anIt.More()) {
@@ -1242,8 +1244,10 @@ TopoDS_Edge BRepLib::SameParameter(const TopoDS_Edge& theEdge,
   }
   else
   {
+// clang-format off
     aNE = TopoDS::Edge(theEdge.EmptyCopied()); //will be modified a little bit later, so copy anyway  
     GetCurve3d(aNE, C3d, f3d, l3d, L3d, CList); //C3d pointer and CList will be differ after copying
+// clang-format on
     aNTE = *((Handle(BRep_TEdge)*) &aNE.TShape());
     TopoDS_Iterator sit(theEdge);
     for (;sit.More();sit.Next()) //add vertices from old edge to the new ones
index 606eec61a7c62278b30bb73d6cc3ddf99160daae..5955242167f94f76cfdda5a0eeee4089d9bc59e0 100644 (file)
@@ -92,7 +92,9 @@ protected:
     {
       return;
     }
+// clang-format off
     InsertionBaseClass::postProcessMesh (theMesher, Message_ProgressRange()); // shouldn't be range passed here?
+// clang-format on
 
     if (!myIsPreProcessSurfaceNodes)
     {
index a7ff00b56a6250562b3ae202437b8e288cf506e5..36ced54376c18a03cc275df638db107094aeeb89 100644 (file)
@@ -70,9 +70,11 @@ struct IDelaBella
        // num of verts returned from last call to Triangulate()
        virtual int GetNumOutputVerts() const = 0;
 
+// clang-format off
        virtual const DelaBella_Triangle* GetFirstDelaunayTriangle() const = 0; // valid only if Triangulate() > 0
        virtual const DelaBella_Triangle* GetFirstHullTriangle() const = 0; // valid only if Triangulate() > 0
        virtual const DelaBella_Vertex*   GetFirstHullVertex() const = 0; // if Triangulate() < 0 it is list, otherwise closed contour! 
+// clang-format on
 };
 #else
 void* DelaBella_Create();
index 59c275e450acb7486d3c0707fa8c824f61cc85b5..94f4468fcded1d526dbdecc5c6afdd753e64ca62 100644 (file)
@@ -238,7 +238,9 @@ Handle(Geom_Surface) BRepOffset::CollapseSingularities (const Handle(Geom_Surfac
       // determine if all poles of the side fit into:
       Standard_Boolean isCollapsed = Standard_True; // aCenter precisely (with gp::Resolution())
       Standard_Boolean isSingular = Standard_True;  // aCenter with thePrecision
+// clang-format off
       NCollection_LocalArray<Standard_Boolean,4> isDegenerated (aDegenPnt.Extent()); // degenerated vertex
+// clang-format on
       for (size_t iDegen = 0; iDegen < isDegenerated.Size(); ++iDegen) isDegenerated[iDegen] = Standard_True;
       for (int iPole = 0; iPole < NbSteps[iSide]; iPole++)
       {
index 9172a4ddf06feb194f635e5115857283193790c5..10c44f390c5f13931fd926340b531a02df662615 100644 (file)
@@ -186,6 +186,7 @@ private: //! @name Fields
   // Results
   Standard_Boolean myDone; //!< Status of the algorithm
 
+// clang-format off
   BRepOffset_DataMapOfShapeListOfInterval myMapEdgeType; //!< Map containing the list of intervals on the edge
   TopTools_IndexedDataMapOfShapeListOfShape myAncestors; //!< Ancestors map
   NCollection_DataMap<TopoDS_Shape,
@@ -197,6 +198,7 @@ private: //! @name Fields
   TopTools_ListOfShape myNewFaces; //!< New faces generated to close the gaps between adjacent
                                    //!  tangential faces having different offset values
   TopTools_DataMapOfShapeShape myGenerated; //!< Binding between edge and face generated from the edge
+// clang-format on
 };
 
 #endif // _BRepOffset_Analyse_HeaderFile
index f206ad96aa1320c74933d51ae8b322ad0f59fec9..756d3021710c4585c57834edce2937915d0f4cbb 100644 (file)
@@ -2936,7 +2936,9 @@ static void UpdateInitOffset (BRepAlgo_Image&         myInitOffset,
 //=======================================================================
 void BRepOffset_MakeOffset::MakeMissingWalls (const Message_ProgressRange& theRange)
 {
+// clang-format off
   TopTools_IndexedDataMapOfShapeListOfShape Contours; //Start vertex + list of connected edges (free boundary)
+// clang-format on
   TopTools_DataMapOfShapeShape MapEF; //Edges of contours: edge + face
   Standard_Real OffsetVal = Abs(myOffset);
 
index 7058e241d32a4f420030f255d1dd2ecef3cf8b85..f8794649f1a339a017a649fc85849e19b8c53d98 100644 (file)
@@ -871,6 +871,7 @@ private:
   Handle(BRepAlgo_AsDes) myAsDes;       //!< Ascendants/descendants of the edges faces
   const BRepOffset_Analyse* myAnalyzer; //!< Analyzer of the input parameters
 
+// clang-format off
   TopTools_DataMapOfShapeListOfShape* myEdgesOrigins; //!< Origins of the offset edges (binding between offset edge and original edge)
   TopTools_DataMapOfShapeShape* myFacesOrigins;       //!< Origins of the offset faces (binding between offset face and original face)
   TopTools_DataMapOfShapeShape* myETrimEInf;          //!< Binding between trimmed and infinite edge
@@ -904,6 +905,7 @@ private:
 
   TopTools_IndexedDataMapOfShapeListOfShape myFacesToRebuild; //!< Faces that have to be rebuilt (invalid and close to invalid faces)
   TopTools_MapOfShape myFSelfRebAvoid;                        //!< Faces that have to be avoided when rebuilding splits of the same offset face
+// clang-format on
 
   TopoDS_Shape mySolids; //!< Solids built from the splits of faces
 
index be1a0a0623bff5e27f2e8e5eed985f762f035e65..ab8ff57bd728dd2d0f0a318a974a04e2db13ae36 100644 (file)
@@ -209,7 +209,9 @@ Handle(IGESData_IGESEntity) BRepToIGES_BRShell ::TransferFace(const TopoDS_Face&
           B.Range(aCopyEdge, aFace, f, l);
         }
       }
+// clang-format off
       aShapeShapeMap.Bind(aCopyEdge, anOrigEdge); // Bind the reversed copy of Edge to the original
+// clang-format on
     }
     aShapeShapeMap.Bind(start, aFace); // Bind the original face to the reversed copy
   }
index aaf3a0f0348021db430c31b855ce16ed81cd15ec..2e4578e141b2d6dcd166a1f58273a9e660f2ecb1 100644 (file)
@@ -453,7 +453,9 @@ Handle(IGESSolid_Loop) BRepToIGESBRep_Entity::TransferWire (const TopoDS_Wire& m
     index->SetValue(itab, myindex);
     myorient = Seqorient.Value(itab);
     orient->SetValue(itab, myorient);
+// clang-format off
     mynbcurve = ( Seq2d->Value(itab).IsNull() ? 0 : 1 ); // abv 31 Jan 00: to be able not to write pcurves: was 1
+// clang-format on
     nbcurves->SetValue(itab, mynbcurve);
     myisoflag = 0;
     flag = new TColStd_HArray1OfInteger(1,1);  
@@ -602,7 +604,9 @@ Handle(IGESSolid_Shell) BRepToIGESBRep_Entity ::TransferShell(const TopoDS_Shell
   Message_ProgressScope aPS(theProgress, NULL, nbf);
   for (Ex.Init(start,TopAbs_FACE); Ex.More() && aPS.More(); Ex.Next(), aPS.Next()) {
     TopoDS_Face F = TopoDS::Face(Ex.Current());
+// clang-format off
     if ( start.Orientation() == TopAbs_REVERSED ) F.Reverse(); //:l4 abv 12 Jan 99: CTS22022-2: writing reversed shells
+// clang-format on
     if (F.IsNull()) {
       AddWarning(start," a Face is a null entity");
     }
index 08dc73dafee42b23ac78c1358450984220eb7fd4..0c086ce04a6c907db2c9db3ddfb4a66c2cfdb35b 100644 (file)
@@ -75,7 +75,9 @@ static void CopyRanges (const TopoDS_Shape& toedge, const TopoDS_Shape& fromedge
     else {
        if(fromGC->PCurve().IsNull()) continue; }
       
+// clang-format off
     if ( ! isC3d && ! fromGC->IsCurveOnSurface()) continue; // only 3d curves and pcurves are treated
+// clang-format on
 
     Handle(Geom_Surface) surface;
     TopLoc_Location L;
@@ -409,10 +411,12 @@ TopoDS_Shape BRepTools_ReShape::Apply (const TopoDS_Shape& shape,
     Standard_Integer nitems = 0;
     for ( TopoDS_Iterator subit(newsh); subit.More(); subit.Next(), nitems++ ) {
       const TopoDS_Shape& subsh = subit.Value();
+// clang-format off
       if ( subsh.ShapeType() == sh.ShapeType() ) B.Add ( result, subsh );//fix for SAMTECH bug OCC322 about absent internal vertices after sewing.
       else locStatus |= EncodeStatus(10);//ShapeExtend::EncodeStatus ( ShapeExtend_FAIL1 );
     }
     if ( ! nitems ) locStatus |= EncodeStatus(10);//ShapeExtend::EncodeStatus ( ShapeExtend_FAIL1 );
+// clang-format on
   }
   if ( ! modif ) return shape;
 
index 42fbe98fe211258fe12a5145f79706079b09d9a1..69f5a48c645ae35261800e628880299eb1e1b27c 100644 (file)
@@ -185,7 +185,9 @@ void BRepTools_ShapeSet::AddGeometry(const TopoDS_Shape& S)
           // Bin(Brep)Tools_ShapeSet::AddGeometry() is called from Bin(Brep)Tools_ShapeSet::Add()
           // that processes shapes recursively from complex to elementary ones.
           // As a result, the TopAbs_FACE's will be processed earlier than the TopAbs_EDGE's.
+// clang-format off
           myTriangulations.Add(CR->Triangulation(), Standard_False); // edge triangulation does not need normals
+// clang-format on
           myNodes.Add(CR->PolygonOnTriangulation());
           ChangeLocations().Add(CR->Location());
           if (CR->IsPolygonOnClosedTriangulation())
index caac9d8c278c6e1fcb1f02d695d49af183a6392a..610c07b788ccb36b4d64c17bd92777d140e00cff 100644 (file)
@@ -173,8 +173,10 @@ private:
   TColStd_IndexedMapOfTransient myPolygons2D;
   TColStd_IndexedMapOfTransient myPolygons3D;
   NCollection_IndexedDataMap<Handle(Poly_Triangulation),
+// clang-format off
                              Standard_Boolean> myTriangulations; //!< Contains a boolean flag with information
                                                                  //!  to save normals for triangulation
+// clang-format on
   TColStd_IndexedMapOfTransient myNodes;
   Standard_Boolean myWithTriangles;
   Standard_Boolean myWithNormals;
index 9cde739a15b14178fc4bfc54d51d834132f45232..84422f71567059947984a17c295c334077c4206c 100644 (file)
@@ -116,7 +116,9 @@ void BSplCLib_Cache::CalculateDerivative(const Standard_Real&    theParameter,
     for (Standard_Integer ind = myParams.Degree * aDimension; ind < (theDerivative + 1) * aDimension; ind++)
     {
       aPntDeriv[ind] = 0.0;
+// clang-format off
       (&theDerivArray)[ind] = 0.0; // should be cleared separately, because aPntDeriv may look to another memory area
+// clang-format on
     }
   }
 
index e203b8368ae4fe7c2fbe049b73626b0eadc8f470..8de0e735c5302f6cf26bae994af42de6ead47d17 100644 (file)
@@ -136,6 +136,7 @@ protected:
   void operator = (const BSplCLib_Cache&);
 
 private:
+// clang-format off
   Standard_Boolean myIsRational;                //!< identifies the rationality of Bezier/B-spline curve
   BSplCLib_CacheParams myParams;                //!< cache parameters
   Handle(TColStd_HArray2OfReal) myPolesWeights; //!< array of poles and weights of calculated cache
@@ -143,6 +144,7 @@ private:
                                                 //       x1 y1 [z1] [w1]
                                                 //       x2 y2 [z2] [w2] etc
                                                 // for 2D-curves there is no z conponent, for non-rational curves there is no weight
+// clang-format on
 };
 
 DEFINE_STANDARD_HANDLE(BSplCLib_Cache, Standard_Transient)
index 4849d95c1553bfe666c59cdadb8a8e61fcfbf57d..dcd4a21b0770d7716bcaea7580ef5eed0c3564b5 100644 (file)
@@ -123,7 +123,9 @@ void BSplSLib_Cache::D0(const Standard_Real& theU,
     aParameters[1] = aNewV;
   }
 
+// clang-format off
   NCollection_LocalArray<Standard_Real> aTransientCoeffs(aCacheCols); // array for intermediate results
+// clang-format on
 
   // Calculate intermediate value of cached polynomial along columns
   PLib::NoDerivativeEvalPolynomial(aParameters[1], aMinMaxDegree[1],
@@ -184,7 +186,9 @@ void BSplSLib_Cache::D1(const Standard_Real& theU,
     aParameters[1] = aNewV;
   }
 
+// clang-format off
   NCollection_LocalArray<Standard_Real> aTransientCoeffs(aCacheCols<<1); // array for intermediate results
+// clang-format on
 
   // Calculate intermediate values and derivatives of bivariate polynomial along variable with maximal degree
   PLib::EvalPolynomial(aParameters[1], 1, aMinMaxDegree[1], aCacheCols, aPolesArray[0], aTransientCoeffs[0]);
@@ -270,9 +274,11 @@ void BSplSLib_Cache::D2(const Standard_Real& theU,
     aParameters[1] = aNewV;
   }
 
+// clang-format off
   NCollection_LocalArray<Standard_Real> aTransientCoeffs(3 * aCacheCols); // array for intermediate results
   // Calculating derivative to be evaluate and
   // nulling transient coefficients when max or min derivative is less than 2
+// clang-format on
   Standard_Integer aMinMaxDeriv[2] = {Min(2, aMinMaxDegree[0]), 
                                       Min(2, aMinMaxDegree[1])};
   for (Standard_Integer i = aMinMaxDeriv[1] + 1; i < 3; i++)
index 22a6ae88b3992392c141825dbd39fedd92202b70..6b190f6b1c2259964ab95350a0a4c7eeb3ec262c 100644 (file)
@@ -112,6 +112,7 @@ private:
   void operator = (const BSplSLib_Cache&);
 
 private:
+// clang-format off
   Standard_Boolean myIsRational;                //!< identifies the rationality of Bezier/B-spline surface
   BSplCLib_CacheParams myParamsU, myParamsV;    //!< cache parameters by U and V directions
   Handle(TColStd_HArray2OfReal) myPolesWeights; //!< array of poles and weights of calculated cache
@@ -120,6 +121,7 @@ private:
                                                 //       x21 y21 z21 [w21] x22 y22 z22 [w22] etc
                                                 // for non-rational surfaces there is no weight;
                                                 // size of array: (max(myDegree)+1) * A*(min(myDegree)+1), where A = 4 or 3
+// clang-format on
 };
 
 DEFINE_STANDARD_HANDLE(BSplSLib_Cache, Standard_Transient)
index 1a831aca9beb0df2a4d33282144c5b67de996bf0..90b0a04e88da404c6ebbf0606e7d953976ffc3ec 100644 (file)
@@ -93,7 +93,9 @@ protected:
 
 private:
 
+// clang-format off
   Standard_Boolean myUseMainAxis; //!< Defines whether to search for the best split or use the widest axis
+// clang-format on
 
 };
 
@@ -215,7 +217,9 @@ typename BVH_QueueBuilder<T, N>::BVH_ChildNodes BVH_BinnedBuilder<T, N, Bins>::b
   const Standard_Integer aNodeEndPrimitive = theBVH->EndPrimitive (theNode);
   if (aNodeEndPrimitive - aNodeBegPrimitive < BVH_Builder<T, N>::myLeafNodeSize)
   {
+// clang-format off
     return typename BVH_QueueBuilder<T, N>::BVH_ChildNodes(); // node does not require partitioning
+// clang-format on
   }
 
   const BVH_Box<T, N> anAABB (theBVH->MinPoint (theNode),
index b8220e942324789ef4cf715e10d09a4cb4ca654d..63064af87a0f7453366f5a473d56e6d69e286379 100644 (file)
@@ -49,7 +49,9 @@ protected:
     const Standard_Integer aNodeNbPrimitives = theBVH->NbPrimitives (theNode);
     if (aNodeEndPrimitive - aNodeBegPrimitive < BVH_Builder<T, N>::myLeafNodeSize)
     {
+// clang-format off
       return typename BVH_QueueBuilder<T, N>::BVH_ChildNodes(); // node does not require partitioning
+// clang-format on
     }
 
     // Parameters for storing best split
index b261dd9eb15cb962008268a8912aa7f2afc8c76c..8d63e21c5260e631dfd9c01a388e04559ea7b9be 100644 (file)
@@ -47,7 +47,9 @@ Standard_Integer BVH_Traverse <NumType, Dimension, BVHSetType, MetricType>::Sele
   // Create stack
   BVH_NodeInStack<MetricType> aStack[BVH_Constants_MaxTreeDepth];
 
+// clang-format off
   BVH_NodeInStack<MetricType> aNode (0);         // Currently processed node, starting with the root node
+// clang-format on
   BVH_NodeInStack<MetricType> aPrevNode = aNode; // Previously processed node
 
   Standard_Integer aHead = -1;      // End of the stack
index 0cd67f6a2a62b83dff968c55686fb7d44071e367..ba99e282ec42495ae6d1c3481f37299887280f5f 100644 (file)
@@ -513,7 +513,9 @@ void BinLDrivers_DocumentStorageDriver::WriteInfoSection
                                               theData->ApplicationVersion(),
                                               theData->DataType(),
                                               theData->UserInfo(),
+// clang-format off
                                               Standard_True); // only count the size of the section
+// clang-format on
 
   // calculate comment section
   TColStd_SequenceOfExtendedString aComments;
index 40721c1cf49ecf4fd88b4b78dceaaf2964d89d53..d3af2eb540d125657c68e0af0e4d1dcc1ec98229 100644 (file)
@@ -39,7 +39,9 @@ public:
                                   BinObjMgt_RRelocationTable& theRelocTable) const Standard_OVERRIDE
   {
     Standard_Boolean aResult = myBaseDirver->Paste (theSource, theTarget, theRelocTable);
+// clang-format off
     theTarget->AfterRetrieval(); // to allow synchronization of the derived attribute with the base content
+// clang-format on
     return aResult;
   }
 
index a694a8341e1636dbeca018d4a2414b6093a94668..30b2fbdb8d476779efc3324350b8df5c3fa9f3ac 100644 (file)
@@ -45,7 +45,9 @@ static Standard_Character EvolutionToChar (const TNaming_Evolution theEvol)
     case TNaming_MODIFY       : return 'M';
     case TNaming_DELETE       : return 'D';
     case TNaming_SELECTED     : return 'S';
+// clang-format off
     case TNaming_REPLACE      : return 'M'; // for compatibility case TNaming_REPLACE      : return 'R';
+// clang-format on
   default:
     throw Standard_DomainError("TNaming_Evolution:: Evolution Unknown");
   }
@@ -239,7 +241,9 @@ Standard_Boolean BinMNaming_NamedShapeDriver::Paste
         aBuilder.Select (aNewIt.Value(), anOldIt.Value());
         break;
       case TNaming_REPLACE:
+// clang-format off
         aBuilder.Modify (anOldIt.Value(), aNewIt.Value()); // for compatibility aBuilder.Replace(anOldShape, aNewShape);
+// clang-format on
         break;
       default:
           throw Standard_DomainError("TNaming_Evolution:: Evolution Unknown");
index 8411cfe42a0a8905e182b2de92b8370611f695cd..1bafea0124b7a47a432229404f49d14ec0343597 100644 (file)
@@ -179,7 +179,9 @@ Standard_Boolean BinMNaming_NamingDriver::Paste
           Standard_Integer i;
           // read array
           for(i=1; i<=aNbArgs;i++) {
+// clang-format off
             if(!aNewF && i > OBSOLETE_NUM) break;//interrupt reading as old format can have only 4 items
+// clang-format on
             ok = theSource >> anIndx;
             if (!ok)
               break;
index de21ea124f04590728dd9dc9f779c5b7fd9fd0e3..0c6f4bdc892810edb478e184b1d960d2b54a0220 100644 (file)
@@ -360,7 +360,9 @@ private:
   Standard_OStream* myOStream; ///< stream to write in case direct writing is enabled
   Standard_IStream* myIStream; ///< stream to write in case direct reading is enabled
   Standard_Boolean myDirectWritingIsEnabled;
+// clang-format off
   Handle(BinObjMgt_Position) myStreamStart; ///< position where the direct writing to the script is started
+// clang-format on
 };
 
 
index 5b2ce395a41218c2c989db5748ff1ce8bdd1bc8b..b0a8d956dd1b026a57be2063d0871f49e33f7289 100644 (file)
@@ -78,7 +78,9 @@ public:
 
 private:
   Standard_OStream* myStream; ///< pointer to the stream
+// clang-format off
   uint64_t myPosition; ///< the current position relatively to the OStream position at the moment of creation of this class instance
+// clang-format on
   Standard_Real myRealBuf[12]; ///< buffer for 12 reals storage
   Standard_Integer myIntBuf[3]; ///< buffer for 3 integers storage
   float myFloatBuf[3]; ///< buffer for 3 floats storage
index 9f2cde22fe3c5f9a2c88a41256ffeda91ab87da9..9226a01cfc31c300004a56c64822e4fd179e2369 100644 (file)
@@ -218,7 +218,9 @@ void BinTools_ShapeSet::AddShape (const TopoDS_Shape& S)
           // Bin(Brep)Tools_ShapeSet::AddGeometry() is called from Bin(Brep)Tools_ShapeSet::Add()
           // that processes shapes recursively from complex to elementary ones.
           // As a result, the TopAbs_FACE's will be processed earlier than the TopAbs_EDGE's.
+// clang-format off
           myTriangulations.Add(CR->Triangulation(), Standard_False); // edge triangulation does not need normals
+// clang-format on
           myNodes.Add(CR->PolygonOnTriangulation());
           ChangeLocations().Add(CR->Location());
           if (CR->IsPolygonOnClosedTriangulation())
index 0b76306488edc678d2dbf653c139a593a571b63f..b2781b921404bc49378735855b2604e2061fe8c6 100644 (file)
@@ -186,8 +186,10 @@ private:
   NCollection_IndexedMap<Handle(Poly_Polygon2D)> myPolygons2D;
   NCollection_IndexedMap<Handle(Poly_Polygon3D)> myPolygons3D;
   NCollection_IndexedDataMap<Handle(Poly_Triangulation),
+// clang-format off
                              Standard_Boolean> myTriangulations; //!< Contains a boolean flag with information
                                                                  //!  to save normals for triangulation
+// clang-format on
   NCollection_IndexedMap<Handle(Poly_PolygonOnTriangulation)> myNodes;
 };
 
index b1d2cc32b759c981a7afddd358eb8ca2e04f1046..7509681b140ae875871aa1fc20ac5c0e04749dd8 100644 (file)
@@ -1102,7 +1102,9 @@ void ChFi3d_Builder::PerformOneCorner(const Standard_Integer Index,
           Geom2dAPI_ProjectPointOnCurve Projector( P2d, Cd );
           Standard_Real par = Projector.LowerDistanceParameter();
           Standard_Integer Ideg = DStr.AddShape(Edeg);
+// clang-format off
           TopAbs_Orientation ori = (par < fd)? TopAbs_FORWARD : TopAbs_REVERSED; //if par<fd => par>ld
+// clang-format on
           Interfp1 = ChFi3d_FilPointInDS( ori, Ideg, indvertex, par, Standard_True );
           DStr.ChangeShapeInterferences(Ideg).Append(Interfp1);
         }
index 180c858c18761c2dd3e88ecf9527c10fdaec8692..75ba11e6795d13907d52762dec5b900baee7ac7a 100644 (file)
@@ -1174,8 +1174,10 @@ void ComputeInternalPoints
   const Handle(Adaptor3d_Surface)& Surf = SFunc.Surface();
   Contap_TFunction TypeFunc(SFunc.FunctionType());
 
+// clang-format off
   toler(1) = ureso; //-- Trop long !!! Adaptor3d_HSurfaceTool::UResolution(Surf,SFunc.Tolerance());
   toler(2) = vreso; //---Beaucoup trop long !!! Adaptor3d_HSurfaceTool::VResolution(Surf,SFunc.Tolerance());
+// clang-format on
   infb(1) = Adaptor3d_HSurfaceTool::FirstUParameter(Surf);
   infb(2) = Adaptor3d_HSurfaceTool::FirstVParameter(Surf);
   supb(1) = Adaptor3d_HSurfaceTool::LastUParameter(Surf);
index 2f6c4172e0588eaeb27a92706b88ffc9147a7601..b2f69363d3eb85b734897296fbb28b544877777d 100644 (file)
@@ -121,7 +121,9 @@ protected:
   void*              myGlD3dDevice;  //!< WGL/D3D device  handle
   void*              myGlD3dSurf;    //!< WGL/D3D surface handle
   Standard_Integer   myLockCount;    //!< locking counter
+// clang-format off
   Standard_Boolean   myD3dFallback;  //!< indicates that FBO has been initialized without WGL/D3D interop
+// clang-format on
   Standard_Boolean   myIsSRGBReady;  //!< indicates that color buffer is sRGB ready
 
 public:
index a0e90e33f9b1553f6655026024aca8927fc248b2..66e5b0f58db4875fb9ac78648fb380fe7fec4928 100644 (file)
@@ -312,7 +312,9 @@ bool D3DHost_View::d3dCreateRenderTarget()
                                                   myIsD3dEx,
                                                   myWindow->Width(),
                                                   myWindow->Height(),
+// clang-format off
                                                   0); // do not request depth-stencil attachment since buffer will be flipped using addition FBO (myToFlipOutput)
+// clang-format on
   }
   if (toD3dFallback)
   {
index 6022baa213bfc8b3e755b4d0287c7b44f90037db..f6056d7fd5fffa246a0c2ecd0d2530402745e744 100644 (file)
@@ -144,15 +144,15 @@ public:
   //!< Internal parameters for transfer process
   struct DE_SectionGlobal
   {
-    Standard_Real LengthUnit =
-      1.0; //!< Target Unit (scaling based on MM) for the transfer process, default 1.0 (MM)
+// clang-format off
+    Standard_Real LengthUnit = 1.0; //!< Target Unit (scaling based on MM) for the transfer process, default 1.0 (MM)
     Standard_Real SystemUnit = 1.0; //!< System Unit (scaling based on MM) to be used when initial
                                     //!< unit is unknown, default 1.0 (MM)
   } GlobalParameters;
 
 private:
-  Standard_Boolean
-    myIsEnabled; //!< Flag to use a current provider for Read or Write process via DE_Wrapper
+  Standard_Boolean myIsEnabled; //!< Flag to use a current provider for Read or Write process via DE_Wrapper
+// clang-format on
 };
 
 #endif // _DE_ConfigurationNode_HeaderFile
index fc8809aba8f1452c4c9d9a192fe8b4a06aa7ef4f..bb57ea72c51f3898c027935c01923efd9eeae8ea 100644 (file)
@@ -270,12 +270,12 @@ protected:
   void sort(const Handle(DE_ConfigurationContext)& theResource);
 
 public:
-  DE_ConfigurationNode::DE_SectionGlobal
-    GlobalParameters; //!< Internal parameters for the all translators
+// clang-format off
+  DE_ConfigurationNode::DE_SectionGlobal GlobalParameters; //!< Internal parameters for the all translators
 
 private:
-  Standard_Boolean
-    myKeepUpdates; //!< Flag that keeps changes on configuration nodes which are being updated
+  Standard_Boolean myKeepUpdates; //!< Flag that keeps changes on configuration nodes which are being updated
+// clang-format on
   DE_ConfigurationFormatMap myConfiguration; //!< Internal map of formats
 };
 
index df49fbdcd0eae7ec8b614393213f78b9a7c5c8b7..ac53b240d8d661c5b9d0ed910726d888be31e96b 100644 (file)
@@ -91,8 +91,10 @@ public:
   {
     // Write
     bool WriteBinary = true; //!< Defines the binary file format
+// clang-format off
     BinTools_FormatVersion WriteVersionBin = BinTools_FormatVersion_CURRENT; //!< Defines the writer version for the binary format
     TopTools_FormatVersion WriteVersionAscii = TopTools_FormatVersion_CURRENT; //!< Defines the writer version for the ASCII format
+// clang-format on
     bool WriteTriangles = true; //!< Defines the flag for storing shape with(without) triangles
     bool WriteNormals = true; //!< Defines the flag for storing shape with(without) normals
 
index 283b1c71cc4123a984e4c2101018e2f7582a4df4..a434f7346484908cc1800bb63d4840df09affade 100644 (file)
@@ -89,9 +89,11 @@ public:
   struct XCAFDoc_InternalSection
   {
     // Read
+// clang-format off
     PCDM_ReaderFilter::AppendMode ReadAppendMode = PCDM_ReaderFilter::AppendMode::AppendMode_Forbid; //!< Setting up the append mode
     TColStd_ListOfAsciiString ReadSkipValues; //!< Overwrites the existing attributes by the loaded ones
     TColStd_ListOfAsciiString ReadValues; //!< Adds sub-tree path or adds attribute to read by typename
+// clang-format on
 
   } InternalParameters;
 };
index 94bf9461848eba11ce564428d3e84ac10d0ba8d9..db8595bea6c1afc655e256e7a956c7c7a468b235 100644 (file)
@@ -260,7 +260,9 @@ static void LoadC0Edges(const TopoDS_Shape& S,
   }
   
   TopTools_MapOfShape anEdgesToDelete;
+// clang-format off
   TopExp_Explorer anEx(S,TopAbs_EDGE); // mpv: new explorer iterator because we need keep edges order
+// clang-format on
   for(;anEx.More();anEx.Next()) {
     Standard_Boolean aC0 = Standard_False;
     const TopoDS_Shape& anEdge1 = anEx.Current();
index eed3de3f0215bf80e7a24fff6ea6009a2d3b812e..3dd5b66b2b1c1cc53d171a05380d70c21393db18 100644 (file)
@@ -277,7 +277,9 @@ static Standard_Integer  DNaming_AddFunction(Draw_Interpretor& di,
     if(!aFun.IsNull()) {
       TCollection_AsciiString aFName = TCollection_AsciiString(a[3]) + "_Function";
       TDataStd_Name::Set(aFun->Label(), aFName);
+// clang-format off
       TDF_Reference::Set(objLabel, aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here
+// clang-format on
       DDF::ReturnLabel(di, aFun->Label());
       return 0;
     }
@@ -309,7 +311,9 @@ static Standard_Integer DNaming_AddBox (Draw_Interpretor& theDI,
     if(aFun.IsNull()) return 1;
     TDataStd_Name::Set(aFun->Label(), "Box_Function");
     
+// clang-format off
     TDF_Reference::Set(anObj->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
     Standard_Real dx,dy,dz;
     dx = Draw::Atof(theArg[2]);
     dy = Draw::Atof(theArg[3]);
@@ -804,7 +808,9 @@ static Standard_Integer DNaming_AddCylinder (Draw_Interpretor& theDI,
     if(aFun.IsNull()) return 1;
     TDataStd_Name::Set(aFun->Label(), "Cyl_Function");
     
+// clang-format off
     TDF_Reference::Set(anObj->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
 
     Standard_Real aR, aH;
     aR = Draw::Atof(theArg[2]);
@@ -880,7 +886,9 @@ static Standard_Integer DNaming_CylRad (Draw_Interpretor& theDI,
     if(aFun.IsNull()) return 1;
     TDataStd_Name::Set(aFun->Label(), "Fuse");
     
+// clang-format off
     TDF_Reference::Set(anObject->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
     DNaming::SetObjectArg(aFun, BOOL_TOOL, aTool); 
     DDF::ReturnLabel(theDI, aFun->Label());
     return 0;
@@ -914,7 +922,9 @@ static Standard_Integer DNaming_CylRad (Draw_Interpretor& theDI,
     if(aFun.IsNull()) return 1;
     TDataStd_Name::Set(aFun->Label(), "Cut");
     
+// clang-format off
     TDF_Reference::Set(anObject->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
     DNaming::SetObjectArg(aFun, BOOL_TOOL, aTool); 
     DDF::ReturnLabel(theDI, aFun->Label());
     return 0;
@@ -947,7 +957,9 @@ static Standard_Integer DNaming_CylRad (Draw_Interpretor& theDI,
     if(aFun.IsNull()) return 1;
     TDataStd_Name::Set(aFun->Label(), "Common");
     
+// clang-format off
     TDF_Reference::Set(anObject->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
     DNaming::SetObjectArg(aFun, BOOL_TOOL, aTool); 
     DDF::ReturnLabel(theDI, aFun->Label());
     return 0;
@@ -979,7 +991,9 @@ static Standard_Integer DNaming_CylRad (Draw_Interpretor& theDI,
     if(aFun.IsNull()) return 1;
     TDataStd_Name::Set(aFun->Label(), "Section");
     
+// clang-format off
     TDF_Reference::Set(anObject->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
     DNaming::SetObjectArg(aFun, BOOL_TOOL, aTool); 
     DDF::ReturnLabel(theDI, aFun->Label());
     return 0;
@@ -1013,7 +1027,9 @@ static Standard_Integer DNaming_AddFillet (Draw_Interpretor& theDI,
   if(aFun.IsNull()) return 1;
   TDataStd_Name::Set(aFun->Label(), "Fillet");
 
+// clang-format off
   TDF_Reference::Set(anObject->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
 
   Standard_Real aRadius = Draw::Atof(theArg[3]);
   DNaming::GetReal(aFun,FILLET_RADIUS)->Set(aRadius);  
@@ -1207,7 +1223,9 @@ static Standard_Integer DNaming_AddPrism (Draw_Interpretor& theDI,
   Handle(TFunction_Function) aFun = SetFunctionDS(anObj->Label(), funGUID);
   if(aFun.IsNull()) return 1;
   TDataStd_Name::Set(aFun->Label(), "Prism_Function");
+// clang-format off
   TDF_Reference::Set(anObj->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
 
   // arguments
   Handle(TDataStd_UAttribute) aBasisObj;
@@ -1296,7 +1314,9 @@ static Standard_Integer DNaming_AddRevol (Draw_Interpretor& theDI,
     TDataStd_Name::Set(aFun->Label(), "FulRevol_Function");
   else
     TDataStd_Name::Set(aFun->Label(), "SecRevol_Function");
+// clang-format off
   TDF_Reference::Set(anObj->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
   DNaming::SetObjectArg(aFun, REVOL_BASIS, aBasisObj); 
   DNaming::SetObjectArg(aFun, REVOL_AXIS, anAxObj); 
 
@@ -1369,7 +1389,9 @@ static Standard_Integer DNaming_AddSphere (Draw_Interpretor& theDI,
   Handle(TFunction_Function) aFun = SetFunctionDS(anObj->Label(), funGUID);
   if(aFun.IsNull()) return 1;
   TDataStd_Name::Set(aFun->Label(), "Sphere_Function");
+// clang-format off
   TDF_Reference::Set(anObj->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
  
   Handle(TDataStd_UAttribute) aCenterObj;
   if (!DDocStd::Find(aDocument, theArg[2], GEOMOBJECT_GUID, aCenterObj)) return 1;
@@ -1436,7 +1458,9 @@ static Standard_Integer DNaming_AddPoint (Draw_Interpretor& theDI,
     if(aFun.IsNull()) return 1;
     TDataStd_Name::Set(aFun->Label(), "PntXYZ_Function");
     
+// clang-format off
     TDF_Reference::Set(anObj->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
     Standard_Real x,y,z;
     x = Draw::Atof(theArg[2]);
     y = Draw::Atof(theArg[3]);
@@ -1476,7 +1500,9 @@ static Standard_Integer DNaming_AddPointRlt (Draw_Interpretor& theDI,
     if(aFun.IsNull()) return 1;
     TDataStd_Name::Set(aFun->Label(), "PntRLT_Function");
     
+// clang-format off
     TDF_Reference::Set(anObj->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
 
     Handle(TDataStd_UAttribute) aRefPnt;
     if (!DDocStd::Find(aDocument, theArg[2], GEOMOBJECT_GUID, aRefPnt)) return 1;
@@ -1579,7 +1605,9 @@ static Standard_Integer DNaming_Line3D (Draw_Interpretor& theDI,
   Handle(TFunction_Function) aFun = SetFunctionDS(anObj->Label(), funGUID);
   if(aFun.IsNull()) return 1;
   TDataStd_Name::Set(aFun->Label(), "Line3D_Function");
+// clang-format off
   TDF_Reference::Set(anObj->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here 
+// clang-format on
  
   Standard_Integer aType = Draw::Atoi(theArg[2]);
   DNaming::GetInteger(aFun,LINE3D_TYPE)->Set(aType);
index 073cd3bc3ae63a8e67cf1cfb01d69970ea3c6c24..2f0f28ac5b1a9ca1282dc9e4688f0c5aab4dbc1c 100644 (file)
@@ -89,7 +89,9 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
   gp_Pnt P1 = ElCLib::Value(0., myCircle);
   gp_Pnt P2 = ElCLib::Value(M_PI, myCircle);
 
+// clang-format off
   gce_MakePln mkPln(P1, P2, Apex); // create a plane which defines plane for projection aPosition on it
+// clang-format on
 
   gp_Vec aVector( mkPln.Value().Location(), aPosition );     //project aPosition on a plane
   gp_Vec Normal = mkPln.Value().Axis().Direction(); 
@@ -110,6 +112,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
     OppositePnt = P1;
   }
 
+// clang-format off
   aPnt = AttachmentPnt ;                          // Creating of circle which defines a plane for a dimension arc
   gp_Vec Vec(AttachmentPnt, Apex);                // Dimension arc is a part of the circle 
   Vec.Scale(2.);
@@ -119,6 +122,7 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
 
   Standard_Integer i;
   Standard_Real AttParam = ElCLib::Parameter(aCircle2, AttachmentPnt);  //must be equal to zero (look circle construction)
+// clang-format on
   Standard_Real OppParam = ElCLib::Parameter(aCircle2, OppositePnt);    
   
   while ( AttParam >= 2. * M_PI ) AttParam -= 2. * M_PI;
@@ -135,7 +139,9 @@ void DsgPrs_AnglePresentation::Add (const Handle(Prs3d_Presentation)& aPresentat
 
   Standard_Boolean IsArrowOut = Standard_True;    //Is arrows inside or outside of the cone
   if( ElCLib::Parameter(aCircle2, tmpPnt) < OppParam )
+// clang-format off
     if( 2. * myCircle.Radius() > 4. * myArrowSize ) IsArrowOut = Standard_False;  //four times more than an arrow size
+// clang-format on
 
   Standard_Real angle = OppParam - AttParam;
   Standard_Real param = AttParam;
index 85a49ceb8184c9afefbe24f6d6114fbec783ca3e..b011c493fe042efdfb4391d46d28e9fb5591fa7f 100644 (file)
@@ -95,7 +95,9 @@ void DsgPrs_EllipseRadiusPresentation::Add (const Handle(Prs3d_Presentation)& aP
   if(!IsInDomain)
   {
     const Standard_Real uLast = ElCLib::Parameter ( anEllipse, anEndOfArrow );
+// clang-format off
     const Standard_Real Alpha = DsgPrs::DistanceFromApex(anEllipse, anEndOfArrow, uFirst);//length of ellipse arc
+// clang-format on
     gp_Vec Vapex(aCenter, ElCLib::Value( uLast, anEllipse )) ;
     gp_Vec Vpnt(aCenter,  ElCLib::Value( uFirst, anEllipse )) ;
     gp_Dir dir(Vpnt ^ Vapex);
@@ -142,7 +144,9 @@ void DsgPrs_EllipseRadiusPresentation::Add (const Handle(Prs3d_Presentation)& aP
     aBEllipse.SetMajorRadius(aBEllipse.MajorRadius() + Offset);
     aBEllipse.SetMinorRadius(aBEllipse.MinorRadius() + Offset);
     const Standard_Real uLast = ElCLib::Parameter ( aBEllipse, anEndOfArrow );
+// clang-format off
     const Standard_Real Alpha = DsgPrs::DistanceFromApex(aBEllipse, anEndOfArrow, uFirst);//length of ellipse arc
+// clang-format on
     gp_Pnt p1;
     aCurve->D0(uFirst, p1);
     gp_Vec Vapex(aCenter, anEndOfArrow) ;
index 7a8ae0a9290c0bbff41bb91ddd9dd14a176737fc..72d3076e74091182d7097860fd570d061a6a8b16 100644 (file)
@@ -67,7 +67,9 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
 
     // segment from mid point to the text position
     aPrims->AddBound(2);
+// clang-format off
     aPrims->AddVertex(Position.IsEqual(MidPoint,rad)? MidPoint : ElCLib::Value(ElCLib::Parameter(aCircleM,Position),aCircleM)); // mid point
+// clang-format on
     aPrims->AddVertex(Position); // text position
 
        aPresentation->CurrentGroup()->AddPrimitiveArray(aPrims);
@@ -87,7 +89,9 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
 
     // segment from mid point to the geometry
     Handle(Graphic3d_ArrayOfSegments) aPrims = new Graphic3d_ArrayOfSegments(2);
+// clang-format off
     aPrims->AddVertex(ElCLib::Value(ElCLib::Parameter(aCircleM,AttachPoint),aCircleM)); // mid point
+// clang-format on
     aPrims->AddVertex(AttachPoint); // attach point to the geometry
     aPresentation->CurrentGroup()->AddPrimitiveArray(aPrims);
   }
@@ -139,7 +143,9 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
 
     // segment from mid point to the text position
     aPrims->AddBound(2);
+// clang-format off
     aPrims->AddVertex(Position.IsEqual(MidPoint,rad)? MidPoint : ElCLib::Value(ElCLib::Parameter(aCircleM,Position),aCircleM)); // mid point
+// clang-format on
     aPrims->AddVertex(Position); // text position
 
        aPresentation->CurrentGroup()->AddPrimitiveArray(aPrims);
@@ -213,7 +219,9 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
 
     // segment from mid point to the text position
     aPrims->AddBound(2);
+// clang-format off
     aPrims->AddVertex(Position.IsEqual(MidPoint,rad)? MidPoint : ElCLib::Value(ElCLib::Parameter(aCircleM,Position),aCircleM)); // mid point
+// clang-format on
     aPrims->AddVertex(Position); // text position
 
        aPresentation->CurrentGroup()->AddPrimitiveArray(aPrims);
@@ -227,7 +235,9 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
   {
     // segment from mid point to the geometry
     aPrims = new Graphic3d_ArrayOfSegments(2);
+// clang-format off
     aPrims->AddVertex(ElCLib::Value(ElCLib::Parameter(aCircleM,AttachPoint),aCircleM)); // mid point
+// clang-format on
     aPrims->AddVertex(AttachPoint); // attach point to the geometry
     aPresentation->CurrentGroup()->AddPrimitiveArray(aPrims);
   }
@@ -289,7 +299,9 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
 
     // segment from mid point to the text position
     aPrims->AddBound(2);
+// clang-format off
        aPrims->AddVertex(Position.IsEqual(MidPoint,rad)? MidPoint : ElCLib::Value(ElCLib::Parameter(aCircleM,Position),aCircleM)); // mid point
+// clang-format on
     aPrims->AddVertex(Position); // text position
 
        aPresentation->CurrentGroup()->AddPrimitiveArray(aPrims);
@@ -303,7 +315,9 @@ void DsgPrs_MidPointPresentation::Add (const Handle(Prs3d_Presentation)& aPresen
   {
     // segment from mid point to the geometry
     aPrims = new Graphic3d_ArrayOfSegments(2);
+// clang-format off
     aPrims->AddVertex(ElCLib::Value(ElCLib::Parameter(aCircleM,AttachPoint),aCircleM)); // mid point
+// clang-format on
     aPrims->AddVertex(AttachPoint); // attach point to the geometry
     aPresentation->CurrentGroup()->AddPrimitiveArray(aPrims);
   }
index 96a3bfcc5a97fdb61b830fc9fb889c25d8a62a21..53afdcc572b23a30d77c724bb44bea054e89bb86 100644 (file)
@@ -356,7 +356,9 @@ Standard_Boolean Express_Entity::GenerateClass() const
       for (Standard_Integer i = 2; i <= myInherit->Length(); i++)
       {
         Handle(Express_Entity) anEntity = myInherit->Value (i);
+// clang-format off
         anOS << "  Handle(" << anEntity->CPPName() << ") my" << anEntity->Name() << "; //!< supertype\n";
+// clang-format on
       }
       for (Standard_Integer i = 1; i <= myFields->Length(); i++)
       {
@@ -692,7 +694,9 @@ Standard_Boolean Express_Entity::GenerateClass() const
     // write method Share
     Express::WriteMethodStamp (anOS, "Share");
     std::ostringstream aStringOS;
+// clang-format off
     Standard_Integer aNnFileds2 = writeRWShareCode (aStringOS, 1, Standard_True); // write code for filling graph of references
+// clang-format on
     if (aRWCPPName.Length() < 40)
     {
       anOS << "void " << aRWCPPName << "::Share (const Handle(" << aCPPName << ")&" << ((aNnFileds2 > 1) ? "theEnt," : ",") << "\n";
index a899ac6069574644abba859bfdb2003a6d494009..dc86c1d487cac34e33f5b1110525a68f13156004 100644 (file)
@@ -674,7 +674,9 @@ void Extrema_ExtElCS::Perform(const gp_Circ& C,
   Extrema_ExtElC anExtC(C, aCInt);
   Standard_Boolean isExtremaCircCircValid =  anExtC.IsDone() // Check if intersection is done
                                           && !anExtC.IsParallel() // Parallel case has already been considered
+// clang-format off
                                           && anExtC.NbExt() > 0; // Check that some solutions have been found
+// clang-format on
   if (!isExtremaCircCircValid)
     // not done
     return;
index 2d12de07f3928c1b2840f21ff6e51647ec01a931..6667d6f1e5a1ea8485a1040cba4463e576749cfe 100644 (file)
@@ -56,7 +56,9 @@ Standard_Boolean FairCurve_MinimalVariation::Compute(FairCurve_AnalysisCode& ACo
 //======================================================================================
 {
   Standard_Boolean Ok=Standard_True, End=Standard_False;
+// clang-format off
   Standard_Real AngleMax = 0.7;      // parameter regulating the function of increment ( 40 degrees )
+// clang-format on
   Standard_Real AngleMin = 2*M_PI/100; // parameter regulating the function of increment 
                                      // full passage should not contain more than 100 steps.
   Standard_Real DAngle1, DAngle2,  DRho1, DRho2, Ratio, Fraction, Toler;
@@ -173,7 +175,9 @@ Standard_Boolean FairCurve_MinimalVariation::Compute(const gp_Vec2d& DeltaP1,
    gp_Vec2d VOld(OldP1, OldP2), VNew( -(OldP1.XY()+DeltaP1.XY()) + (OldP2.XY()+DeltaP2.XY()) );
    Standard_Real DAngleRef = VNew.Angle(VOld);
    Standard_Real DAngle1 = DeltaAngle1 - DAngleRef,
+// clang-format off
                  DAngle2 = DAngleRef   - DeltaAngle2; // Correction of Delta by the Delta induced by the points.
+// clang-format on
 
 
    ADelta(1) = DeltaP1.XY();
index 1487ade3f6afc5b0dfb087cc348d91ce1ee01cb2..ffc656f8c3f70247257c16842eecdaf691d36ed4 100755 (executable)
@@ -37,11 +37,13 @@ class Font_FTLibrary;
 struct Font_FTFontParams
 {
   unsigned int PointSize;                  //!< face size in points (1/72 inch)
+// clang-format off
   unsigned int Resolution;                 //!< resolution of the target device in dpi for FT_Set_Char_Size()
   Font_Hinting FontHinting;                //!< request hinting (exclude FT_LOAD_NO_HINTING flag), Font_Hinting_Off by default;
                                            //!  hinting improves readability of thin text on low-resolution screen,
                                            //!  but adds distortions to original font depending on font family and font library version
   bool         ToSynthesizeItalic;         //!< generate italic style (e.g. for font family having no italic style); FALSE by default
+// clang-format on
   bool         IsSingleStrokeFont;         //!< single-stroke (one-line) font, FALSE by default
 
   //! Empty constructor.
@@ -398,7 +400,9 @@ protected:
 
   Image_PixMap               myGlyphImg;     //!< cached glyph plane
   Standard_Utf32Char         myUChar;        //!< currently loaded unicode character
+// clang-format off
   Standard_Boolean           myToUseUnicodeSubsetFallback; //!< use default fallback fonts for extended Unicode sub-sets (Korean, CJK, etc.)
+// clang-format on
 
 };
 
index 0e1a3ecbcd8e0db6d622dcba77e8e7f4437f6d51..2a94596b287a9710699cedfcbfa04ae32eacdde5 100644 (file)
@@ -688,7 +688,9 @@ void Font_FontMgr::InitFontDataBase()
                       (LPBYTE )aPathBuff, &aPathSize) != ERROR_NO_MORE_ITEMS;
       ++anIter, aNameSize = aBufferSize, aPathSize = aBufferSize)
   {
+// clang-format off
     aPathBuff[(aPathSize < aBufferSize) ? aPathSize : (aBufferSize - 1)] = '\0'; // ensure string is NULL-terminated
+// clang-format on
 
     TCollection_AsciiString aFontName (aNameBuff), aFontPath (aPathBuff);
     if (aFontPath.Search ("\\") == -1)
index e8d2d6b2f44bfc2348c9c7ea66ff2b1b0cfaa652..54fea68bee89e9a7d78f44b4a2f74ac08b0460d9 100644 (file)
@@ -246,7 +246,9 @@ void Font_TextFormatter::Format()
       {
         aMaxLineWidth = Max (aMaxLineWidth, LineWidth (aLineIt));
       }
+// clang-format off
       aMaxLineWidth = Max (aMaxLineWidth, LineWidth (myNewLines.Size())); // processing the last line also
+// clang-format on
     }
   }
 
index 5ef5d0aeae198cb46f60f4e51fb732458da9504f..32b37386f4a6ff3b1d6a2d10d7cf7284cf1c0dcc 100755 (executable)
@@ -133,10 +133,12 @@ public:
 
   protected:
     IterationFilter      myFilter; //!< possibility to filter not-necessary symbols
+// clang-format off
     NCollection_Utf8Iter myIter; //!< the next symbol iterator value over the text formatter string
     Standard_Integer     mySymbolPosition; //!< the current position
     Standard_Utf32Char   mySymbolChar; //!< the current symbol
     Standard_Integer     mySymbolNext; //!< position of the next symbol in iterator, if zero, the iterator is finished
+// clang-format on
     Standard_Utf32Char   mySymbolCharNext; //!< the current symbol
   };
 
@@ -300,11 +302,13 @@ protected: //! @name configuration
 
   Graphic3d_HorizontalTextAlignment myAlignX;  //!< horizontal alignment style
   Graphic3d_VerticalTextAlignment   myAlignY;  //!< vertical   alignment style
+// clang-format off
   Standard_Integer                  myTabSize; //!< horizontal tabulation width (number of space symbols)
   Standard_ShortReal                myWrappingWidth; //!< text is wrapped by the width if defined (more 0)
   Standard_Boolean                  myIsWordWrapping;  //!< if TRUE try not to break words when wrapping text (true by default)
   Standard_ShortReal                myLastSymbolWidth; //!< width of the last symbol
   Standard_ShortReal                myMaxSymbolWidth; //!< maximum symbol width of the formatter string
+// clang-format on
 
 protected: //! @name input data
 
@@ -315,6 +319,7 @@ protected: //! @name input data
                      myCorners;       //!< The bottom left corners of a formatted rectangles.
   NCollection_Vector<Standard_ShortReal>
                      myNewLines;      //!< position at LF
+// clang-format off
   Standard_ShortReal myLineSpacing;   //!< line spacing (computed as maximum of all fonts involved in text formatting)
   Standard_ShortReal myAscender;      //!< line spacing for the first line
   bool               myIsFormatted;   //!< formatting state
@@ -322,6 +327,7 @@ protected: //! @name input data
 protected: //! @name temporary variables for formatting routines
 
   Standard_Integer   myLinesNb;       //!< overall (new)lines number (including splitting by width limit)
+// clang-format on
   Standard_Integer   myRectLineStart; //!< id of first rectangle on the current line
   Standard_Integer   myNewLineNb;
 
index 1a94950251da6dd2844223a2600b3694d62c29e2..46cf944cc2d7c1dd37272393cf4c5c4a561d34e6 100644 (file)
@@ -289,7 +289,9 @@ GccAna_Circ2d3Tan::
                     TheSame1(NbrSol) = 0;
                     gp_Dir2d dc(center1.XY()-Center.XY());
                     if (qualifier1(NbrSol) == GccEnt_enclosed)
+// clang-format off
                       dc.Reverse(); // if tangent circle is inside the source circle, moving to edge of source circle
+// clang-format on
                     pnttg1sol(NbrSol)=gp_Pnt2d(Center.XY()+Radius(k1)*dc.XY());
                     par1sol(NbrSol)=ElCLib::Parameter(cirsol(NbrSol),
                                                      pnttg1sol(NbrSol));
index f1c443e8ba9dd3bbacfe95279bccc6be92e304f5..f112be5b7d95704f9f3d1585d62ee2f03cd946ca 100644 (file)
@@ -180,7 +180,9 @@ GccAna_Circ2d3Tan::
                   TheSame1(NbrSol) = 0;
                   gp_Dir2d dc(center1.XY()-Center.XY());
                   if (qualifier1(NbrSol) == GccEnt_enclosed)
+// clang-format off
                     dc.Reverse(); // if tangent circle is inside the source circle, moving to edge of source circle
+// clang-format on
                   pnttg1sol(NbrSol)=gp_Pnt2d(Center.XY()+Radius(nbsol3)*dc.XY());
                   par1sol(NbrSol)=ElCLib::Parameter(cirsol(NbrSol), pnttg1sol(NbrSol));
                   pararg1(NbrSol)=ElCLib::Parameter(C1,pnttg1sol(NbrSol));
index 2c889a2baf16cd48ff78af021883e85b67dba1d3..df803db4fe472262ffea9cd80338bb1b47711f79 100644 (file)
@@ -948,7 +948,9 @@ void  Geom2dConvert::ConcatG1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
                    PreLast,First,
                    Standard_True,
                    Standard_True)<GeomAbs_C0)
+// clang-format off
        throw Standard_ConstructionError("Geom2dConvert curves not C0") ;                //renvoi d'une erreur
+// clang-format on
      else{
        if (Continuity(ArrayOfCurves(i-1),
                      ArrayOfCurves(i),
@@ -1116,6 +1118,7 @@ void  Geom2dConvert::ConcatG1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
  }
  
  else
+// clang-format off
    for (i=0;i<=nb_group-1;i++){                             //boucle principale sur chaque groupe de 
      nb_vertexG1=0;                                         //continuite interne G1
      
@@ -1130,6 +1133,7 @@ void  Geom2dConvert::ConcatG1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
        else{
         Geom2dConvert_CompCurveToBSplineCurve  C(ArrayOfConcatenated->Value(i));
         fusion=C.Add(Curve1,ArrayOfToler(j-1));          //fusion de deux courbes adjacentes               
+// clang-format on
         if (fusion==Standard_False)
           throw Standard_ConstructionError("Geom2dConvert Concatenation Error") ;
         ArrayOfConcatenated->SetValue(i,C.BSplineCurve());
@@ -1201,7 +1205,9 @@ void  Geom2dConvert::ConcatC1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
                    Standard_True,
                    ArrayOfToler(i-1),
                    AngularTolerance)<GeomAbs_C0)
+// clang-format off
        throw Standard_ConstructionError("Geom2dConvert curves not C0") ;                //renvoi d'une erreur
+// clang-format on
      else{
        if (Continuity(ArrayOfCurves(i-1),
                      ArrayOfCurves(i),
@@ -1364,7 +1370,9 @@ void  Geom2dConvert::ConcatC1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
  }
  
  else
+// clang-format off
    for (i=0;i<=nb_group-1;i++){                             //boucle principale sur chaque groupe de 
+// clang-format on
      nb_vertexG1=0;                                         //continuite interne G1
       
      while (((index+nb_vertexG1)<=nb_curve-2)&&(tabG1(index+nb_vertexG1)==Standard_True))
@@ -1383,7 +1391,9 @@ void  Geom2dConvert::ConcatC1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
         ArrayOfIndices->SetValue(k,nb_vertex_group0+1);
      }
       
+// clang-format off
      for (j=index;j<=index+nb_vertexG1;j++){                //boucle secondaire a l'interieur de chaque groupe
+// clang-format on
        if (NeedToBeTreated(ArrayOfCurves(j)))
         Curve1=MultNumandDenom(Hermit::Solution(ArrayOfCurves(j)),ArrayOfCurves(j));
        else
@@ -1393,7 +1403,9 @@ void  Geom2dConvert::ConcatC1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
         ArrayOfConcatenated->SetValue(i,Curve1);
        else{
         Geom2dConvert_CompCurveToBSplineCurve C (ArrayOfConcatenated->Value(i));
+// clang-format off
         fusion=C.Add(Curve1,ArrayOfToler(j-1));          //fusion de deux courbes adjacentes               
+// clang-format on
         if (fusion==Standard_False)
           throw Standard_ConstructionError("Geom2dConvert Concatenation Error") ;
         ArrayOfConcatenated->SetValue(i,C.BSplineCurve());
index 49efc819325e12a1e6f6162ffc8b1f67f2970f3f..c8b7bcf27681a9b10420e01d549f71a57eacf448 100644 (file)
@@ -274,7 +274,9 @@ private:
   mutable Handle(BSplSLib_Cache) mySurfaceCache; ///< Cached data for B-spline or Bezier surface
 
   GeomAbs_SurfaceType mySurfaceType;
+// clang-format off
   Handle(GeomEvaluator_Surface) myNestedEvaluator; ///< Calculates values of nested complex surfaces (offset surface, surface of extrusion or revolution)
+// clang-format on
 };
 
 #endif // _GeomAdaptor_Surface_HeaderFile
index e92e4904df17174d8d85f2f47b8a7c85066d3888..8b1bf5ce720b77f7e44977bb204f81338f8e84cf 100644 (file)
@@ -794,7 +794,9 @@ private:
  gp_Vec                       Vec1,Vec2;                   //consecutive tangential vectors 
  gp_Pnt                       Pint;
  Handle(Geom_BSplineCurve)    Curve1,Curve2;                       
+// clang-format off
  TColStd_Array1OfBoolean      tabG1(0,nb_curve-2);         //array of the G1 continuity at the intersections
+// clang-format on
  TColStd_Array1OfReal         local_tolerance(0,
                                              ArrayOfToler.Length()-1) ;
  
@@ -953,7 +955,9 @@ private:
  }
  
  else
+// clang-format off
    for (i=0;i<=nb_group-1;i++){                             //principal loop on each G1 continuity 
+// clang-format on
      nb_vertexG1=0;                                         //group
      
      while (((index+nb_vertexG1)<=nb_curve-2)&&(tabG1(index+nb_vertexG1)==Standard_True))
@@ -966,7 +970,9 @@ private:
         ArrayOfConcatenated->SetValue(i,Curve1);
        else{
         GeomConvert_CompCurveToBSplineCurve C (ArrayOfConcatenated->Value(i));
+// clang-format off
         fusion=C.Add(Curve1,ArrayOfToler(j-1));            //merge of two consecutive curves               
+// clang-format on
         if (fusion==Standard_False)
           throw Standard_ConstructionError("GeomConvert Concatenation Error") ;
         ArrayOfConcatenated->SetValue(i,C.BSplineCurve());
@@ -1022,7 +1028,9 @@ void  GeomConvert::ConcatC1(TColGeom_Array1OfBSplineCurve&           ArrayOfCurv
  gp_Vec                       Vec1,Vec2;                   //consecutive tangential vectors
  gp_Pnt                       Pint;
  Handle(Geom_BSplineCurve)    Curve1,Curve2;                       
+// clang-format off
  TColStd_Array1OfBoolean      tabG1(0,nb_curve-2);         //array of the G1 continuity at the intersections
+// clang-format on
  TColStd_Array1OfReal         local_tolerance(0,
                                              ArrayOfToler.Length()-1) ;
  
@@ -1197,7 +1205,9 @@ void  GeomConvert::ConcatC1(TColGeom_Array1OfBSplineCurve&           ArrayOfCurv
  }
  
  else
+// clang-format off
    for (i=0;i<=nb_group-1;i++){                             //principal loop on each G1 continuity 
+// clang-format on
      nb_vertexG1=0;                                         //group
       
      while (((index+nb_vertexG1)<=nb_curve-2)&&(tabG1(index+nb_vertexG1)==Standard_True))
@@ -1305,7 +1315,9 @@ void GeomConvert::C0BSplineToArrayOfC1BSplineCurve(
 
  BS->Knots(BSKnots);
  BS->Multiplicities(BSMults);
+// clang-format off
  for (i=BS->FirstUKnotIndex() ;i<=(BS->LastUKnotIndex()-1);i++){                                 //give the number of C1 curves
+// clang-format on
    if (BSMults(i)==BS->Degree())
      nbcurveC1++;   
  }
index 27a5d68c2270b5c3d9536fee43b05e76f4aa4621..8fb6e273c8b35d999342bcdcbdecc31d0cf87e3b 100644 (file)
@@ -321,7 +321,9 @@ Standard_Real GeomInt_LineTool::FirstParameter (const Handle(IntPatch_Line)& L)
     case IntPatch_Restriction:
     {
       Handle(IntPatch_RLine) rlin = Handle(IntPatch_RLine)::DownCast(L);
+// clang-format off
          return (rlin->HasFirstPoint()? rlin->FirstPoint().ParameterOnLine() : -Precision::Infinite()); // a voir selon le type de la ligne 2d
+// clang-format on
     }
 
     case IntPatch_Walking:
@@ -373,7 +375,9 @@ Standard_Real GeomInt_LineTool::LastParameter (const Handle(IntPatch_Line)& L)
     case IntPatch_Restriction:
     {
       Handle(IntPatch_RLine) rlin = Handle(IntPatch_RLine)::DownCast(L);
+// clang-format off
          return (rlin->HasLastPoint()? rlin->LastPoint().ParameterOnLine() : Precision::Infinite()); // a voir selon le type de la ligne 2d
+// clang-format on
     }
 
     case IntPatch_Walking:
@@ -775,8 +779,10 @@ Standard_Boolean GeomInt_LineTool::
 
          if(found) {
            // check point
+// clang-format off
            Standard_Real aCriteria =aTolSum;// BRep_Tool::Tolerance(theFace1) + BRep_Tool::Tolerance(theFace2);
            //GeomAPI_ProjectPointOnSurf& aProjector = (surfit == 0) ? aPrj2 : aPrj1;
+// clang-format on
            ProjectPointOnSurf& aProjector = (surfit == 0) ? aPrj2 : aPrj1;
            Handle(GeomAdaptor_Surface) aSurface = (surfit == 0) ? theSurface1 : theSurface2;
 
index c25d71cfded836dc57f76c5689de5dd5e610702c..942626072ab8f0b578a51a1ec3bb6a5dd8af1de5 100644 (file)
@@ -1993,7 +1993,9 @@ static Standard_Boolean CanBeTreated(Handle(Geom_BSplineSurface)& BSurf)
    return Standard_False;
  else {
    lambda=(BSurf->Weight(1,1)/BSurf->Weight(BSurf->NbUPoles(),1));
+// clang-format off
    for (i=1;i<=BSurf->NbVPoles();i++)      //test of the proportionnality of the denominator on the boundaries
+// clang-format on
      if ((BSurf->Weight(1,i)/(lambda*BSurf->Weight(BSurf->NbUPoles(),i))<(1-Precision::Confusion()))||
         (BSurf->Weight(1,i)/(lambda*BSurf->Weight(BSurf->NbUPoles(),i))>(1+Precision::Confusion())))
        return Standard_False;
index 557906d138b1e1519139f6344b281ccffcf27583..7c453c4862813db95cb66d608292b66c1363f3f7 100644 (file)
@@ -222,7 +222,9 @@ myPts(Pts)
       gp_Vec NormVec = Pln.Axis().Direction();
       NormVec = (aVec * NormVec) * NormVec;
 
+// clang-format off
       ElSLib::Parameters( Pln, myPts->Value(i).Translated( -NormVec ), U, V ); //????? Real projecting?
+// clang-format on
       if (U > myUmax)
        myUmax = U;
       if (U < myUmin)
index c06b14d0260b9ef1e149a5775d4de9fffd8959cc..3e22b7dbc5d0fa858c5deba8f4f2ea26172ddc2a 100644 (file)
@@ -1596,7 +1596,9 @@ void GeomPlate_BuildPlateSurface::ComputeSurfInit(const Message_ProgressRange& t
       Handle( Geom_Surface ) InitPlane = 
        (Handle( Geom_RectangularTrimmedSurface )::DownCast(mySurfInit))->BasisSurface();
       
+// clang-format off
       Standard_Real Ratio = 0., R1 = 2., R2 = 0.6; //R1 = 3, R2 = 0.5;//R1 = 1.4, R2 = 0.8; //R1 = 5., R2 = 0.2; 
+// clang-format on
       Handle( GeomAdaptor_Surface ) hsur = 
        new GeomAdaptor_Surface( InitPlane );
       Standard_Integer NbPoint = 20;
index 28f8f1a681ddf8045e5f5b4098bd1e6f81eb0574..9d0b717062ca1cc26d2060873e43f28be71eec0a 100644 (file)
@@ -839,7 +839,9 @@ Handle(IGESData_IGESEntity) GeomToIGES_GeomCurve::TransferCurve
   
   OffsetC->Init( BaseCurve, 1,voident, 0, 0, (start->Offset()/GetUnit()), 0.,
                (start->Offset()/GetUnit()), 0.,
+// clang-format off
                start->Direction().XYZ().Reversed(), U1, U2);  //%11 pdn 12.01.99 // valeur (0,0,1) pour l'instant   
+// clang-format on
   
   res = OffsetC;  
   return res;
index c7cfe8b500af8e75d61164c4c227b726693f3e73..a00ee29d67ef01688d55138e1182f6ed33bb09be 100644 (file)
@@ -843,6 +843,7 @@ Standard_Real CompLocalDev(const Adaptor3d_Curve& theCurve,
   //
   aLowBorder(1) = u1;
   aUppBorder(1) = u2;
+// clang-format off
   aSteps(1) =(aUppBorder(1) - aLowBorder(1)) * 0.01; // Run PSO on even distribution with 100 points.
   //
   GCPnts_DistFunction aFunc1(theCurve,  u1, u2);
@@ -852,6 +853,7 @@ Standard_Real CompLocalDev(const Adaptor3d_Curve& theCurve,
   GCPnts_DistFunctionMV aFunc(aFunc1);
 
   math_PSO aFinder(&aFunc, aLowBorder, aUppBorder, aSteps); // Choose 32 best points from 100 above.
+// clang-format on
   aFinder.Perform(aSteps, aValue, aT);
   Standard_Real d = 0.;
 
index 5705c9ea26c8261ad953dc38aab7df5f5d1d9ee2..8956845cb6c0d59f4b14c1296f2ce5d9385f6771 100644 (file)
@@ -77,7 +77,9 @@ public:
 
 protected:
   Graphic3d_BufferRange myInvalidatedRange; //!< invalidated buffer data range (as byte offsets)
+// clang-format off
   Standard_Boolean      myIsInterleaved;    //!< flag indicating the vertex attributes being interleaved
+// clang-format on
   Standard_Boolean      myIsMutable;        //!< flag indicating that data can be invalidated
 };
 
index 8b841920384b51de8371ab7195fe10487e8f8fe8..49f65da11a204be897f32103a4870bac1caaf389 100644 (file)
@@ -45,7 +45,9 @@ enum Graphic3d_TypeOfData
 //! Vertex attribute definition.
 struct Graphic3d_Attribute
 {
+// clang-format off
   Graphic3d_TypeOfAttribute Id;       //!< attribute identifier in vertex shader, 0 is reserved for vertex position
+// clang-format on
   Graphic3d_TypeOfData      DataType; //!< vec2,vec3,vec4,vec4ub
 
   Standard_Integer Stride() const { return Stride (DataType); }
@@ -325,8 +327,10 @@ public:
 
 public:
 
+// clang-format off
   Standard_Integer Stride;       //!< the distance to the attributes of the next vertex within interleaved array
   Standard_Integer NbElements;   //!< number of the elements (@sa NbMaxElements() specifying the number of initially allocated number of elements)
+// clang-format on
   Standard_Integer NbAttributes; //!< number of vertex attributes
 
 };
index 61cbcd89783be790de946f0ad2a144da1dc1a24d..e8c3b4b711e4d4ed377a65b69e2ebb33338b759d 100644 (file)
@@ -68,7 +68,9 @@ public:
 
 private:
 
+// clang-format off
   NCollection_IndexedMap<const Graphic3d_CStructure*> myStructs;    //!< Indexed map of structures.
+// clang-format on
 
 };
 
index 95fd89eda39350fa878e1921cb1ad0f645729689..19daae7b6d8de602dced8e6b79501eb74ce602e0 100644 (file)
@@ -273,7 +273,9 @@ protected:
   Quantity_ColorRGBA                myColor;       //!< light color
   Graphic3d_Vec4                    myDirection;   //!< direction of directional/spot light
   Graphic3d_Vec4                    myParams;      //!< packed light parameters
+// clang-format off
   Standard_ShortReal                mySmoothness;  //!< radius for point light or cone angle for directional light
+// clang-format on
   Standard_ShortReal                myIntensity;   //!< intensity multiplier for light
   const Graphic3d_TypeOfLightSource myType;        //!< Graphic3d_TypeOfLightSource enumeration
   Standard_Size                     myRevision;    //!< modification counter
index 8138cd165f3afc27c48b76d762decece23dc2f5d..e9606cdc1173d8039d9c195b37edc6270f025692 100644 (file)
@@ -232,6 +232,7 @@ protected:
   Handle(TopLoc_Datum3D)          myTrsf;
   Handle(Graphic3d_TransformPers) myTrsfPers;
   Handle(Graphic3d_SequenceOfHClipPlane) myClipPlanes;
+// clang-format off
   Handle(Graphic3d_PresentationAttributes) myHighlightStyle; //! Current highlight style; is set only if highlight flag is true
 
   Standard_Integer          myId;
@@ -250,6 +251,7 @@ public:
   unsigned stick          : 1; //!< displaying state - should be set when structure has been added to scene graph (but can be in hidden state)
   unsigned highlight      : 1;
   unsigned visible        : 1; //!< visibility flag - can be used to suppress structure while leaving it in the scene graph
+// clang-format on
   unsigned HLRValidation  : 1;
   unsigned IsForHighlight : 1;
   unsigned IsMutable      : 1;
index 2a0be6b193304cf6175720d90df1f2c2c64f5eab..5525e2069c373ec1441e77eac599da6b7c2ae0a1 100644 (file)
@@ -734,7 +734,9 @@ void Graphic3d_CView::Compute()
     const Graphic3d_TypeOfAnswer anAnswer = acceptDisplay (aStructIter.Key()->Visual());
     if (anAnswer == Graphic3d_TOA_COMPUTE)
     {
+// clang-format off
       aStructsSeq.Append (aStructIter.Key()); // if the structure was calculated, it is recalculated
+// clang-format on
     }
   }
 
index 460d8ff29397ce19ac9587bc995e296604457a8b..9993b0aa174b4db08668ea4367d329f0ae01476b 100644 (file)
@@ -647,12 +647,14 @@ protected:
 
   NCollection_Sequence<Handle(Graphic3d_CView)> mySubviews; //!< list of child views
   Graphic3d_CView*              myParentView;               //!< back-pointer to the parent view
+// clang-format off
   Standard_Boolean              myIsSubviewComposer;        //!< flag to skip rendering of viewer contents
   Aspect_TypeOfTriedronPosition mySubviewCorner;            //!< position within parent view
   Graphic3d_Vec2i               mySubviewTopLeft;           //!< subview top-left position relative to parent view
   Graphic3d_Vec2i               mySubviewMargins;           //!< subview margins in pixels
   Graphic3d_Vec2d               mySubviewSize;              //!< subview size
   Graphic3d_Vec2d               mySubviewOffset;            //!< subview corner offset within parent view
+// clang-format on
 
   Handle(Graphic3d_StructureManager) myStructureManager;
   Handle(Graphic3d_Camera)           myCamera;
@@ -665,8 +667,10 @@ protected:
   Graphic3d_TypeOfBackfacingModel    myBackfacing;
   Graphic3d_TypeOfVisualization      myVisualization;
 
+// clang-format off
   Graphic3d_ZLayerId      myZLayerTarget;      //!< ZLayerId for redrawing the content of specific zlayers.
   Standard_Boolean        myZLayerRedrawMode;  //!< If true redraws single layer, otherwise redraws group of layers.
+// clang-format on
 
   Quantity_ColorRGBA           myBgColor;
   Handle(Graphic3d_TextureMap) myBackgroundImage;
@@ -679,11 +683,13 @@ protected:
   Standard_Boolean             myToUpdateSkydome;
 
   Handle(Aspect_XRSession) myXRSession;
+// clang-format off
   Handle(Graphic3d_Camera) myBackXRCamera;       //!< camera projection parameters to restore after closing XR session (FOV, aspect and similar)
   Handle(Graphic3d_Camera) myBaseXRCamera;       //!< neutral camera orientation defining coordinate system in which head tracking is defined
   Handle(Graphic3d_Camera) myPosedXRCamera;      //!< transient XR camera orientation with tracked head orientation applied (based on myBaseXRCamera)
   Handle(Graphic3d_Camera) myPosedXRCameraCopy;  //!< neutral camera orientation copy at the beginning of processing input
   Standard_Real            myUnitFactor;         //!< unit scale factor defined as scale factor for m (meters)
+// clang-format on
 
 };
 
index 2674c37c04ad40cb377eec2aa32b280c285791d8..1c95caf25ab95ec1844d77e86c4e91966ea39856 100644 (file)
@@ -870,7 +870,9 @@ private:
   Aspect_FrustumLRBT<Standard_Real> myCustomFrustumL; //!< left  custom frustum
   Aspect_FrustumLRBT<Standard_Real> myCustomFrustumR; //!< right custom frustum
   Standard_Boolean myIsCustomProjMatM;  //!< flag indicating usage of custom projection matrix
+// clang-format off
   Standard_Boolean myIsCustomProjMatLR; //!< flag indicating usage of custom stereo projection matrices
+// clang-format on
   Standard_Boolean myIsCustomFrustomLR; //!< flag indicating usage of custom stereo frustums
 
   mutable TransformMatrices<Standard_Real>      myMatricesD;
index 637ccae83f0765b6ffcf8e266f330c320c53e094..85b4c9639fe2530a66c99607d0b5f112101025cb 100644 (file)
@@ -26,8 +26,10 @@ public:
 
   Graphic3d_Vec2i TotalSize; //!< total size of the View area, in pixels
   Graphic3d_Vec2i TileSize;  //!< size of the Tile, in pixels
+// clang-format off
   Graphic3d_Vec2i Offset;    //!< the lower-left corner of the Tile relative to the View area (or upper-left if IsTopDown is true), in pixels
   bool            IsTopDown; //!< indicate the offset coordinate system - lower-left (default) or top-down
+// clang-format on
 
 public:
 
index 981851ca72b4556066dd0dbabe1252fd49522669..db10db2c2443e5ef6cd486dcbbb530cf1b6a05df 100755 (executable)
@@ -415,6 +415,7 @@ private:
 private:
 
   Handle(Graphic3d_AspectFillArea3d) myAspect;    //!< fill area aspect
+// clang-format off
   Handle(Graphic3d_ClipPlane)   myNextInChain;    //!< next     plane in a chain of planes defining logical AND operation
   Graphic3d_ClipPlane*          myPrevInChain;    //!< previous plane in a chain of planes defining logical AND operation
   TCollection_AsciiString myId;                   //!< resource id
@@ -422,6 +423,7 @@ private:
   Graphic3d_Vec4d         myEquation;             //!< plane equation vector
   Graphic3d_Vec4d         myEquationRev;          //!< reversed plane equation
   Standard_Integer        myChainLenFwd;          //!< chain length in forward direction (including this item)
+// clang-format on
   unsigned int            myFlags;                //!< capping flags
   unsigned int            myEquationMod;          //!< modification counter for equation
   unsigned int            myAspectMod;            //!< modification counter of aspect
index 0566c97c844cd7456f3f9d1d3a25adc6c75bc627..5cb5c059e9ce8a27a827ecfd1dc983f84ca7af06 100644 (file)
@@ -93,8 +93,10 @@ public:
 protected:
 
   Graphic3d_CubeMapSide myCurrentSide;  //!< Iterator state
+// clang-format off
   Standard_Boolean      myEndIsReached; //!< Indicates whether end of iteration has been reached or hasn't
   Standard_Boolean      myZIsInverted;  //!< Indicates whether Z axis is inverted that allows to synchronize vertical flip of cubemap
+// clang-format on
 
 };
 
index a35404488b452ac74037b4e8efa353f9902c4b3e..54b267c915fb39a44821f9038d012014cc59ab22 100644 (file)
@@ -296,6 +296,7 @@ protected:
 
   // for caching clip points projections onto viewing area normals once per traverse
   // ORDER: LEFT, RIGHT, BOTTOM, TOP, NEAR, FAR
+// clang-format off
   Standard_Real myMaxClipProjectionPts[PlanesNB]; //!< Max view volume's vertices projections onto its normals
   Standard_Real myMinClipProjectionPts[PlanesNB]; //!< Min view volume's vertices projections onto its normals
 
@@ -303,6 +304,7 @@ protected:
   // ORDER: E0, E1, E2
   Standard_Real myMaxOrthoProjectionPts[3]; //!< Max view volume's vertices projections onto normalized dimensions of AABB
   Standard_Real myMinOrthoProjectionPts[3]; //!< Min view volume's vertices projections onto normalized dimensions of AABB
+// clang-format on
 
   Standard_Boolean myIsProjectionParallel;
 
index 99fb7346978ff6d236c36407661e3dcc99c15a4b..8a4c851b3e0974de3cd0591e87ff2227fdfddb0b 100644 (file)
@@ -271,7 +271,9 @@ TCollection_AsciiString Graphic3d_FrameStats::FormatStats (Graphic3d_RenderingPa
 {
   const Standard_Integer aValWidth = 5;
   std::stringstream aBuf;
+// clang-format off
   const Standard_Boolean isCompact = theFlags == Graphic3d_RenderingParams::PerfCounters_FrameRate; // only FPS is displayed
+// clang-format on
   const Graphic3d_FrameStatsData& aStats = LastDataFrame();
   if (myIsLongLineFormat
    && (theFlags & Graphic3d_RenderingParams::PerfCounters_FrameRate) != 0
index 8fde94fd8bfdeb1c4df5bf1bf1d3d06adc4366b5..244d343aacd0e7be816f8e71569993385d702430 100644 (file)
@@ -129,12 +129,14 @@ protected:
   Standard_Real    myFrameStartTime;          //!< time at the beginning of frame redraw
   Standard_Real    myFrameDuration;           //!< frame duration
   Standard_Real    myUpdateInterval;          //!< interval to update meters
+// clang-format off
   Standard_Size    myFpsFrameCount;           //!< FPS counter (within short measurement time slice)
   NCollection_Array1<Graphic3d_FrameStatsData> myCounters; //!< data frames history
   Graphic3d_FrameStatsDataTmp myCountersTmp;  //!< data frame values filled to be filled between FrameStart() and FrameEnd() calls
   Graphic3d_FrameStatsData    myCountersMax;  //!< data frame values with absolute maximum values in the history
   Standard_Integer myLastFrameIndex;          //!< last data frame index
   Standard_Boolean myIsLongLineFormat;        //!< prefer longer lines over greater number of lines
+// clang-format on
 
 };
 
index 3a0a6264953ccbb87ba69876c5ba8383dcd58fd2..8fbef10b0212f4779aa2cdf4012b4f223bf6543b 100644 (file)
@@ -208,10 +208,12 @@ public:
 
 protected:
 
+// clang-format off
   MinMaxValuesCallback myCubicAxesCallback; //!< Callback function to define boundary box of displayed objects
 
   TCollection_AsciiString myNamesFont;  //!< Font name of names of axes: Courier, Arial, ...
   Font_FontAspect         myNamesStyle; //!< Style of names of axes: OSD_FA_Regular, OSD_FA_Bold,..
+// clang-format on
   Standard_Integer        myNamesSize;  //!< Size of names of axes: 8, 10,..
 
 protected:
index bf82b2fdb57a14e60bafe0cfa088fe5942aa9bdc..9a04f0291321d1597bac43871c8593aae2c1c546 100644 (file)
@@ -390,7 +390,9 @@ Standard_Real Graphic3d_Layer::considerZoomPersistenceObjects (Standard_Integer
       }
 
       const Standard_Boolean isBigObject  = (Abs (aConvertedMaxX - aConvertedMinX) > 2.0)  // width  of zoom pers. object greater than width  of window
+// clang-format off
                                          || (Abs (aConvertedMaxY - aConvertedMinY) > 2.0); // height of zoom pers. object greater than height of window
+// clang-format on
       const Standard_Boolean isAlreadyInScreen = (aConvertedMinX > -1.0 && aConvertedMinX < 1.0)
                                               && (aConvertedMaxX > -1.0 && aConvertedMaxX < 1.0)
                                               && (aConvertedMinY > -1.0 && aConvertedMinY < 1.0)
index 584cb4c3fd1aebb3bd113e8207eed0d8000c29c8..c260de662a479ab14d1f5665161155520f4818be 100644 (file)
@@ -184,6 +184,7 @@ public:
 
 protected:
   NCollection_IndexedDataMap<Handle(Graphic3d_CLight), Standard_Size>
+// clang-format off
                           myLights;                 //!< list of light sources with their cached state (revision)
   Graphic3d_Vec4          myAmbient;                //!< cached value of cumulative ambient color
   TCollection_AsciiString myKeyEnabledLong;         //!< key identifying the list of enabled light sources by their type
@@ -192,6 +193,7 @@ protected:
   Standard_Integer        myLightTypesEnabled[Graphic3d_TypeOfLightSource_NB]; //!< counters per each light source type enabled in the list
   Standard_Integer        myNbEnabled;              //!< number of enabled light sources, excluding ambient
   Standard_Integer        myNbCastShadows;          //!< number of enabled light sources casting shadows
+// clang-format on
   Standard_Size           myRevision;               //!< current revision of light source set
   Standard_Size           myCacheRevision;          //!< revision of cached state
 };
index fe8e60b1304caf7208b486f43112da4194601077..939dcce8ecd35b62e16aaceab44201531b3d233b 100755 (executable)
@@ -97,10 +97,12 @@ private:
 
   TCollection_AsciiString       myImageId;      //!< resource identifier
   TCollection_AsciiString       myImageAlphaId; //!< resource identifier
+// clang-format off
   Handle(TColStd_HArray1OfByte) myBitMap;       //!< bytes array with bitmap definition (for compatibility with old code)
   Handle(Image_PixMap)          myImage;        //!< full-color  marker definition
   Handle(Image_PixMap)          myImageAlpha;   //!< alpha-color marker definition (for dynamic hi-lighting)
   Standard_Integer              myMargin;       //!< extra margin from boundaries for bitmap -> point sprite conversion, 1 px by default
+// clang-format on
   Standard_Integer              myWidth;        //!< marker width
   Standard_Integer              myHeight;       //!< marker height
 
index b04be8d98bfa7c0e4b1b5de9857e6e48229ceb2b..9696f09e8ae38868288efcd184b5f57dbb647691 100644 (file)
@@ -29,8 +29,10 @@ namespace
     Standard_ShortReal       TransparencyCoef;
     Standard_ShortReal       RefractionIndex;
     Standard_ShortReal       Shininess;
+// clang-format off
     Standard_ShortReal       AmbientCoef;  //!< coefficient for Graphic3d_MaterialAspect::SetColor()
     Standard_ShortReal       DiffuseCoef;  //!< coefficient for Graphic3d_MaterialAspect::SetColor()
+// clang-format on
     Graphic3d_TypeOfMaterial MaterialType;
     Graphic3d_NameOfMaterial MaterialName;
 
index 68200cadc250699a6d4dc070890f87319e56a89b..2cf8efc4a55ef7e436cdd127afc165fa8ddf7a00 100644 (file)
@@ -105,8 +105,10 @@ protected:
   Standard_Real                   myDuration;          //!< stream duration
   Standard_Integer                myFront;             //!< index of front texture
   Standard_Boolean                myToPresentFrame;    //!< flag
+// clang-format off
   Standard_Boolean                myIsPlanarYUV;       //!< front frame contains planar YUV data or native texture format
   Standard_Boolean                myIsFullRangeYUV;    //!< front frame defines full-range or reduced-range YUV
+// clang-format on
 
 };
 
index d0ce9217c2fda8d6c11b4f30f1bcf50ccf60b33c..4a29f73c0a8458dffd0af7e346bc76df1fb13ce1 100644 (file)
@@ -190,6 +190,7 @@ public:
 
 public: //! @name general parameters
 
+// clang-format off
   Graphic3d_RenderingMode           Method;                      //!< specifies rendering mode, Graphic3d_RM_RASTERIZATION by default
   Graphic3d_TypeOfShadingModel      ShadingModel;                //!< specified default shading model, Graphic3d_TypeOfShadingModel_Phong by default
   Graphic3d_RenderTransparentMethod TransparencyMethod;          //!< specifies rendering method for transparent graphics
@@ -284,6 +285,7 @@ public: //! @name on-screen display parameters
   Standard_Boolean                  ToShowStats;                 //!< display performance statistics, FALSE by default;
                                                                  //!  note that counters specified within CollectedStats will be updated nevertheless
                                                                  //!  of visibility of widget managed by ToShowStats flag (e.g. stats can be retrieved by application for displaying using other methods)
+// clang-format on
 
 };
 
index 8650a554dfcd70ed46e2d24dda5a1562a3ae9cf7..397316382778abc4ea2f00729d4a9efb8ced0f08 100644 (file)
@@ -869,7 +869,9 @@ static TCollection_AsciiString prepareGeomMainSrc (Graphic3d_ShaderObject::Shade
       EOL"  float aQuadArea = abs (aSideB.x * aSideC.y - aSideB.y * aSideC.x);"
       EOL"  vec3 aLenABC    = vec3 (length (aSideA), length (aSideB), length (aSideC));"
       EOL"  vec3 aHeightABC = vec3 (aQuadArea) / aLenABC;"
+// clang-format off
       EOL"  aHeightABC = max (aHeightABC, vec3 (10.0 * occLineWidth));" // avoid shrunk presentation disappearing at distance
+// clang-format on
       EOL"  float aQuadModeHeightC = occIsQuadMode ? occLineWidth + 1.0 : 0.0;";
   }
 
index b0531f53f1ca2d736aa2a7d1da845d675552153f..b0d0b49cf5ca439786c770da39e4cb79d3bdf4a9 100644 (file)
@@ -220,7 +220,9 @@ protected:
   Standard_Boolean myHasFlatShading;      //!< flag indicating flat shading usage
   Standard_Boolean myToReverseDFdxSign;   //!< flag to reverse flat shading normal (workaround)
   Standard_Boolean mySetPointSize;        //!< always set gl_PointSize variable
+// clang-format off
   Standard_Boolean myUseRedAlpha;         //!< use RED channel instead of ALPHA (e.g. GAPI supports only GL_RED textures and not GL_ALPHA)
+// clang-format on
   Standard_Boolean myToEmulateDepthClamp; //!< emulate depth clamping in GLSL program
   Standard_Boolean mySRgbState;           //!< track sRGB state
 
index 5432d1eb8cb3a998528b5656acd741a4dc58550f..db92edb39ee178b06f01d2dec98be69ad9041481 100755 (executable)
@@ -218,6 +218,7 @@ private:
   Graphic3d_ShaderObjectList    myShaderObjects; //!< the list of attached shader objects
   Graphic3d_ShaderVariableList  myVariables;     //!< the list of custom uniform variables
   Graphic3d_ShaderAttributeList myAttributes;    //!< the list of custom vertex attributes
+// clang-format off
   TCollection_AsciiString       myHeader;        //!< GLSL header with version code and used extensions
   Standard_Integer              myNbLightsMax;   //!< length of array of light sources (THE_MAX_LIGHTS)
   Standard_Integer              myNbShadowMaps;  //!< length of array of shadow maps (THE_NB_SHADOWMAPS)
@@ -228,6 +229,7 @@ private:
   Standard_Boolean              myHasDefSampler; //!< flag indicating that program defines default texture sampler occSampler0
   Standard_Boolean              myHasAlphaTest;       //!< flag indicating that Fragment Shader performs alpha test
   Standard_Boolean              myIsPBR;         //!< flag indicating that program defines functions and variables used in PBR pipeline
+// clang-format on
 
 };
 
index e31d1ccbd38f044aa9d8ae6a1203f53110d78a95..93be8ecb5f419eeb983b4a977722fece6eeda08a 100644 (file)
@@ -131,6 +131,7 @@ private:
 
 private:
 
+// clang-format off
   Graphic3d_Vec4                     myGenPlaneS;       //!< texture coordinates generation plane S
   Graphic3d_Vec4                     myGenPlaneT;       //!< texture coordinates generation plane T
   Graphic3d_Vec2                     myScale;           //!< texture coordinates scale factor vector; (1,1) by default
@@ -145,6 +146,7 @@ private:
   Standard_ShortReal                 myRotAngle;        //!< texture coordinates rotation angle in degrees, 0 by default
   Standard_Boolean                   myToModulate;      //!< flag to modulate texture with material color, FALSE by default
   Standard_Boolean                   myToRepeat;        //!< flag to repeat (true) or wrap (false) texture coordinates out of [0,1] range
+// clang-format on
 
 };
 
index fe485ac30559a8045e5611f4a1132b8611f228a5..fd32d280f13a315f677736ce2a2e2636f9ec70eb 100644 (file)
@@ -147,6 +147,7 @@ protected:
 protected:
 
   Handle(Graphic3d_TextureParams) myParams;     //!< associated texture parameters
+// clang-format off
   TCollection_AsciiString         myTexId;      //!< unique identifier of this resource (for sharing graphic resource); should never be modified outside constructor
   Handle(Image_PixMap)            myPixMap;     //!< image pixmap - as one of the ways for defining the texture source
   OSD_Path                        myPath;       //!< image file path - as one of the ways for defining the texture source
@@ -155,6 +156,7 @@ protected:
   Standard_Boolean                myIsColorMap; //!< flag indicating color nature of values within the texture
   Standard_Boolean                myIsTopDown;  //!< Stores rows's memory layout
   Standard_Boolean                myHasMipmaps; //!< Indicates whether mipmaps should be generated or not
+// clang-format on
 
 };
 
index faccfceafbb1c5ad6c65e28ec65758ec503f8c0b..89de85e18f7ec18828325aa35f3f9b6e07dfb190 100644 (file)
@@ -359,7 +359,9 @@ public:
     Handle(Graphic3d_Camera) aProxyCamera = theCamera;
     if (IsOrthoPers() && !aProxyCamera->IsOrthographic())
     {
+// clang-format off
       aProxyCamera = new Graphic3d_Camera(*theCamera); // If OrthoPers, copy camera and set to orthographic projection
+// clang-format on
       aProxyCamera->SetProjectionType (Graphic3d_Camera::Projection_Orthographic);
     }
 
index 9c3cdf1f372e65333bb90c70f178a943f339ef7c..877bef7383b1c4602267dde4fdd6a3c307944b84 100644 (file)
@@ -190,6 +190,7 @@ protected:
   TCollection_AsciiString     myName;                  //!< user-provided name
   Handle(Graphic3d_LightSet)  myLights;                //!< lights list
   Handle(TopLoc_Datum3D)      myOriginTrsf;            //!< transformation to the origin
+// clang-format off
   gp_XYZ                      myOrigin;                //!< the origin of all objects within the layer
   Standard_Real               myCullingDistance;       //!< distance to discard objects
   Standard_Real               myCullingSize;           //!< size to discard objects
@@ -201,6 +202,7 @@ protected:
   Standard_Boolean            myToEnableDepthWrite;    //!< option to enable write depth values
   Standard_Boolean            myToClearDepth;          //!< option to clear depth values before drawing the layer
   Standard_Boolean            myToRenderInDepthPrepass;//!< option to render layer within depth pre-pass
+// clang-format on
 
 };
 
index 4507728bd2d100d44d42c2d35c7f59c9fc0bf566..75b35f5ea6cc78b8c9755f8ed3d3701cebe7c418 100644 (file)
@@ -78,7 +78,9 @@ static const Standard_Integer SIZEUV = 8;
 
 class TableauRejection { 
 public:
+// clang-format off
   Standard_Real **UV;               //-- UV[i][j]     contient le param (U sur Ci) de l intersection de Ci avec C(IndUV[j])
+// clang-format on
   Standard_Integer **IndUV;         //-- IndUV[i][j]  = J0   -> Intersection entre i et J0
   Standard_Integer *nbUV;           //-- nbUV[i][j]   nombre de valeurs pour la ligne i
   Standard_Integer N;
@@ -2119,7 +2121,9 @@ HLRBRep_Data::RejectedPoint (const IntRes2d_IntersectionPoint& PInter,
 
   if (st != TopAbs_OUT) {
     if (Tr2->PositionOnCurve() != IntRes2d_Middle) { // correction de la transition  sur myFE
+// clang-format off
       if (mySameVertex) return Standard_True;        // si intersection a une extremite verticale !
+// clang-format on
 
       Standard_Boolean douteux = Standard_False;
       Standard_Real psav = p2;
index f7dc633b9d6b8dfe1dac5558f1c378ef95482ed2..03ca4a8f49572390ad030a2a2571e3ba28514496 100644 (file)
@@ -3323,9 +3323,11 @@ void HLRBRep_PolyAlgo::TMultiply (Standard_Real& theX,
                                   Standard_Real& theZ,
                                   const Standard_Boolean theVPO) const
 {
+// clang-format off
   Standard_Real Xt = TMat[0][0] * theX + TMat[0][1] * theY + TMat[0][2] * theZ + (theVPO ? 0 : TLoc[0]);//OCC349
   Standard_Real Yt = TMat[1][0] * theX + TMat[1][1] * theY + TMat[1][2] * theZ + (theVPO ? 0 : TLoc[1]);//OCC349
   theZ             = TMat[2][0] * theX + TMat[2][1] * theY + TMat[2][2] * theZ + (theVPO ? 0 : TLoc[2]);//OCC349
+// clang-format on
   theX             = Xt;
   theY             = Yt;
 }
@@ -3339,9 +3341,11 @@ void HLRBRep_PolyAlgo::TTMultiply (Standard_Real& theX,
                                    Standard_Real& theZ,
                                    const Standard_Boolean theVPO) const
 {
+// clang-format off
   Standard_Real Xt = TTMa[0][0] * theX + TTMa[0][1] * theY + TTMa[0][2] * theZ + (theVPO ? 0 : TTLo[0]);//OCC349
   Standard_Real Yt = TTMa[1][0] * theX + TTMa[1][1] * theY + TTMa[1][2] * theZ + (theVPO ? 0 : TTLo[1]);//OCC349
   theZ             = TTMa[2][0] * theX + TTMa[2][1] * theY + TTMa[2][2] * theZ + (theVPO ? 0 : TTLo[2]);//OCC349
+// clang-format on
   theX             = Xt;
   theY             = Yt;
 }
@@ -3355,9 +3359,11 @@ void HLRBRep_PolyAlgo::TIMultiply (Standard_Real& theX,
                                    Standard_Real& theZ,
                                    const Standard_Boolean theVPO) const
 {
+// clang-format off
   Standard_Real Xt = TIMa[0][0] * theX + TIMa[0][1] * theY + TIMa[0][2] * theZ + (theVPO ? 0 : TILo[0]);//OCC349
   Standard_Real Yt = TIMa[1][0] * theX + TIMa[1][1] * theY + TIMa[1][2] * theZ + (theVPO ? 0 : TILo[1]);//OCC349
   theZ             = TIMa[2][0] * theX + TIMa[2][1] * theY + TIMa[2][2] * theZ + (theVPO ? 0 : TILo[2]);//OCC349
+// clang-format on
   theX             = Xt;
   theY             = Yt;
 }
index bdc3fef1849d76a2d545a088b87070a1cfbb194e..6c4a1000bc2307bcc3180648afab5a5adc674663 100644 (file)
@@ -60,7 +60,9 @@ public:
 
   void Closed (const Standard_Boolean flag) { ClosedPolygon = flag; }
 
+// clang-format off
   Standard_Boolean Closed() const { return Standard_False; } // -- Voir si le cas Closed est traitable
+// clang-format on
 
   //! Give the number of Segments in the polyline.
   Standard_Integer NbSegments() const { return NbPntIn - 1; }
index e05653da34b76ea2abf452617e9aaea41f49229c..21974fcc4f093d6d9ff171c02b931d460faaaa16 100644 (file)
@@ -41,9 +41,11 @@ static void HermiteCoeff(const Handle(Geom_BSplineCurve)& BS,
   TColStd_Array1OfReal    Knots(1,BS->NbKnots());         
   TColStd_Array1OfReal    Weights(1,BS->NbPoles()); 
   TColStd_Array1OfInteger Mults(1,BS->NbKnots());
+// clang-format off
   Standard_Integer        Degree,Index0,Index1;                     // denominateur value for u=0 & u=1
   Standard_Real           Denom0,Denom1,                            // denominator value for u=0 & u=1
                           Deriv0,Deriv1 ;                           // derivative denominator value for u=0 & 1
+// clang-format on
   Standard_Boolean        Periodic;
   
   BS->Knots(Knots);
@@ -79,8 +81,10 @@ static void HermiteCoeff(const Handle(Geom2d_BSplineCurve)& BS,
   TColStd_Array1OfInteger Mults(1,BS->NbKnots());
   Standard_Integer        Degree,Index0,Index1;
   Standard_Real           Denom0,Denom1,                            // denominateur value for u=0 & u=1
+// clang-format off
                           Deriv0,Deriv1 ;                           // denominator value for u=0 & u=1
   Standard_Boolean        Periodic;                                 // derivative denominatur value for u=0 & 1
+// clang-format on
   
   BS->Knots(Knots);
   BSplCLib::Reparametrize(0.0,1.0,Knots);                           //affinity on the nodal vector
@@ -129,10 +133,12 @@ static void Polemax(const TColgp_Array1OfPnt2d& Poles,
 {
 //  Standard_Integer i,index=0;
   Standard_Integer i;
+// clang-format off
   Standard_Real Max,Min;                                         //intermediate value of max and min ordinates
   min=0;max=0;                                                   //initialisation of the indices
   
   Min=Poles(0).Y();                                              //initialisation of the intermediate value
+// clang-format on
   Max=Poles(0).Y();
   for (i=1;i<=(Poles.Length()-1);i++){
     if (Poles(i).Y()<Min){
@@ -167,10 +173,12 @@ static void PolyTest(const TColStd_Array1OfReal&         Herm,
   Standard_Integer               index,i,                
                                  I1=0,I2=0,I3=0,I4=0;    //knots index
   TColgp_Array1OfPnt2d           Polesinit(0,3) ;        
+// clang-format off
   Handle(TColStd_HArray1OfReal)  Knots;                  //array of the BSpline knots + the ones inserted
   Standard_Integer               cas=0,mark=0,dercas=0,  //loop marks
                                  min,max;                //Pole min and max indices
   Standard_Real                  Us1,Us2,a;              //boundaries value of the knots to be inserted
+// clang-format on
   
   U4=0.0;U5=1.0;                                         //default value
   if (Ux!=1.0){
@@ -213,7 +221,9 @@ static void PolyTest(const TColStd_Array1OfReal&         Herm,
   //sort of the array of knots
   std::sort (knots.begin(), knots.end());
 
+// clang-format off
   Polesinit(0).SetCoord(0.0,Herm(0));                 //poles of the Hermite polynome in the BSpline form
+// clang-format on
   Polesinit(1).SetCoord(0.0,Herm(0)+Herm(1)/3.0);
   Polesinit(2).SetCoord(0.0,Herm(3)-Herm(2)/3.0);
   Polesinit(3).SetCoord(0.0,Herm(3));
@@ -388,10 +398,12 @@ static void PolyTest(const TColStd_Array1OfReal&        Herm,
   Standard_Integer               index,i,
                                  I1=0,I2=0,I3=0,I4=0;    //knots index
   TColgp_Array1OfPnt2d           Polesinit(0,3) ;
+// clang-format off
   Handle(TColStd_HArray1OfReal)  Knots;                  //array of the BSpline knots + the ones inserted
   Standard_Integer               cas=0,mark=0,dercas=0,  //loop marks
                                  min,max;                //Pole min and max indices
   Standard_Real                  Us1,Us2,a;              //boundaries value of the knots to be inserted
+// clang-format on
   
   U4=0.0;U5=1.0;                                         //default value
   if (Ux!=1.0){
@@ -437,7 +449,9 @@ static void PolyTest(const TColStd_Array1OfReal&        Herm,
   //sort of the array of knots
   std::sort (knots.begin(), knots.end());
 
+// clang-format off
   Polesinit(0).SetCoord(0.0,Herm(0));              //poles of the Hermite polynome in the BSpline form
+// clang-format on
   Polesinit(1).SetCoord(0.0,Herm(0)+Herm(1)/3.0);
   Polesinit(2).SetCoord(0.0,Herm(3)-Herm(2)/3.0);
   Polesinit(3).SetCoord(0.0,Herm(3));
@@ -658,6 +672,7 @@ Handle(Geom2d_BSplineCurve) Hermit::Solution(const Handle(Geom_BSplineCurve)& BS
   Standard_Integer           zeroboucle = 0 ;
   HermiteCoeff(BS,Herm);                             //computation of the Hermite coefficient
 
+// clang-format off
   Poles(1).SetCoord(0.0,Herm(0));                    //poles of the Hermite polynome in the BSpline form
   Poles(2).SetCoord(0.0,Herm(0)+Herm(1)/3.0);
   Poles(3).SetCoord(0.0,Herm(3)-Herm(2)/3.0);
@@ -671,6 +686,7 @@ Handle(Geom2d_BSplineCurve) Hermit::Solution(const Handle(Geom_BSplineCurve)& BS
   Handle(Geom2d_BSplineCurve)  BS2=new Geom2d_BSplineCurve(Poles,Knots,Multiplicities,3);//BSpline without modif
 
   PolyTest(Herm,BS,Upos1,Upos2,zeroboucle,Precision::Confusion(),Precision::Confusion(),1.0,0.0);//computation of the positivity knots
+// clang-format on
   InsertKnots(BS2,Upos1,Upos2);                      //and insertion
     
   if (Upos1!=0.0)
@@ -687,12 +703,14 @@ Handle(Geom2d_BSplineCurve) Hermit::Solution(const Handle(Geom_BSplineCurve)& BS
     Uy=Upos2;
   }
 
+// clang-format off
   Herm(0)=BS2->Pole(1).Y();                           //computation of the Hermite coefficient on the
   Herm(1)=3*(BS2->Pole(2).Y()-BS2->Pole(1).Y());      //positive BSpline
   Herm(2)=3*(BS2->Pole(BS2->NbPoles()).Y()-BS2->Pole(BS2->NbPoles()-1).Y());
   Herm(3)=BS2->Pole(BS2->NbPoles()).Y();
   
   PolyTest(Herm,BS,Utol1,Utol2,boucle,TolPoles,TolKnots,Ux,Uy);          //computation of the tolerance knots
+// clang-format on
   InsertKnots(BS2,Utol1,Utol2);                                          //and insertion
   
   if (boucle==2){                                     //insertion of two knots
@@ -748,6 +766,7 @@ Handle(Geom2d_BSplineCurve) Hermit::Solution(const Handle(Geom2d_BSplineCurve)&
   Standard_Integer           zeroboucle = 0 ;
   HermiteCoeff(BS,Herm);                             //computation of the Hermite coefficient
 
+// clang-format off
   Poles(1).SetCoord(0.0,Herm(0));                    //poles of the Hermite polynome in the BSpline form
   Poles(2).SetCoord(0.0,Herm(0)+Herm(1)/3.0);
   Poles(3).SetCoord(0.0,Herm(3)-Herm(2)/3.0);
@@ -761,6 +780,7 @@ Handle(Geom2d_BSplineCurve) Hermit::Solution(const Handle(Geom2d_BSplineCurve)&
   Handle(Geom2d_BSplineCurve)  BS2=new Geom2d_BSplineCurve(Poles,Knots,Multiplicities,3);//BSpline without modif
 
   PolyTest(Herm,BS,Upos1,Upos2,zeroboucle,Precision::Confusion(),Precision::Confusion(),1.0,0.0);//computation of the positivity knots
+// clang-format on
   InsertKnots(BS2,Upos1,Upos2);                      //and insertion
     
   if (Upos1!=0.0)
@@ -777,12 +797,14 @@ Handle(Geom2d_BSplineCurve) Hermit::Solution(const Handle(Geom2d_BSplineCurve)&
     Uy=Upos2;
   }
   
+// clang-format off
   Herm(0)=BS2->Pole(1).Y();                           //computation of the Hermite coefficient on the
   Herm(1)=3*(BS2->Pole(2).Y()-BS2->Pole(1).Y());      //positive BSpline
   Herm(2)=3*(BS2->Pole(BS2->NbPoles()).Y()-BS2->Pole(BS2->NbPoles()-1).Y());
   Herm(3)=BS2->Pole(BS2->NbPoles()).Y();
   
   PolyTest(Herm,BS,Utol1,Utol2,boucle,TolPoles,TolKnots,Ux,Uy);          //computation of the tolerance knots
+// clang-format on
   InsertKnots(BS2,Utol1,Utol2);                                          //and insertion
   
   if (boucle==2){                                      //insertion of two knots
@@ -840,6 +862,7 @@ void Hermit::Solutionbis(const Handle(Geom_BSplineCurve)& BS,
   Standard_Integer           zeroboucle = 0 ;
   HermiteCoeff(BS,Herm);                             //computation of the Hermite coefficient
   
+// clang-format off
   Poles(1).SetCoord(0.0,Herm(0));                    //poles of the Hermite polynome in the BSpline form
   Poles(2).SetCoord(0.0,Herm(0)+Herm(1)/3.0);
   Poles(3).SetCoord(0.0,Herm(3)-Herm(2)/3.0);
@@ -853,6 +876,7 @@ void Hermit::Solutionbis(const Handle(Geom_BSplineCurve)& BS,
                                                                                          //BSpline without modif
   
   PolyTest(Herm,BS,Upos1,Upos2,zeroboucle,Precision::Confusion(),Precision::Confusion(),1.0,0.0);//computation of the positivity knots
+// clang-format on
   InsertKnots(BS2,Upos1,Upos2);                      //and insertion
   
   if (Upos1!=0.0)
@@ -869,12 +893,14 @@ void Hermit::Solutionbis(const Handle(Geom_BSplineCurve)& BS,
     Uy=Upos2;
   }
   
+// clang-format off
   Herm(0)=BS2->Pole(1).Y();                           //computation of the Hermite coefficient on the
   Herm(1)=3*(BS2->Pole(2).Y()-BS2->Pole(1).Y());      //positive BSpline
   Herm(2)=3*(BS2->Pole(BS2->NbPoles()).Y()-BS2->Pole(BS2->NbPoles()-1).Y());
   Herm(3)=BS2->Pole(BS2->NbPoles()).Y();
   
   PolyTest(Herm,BS,Utol1,Utol2,boucle,TolPoles,TolKnots,Ux,Uy);          //computation of the tolerance knots
+// clang-format on
   InsertKnots(BS2,Utol1,Utol2);                                          //and insertion
   
   if (boucle==2){                                      //insertion of two knots
index 27730d18e61898f164fcad32291dfd1d3a9de05b..387c78fb6b24d7817cceb5e6f7167a31caf429fc 100644 (file)
@@ -3376,7 +3376,9 @@ void IFSelect_WorkSession::DumpModel
 void IFSelect_WorkSession::TraceDumpModel
   (const Standard_Integer mode)
 {
+// clang-format off
   Message_Messenger::StreamBuffer sout = Message::SendInfo(); // should it be changed to SendTrace()?
+// clang-format on
   DumpModel (mode, sout);
 //  if      (mode <= 4)  {  DumpModel (mode,sout);  return;  }
 
@@ -3415,7 +3417,9 @@ void IFSelect_WorkSession::DumpEntity
 void IFSelect_WorkSession::TraceDumpEntity
   (const Handle(Standard_Transient)& ent, const Standard_Integer level) const
 {
+// clang-format off
   Message_Messenger::StreamBuffer sout = Message::SendInfo(); // should it be changed to SendTrace()?
+// clang-format on
   DumpEntity (ent, level, sout);
 }
 
index d490868eee5fbf255804002ea1282de85248e4c8..05d06972c6e9fbd70c86638e4403d24e7ad1ac97 100644 (file)
@@ -104,7 +104,9 @@ void  IGESAppli_ToolElementResults::ReadOwnParams
       allNbResultDataLocs->SetValue (nume,nrl);
     if (PR.ReadInts (PR.CurrentList(nrl), "Result data locations", rdrl))
       allResultDataLoc->SetValue (nume,rdrl);
+// clang-format off
     PR.ReadInteger (PR.Current(), "Nb. of result data locations", numv); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
     if (PR.ReadReals (PR.CurrentList(numv), "Result Data", vres))
       allResultData->SetValue(nume,vres);
   }
index 9c79ca3d88c85eae2e4c1febf653421c5e5cca16..f4f88b515b6bfbf8b577de0dd369cd39e54e8979 100644 (file)
@@ -42,11 +42,13 @@ void  IGESBasic_ToolAssocGroupType::ReadOwnParams
   Standard_Integer tempType;
   Handle(TCollection_HAsciiString) tempName;
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadInteger(PR.Current(), "Number of data fields", tempNbData); //szv#4:S4163:12Mar99 `st=` not needed
   else
     tempNbData = 2;
   PR.ReadInteger(PR.Current(), "Type of attached associativity",tempType); //szv#4:S4163:12Mar99 `st=` not needed
   PR.ReadText(PR.Current(), "Name of attached associativity", tempName); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(tempNbData, tempType, tempName);
 }
index ee24ab565ba979212753f5cae7532facf12898ca..6c92c6b2bcbab9265adc24a9cbb6b6c13c2df5ac 100644 (file)
@@ -40,7 +40,9 @@ void  IGESBasic_ToolExternalRefLibName::ReadOwnParams
   //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
   Handle(TCollection_HAsciiString) tempLibName;
   Handle(TCollection_HAsciiString) tempExtRefEntitySymbName;
+// clang-format off
   PR.ReadText(PR.Current(), "Name of Library", tempLibName); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   PR.ReadText(PR.Current(), "External Reference Symbolic Name",
              tempExtRefEntitySymbName); //szv#4:S4163:12Mar99 `st=` not needed
 
index 806b576b20136bb2e7c7a73f7ae62dc885b7d045..047d0d9ffc639d1fb9d2422f11ecffbe9521063b 100644 (file)
@@ -47,7 +47,9 @@ void  IGESBasic_ToolExternalReferenceFile::ReadOwnParams
   if (st && num > 0) tempNames = new Interface_HArray1OfHAsciiString(1, num);
   else  PR.AddFail("Number of list entries: Not Positive");
   if (!tempNames.IsNull())
+// clang-format off
     PR.ReadTexts(PR.CurrentList(num), "External Reference Entity", tempNames); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(tempNames);
index cbcfd4d795f4aed8b6c67eeb05d5dee406ded8b0..d6617c477ed0225fb0ee1d9d0cafd0bbf6aba474 100644 (file)
@@ -41,7 +41,9 @@ void  IGESBasic_ToolName::ReadOwnParams
   Handle(TCollection_HAsciiString) tempName;
   //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
 
+// clang-format off
   PR.ReadInteger(PR.Current(),"Number of property values",tempNbPropertyValues); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   PR.ReadText(PR.Current(),"Name",tempName); //szv#4:S4163:12Mar99 `st=` not needed
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
index 1d04c4492582711a3b3547b0887fe27ee062bc2f..fdbd81a4db04caccdade420f68f796bb0116b022 100644 (file)
@@ -46,7 +46,9 @@ void  IGESBasic_ToolOrderedGroup::ReadOwnParams
   Handle(IGESData_HArray1OfIGESEntity)  EntArray;
 
   if (PR.ReadInteger( PR.Current(), "Count of Entities", nbval)) { //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format off
     PR.ReadEnts (IR,PR.CurrentList(nbval),"Entities",EntArray); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 /*
     EntArray = new IGESData_HArray1OfIGESEntity(1,nbval);
     for (Standard_Integer i = 1;i <= nbval;i++)
index cd890e737c6a5fa6642607dca29b4d967821feec..278b3e5654d90fdead2a0c4fe8d6bd84b701417c 100644 (file)
@@ -47,7 +47,9 @@ void  IGESBasic_ToolOrderedGroupWithoutBackP::ReadOwnParams
   Handle(IGESData_HArray1OfIGESEntity)  EntArray;
 
   if (PR.ReadInteger( PR.Current(), "Count of Entities", nbval)) { //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format off
     PR.ReadEnts (IR,PR.CurrentList(nbval),"Entities",EntArray); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 /*
     EntArray = new IGESData_HArray1OfIGESEntity(1,nbval);
     for (Standard_Integer i = 1;i <= nbval;i++)
index a163f1171cb1c8cb00e23b58e464a50a93b2f0a1..04559aeff75627c455b2530f681f0b84bf23d14f 100644 (file)
@@ -89,8 +89,10 @@ void  IGESBasic_ToolSingleParent::ReadOwnParams
     }
   }
 
+// clang-format off
   if (nbval > 0) PR.ReadEnts (IR,PR.CurrentList(nbval),Msg207,tempChildren); //szv#4:S4163:12Mar99 `st=` not needed
   //st = PR.ReadEnts (IR,PR.CurrentList(nbval),"Child Entities",tempChildren);
+// clang-format on
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(tempNbParentEntities,tempParent,tempChildren);
 }
index 7549e13238f0f84c00e5eb7a695827c8acf4cf93..2c4fd6499434d503f7fc2d570c4a2144d8f6ed94 100644 (file)
@@ -135,6 +135,7 @@ public:
   struct IGESCAFControl_InternalSection
   {
     // Common
+// clang-format off
     ReadMode_BSplineContinuity ReadBSplineContinuity = ReadMode_BSplineContinuity_C1; //<! Manages the continuity of BSpline curves
     ReadMode_Precision ReadPrecisionMode = ReadMode_Precision_File; //<! Reads the precision mode value
     double ReadPrecisionVal = 0.0001; //<! ReadMode_Precision for shape construction (if enabled user mode)
@@ -166,6 +167,7 @@ public:
     WriteMode_PrecisionMode WritePrecisionMode = WriteMode_PrecisionMode_Average; //<! Specifies the mode of writing the resolution value into the IGES file
     double WritePrecisionVal = 0.0001; //<! Resolution value for an IGES file when WriteMode_PrecisionMode is Greatest
     WriteMode_PlaneMode WritePlaneMode = WriteMode_PlaneMode_Plane; //<! Flag to convert plane to the BSline
+// clang-format on
     bool WriteOffsetMode = false; //<! Writing offset curves like BSplines
     bool WriteColor = true; //<! ColorMode is used to indicate write Colors or not
     bool WriteName = true; //<! NameMode is used to indicate write Name or not
index bdcae284d958e51c6639bf9df0390c9a441f175b..53c4a6e8f4815a6ac5fac2acf0fb3da279251658 100644 (file)
@@ -88,6 +88,7 @@ IGESControl_IGESBoundary::IGESControl_IGESBoundary(const IGESToBRep_CurveAndSurf
   if (!Result) {
     mysewd->Clear();
     if (okCurve3d && mysewd3d->NbEdges() > 0) {
+// clang-format off
       Message_Msg Msg1070("IGES_1070");//"Representations in the file are inconsistent. Recomputation from 3d"
       Msg1070.Arg(3);
       myCS.SendWarning(myentity,Msg1070);
@@ -95,6 +96,7 @@ IGESControl_IGESBoundary::IGESControl_IGESBoundary(const IGESToBRep_CurveAndSurf
     }
     else if (okCurve2d && mysewd2d->NbEdges() > 0) {
       Message_Msg Msg1070("IGES_1070");//"Representations in the file are inconsistent. Recomputation from 2d"
+// clang-format on
       Msg1070.Arg(2);
       myCS.SendWarning(myentity,Msg1070);
       mysewd = mysewd2d;
@@ -151,8 +153,10 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
                                                      Handle(ShapeExtend_WireData)& Gsewd) 
 {
   Gsewd                                = new ShapeExtend_WireData;//local translation (for mysewd)
+// clang-format off
   Handle(ShapeExtend_WireData) Gsewd3d = new ShapeExtend_WireData;//local translation (for mysewd3d)
   Handle(ShapeExtend_WireData) Gsewd2d = new ShapeExtend_WireData;//local translation (for mysewd2d)
+// clang-format on
 
   Standard_Boolean revsewd, revnextsewd;
   Standard_Real distmin, precision = myCS.GetEpsGeom() * myCS.GetUnitFactor(), maxtol = myCS.GetMaxTol();
index 93eb955eafaac4717ba9defc08125ff244fe4e2e..f1ab96dc95d3322d4def8becd6ba3e4f98821f68 100644 (file)
@@ -304,7 +304,9 @@ void  IGESControl_Reader::PrintTransferInfo
       for(; aMapCountIter.More(); aMapCountIter.Next()) {
         char mess[80];
         sprintf(mess, aMapCountIter.Key().ToCString(), aMapCountIter.Value());
+// clang-format off
         TF->SendInfo() << mess << std::endl; //dicoCountIter.Value() << dicoCountIter.Name() << std::endl;
+// clang-format on
       }
       break;
     }
index 65c6e71c6b448a4ca62350b6cd87efb702be6061..0c9282dbf8ab9a28e4035fcc139df953122e1229 100644 (file)
@@ -232,7 +232,9 @@ static Handle(IGESData_DefaultSpecific)   speci;
   GS.SetEndMark   (';');
   GS.SetSendName (new TCollection_HAsciiString(Interface_Static::CVal("write.iges.header.product")));
   GS.SetFileName (new TCollection_HAsciiString("Filename.iges"));
+// clang-format off
   GS.SetSystemId (new TCollection_HAsciiString(XSTEP_SYSTEM_VERSION));//#58 rln "MATRA-DATAVISION EUCLID-QUANTUM"
+// clang-format on
   GS.SetInterfaceVersion (gsys);
   GS.SetIntegerBits      ( IntegerSize() );
   GS.SetMaxPower10Single ( RealLast10Exp() );
index d63d9542b4e0ab61e99641323c9828321760d2e0..105cab037be4220e73f0e37c79226c1ca5de6244 100644 (file)
@@ -130,7 +130,9 @@ void IGESData_GlobalSection::Init(const Handle(Interface_ParamSet)& params,
   theDate.Nullify();
   theResolution        = 0.; theMaxCoord          = 0.; hasMaxCoord = Standard_False;
   theAuthorName.Nullify();  theCompanyName.Nullify();
+// clang-format off
   theIGESVersion       = 11;//3 //#66 rln Setting IGES 5.3 by default(To avoid misleading fails below)
+// clang-format on
   theDraftingStandard  = 0;
   theCascadeUnit       = UnitsMethods::GetCasCadeLengthUnit();
   theLastChangeDate.Nullify();  // nouveaute 5.1 (peut etre absente)
index d6215e9e048169c8a46d2ae245a9cb298e9a2b58..d0eea73cd3bfd9c0e33bf431adbea0177fa1e7a5 100644 (file)
@@ -59,9 +59,11 @@ void IGESDefs_ToolAttributeDef::ReadOwnParams
   Standard_Integer fn = ent->FormNumber();
 
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadText(PR.Current(), "Attribute Table Name", aName); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadInteger(PR.Current(), "Attribute List Type", aListType); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   Standard_Boolean st = PR.ReadInteger(PR.Current(), "Number of Attributes", nbval);
   if (st && nbval > 0)
index e3f4f141990ba197de475de314562475ff0e7538..0aeb387dd42ac6bed51e9c388622d38536715942 100644 (file)
@@ -49,7 +49,9 @@ void  IGESDefs_ToolGenericData::ReadOwnParams
   Handle(TColStd_HArray1OfInteger) tempTypes;
   Handle(TColStd_HArray1OfTransient) tempValues;
 
+// clang-format off
   PR.ReadInteger(PR.Current(), "Number of property values", tempNbPropVal); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   PR.ReadText(PR.Current(), "Property Name", tempName); //szv#4:S4163:12Mar99 `st=` not needed
 
index f3b942df64359d76b2ac6b25e79240e497f5726a..8f455f709784bb8a15c415d5bf816c92d695625b 100644 (file)
@@ -48,7 +48,9 @@ void  IGESDefs_ToolMacroDef::ReadOwnParams
 
   PR.ReadText(PR.Current(), "MACRO", macro); //szv#4:S4163:12Mar99 `st=` not needed
 
+// clang-format off
   PR.ReadInteger(PR.Current(), "Entity Type ID", entityTypeID); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   Standard_Integer tempCurrent = PR.CurrentNumber();
   // Counting the no. of language statements.
index 39b183931c1a115b075848a9ac585ef470a88a74..5f1754dc95742d7d737ea9ce27836d2f1c789d5b 100644 (file)
@@ -54,7 +54,9 @@ void IGESDefs_ToolTabularData::ReadOwnParams
   //Standard_Boolean st; //szv#4:S4163:12Mar99 moved down
   Standard_Integer i;
 
+// clang-format off
   PR.ReadInteger(PR.Current(), "Number of Property values", nbProps); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   PR.ReadInteger(PR.Current(), "Property type", propType); //szv#4:S4163:12Mar99 `st=` not needed
 
@@ -74,7 +76,9 @@ void IGESDefs_ToolTabularData::ReadOwnParams
              "Type of independent variables", typesInd); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadInts(PR.CurrentList(nbIndeps),
+// clang-format off
              "No. of values of independent variables", nbValuesInd); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   for (i=1; i<=nbIndeps; i++)
     {
@@ -108,7 +112,9 @@ void IGESDefs_ToolTabularData::ReadOwnParams
   if (nbd > 0) somedeps = new TColStd_HArray1OfReal(1,nbd);
   for (i = 1; i <= nbd; i ++) {
     Standard_Real treal;
+// clang-format off
     PR.ReadReal(PR.Current(), "Value of dependent variable", treal); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
     somedeps->SetValue(i, treal);
   }
   if (nbDeps > 0) valuesDep->SetValue(1,somedeps);
index ffda8406188da91b782d04b113ba75adeffadaf2..9423145289a8c2f4baba4744b032e2e015a64fff 100644 (file)
@@ -58,6 +58,7 @@ void  IGESDimen_ToolAngularDimension::ReadOwnParams
                STANDARD_TYPE(IGESDimen_GeneralNote), note); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity (IR, PR.Current(), "First Witness Entity",
+// clang-format off
                 STANDARD_TYPE(IGESDimen_WitnessLine), firstWitness, Standard_True); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity (IR,PR.Current(),"Second Witness Entity",
@@ -66,6 +67,7 @@ void  IGESDimen_ToolAngularDimension::ReadOwnParams
   PR.ReadXY(PR.CurrentList(1, 2), "Vertex Point Co-ords", vertex); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadReal(PR.Current(), "Radius of Leader arcs", radius); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   PR.ReadEntity(IR, PR.Current(), "First Leader Entity",
                STANDARD_TYPE(IGESDimen_LeaderArrow), firstLeader); //szv#4:S4163:12Mar99 `st=` not needed
index 705065f8b08dbbeaebae83f9dea1e2e2b450d74b..777c692eb0b6f7104f3474878fd7a334ab58ac7c 100644 (file)
@@ -47,11 +47,13 @@ void  IGESDimen_ToolBasicDimension::ReadOwnParams
   gp_XY tempur;
   gp_XY tempul;
 
+// clang-format off
   PR.ReadInteger(PR.Current(),"Number of Property Values",nbPropVal); //szv#4:S4163:12Mar99 `st=` not needed
   PR.ReadXY(PR.CurrentList(1, 2),"Lower Left Corner", templl); //szv#4:S4163:12Mar99 `st=` not needed
   PR.ReadXY(PR.CurrentList(1, 2),"Lower Right Corner", templr); //szv#4:S4163:12Mar99 `st=` not needed
   PR.ReadXY(PR.CurrentList(1, 2),"Upper Right Corner", tempur); //szv#4:S4163:12Mar99 `st=` not needed
   PR.ReadXY(PR.CurrentList(1, 2),"Upper Left Corner", tempul); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(nbPropVal, templl, templr, tempur, tempul);
index b9beb41dd4e136f237aef1d155c60833c3ddd7f4..a8a0042c3ad47fdc0372383ae6f6f95602c1e424 100644 (file)
@@ -49,6 +49,7 @@ void  IGESDimen_ToolCenterLine::ReadOwnParams
   Standard_Integer nbval;
   Handle(TColgp_HArray1OfXY) dataPoints;
 
+// clang-format off
   PR.ReadInteger(PR.Current(), "Interpretation Flag", datatype); //szv#4:S4163:12Mar99 `st=` not needed
 
   Standard_Boolean st = PR.ReadInteger(PR.Current(), "Number of data points", nbval);
@@ -56,6 +57,7 @@ void  IGESDimen_ToolCenterLine::ReadOwnParams
   else  PR.AddFail("Number of data points: Not Positive");
 
   PR.ReadReal(PR.Current(), "Common Z Displacement", zDisplacement); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   if (! dataPoints.IsNull())
     for (Standard_Integer i = 1; i <= nbval; i++)
index 8de88a2e67ffdccf314ac4ceba42ee56d33f23c6..60c602cc138eb003aeb375d034c18421eff039cd 100644 (file)
@@ -53,7 +53,9 @@ void  IGESDimen_ToolCurveDimension::ReadOwnParams
   PR.ReadEntity(IR, PR.Current(), "General Note Entity",
                STANDARD_TYPE(IGESDimen_GeneralNote), note); //szv#4:S4163:12Mar99 `st=` not needed
 
+// clang-format off
   PR.ReadEntity(IR, PR.Current(), "First Curve Entity", firstCurve); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   PR.ReadEntity(IR,PR.Current(),"Second Curve Entity",
                secondCurve,Standard_True); //szv#4:S4163:12Mar99 `st=` not needed
@@ -65,10 +67,12 @@ void  IGESDimen_ToolCurveDimension::ReadOwnParams
                STANDARD_TYPE(IGESDimen_LeaderArrow), secondLeader); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity (IR, PR.Current(), "First Witness Entity",
+// clang-format off
                 STANDARD_TYPE(IGESDimen_WitnessLine), firstWitness, Standard_True); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity (IR,PR.Current(),"Second Witness Entity",
                 STANDARD_TYPE(IGESDimen_WitnessLine), secondWitness, Standard_True); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init
index 6a2ebf953da6ed866492c1173dff217e4cb77bb7..d3aca9a28814487347a55e1f9ce64a82ac54cf38 100644 (file)
@@ -57,9 +57,11 @@ void  IGESDimen_ToolDiameterDimension::ReadOwnParams
                STANDARD_TYPE(IGESDimen_LeaderArrow), firstLeader); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity (IR,PR.Current(),"Second Leader Entity",
+// clang-format off
                 STANDARD_TYPE(IGESDimen_LeaderArrow), secondLeader, Standard_True); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadXY(PR.CurrentList(1, 2), "Arc Center Co-ords", center); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(note, firstLeader, secondLeader, center);
index d23936275369678d62bf5baa358e40c3b9ba57f7..1cc104e158e4da3a186259b6e6aa966839023fd0 100644 (file)
@@ -61,6 +61,7 @@ void  IGESDimen_ToolDimensionDisplayData::ReadOwnParams
   PR.ReadInteger(PR.Current(),"Dimension Type", tempDimType);
   PR.ReadInteger(PR.Current(),"Label Position", tempLabelPos);
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadInteger(PR.Current(),"Character Set", tempCharSet); //szv#4:S4163:12Mar99 `st=` not needed
   else
     tempCharSet = 1;
@@ -81,6 +82,7 @@ void  IGESDimen_ToolDimensionDisplayData::ReadOwnParams
 
   if (PR.DefinedElseSkip())
     PR.ReadInteger(PR.Current(),"Text Place",tempTextPlace); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   else
     tempTextPlace = 0;
 
index 195d146f8ac8a8405701f1b047e8198d324a12ae..0e0c3b5f09effaed4d45e42f8d5b45c0b0028005 100644 (file)
@@ -47,6 +47,7 @@ void  IGESDimen_ToolDimensionTolerance::ReadOwnParams
   Standard_Integer tempPrecision;
 
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadInteger(PR.Current(), "Number of properties", tempNbProps); //szv#4:S4163:12Mar99 `st=` not needed
   else
     tempNbProps = 8;
@@ -65,6 +66,7 @@ void  IGESDimen_ToolDimensionTolerance::ReadOwnParams
   PR.ReadBoolean(PR.Current(), "Sign Suppression Flag",
                 tempSignSupFlag); //szv#4:S4163:12Mar99 `st=` not needed
   PR.ReadInteger(PR.Current(), "Fraction Flag", tempFracFlag); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   PR.ReadInteger(PR.Current(), "Precision", tempPrecision); //szv#4:S4163:12Mar99 `st=` not needed
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
index 3ae37b44fa02b97d36f017e24fd14e88002a8e55..f010dd37db997d631a7649e04a980983994c212c 100644 (file)
@@ -48,6 +48,7 @@ void  IGESDimen_ToolDimensionUnits::ReadOwnParams
   Handle(TCollection_HAsciiString) tempFormatString;
 
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadInteger(PR.Current(), "Number of Properties", tempNbProps); //szv#4:S4163:12Mar99 `st=` not needed
   else
     tempNbProps = 6;
@@ -62,6 +63,7 @@ void  IGESDimen_ToolDimensionUnits::ReadOwnParams
 
   PR.ReadText(PR.Current(), "Format String", tempFormatString); //szv#4:S4163:12Mar99 `st=` not needed
   PR.ReadInteger(PR.Current(), "Fraction Flag", tempFracFlag); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   PR.ReadInteger(PR.Current(), "Precision", tempPrecision); //szv#4:S4163:12Mar99 `st=` not needed
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
index 6ed01db491284c5aa16f33ba70b829e5b18e4cbf..343c86b0d4af4ca15778062b73e82733da63b1cd 100644 (file)
@@ -43,11 +43,13 @@ void  IGESDimen_ToolDimensionedGeometry::ReadOwnParams
   Standard_Integer nbgeom = 0;
   Handle(IGESData_HArray1OfIGESEntity) GeomEntities;
 
+// clang-format off
   PR.ReadInteger(PR.Current(),"Number of Dimensions",tempNbDimen); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadInteger(PR.Current(),"number of entities",nbgeom); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity(IR,PR.Current(),"Dimension Entity",aDimEntity); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   if (nbgeom > 0)
     PR.ReadEnts (IR,PR.CurrentList(nbgeom),
index 5dffe106fd3117d472bc6d4d6e13657501a6cbe9..041c8d0fc05fbfb0a3b3135736888a485d0010b6 100644 (file)
@@ -50,7 +50,9 @@ void  IGESDimen_ToolFlagNote::ReadOwnParams
   Standard_Integer nbval;
   Handle(IGESDimen_HArray1OfLeaderArrow) leaders;
 
+// clang-format off
   PR.ReadXYZ (PR.CurrentList(1, 3), "Lower Left Corner Co-ords", lowerLeft); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   PR.ReadReal(PR.Current(), "Rotation Angle", angle); //szv#4:S4163:12Mar99 `st=` not needed
 
index 834f632d5c8bc9e831ae1d1b38b1ab449acdb0af..f8d18c1f775d7db28bad2f86c0cb84e397e22bb0 100644 (file)
@@ -113,8 +113,10 @@ void  IGESDimen_ToolGeneralNote::ReadOwnParams
          if (PR.DefinedElseSkip())
            {
              // Reading fontCode(Integer, must be positive)
+// clang-format off
              PR.ReadInteger (PR.Current(), "Font Code", fontCode); //szv#4:S4163:12Mar99 `st=` not needed
              // Reading fontEnt(TextFontDef) ?
+// clang-format on
              if (fontCode < 0) {
                fontEntity = GetCasted(IGESGraph_TextFontDef,PR.ParamEntity (IR,curnum));
                if (fontEntity.IsNull()) PR.AddFail ("Font Entity : incorrect reference");
index 139969f747eb86cabab33c75bae58c6b3f82b2d7..abc2d77eec2057729409421b1fc765fb9bc91bd7 100644 (file)
@@ -56,7 +56,9 @@ void  IGESDimen_ToolGeneralSymbol::ReadOwnParams
   Standard_Boolean st = PR.ReadInteger(PR.Current(), "Number of Geometries", num);
   if (!st || num <= 0) PR.AddFail("Number of Geometries: Not Positive");
   if (num > 0) {
+// clang-format off
     PR.ReadEnts (IR,PR.CurrentList(num),"Geometry Entities",tempGeoms); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 /*
     tempGeoms = new IGESData_HArray1OfIGESEntity(1, num);
     for ( i = 1; i <= num; i++)
index 2f641358f06e969131cdf21894fdd61463f7c211..9c4941802881a42d4a57b8d163dfac0f8f422e3e 100644 (file)
@@ -57,10 +57,12 @@ void  IGESDimen_ToolLinearDimension::ReadOwnParams
                STANDARD_TYPE(IGESDimen_LeaderArrow), secondLeader); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity(IR, PR.Current(), "First Witness Entity",
+// clang-format off
                STANDARD_TYPE(IGESDimen_WitnessLine), firstWitness, Standard_True); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity(IR,PR.Current(),"Second Witness Entity",
                STANDARD_TYPE(IGESDimen_WitnessLine), secondWitness, Standard_True); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init (note, firstLeader, secondLeader, firstWitness, secondWitness);
index be0ba61d96b52a1743f8c34dc182c7e5e67af405..209afab502377d6b0b0e205e70e2cef96939d22c 100644 (file)
@@ -56,7 +56,9 @@ void  IGESDimen_ToolNewDimensionedGeometry::ReadOwnParams
   Handle(TColgp_HArray1OfXYZ) tempPoints;
 
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadInteger(PR.Current(), "Number of Dimensions", tempNbDimens); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   else
     tempNbDimens = 1;
 
@@ -79,11 +81,13 @@ void  IGESDimen_ToolNewDimensionedGeometry::ReadOwnParams
       {
        Handle(IGESData_IGESEntity) tempEnt;
        //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format off
        PR.ReadEntity(IR, PR.Current(), "Geometry Entity", tempEnt, (i == num)); // The last one may be Null
        tempGeomEnts->SetValue(i, tempEnt);
 
        Standard_Integer tempInt;
        PR.ReadInteger(PR.Current(), "Dimension Location Flag", tempInt); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
        tempDimLocFlags->SetValue(i, tempInt);
 
        gp_XYZ tempPnt;
index 3dbd10f733ee1e8fd2b14faaf3f9b0deb1d507cb..a68accb4025ce87cc437e98fbab18684a55597dc 100644 (file)
@@ -181,8 +181,10 @@ void  IGESDimen_ToolNewGeneralNote::ReadOwnParams
        if (PR.DefinedElseSkip())
          {
            // Reading fontCode(Integer, must be positive)
+// clang-format off
            PR.ReadInteger(PR.Current(), "Character Set Interpretation Code",charSetCode); //szv#4:S4163:12Mar99 `st=` not needed
            // Reading charSetEnt
+// clang-format on
            if (charSetCode < 0) {
              charSetEntity = PR.ParamEntity (IR,curnum);
              if (charSetEntity.IsNull())
index 7bc0217f305f71cfc627c4b9cba921aa21f019d9..b122002af95bde2c7cb934b5f05ab042052c722b 100644 (file)
@@ -50,7 +50,9 @@ void IGESDimen_ToolPointDimension::ReadOwnParams
                STANDARD_TYPE(IGESDimen_LeaderArrow), leadArr); //szv#4:S4163:12Mar99 `st=` not needed
 
   if (PR.IsParamEntity(PR.CurrentNumber()))
+// clang-format off
     PR.ReadEntity(IR, PR.Current(), "Enclosing entity", tempGeom); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(tempNote, leadArr, tempGeom);
index e3adab3419b22c4e39a999ec3af25adb7f61a1d0..d3eb02707893630e830b7e2550535b5054cc3906 100644 (file)
@@ -59,7 +59,9 @@ void IGESDimen_ToolRadiusDimension::ReadOwnParams
 
   if (ent->FormNumber() == 1)
     PR.ReadEntity(IR, PR.Current(), "Leader arrow 2",
+// clang-format off
                  STANDARD_TYPE(IGESDimen_LeaderArrow), leadArr2, Standard_True); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(tempNote, leadArr, arcCenter, leadArr2);
index 36eaf5f38c38c744ba873a0be6c9144fea728ea5..e5b294ea47d119a9db33c858a4184016f1c19365 100644 (file)
@@ -49,6 +49,7 @@ void  IGESDimen_ToolSection::ReadOwnParams
   Standard_Integer nbval;
   Handle(TColgp_HArray1OfXY) dataPoints;
 
+// clang-format off
   PR.ReadInteger(PR.Current(), "Interpretation Flag", datatype); //szv#4:S4163:12Mar99 `st=` not needed
 
   Standard_Boolean st = PR.ReadInteger(PR.Current(), "Number of data points", nbval);
@@ -57,6 +58,7 @@ void  IGESDimen_ToolSection::ReadOwnParams
   else  PR.AddFail("Number of data points: Not Positive");
 
   PR.ReadReal(PR.Current(), "Common Z Displacement", zDisplacement); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   if (! dataPoints.IsNull())
     for (Standard_Integer i = 1; i <= nbval; i++)
index 8840c0818b84b28be436294884eb68e47d0a6367..aba3e134e7f74a99267610f624a40cce20f76d09 100644 (file)
@@ -55,6 +55,7 @@ void IGESDimen_ToolSectionedArea::ReadOwnParams
   PR.ReadReal(PR.Current(), "Distance between lines", tempDistance);
 
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadReal(PR.Current(), "Angle between line and X axis", tempAngle); //szv#4:S4163:12Mar99 `st=` not needed
   else
     tempAngle = M_PI / 4.0;
@@ -62,6 +63,7 @@ void IGESDimen_ToolSectionedArea::ReadOwnParams
   Standard_Boolean st = PR.ReadInteger(PR.Current(), "Number of island curves", nbislands);
   if (st && nbislands > 0)
     PR.ReadEnts (IR,PR.CurrentList(nbislands),"Island curves",tempIslands); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 /*
     {
       tempIslands = new IGESData_HArray1OfIGESEntity(1, nbislands);
index 836ae655541b5c9ca2656aa01182cc5741960972..fed0db7e568e120ecf2860ffaf567f114b364609 100644 (file)
@@ -49,6 +49,7 @@ void  IGESDimen_ToolWitnessLine::ReadOwnParams
   Standard_Integer nbval;
   Handle(TColgp_HArray1OfXY) dataPoints;
 
+// clang-format off
   PR.ReadInteger(PR.Current(), "Interpretation Flag", datatype); //szv#4:S4163:12Mar99 `st=` not needed
 
   Standard_Boolean st = PR.ReadInteger(PR.Current(), "Number of data points", nbval);
@@ -57,6 +58,7 @@ void  IGESDimen_ToolWitnessLine::ReadOwnParams
   else  PR.AddFail("Number of data points: Not Positive");
 
   PR.ReadReal(PR.Current(), "Common Z Displacement", zDisplacement); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   if (! dataPoints.IsNull())
     for (Standard_Integer i = 1; i <= nbval; i++)
index e4422c96328f825ec9739627bae4130dcb534136..1829c47c83f55c45c703af962d4cfbdd78458488 100644 (file)
@@ -53,6 +53,7 @@ void IGESDraw_ToolConnectPoint::ReadOwnParams
   Handle(IGESGraph_TextDisplayTemplate) tempFunctionTemplate;
   Handle(IGESGraph_TextDisplayTemplate) tempIdentifierTemplate;
 
+// clang-format off
   PR.ReadXYZ(PR.CurrentList(1, 3), "Connect Point Coordinate", tempPoint); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity(IR, PR.Current(), "Display Symbol Geometry Entity",
@@ -61,6 +62,7 @@ void IGESDraw_ToolConnectPoint::ReadOwnParams
   PR.ReadInteger(PR.Current(), "Type Flag", tempTypeFlag); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadInteger(PR.Current(), "Function Flag", tempFunctionFlag); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   PR.ReadText(PR.Current(), "Function Identifier",
              tempFunctionIdentifier); //szv#4:S4163:12Mar99 `st=` not needed
@@ -83,7 +85,9 @@ void IGESDraw_ToolConnectPoint::ReadOwnParams
                 tempFunctionCode); //szv#4:S4163:12Mar99 `st=` not needed
 
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadInteger(PR.Current(), "Swap Flag", tempSwapFlag); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   else tempSwapFlag = 0;  // default
 
   PR.ReadEntity(IR, PR.Current(), "Owner Network Subfigure Entity",
index 17a78651edfc1ebc40fa125cf3eafa49dc055a02..83a0a455dfd6779bc2d43a78870381593c32a91a 100644 (file)
@@ -82,7 +82,9 @@ void IGESDraw_ToolDrawing::ReadOwnParams
   //st = PR.ReadInteger(PR.Current(),"Count of array of Annotation entities", nbval); //szv#4:S4163:12Mar99 moved in if
   if (PR.ReadInteger(PR.Current(),"Count of array of Annotation entities", nbval)) {
     if ( nbval > 0 )
+// clang-format off
       PR.ReadEnts (IR,PR.CurrentList(nbval), "Annotation Entities", annotations); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 /*
       {
        // Reading annotations(HArray1OfIGESEntity)
index b8054e5586281eddb1737786a59789ff863ef6b1..becc110a7bee26c242c29e1822f98e1853810096 100644 (file)
@@ -96,7 +96,9 @@ void IGESDraw_ToolDrawingWithRotation::ReadOwnParams
   //st = PR.ReadInteger(PR.Current(), "Count of array of Annotation entities", nbval); //szv#4:S4163:12Mar99 moved in if
   if (PR.ReadInteger(PR.Current(), "Count of array of Annotation entities", nbval)) {
     if ( nbval > 0 )
+// clang-format off
       PR.ReadEnts (IR,PR.CurrentList(nbval), "Annotation Entities", annotations); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 /*
       {
        // Reading annotations(HArray1OfIGESEntity)
index 3de40a511a8ff5252639d63d24c1c77894208bb0..47be5b24b3fe193aa3d2a7a1284c041939d58e37 100644 (file)
@@ -60,10 +60,12 @@ void IGESDraw_ToolNetworkSubfigure::ReadOwnParams
 
   // Reading definition(Instance of NetworkSubfigureDef)
   PR.ReadEntity(IR, PR.Current(), "Instance of NetworkSubfigureDef",
+// clang-format off
                STANDARD_TYPE(IGESDraw_NetworkSubfigureDef), definition); //szv#4:S4163:12Mar99 `st=` not needed
 
   // Reading translation(XYZ)
   PR.ReadXYZ( PR.CurrentList(1, 3), "Translation data", translation); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   // Reading scale(XYZ)
   if (PR.DefinedElseSkip())        // Reading scale(X)
@@ -90,7 +92,9 @@ void IGESDraw_ToolNetworkSubfigure::ReadOwnParams
 
   // Reading designator(String)
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadText(PR.Current(), "Primary reference designator", designator); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   else PR.AddWarning("Primary reference designator : Null definition");
 
   // Reading textTemplate(Instance of TextDisplayTemplate or Null)
@@ -100,7 +104,9 @@ void IGESDraw_ToolNetworkSubfigure::ReadOwnParams
 
   // Reading nbval(Integer)
   if (PR.DefinedElseSkip()) 
+// clang-format off
     st = PR.ReadInteger(PR.Current(),"Count of Connect Points", nbval); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   else nbval = 0;
   if (st && nbval > 0)
     {
index f7ab2068dd4d520f1aa9ebf65080c38da0c46708..e1d49bc84b87ac3926c3724d0ace5aa39579d1f1 100644 (file)
@@ -58,8 +58,10 @@ void IGESDraw_ToolNetworkSubfigureDef::ReadOwnParams
     if (tempNbEntities1 < 0)
       PR.AddFail("Number Of Child Entities : Not Positive");
     else if (tempNbEntities1 > 0)
+// clang-format off
       PR.ReadEnts(IR,PR.CurrentList(tempNbEntities1),"Child Entities",tempEntities); //szv#4:S4163:12Mar99 `st=` not needed
 //      tempEntities = new IGESData_HArray1OfIGESEntity (1,tempNbEntities1);
+// clang-format on
   }
 
   // Read the HArray1 only if its Length was read without any Error
@@ -77,7 +79,9 @@ void IGESDraw_ToolNetworkSubfigureDef::ReadOwnParams
   PR.ReadInteger(PR.Current(), "Type Flag", tempTypeFlag); //szv#4:S4163:12Mar99 `st=` not needed
 
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadText(PR.Current(), "Primary Reference Designator", tempDesignator); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   else PR.AddWarning("Primary Reference Designator : Null");
 
   Standard_Boolean st = PR.ReadEntity(IR, PR.Current(), "Primary Reference Designator",
index e964038531e8fc3bfa77833007c97e36427fda97..620f29d3f5e25b3896acffee62c32cb0f5022de4 100644 (file)
@@ -51,10 +51,12 @@ void IGESDraw_ToolRectArraySubfigure::ReadOwnParams
   Standard_Real tempColumnSeparation, tempRowSeparation, tempRotationAngle;
   Standard_Integer tempNbColumns, tempNbRows, tempDoDontFlag, tempListCount;
 
+// clang-format off
   PR.ReadEntity(IR, PR.Current(), "Base Entity", tempBaseEntity); //szv#4:S4163:12Mar99 `st=` not needed
 
   if (PR.DefinedElseSkip())
     PR.ReadReal(PR.Current(), "Scale Factor", tempScaleFactor); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   else
     tempScaleFactor = 1.0;      // Setting to default value of 1.0
 
@@ -75,7 +77,9 @@ void IGESDraw_ToolRectArraySubfigure::ReadOwnParams
       PR.AddFail("DO-DONT List Count : Less than Zero");
   }
 
+// clang-format off
   PR.ReadInteger(PR.Current(), "DO-DONT Flag", tempDoDontFlag); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   // Read the HArray1 only if its Length was read without any Error
   if (! tempPositions.IsNull()) {
index a45076a3363b2d0088c9c4d580597564c6ef68db..2d9c6bcebd9a099f09668c377ab69d6383219b70 100644 (file)
@@ -97,7 +97,9 @@ void IGESDraw_ToolSegmentedViewsVisible::ReadOwnParams
        Standard_Integer curnum = PR.CurrentNumber();
 
        //  Reading Color : Value (>0) or Definition (<0 = D.E. Pointer)
+// clang-format off
        PR.ReadInteger( PR.Current(), "array colorValues", tempColorValue); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
        if (tempColorValue < 0) {
          colorValues->SetValue(i, -1);
          tempColorDef = GetCasted(IGESGraph_Color,PR.ParamEntity(IR,curnum));
@@ -110,7 +112,9 @@ void IGESDraw_ToolSegmentedViewsVisible::ReadOwnParams
 
        curnum = PR.CurrentNumber();
        //  Reading Line Font : Value (>0) or Definition (<0 = D.E. Pointer)
+// clang-format off
        PR.ReadInteger( PR.Current(), "array lineFontValues", tempLineFontValue ); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
        if (tempLineFontValue < 0 ) {
          lineFontValues->SetValue(i, -1);
          tempLineFontDef = GetCasted(IGESData_LineFontEntity,
index e9fbd28a724a2f416ffa7694eb8200dba02ff5fd..9417dbdcaa4240bed6c360fea1d3128c251d022e 100644 (file)
@@ -45,6 +45,7 @@ void IGESDraw_ToolView::ReadOwnParams
   Handle(IGESGeom_Plane) tempLeftPlane,   tempTopPlane,  tempRightPlane;
   Handle(IGESGeom_Plane) tempBottomPlane, tempBackPlane, tempFrontPlane;
 
+// clang-format off
   PR.ReadInteger(PR.Current(), "View Number", tempViewNumber); //szv#4:S4163:12Mar99 `st=` not needed
 
   if (PR.DefinedElseSkip())
@@ -69,6 +70,7 @@ void IGESDraw_ToolView::ReadOwnParams
 
   PR.ReadEntity(IR, PR.Current(), "Front Side Of View Volume",
                STANDARD_TYPE(IGESGeom_Plane), tempFrontPlane,  Standard_True); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init
index fdd813ca0c5accd82e240efce578e998f9f34ab2..db33cbd78e183edbaea34b9bdcaa8bdad43cc1f9 100644 (file)
@@ -117,7 +117,9 @@ void IGESDraw_ToolViewsVisibleWithAttr::ReadOwnParams
       Standard_Integer curnum = PR.CurrentNumber();
       //  Reading Color : Value (>0) or Definition (<0 = D.E. Pointer)
       if (PR.DefinedElseSkip())
+// clang-format off
        PR.ReadInteger( PR.Current(), "Color Value", tempColorValue); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
       else {
        tempColorValue = 0;
        PR.AddWarning ("Color Value : undefined, set to Zero");
index 1c833e39f09a2d36458f9833088f7fc14fc0fe28..ceb4dd6b13ce649ac8ffb0b3dfae80809475e937 100644 (file)
@@ -126,6 +126,7 @@ void IGESGeom_ToolBSplineCurve::ReadOwnParams(const Handle(IGESGeom_BSplineCurve
   Standard_Integer nbKnots = anIndex + aDegree + 2;
   // Reading all the knot sequences 
 
+// clang-format off
   PR.ReadReals(PR.CurrentList(nbKnots), Msg103 , allKnots, -aDegree); //szv#4:S4163:12Mar99 `st=` not needed
 
 //st = PR.ReadReals
@@ -137,6 +138,7 @@ void IGESGeom_ToolBSplineCurve::ReadOwnParams(const Handle(IGESGeom_BSplineCurve
       Message_Msg Msg105("XSTEP_105");
       PR.ReadReals(PR.CurrentList(anIndex+1), Msg104, allWeights,0); //szv#4:S4163:12Mar99 `st=` not needed
       //st = PR.ReadReals(PR.CurrentList(anIndex+1), "Weights", allWeights,0);
+// clang-format on
 
       for (Standard_Integer I = 0; I <= anIndex; I ++) 
        {
index f40f38050df90279f8549bc824718542eb4884cc..fc0a5f96aea4ac846f4a1cb36f4528ba9756b145 100644 (file)
@@ -123,6 +123,7 @@ void IGESGeom_ToolBSplineSurface::ReadOwnParams
     {
 //      allKnotsU = new TColStd_HArray1OfReal(-aDegU, anIndexU+1);  done by :
       Standard_Integer tempind = anIndexU+aDegU+2;
+// clang-format off
       PR.ReadReals(PR.CurrentList(tempind), Msg103, allKnotsU, -aDegU); //szv#4:S4163:12Mar99 `st=` not needed
       //st = PR.ReadReals(PR.CurrentList(tempind), "First knot sequence values", allKnotsU, -aDegU);
     }
@@ -133,6 +134,7 @@ void IGESGeom_ToolBSplineSurface::ReadOwnParams
       Standard_Integer tempind = anIndexV+aDegV+2;
       PR.ReadReals(PR.CurrentList(tempind), Msg103, allKnotsV, -aDegV); //szv#4:S4163:12Mar99 `st=` not needed
       //st = PR.ReadReals(PR.CurrentList(tempind), "Second knot sequence values", allKnotsV, -aDegV);
+// clang-format on
     }
 
   if ( FlagindexU && FlagindexV )
index 44dbde24823d8d5c657ebaab09908c85cfc1d62e..1003120631cc4bdab9ade0551ac3b382ded2fb3f 100644 (file)
@@ -107,7 +107,9 @@ void IGESGeom_ToolBoundary::ReadOwnParams(const Handle(IGESGeom_Boundary)& ent,
   }
 
   if (!tempSenses.IsNull() && !tempModelCurves.IsNull() && !tempParameterCurves.IsNull() ) {
+// clang-format off
     for ( Standard_Integer i = 1;  i <= num;  i++ ) //szv#4:S4163:12Mar99 Standard_Integer moved in `for`
+// clang-format on
       {
        Handle(IGESData_IGESEntity) tempEnt;
        //st = PR.ReadEntity(IR, PR.Current(), Msg127, tempEnt); //szv#4:S4163:12Mar99 moved in if
@@ -176,7 +178,9 @@ void IGESGeom_ToolBoundary::ReadOwnParams(const Handle(IGESGeom_Boundary)& ent,
              Handle(IGESData_HArray1OfIGESEntity) tempParCurves;
              if (tempCount > 0){
                Message_Msg Msg130("XTSEP_130");
+// clang-format off
                PR.ReadEnts (IR,PR.CurrentList(tempCount), Msg130, tempParCurves); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
              }
              tempParameterCurves->SetValue(i, tempParCurves);
        }
index 9dd04bcea2a3bfed5fd0e5bf307695558ad56967..5ce92f0b9f259f5481286d87d2aa03125f4338d1 100644 (file)
@@ -51,8 +51,10 @@ void  IGESGeom_ToolCompositeCurve::ReadOwnParams
   // st = PR.ReadInteger(PR.Current(), "Number of Components", num);
   if (st && (num > 0)){
     Message_Msg Msg80("XSTEP_80");
+// clang-format off
     PR.ReadEnts (IR,PR.CurrentList(num),Msg80,tempEntities); //szv#4:S4163:12Mar99 `st=` not needed
   //else st = PR.ReadEnts (IR,PR.CurrentList(num),"List of Components",tempEntities);
+// clang-format on
   }
   //if (st && num <= 0) PR.SendFail(Msg79);
   else{
index 3884fafd92cc7981deeba970a9d208f2571f46a6..369af24367c4e3d994ba2d2a55558915621dde64 100644 (file)
@@ -100,7 +100,9 @@ void IGESGeom_ToolCurveOnSurface::ReadOwnParams
     }
     }
   } //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format off
   if (!PR.ReadEntity(IR, PR.Current(), aStatus, aCurve3D, Standard_True)){; //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
       Message_Msg Msg133("XSTEP_133");
       switch(aStatus) {
       case IGESData_ReferenceError: {  
index e51d1f1e596a421ea0fd0732ad673d3ec2c7f975..3cdf99960b96acd138e147e63aeba65f7b1cf87b 100644 (file)
@@ -51,6 +51,7 @@ void IGESGeom_ToolFlash::ReadOwnParams
   aDim1 = aDim2 = aRotation = 0.;    // default values
 
   // Reading reference of flash
+// clang-format off
   PR.ReadXY(PR.CurrentList(1, 2), "Reference of Flash", aPoint); //szv#4:S4163:12Mar99 `st=` not needed
 
   // Reading first flash sizing parameter
@@ -76,6 +77,7 @@ void IGESGeom_ToolFlash::ReadOwnParams
     // Reading the referenced entity
     PR.ReadEntity(IR, PR.Current(), "Referenced entity", aReference); //szv#4:S4163:12Mar99 `st=` not needed
   // "else" not necessary as this is the last field
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init (aPoint, aDim1, aDim2, aRotation, aReference);
index 0370e5468d04918ff10c589ae86f94a9437e349f..6a25e37691e9c4e6434e5fc9db5355719b2e6397 100644 (file)
@@ -88,7 +88,9 @@ void IGESGeom_ToolSplineCurve::ReadOwnParams
       allBreakPoints  = new TColStd_HArray1OfReal (1, (nbSegments + 1));
     }
     Message_Msg Msg95("XSTEP_95");
+// clang-format off
     PR.ReadReals(PR.CurrentList(nbSegments + 1), Msg95, allBreakPoints); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 /*
     st = PR.ReadReals(PR.CurrentList(nbSegments + 1), "Break Points",
                      allBreakPoints);
index 8f76654149cbb40d09f01c2dd97d38647830257b..c66a5e18dd7d1ca294ecc06c531542467876ab8e 100644 (file)
@@ -89,6 +89,7 @@ void IGESGeom_ToolSplineSurface::ReadOwnParams
 
   if (!allUBreakPoints.IsNull()){
     Message_Msg Msg143("XSTEP_143");
+// clang-format off
     PR.ReadReals(PR.CurrentList(allNbUSegments+1), Msg143, allUBreakPoints); //szv#4:S4163:12Mar99 `st=` not needed
     //st = PR.ReadReals(PR.CurrentList(allNbUSegments+1), "U Break Points", allUBreakPoints);
   }
@@ -97,6 +98,7 @@ void IGESGeom_ToolSplineSurface::ReadOwnParams
     Message_Msg Msg144("XSTEP_144");
     PR.ReadReals(PR.CurrentList(allNbVSegments+1), Msg144, allVBreakPoints); //szv#4:S4163:12Mar99 `st=` not needed
     //st = PR.ReadReals(PR.CurrentList(allNbVSegments+1), "V Break Points", allVBreakPoints);
+// clang-format on
   }
 
   if (ubreak && vbreak)
index 4738adb9f6b2fd16b478c35c8b0e7ca653a2da20..67716ec240795f92cc68eb33ef0721021cf050b0 100644 (file)
@@ -49,7 +49,9 @@ void IGESGraph_ToolDefinitionLevel::ReadOwnParams
     {
       // Reading levelNumbers(HArray1OfInteger)
 //      levelNumbers = new TColStd_HArray1OfInteger(1, nbval);   done by :
+// clang-format off
       PR.ReadInts(PR.CurrentList(nbval), "array levelNumbers", levelNumbers, 1); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
     }
   else  PR.AddFail("No. of Property Values : Not Positive");
 
index bcbeb39eeb9234a773f60b7f9741e2f0af701754..abfb57a99e169432e5720e50217c95954a58a002 100644 (file)
@@ -42,6 +42,7 @@ void IGESGraph_ToolDrawingSize::ReadOwnParams
   Standard_Real    ySize; 
 
   // Reading nbPropertyValues(Integer)
+// clang-format off
   PR.ReadInteger(PR.Current(), "No. of property values", nbPropertyValues); //szv#4:S4163:12Mar99 `st=` not needed
   if (nbPropertyValues != 2)
     PR.AddFail("No. of Property values : Value is not 2");
@@ -51,6 +52,7 @@ void IGESGraph_ToolDrawingSize::ReadOwnParams
 
   // Reading ySize(Real)
   PR.ReadReal (PR.Current(), "Drawing extent along +ve YD axis", ySize); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(nbPropertyValues, xSize, ySize);
index e8ec8ee021545f300b4d91440138df3529bf02cb..f4523fab3f7647de02a3a2cb5b7c0c1020ec6ba3 100644 (file)
@@ -45,7 +45,9 @@ void IGESGraph_ToolDrawingUnits::ReadOwnParams
   Handle(TCollection_HAsciiString) unit;
 
   // Reading nbPropertyValues(Integer)
+// clang-format off
   PR.ReadInteger(PR.Current(), "No. of property values", nbPropertyValues); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   if (nbPropertyValues != 2)
     PR.AddFail("No. of Property values : Value is not 2");
 
index 01840365f63f52bb8dad85048d4afc6ac54d5723..cf5da4d3f1981fdae2a281c449747032533a30ff 100644 (file)
@@ -42,12 +42,14 @@ void IGESGraph_ToolIntercharacterSpacing::ReadOwnParams
   Standard_Real    iSpace; 
 
   // Reading nbPropertyValues(Integer)
+// clang-format off
   PR.ReadInteger(PR.Current(), "No. of property values", nbPropertyValues); //szv#4:S4163:12Mar99 `st=` not needed
   if (nbPropertyValues != 1)
     PR.AddFail("No. of Property values : Value is not 1");
 
   // Reading iSpace(Real)
   PR.ReadReal(PR.Current(), "Intercharacter space in % of text height", iSpace); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(nbPropertyValues, iSpace);
index e9fad05cb62f5ed56ffb36a7b63c7d7912b056a3..ef071812e677154d997127424396c51f4934f0f6 100644 (file)
@@ -60,7 +60,9 @@ void IGESGraph_ToolLineFontDefPattern::ReadOwnParams
     }
   }
 
+// clang-format off
   PR.ReadText(PR.Current(), "Visible-Blank Display Pattern", tempDisplayPattern); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(tempSegmentLengths, tempDisplayPattern);
index 9e3bf9f6071af0999338b1ab2c2f49dc69a2b330..eae750aa6256a42f1257cfd3bb1bba45e315a793 100644 (file)
@@ -44,6 +44,7 @@ void IGESGraph_ToolLineFontDefTemplate::ReadOwnParams
   Standard_Real    tempDistance, tempScale;
   Handle(IGESBasic_SubfigureDef) tempTemplateEntity;
 
+// clang-format off
   PR.ReadInteger(PR.Current(), "Template Orientation", tempOrientation); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadEntity(IR, PR.Current(),
@@ -54,6 +55,7 @@ void IGESGraph_ToolLineFontDefTemplate::ReadOwnParams
              tempDistance); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadReal(PR.Current(), "Scale Factor For Subfigure", tempScale); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init (tempOrientation, tempTemplateEntity, tempDistance, tempScale);
index 97c7e89edc5e24c457e0739dc7688855f0d85e4d..b98813c9db84776caea099cf356ac95445658c84 100644 (file)
@@ -41,12 +41,14 @@ void IGESGraph_ToolLineFontPredefined::ReadOwnParams
   Standard_Integer lineFontPatternCode;
 
   // Reading nbPropertyValues(Integer)
+// clang-format off
   PR.ReadInteger(PR.Current(), "No. of property values", nbPropertyValues); //szv#4:S4163:12Mar99 `st=` not needed
   if (nbPropertyValues != 1)
     PR.AddFail("No. of Property values : Value is not 1");
 
   // Reading lineFontPatternCode(Integer)
   PR.ReadInteger(PR.Current(), "Line Font Pattern Code", lineFontPatternCode); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(nbPropertyValues, lineFontPatternCode);
index eb9ebe5da640f572a9634d133d6493c1d5c7d5bd..c0a3ad79cfa533fe813799206ce2477b8d49f4e0 100644 (file)
@@ -46,6 +46,7 @@ void IGESGraph_ToolNominalSize::ReadOwnParams
   Handle(TCollection_HAsciiString) standardName; 
 
   // Reading nbPropertyValues(Integer)
+// clang-format off
   PR.ReadInteger(PR.Current(), "No. of property values", nbPropertyValues); //szv#4:S4163:12Mar99 `st=` not needed
   if ( (nbPropertyValues != 2) && (nbPropertyValues != 3) )
     PR.AddFail("No. of Property values : Value is not 2/3");
@@ -55,6 +56,7 @@ void IGESGraph_ToolNominalSize::ReadOwnParams
 
   // Reading nominalSizeName(String)
   PR.ReadText (PR.Current(), "Nominal size name", nominalSizeName); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   if ( PR.NbParams() >= PR.CurrentNumber() )
     {
index 0b5ea92caa4f90a2966b0315666e3b672c1ea624..18d1177ca5c00cbd5e3cd214f390c8379a428da4 100644 (file)
@@ -55,10 +55,12 @@ void IGESGraph_ToolTextDisplayTemplate::ReadOwnParams
   gp_XYZ                        corner;
 
   // Reading boxWidth(Real)
+// clang-format off
   PR.ReadReal(PR.Current(), "Character box width", boxWidth); //szv#4:S4163:12Mar99 `st=` not needed
 
   // Reading boxHeight(Real)
   PR.ReadReal(PR.Current(), "Character box height", boxHeight); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   Standard_Integer curnum = PR.CurrentNumber();
   if (PR.DefinedElseSkip())
@@ -81,7 +83,9 @@ void IGESGraph_ToolTextDisplayTemplate::ReadOwnParams
     slantAngle = M_PI/2.0; // Default Value
 
   // Reading rotationAngle(Real)
+// clang-format off
   PR.ReadReal (PR.Current(), "Rotation Angle", rotationAngle); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   // Reading mirrorFlag(Integer)
   PR.ReadInteger (PR.Current(), "Mirror Flag", mirrorFlag); //szv#4:S4163:12Mar99 `st=` not needed
index a302090d4177a9b829365351ec0dd2decca4aca1..7d3eb5102cdbcddbedf17fde8eb62c827e9ef6af 100644 (file)
@@ -75,6 +75,7 @@ void IGESGraph_ToolTextFontDef::ReadOwnParams
 
       // Reading supersededEntity(TextFontDef)
       PR.ReadEntity (IR, PR.Current(), "Text Definition Entity",
+// clang-format off
                     STANDARD_TYPE(IGESGraph_TextFontDef), supersededEntity); //szv#4:S4163:12Mar99 `st=` not needed
     }
   else
@@ -83,6 +84,7 @@ void IGESGraph_ToolTextFontDef::ReadOwnParams
 
   // Reading scale(Integer)
   PR.ReadInteger(PR.Current(), "Grid units eqvt to one text height", scale); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   // Reading nbval(Integer)
   Standard_Boolean st = PR.ReadInteger(PR.Current(), "No. of characters in this defn", nbval);
index 502b158b939b31286a9e71c182a24a1842c21089..585f2639fa4578c477a5f4adba0d84831da6d967 100644 (file)
@@ -65,7 +65,9 @@ static Standard_Boolean IsTimeStamp
     case  7 : if (uncar != '.') return Standard_False;  break;
     case  8 : if (uncar < '0' || uncar > '2') return Standard_False; break;
     case  9 : if (uncar < '0' || uncar > '9') return Standard_False;
+// clang-format off
       if (dizheur == '2' && (uncar < '0' || uncar > '3')) return Standard_False; //szv#4:S4163:12Mar99 extra break
+// clang-format on
       break;
     case 10 : if (uncar < '0' || uncar > '5') return Standard_False; break;
     case 11 : if (uncar < '0' || uncar > '9') return Standard_False; break;
index 25c5d3fa8112e51ec94baa6ccebff1c1453d4209..f5a5e5e34fd38fa5cfbce306990f162606dd1df8 100644 (file)
@@ -45,7 +45,9 @@ void IGESSolid_ToolBlock::ReadOwnParams
   Standard_Real tempreal;
   //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
 
+// clang-format off
   PR.ReadXYZ(PR.CurrentList(1, 3), "Size of Block", tempSize); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   if (PR.DefinedElseSkip())
     {
index 7bff2da6719208841680a240bbc856a48f1479ac..71318ef88b7248c3c065fe56a7ee120425ff1bb1 100644 (file)
@@ -66,7 +66,9 @@ void  IGESSolid_ToolBooleanTree::ReadOwnParams
       for (Standard_Integer i = 3; i < length; i++)
        {
          Standard_Integer curnum = PR.CurrentNumber();
+// clang-format off
          PR.ReadInteger(PR.Current(), "Operation code", intvalue); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
          if (intvalue < 0) {
            entvalue = PR.ParamEntity (IR,curnum);
            if (entvalue.IsNull()) PR.AddFail("Operand : incorrect reference");
index 40ee593205cacf2b1aff718b42e1d75711589d03..c85a877ff1df6db9b9e5f714774e24dd01d2cc7a 100644 (file)
@@ -50,7 +50,9 @@ void  IGESSolid_ToolConeFrustum::ReadOwnParams
   PR.ReadReal(PR.Current(), "Larger face radius", tempR1); //szv#4:S4163:12Mar99 `st=` not needed
 
   if (PR.DefinedElseSkip())
+// clang-format off
     PR.ReadReal(PR.Current(), "Smaller face radius", tempR2); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   else
     tempR2 = 0.0;
 
index 3c8552e0b9973d30dd640bd3e0f6a10b2b282058..e132e933dfbcec9bef93aa6e4e8f53001e685073 100644 (file)
@@ -46,7 +46,9 @@ void  IGESSolid_ToolRightAngularWedge::ReadOwnParams
   Standard_Real tempreal;
   //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
 
+// clang-format off
   PR.ReadXYZ(PR.CurrentList(1, 3), "Size of RightAngularWedge", tempSize); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   PR.ReadReal(PR.Current(), "Small X length", lowX); //szv#4:S4163:12Mar99 `st=` not needed
 
index 2330610baa78e6db6bdf20ca65d08d12f47cf264..3a5d384dada8744bfb70e8e063b398ccbb9cc91b 100644 (file)
@@ -49,7 +49,9 @@ void  IGESSolid_ToolSelectedComponent::ReadOwnParams
   PR.ReadEntity(IR, PR.Current(), "Boolean Tree Entity",
                STANDARD_TYPE(IGESSolid_BooleanTree), tempEntity); //szv#4:S4163:12Mar99 `st=` not needed
 
+// clang-format off
   PR.ReadXYZ(PR.CurrentList(1, 3), "Select Point", tempSelectPoint); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(tempEntity, tempSelectPoint);
index 627cbbf3725c80eece53f485f1d58830d0092a57..d32d53d04e9751533bfc561b1d1124c7da055537 100644 (file)
@@ -39,7 +39,9 @@ void  IGESSolid_ToolSolidInstance::ReadOwnParams
   Handle(IGESData_IGESEntity) tempEntity;
   //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
 
+// clang-format off
   PR.ReadEntity(IR, PR.Current(), "Solid Entity", tempEntity); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init(tempEntity);
index b661581a4e043b3bdd38506df1a6ecbf014cc006..b36650244717dc5be9f34f937b9194c80cae5635 100644 (file)
@@ -47,9 +47,11 @@ void  IGESSolid_ToolSolidOfLinearExtrusion::ReadOwnParams
   Standard_Real tempreal;
   //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
 
+// clang-format off
   PR.ReadEntity(IR, PR.Current(), "Curve Entity", tempEntity); //szv#4:S4163:12Mar99 `st=` not needed
 
   PR.ReadReal(PR.Current(), "Length of extrusion", tempLength); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   if (PR.DefinedElseSkip())
     {
index a04d77515311c1a0bbe4c17ca69241f0db7e1850..afced6b9820e4a3959439f967e2b84d5668bfda0 100644 (file)
@@ -49,10 +49,12 @@ void  IGESSolid_ToolSolidOfRevolution::ReadOwnParams
   Standard_Real tempreal;
   //Standard_Boolean st; //szv#4:S4163:12Mar99 not needed
 
+// clang-format off
   PR.ReadEntity(IR, PR.Current(), "Curve Entity", tempEntity); //szv#4:S4163:12Mar99 `st=` not needed
 
   if (PR.DefinedElseSkip())
     PR.ReadReal(PR.Current(), "Fraction of rotation", tempFraction); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
   else
     tempFraction = 1.0;
   if (PR.DefinedElseSkip())
index e77dd3576dff3b060f5a7d7fc5332bbbef90290f..ecf3fb199443c6d8ca192ad6e73c7d4493bdacf9 100644 (file)
@@ -55,7 +55,9 @@ void  IGESSolid_ToolToroidalSurface::ReadOwnParams
   PR.ReadReal(PR.Current(), "Minor Radius", minRad); //szv#4:S4163:12Mar99 `st=` not needed
 
   if (ent->FormNumber() == 1)      // Parametrised surface
+// clang-format off
     PR.ReadEntity(IR, PR.Current(), "Reference direction", tempRefdir); //szv#4:S4163:12Mar99 `st=` not needed
+// clang-format on
 
   DirChecker(ent).CheckTypeAndForm(PR.CCheck(),ent);
   ent->Init (tempCenter, tempAxis, majRad, minRad, Handle(IGESGeom_Direction)::DownCast (tempRefdir));
index bac7bedc3555991e2147b3225eeeacdb4f748e6e..0b6fca3bae16f8606e01d2873c36ab2055fa3665 100644 (file)
@@ -258,8 +258,10 @@ TopoDS_Shape IGESToBRep_BRepEntity::TransferEdge
              B.Add(E,V1);
              V2.Orientation(TopAbs_REVERSED);
              B.Add(E,V2);
+// clang-format off
              B.UpdateVertex(V1, first, E, 0.);//S4054 1.001 * dist1f //:77 GetEpsGeom()*GetUnitFactor();
              B.UpdateVertex(V2, last,  E, 0.);//S4054 1.001 * dist2l //:77 GetEpsGeom()*GetUnitFactor();
+// clang-format on
              B.Range (E, first, last);
            }
            // modif mjm du 13/10/97 : Reverse de l`edge ?
@@ -269,6 +271,7 @@ TopoDS_Shape IGESToBRep_BRepEntity::TransferEdge
              B.Add(E,V1);
              V2.Orientation(TopAbs_REVERSED);
              B.Add(E,V2);
+// clang-format off
              B.UpdateVertex(V1, last,  E, 0.);//S4054 1.001 * dist1l //:77 GetEpsGeom()*GetUnitFactor();
              B.UpdateVertex(V2, first, E, 0.);//S4054 1.001 * dist2f //:77 GetEpsGeom()*GetUnitFactor();
              B.Range (E, first, last);
@@ -278,6 +281,7 @@ TopoDS_Shape IGESToBRep_BRepEntity::TransferEdge
          else if (Sh.ShapeType() == TopAbs_WIRE) {
            // pas traite 
            Message_Msg Msg1325("IGES_1325"); //"Item %d of EdgeList cannot be represented by single edge (non-continuous or composite curve)."
+// clang-format on
            Msg1325.Arg(inum);
            SendWarning(start,Msg1325);
             AddShapeResult(start,Sh);
@@ -365,7 +369,9 @@ TopoDS_Shape IGESToBRep_BRepEntity::TransferLoop(const Handle(IGESSolid_Loop)& s
          TopoDS_Shape Sh = TransferEdge(thelist,indexlist);
           if (Sh.IsNull())
           {
+// clang-format off
             continue; // skip non-translated edge hoping for the best; warning is already generated by TransferEdge()
+// clang-format on
           }
           curve3d->Add(Sh);
         }
index 26b19f07960cc8e96786b5837319ca52a68c0b41..611cb164a260c6a1858f6238b696c617fd4136de 100644 (file)
@@ -589,7 +589,9 @@ Handle(Geom2d_Curve) IGESToBRep_BasicCurve::Transfer2dConicArc
 
     if (!st->IsClosed()) {
 
+// clang-format off
       gp_Elips2d elips = Handle(Geom2d_Ellipse)::DownCast(res)->Elips2d();//#45 rln (frame, majorRadius, minorRadius);
+// clang-format on
       
       t1  = ElCLib::Parameter(elips, startPoint);
       t2  = ElCLib::Parameter(elips, endPoint);
@@ -609,7 +611,9 @@ Handle(Geom2d_Curve) IGESToBRep_BasicCurve::Transfer2dConicArc
     if (st->TransformedAxis().IsOpposite (st->Axis(), GetEpsilon()))
       res->Reverse();
 
+// clang-format off
     gp_Hypr2d hpr = Handle(Geom2d_Hyperbola)::DownCast(res)->Hypr2d();//#45 rln (frame, majorRadius, minorRadius);
+// clang-format on
    
     t1 = ElCLib::Parameter(hpr, startPoint);
     t2 = ElCLib::Parameter(hpr, endPoint);
@@ -719,7 +723,9 @@ Handle(Geom2d_Curve) IGESToBRep_BasicCurve::Transfer2dCircularArc
   if (!st->TransformedAxis().IsParallel /*#45 rln 23.11.98 IsEqual*/(st->Axis(), GetEpsilon())) {
     SetModeTransfer(Standard_True);          // Only not to use Trsf
     Message_Msg msg1165("IGES_1165");
+// clang-format off
     SendWarning(st, msg1165); //"The Trsf is not compatible with a transfer2d, it will not applied."
+// clang-format on
   }
 
   if (!GetModeTransfer() && st->HasTransf()) {
index 0a0eb189b1862b8287a4067f678e4d9d308e6112..8fef196313b82edb0091ec2c553444153b9066d3 100644 (file)
@@ -142,8 +142,10 @@ IGESToBRep_IGESBoundary::IGESToBRep_IGESBoundary(const IGESToBRep_CurveAndSurfac
                                                    Handle(ShapeExtend_WireData)& Gsewd) 
 {
   Gsewd                                = new ShapeExtend_WireData;//local translation (for mysewd)
+// clang-format off
   Handle(ShapeExtend_WireData) Gsewd3d = new ShapeExtend_WireData;//local translation (for mysewd3d)
   Handle(ShapeExtend_WireData) Gsewd2d = new ShapeExtend_WireData;//local translation (for mysewd2d)
+// clang-format on
 
   Standard_Boolean GTranslate3d = Standard_True, GTranslate2d = Standard_True,
                    Preferred3d  = Standard_True, Preferred2d  = Standard_True;
index d26eeea6690a4527aeb8a82405c7a10424b082cf..9c4f7a1e0872cb9875e81fa41f2326ebead052ca 100644 (file)
@@ -250,7 +250,9 @@ TopoDS_Shape  IGESToBRep_TopoCurve::TransferCompositeCurveGeneral(const Handle(I
     //added by rln 26/12/97 CSR# UKI60028 entity 3117
     if (i > 1 && IgesEnt == start->Curve (i-1)) {
 //      char mess[80];
+// clang-format off
       Message_Msg Msg1045("IGES_1045"); //"The entities of the CompositeCurve are the same: %d & %d"
+// clang-format on
       Msg1045.Arg(i);
       SendWarning(start,Msg1045);
       //sprintf (mess, "The entities of the CompositeCurve are the same: %d & %d", i-1, i);
@@ -287,7 +289,9 @@ TopoDS_Shape  IGESToBRep_TopoCurve::TransferCompositeCurveGeneral(const Handle(I
                                                                                    revsewd, revnextsewd);
        if (isConnected) {
          if (revsewd) {
+// clang-format off
            Message_Msg Msg1051("IGES_1051");   //"All curvAll curves %dd before rank %d have been to be reversed."
+// clang-format on
            Msg1051.Arg((is2d ? 2 : 3));
            Msg1051.Arg(i);
            SendWarning(start,Msg1051);
index 646471211133d6deb9a173284479fcdcd94e1b73..10e64cebde74ed510096da2f6c1edb8e50b067e1 100644 (file)
@@ -1054,7 +1054,9 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferOffsetSurface
        geomSupport = BRep_Tool::Surface (TopoDS::Face(res));
        if (geomSupport->Continuity() == GeomAbs_C0) {
          Message_Msg msg1266("IGES_1266");
+// clang-format off
          SendFail(st, msg1266);//Basis surface is C0-continuous and cannot be corrected to C1-continuous.
+// clang-format on
          res.Nullify();
          return res;
        }
index 31520a9ceff55ef609276b3a6ffd0c172ef39a5b..5ca822148129b1e4fdb6b6b7b3b84f81b7e3f1b1 100644 (file)
@@ -72,12 +72,14 @@ protected:
   virtual ~IVtkTools_DisplayModeFilter();
 
 protected:
+// clang-format off
   IVtk_DisplayMode      myDisplayMode;             //!< Display mode defining mesh types to pass through this filter
   IVtk_IdTypeMap        myModesDefinition[2];
   bool                  myDoDisplaySharedVertices;
 
   bool                  myDrawFaceBoundaries;      //!< Draw Face boundaries within shading display mode
   bool                  myIsSmoothShading;         //!< include vertex normals for smooth shading or not
+// clang-format on
 };
 
 #ifdef _MSC_VER
index baf111bee5a991615af400ddf86c00d8bb1bfbdf..2a11046899d85aac651c027e8e4e81654a2ce6ae 100644 (file)
@@ -66,7 +66,9 @@ namespace
       theDst->GetPointData()->SetNormals (aNewNormals);
     }
 
+// clang-format off
     vtkSmartPointer<vtkIdList> aPntMap = vtkSmartPointer<vtkIdList>::New(); // maps old pt ids into new
+// clang-format on
     aPntMap->SetNumberOfIds (aNbPts);
     for (vtkIdType i = 0; i < aNbPts; ++i)
     {
index a2b7f2d1566ac41d2b807d1a72d946072744e3dd..b8bac652b4e8344e7c78de53363b2a098e404735 100644 (file)
@@ -403,7 +403,9 @@ namespace
       case Image_Format_RGB:    return GUID_WICPixelFormat24bppRGB;
       case Image_Format_BGR:    return GUID_WICPixelFormat24bppBGR;
       case Image_Format_Gray:   return GUID_WICPixelFormat8bppGray;
+// clang-format off
       case Image_Format_Alpha:  return GUID_WICPixelFormat8bppGray; // GUID_WICPixelFormat8bppAlpha
+// clang-format on
       case Image_Format_Gray16: return GUID_WICPixelFormat16bppGray;
       case Image_Format_GrayF:  // GUID_WICPixelFormat32bppGrayFloat
       case Image_Format_AlphaF:
index 541d5d867365d91c21a4d4ce78ead68ed506ef6b..2d726a040ffae3939eecff0c69647384b0f7febd 100644 (file)
@@ -101,7 +101,9 @@ protected:
   Standard_Integer           mySizeY;             //!< surface height
   Image_Format               myBaseFormat;        //!< base (uncompressed) pixel format
   Image_CompressedFormat     myFormat;            //!< compressed format
+// clang-format off
   Standard_Boolean           myIsCompleteMips;    //!< flag indicating complete mip map level set (up to 1x1 resolution)
+// clang-format on
 
 };
 
index 2645f64ad6a792dc060c5c193d449f41a89c6826..172e5e656417e8095eb510e728e653fe19437cdd 100644 (file)
@@ -140,9 +140,11 @@ protected:
 
   Handle(Image_PixMap)              myImageRef;           //!< reference image to compare (from)
   Handle(Image_PixMap)              myImageNew;           //!< new       image to compare (to)
+// clang-format off
   Standard_Real                     myColorTolerance;     //!< tolerance for equality check (0..1, 0 - any not equal, 1 - opposite colors)
 
   Standard_Boolean                  myIsBorderFilterOn;   //!< perform algorithm with border effect filter
+// clang-format on
 
   //! coordinates of different pixels, packed in one int using 16-bit integers to save memory
   NCollection_Vector<Standard_Integer> myDiffPixels;
index c99971aefa6729d495714d9db6b94f105050c8bb..8b82f64de22b7c3b13f75d4d4e23daf45481e859 100644 (file)
@@ -309,7 +309,9 @@ Quantity_ColorRGBA Image_PixMap::ColorFromRawPixel (const Standard_Byte* theRawV
     case Image_Format_GrayF:
     {
       const Standard_ShortReal& aPixel = *reinterpret_cast<const Standard_ShortReal*> (theRawValue);
+// clang-format off
       return Quantity_ColorRGBA (NCollection_Vec4<float> (aPixel, aPixel, aPixel, 1.0f)); // opaque
+// clang-format on
     }
     case Image_Format_AlphaF:
     {
@@ -334,12 +336,14 @@ Quantity_ColorRGBA Image_PixMap::ColorFromRawPixel (const Standard_Byte* theRawV
     case Image_Format_RGBF:
     {
       const Image_ColorRGBF& aPixel = *reinterpret_cast<const Image_ColorRGBF*> (theRawValue);
+// clang-format off
       return Quantity_ColorRGBA (NCollection_Vec4<float> (aPixel.r(), aPixel.g(), aPixel.b(), 1.0f)); // opaque
     }
     case Image_Format_BGRF:
     {
       const Image_ColorBGRF& aPixel = *reinterpret_cast<const Image_ColorBGRF*> (theRawValue);
       return Quantity_ColorRGBA (NCollection_Vec4<float> (aPixel.r(), aPixel.g(), aPixel.b(), 1.0f)); // opaque
+// clang-format on
     }
     case Image_Format_GrayF_half:
     {
index b4bef537b0418398dea1dd4adae7d4b1d2fb0795..d01548b2f17402577a49b6e978120370b62b6ac4 100644 (file)
@@ -476,8 +476,10 @@ public:
     const uint32_t m = (theHalf & 0x03FF) << 13; // mantissa
     FloatUint32 mf, aRes;
     mf.Float32 = (float )m;
+// clang-format off
     const uint32_t v = mf.UInt32 >> 23; // evil log2 bit hack to count leading zeros in denormalized format
     aRes.UInt32 = (theHalf & 0x8000)<<16 | (e != 0) * ((e + 112) << 23 | m) | ((e == 0) & (m != 0)) * ((v - 37) << 23 | ((m << (150 - v)) & 0x007FE000)); // sign : normalized : denormalized
+// clang-format on
     return aRes.Float32;
   }
 
@@ -488,11 +490,13 @@ public:
     union FloatUint32 { float Float32; uint32_t UInt32; };
     FloatUint32 anInput;
     anInput.Float32 = theFloat;
+// clang-format off
     const uint32_t b = anInput.UInt32 + 0x00001000; // round-to-nearest-even: add last bit after truncated mantissa
     const uint32_t e = (b & 0x7F800000) >> 23; // exponent
     const uint32_t m =  b & 0x007FFFFF; // mantissa; in line below: 0x007FF000 = 0x00800000-0x00001000 = decimal indicator flag - initial rounding
     return (uint16_t)((b & 0x80000000) >> 16 | (e > 112) * ((((e - 112) << 10) & 0x7C00) | m >> 13)
          | ((e < 113) & (e > 101)) * ((((0x007FF000 + m) >> (125 - e)) + 1) >> 1) | (e > 143) * 0x7FFF); // sign : normalized : denormalized : saturate
+// clang-format on
   }
 
 protected:
index fb78060a738de2461a2200736a44bf3271d97bf8..918eaf5d79a821197955458c23f52469cc0e8760 100644 (file)
@@ -197,7 +197,9 @@ public:
 
 protected:
 
+// clang-format off
   Standard_Byte* myTopRowPtr;  //!< pointer to the topmost row (depending on scanlines order in memory)
+// clang-format on
 
 public:
 
index 91abe1665f35a9144c4299b78dbab02f3215d279..874cc529385b22884073dae84a08b3d81ce1cfcf 100644 (file)
@@ -56,7 +56,9 @@ public:
 protected:
 
   NCollection_Array1<bool> myFormats; //!< list of supported formats
+// clang-format off
   Standard_Boolean   myHasCompressed; //!< flag indicating that some compressed image formats are supported
+// clang-format on
 
 };
 
index e2a39777214e8543eaca3a8a8bf5400f66c03c5a..b8a475d995dcbb45537d08d429c136c0e189d304 100644 (file)
@@ -330,8 +330,10 @@ Standard_Boolean Image_VideoRecorder::openVideoCodec (const Image_VideoParams& t
         || aCodecCtx->codec == avcodec_find_encoder_by_name ("libx264"))
   {
     // use CRF (Constant Rate Factor) as best single-pass compressing method
+// clang-format off
     av_dict_set (&anOptions, "crf",     "20",        0); // quality 18-28, 23 is default (normal), 18 is almost lossless
     av_dict_set (&anOptions, "preset",  "slow",      0); // good compression (see also "veryslow", "ultrafast")
+// clang-format on
 
     // live-capturing
     //av_dict_set (&anOptions, "qp",     "0",         0); // instead of crf
index b4a821b4e18657ee80558a6fb09e3bbc89fbfedb..845859f2651645cd0c0bf7aff6df3141315da93c 100644 (file)
@@ -39,9 +39,11 @@ struct SwsContext;
 //! Please refer to FFmpeg documentation for defining text values.
 struct Image_VideoParams
 {
+// clang-format off
   TCollection_AsciiString Format;           //!< [optional]  video format (container), if empty - will be determined from the file name
   TCollection_AsciiString VideoCodec;       //!< [optional]  codec identifier, if empty - default codec from file format will be used
   TCollection_AsciiString PixelFormat;      //!< [optional]  pixel format, if empty - default codec pixel format will be used
+// clang-format on
   Standard_Integer        Width;            //!< [mandatory] video frame width
   Standard_Integer        Height;           //!< [mandatory] video frame height
   Standard_Integer        FpsNum;           //!< [mandatory] framerate numerator
index 441e00cd9ac2fa85bcc1dbf7a7bd7090bac686c5..85aaacceb52dd2edd3654f0a4361c74402f498b9 100644 (file)
@@ -459,7 +459,9 @@ void IntAna_Curve::FindParameter(const gp_Pnt& theP,
   const Standard_Real aPIpPI = M_PI + M_PI,
     anEpsAng = 1.e-8,
     InternalPrecision = 1.e-8; //precision of internal algorithm of values computation
+// clang-format off
   constexpr Standard_Real aSqTolPrecision = Precision::SquareConfusion(); //for boundary points to check their coincidence with others
+// clang-format on
   
   Standard_Real aTheta = 0.0;
   //
index fe31e86c7739b15141ddc6cf6b8e260b4b03b361..7dfa0b47841afadd8c72d4b0fa5d7b90742970d4 100644 (file)
@@ -78,7 +78,9 @@ void IntAna2d_AnaIntersection::Perform(const gp_Lin2d& L,
       lpnt[0].SetValue(XS,YS,u,ang);
     }
     else { // 2 points d intersection
+// clang-format off
       Standard_Real h, XS1,YS1, XS2,YS2, ang1,ang2, u1,u2;//,cost,sint angt;                                        
+// clang-format on
       nbp=2;
       h=Sqrt(C.Radius()*C.Radius()-d*d);
       //modified by NIZNHY-PKV Fri Jun 15 09:55:47 2007f
index 84733f8eb80f0132e01099845ac9979462929d17..caac0a50354171cfb91cfdb3fa5295478c7b5dcb 100644 (file)
@@ -53,7 +53,9 @@ public:
 
   void Closed (const Standard_Boolean flag) { ClosedPolygon = flag; }
 
+// clang-format off
   Standard_Boolean Closed() const { return Standard_False; } // -- Voir si le cas Closed est traitable
+// clang-format on
 
   //! Give the number of Segments in the polyline.
   Standard_Integer NbSegments() const { return NbPntIn - 1; }
index 48f054c61d53c12bfdcc8f0397e15c6ff3923bbe..c35979a3bc96f4e9c57241f89da0a94e96681be5 100644 (file)
@@ -630,11 +630,13 @@ void IntPatch_GLine::ComputeVertexParameters(const Standard_Real /*Tol*/)
                       {
                         if(VTXM1.IsVertexOnS1())
                         {
+// clang-format off
                           kill=Standard_True;              //-- OnS2 == OnS2  OnS1 == OnS1  Vtx PasVtx
                         }
                         else
                         {
                           killm1=Standard_True;            //-- OnS2 == OnS2  OnS1 == OnS1  PasVtx Vtx
+// clang-format on
                         }
                       }
                     }
index 8be04e7c34e77132648eb258ae09fabb8cb6ae4f..1d381431bdedc0625f2f165eaebc1fb7099c4ab9 100644 (file)
@@ -8509,7 +8509,9 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric&    Quad1,
           situC2 = IntSurf_Outside;
           if (aR1 > aR2)
           {                           // Intersection line parametrizes from Apex1 to Apex2,
+// clang-format off
             situC1 = IntSurf_Outside; // So the distance between ptbid and aLAx1 is greater than the
+// clang-format on
             situC2 = IntSurf_Inside;  // distance between ptbid and aLAx2 and in that case Cone2
                                       // is inside Cone 1
           }
index 42746650231488d809d2bc0a1d1a50ce75d3e7c7..9b907feeac0dda49854e225ee3e36b83c0578f15 100644 (file)
@@ -1189,7 +1189,9 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
 
   Standard_Integer i=1,nbvtx;
   Standard_Real firstp,lastp;
+// clang-format off
   Standard_Real Tol = Precision::PConfusion()*100.; // JMB le 13 Jan 2000. Report de la correction du PRO19653
+// clang-format on
   GeomAbs_SurfaceType typs1 = mySurf1->GetType();
   GeomAbs_SurfaceType typs2 = mySurf2->GetType();
 
@@ -1382,7 +1384,9 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
              //-- std::cout<<"WLine      : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
              TabIndex[i]=TabIndex[i+1]=++numline;
              AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
+// clang-format off
              TestWLineToRLine(slinref,slin,mySurf1,myDom1,mySurf2,myDom2,TolArc); //-- on teste la derniere entree de slin
+// clang-format on
            }
          } //end of if (in1 != TopAbs_OUT && in2 != TopAbs_OUT)
       } //end of if(firstp!=lastp && !IsSegmentSmall(WLine,i,i+1/*,TolArc*/))
index b1b996ff92be2600a407305a9712dc3f8abbcbbb..cc92cec59d7957ce33ff7c487f5154ddbdbf084b 100644 (file)
@@ -250,7 +250,9 @@ static Standard_Boolean FindParameter(const Handle(IntPatch_Line)& L,
   // Dans le cas d une ligne de cheminement, il faudrait voir la projection
   // et le calcul de la tangente.
 
+// clang-format off
   Handle(IntPatch_RLine) rlin (Handle(IntPatch_RLine)::DownCast (L)); //-- aucune verification n est 
+// clang-format on
   Handle(IntPatch_WLine) wlin (Handle(IntPatch_WLine)::DownCast (L)); //-- faite au cast. 
   gp_Pnt ptbid;
   gp_Vec d1u,d1v;
@@ -381,7 +383,9 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
   Standard_Integer i,j,k;
   TColgp_SequenceOfPnt locpt;
   TColgp_SequenceOfPnt2d locpt2;
+// clang-format off
   Handle(IntPatch_RLine) rlin (Handle(IntPatch_RLine)::DownCast (L)); //-- aucune verification n est 
+// clang-format on
   Handle(IntPatch_WLine) wlin (Handle(IntPatch_WLine)::DownCast (L)); //-- faite au cast. 
   Standard_Integer Nbvtx =0; 
   Standard_Real tolPLin = Surf->UResolution(Precision::Confusion());
index ab37543f2493cc274357593f9507360fd241b128..fc41c27abcb5fadbf201642aec64c2337de65995 100644 (file)
@@ -201,11 +201,13 @@ private: //! @name Fields
   // Inputs
   Handle(Adaptor3d_Surface) mySurf1;          //!< First surface
   Handle(Adaptor3d_Surface) mySurf2;          //!< Second surface
+// clang-format off
   Standard_Integer myNbSU1;                    //!< Number of samples in U direction for first surface
   Standard_Integer myNbSV1;                    //!< Number of samples in V direction for first surface
   Standard_Integer myNbSU2;                    //!< Number of samples in U direction for second surface
   Standard_Integer myNbSV2;                    //!< Number of samples in V direction for second surface
   // Results
+// clang-format on
   Standard_Boolean myIsDone;                   //!< State of the operation
   IntPolyh_ArrayOfSectionLines mySectionLines; //!< Section lines
   IntPolyh_ArrayOfTangentZones myTangentZones; //!< Tangent zones
index a39b8299b5ee164d1a521325fd693a346e19125b..713f51892c3e3fbca57be9178c41032806f13f0f 100644 (file)
@@ -251,7 +251,9 @@ protected:
   NCollection_DataMap<TopoDS_Shape, IntTools_SurfaceRangeLocalizeData*, TopTools_ShapeMapHasher> myProjSDataMap;
   NCollection_DataMap<TopoDS_Shape, Bnd_Box*, TopTools_ShapeMapHasher> myBndBoxDataMap;
   NCollection_DataMap<TopoDS_Shape, BRepAdaptor_Surface*, TopTools_ShapeMapHasher> mySurfAdaptorMap;
+// clang-format off
   NCollection_DataMap<TopoDS_Shape, Bnd_OBB*, TopTools_ShapeMapHasher> myOBBMap; // Map of oriented bounding boxes
+// clang-format on
   Standard_Integer myCreateFlag;
   Standard_Real myPOnSTolerance;
 
index 29162ef446d4872533c6a27f92e93ef8134f6ee5..ad4956520df8468d90aed5a7715781507a335afa 100644 (file)
@@ -3615,7 +3615,9 @@ TestArret(const Standard_Boolean DejaReparti,
       DPc       = Param(i)-Uvp[im1];                //--     Current   - Previous
       DPb       = Uvf[im1]-Uvp[im1];                //--     Bound Sup - Previous 
       ParC[im1] = Uvf[im1];                         //--     Param Corrige
+// clang-format off
       dv        = Param(k)-Uvp[k-1];                //--     Current   - Previous (other Direction)
+// clang-format on
       dv2       = dv*dv;
       if(dv2>RealEpsilon()) {                       //--     Progress in other Direction ?
         Duv[im1]  =  DPc*DPb + dv2;
index b6ff1aff343402b74954d158c6719c0c13de09c4..b8132eac3f968d9104c84c29ed4203df9f753579 100644 (file)
@@ -744,6 +744,8 @@ void Interface_Check::Print(Standard_OStream& S, const Standard_Integer level,
 void Interface_Check::Trace(const Standard_Integer level,
                             const Standard_Integer final) const
 {
+// clang-format off
   Message_Messenger::StreamBuffer sout = Message::SendInfo(); // shouldn't it be changed to SendTrace()?
+// clang-format on
   Print (sout, level, final);
 }
index a2504d05a119df045cbe192b154df8e528d25896..90a12706f95c55a0cb6c2b1ab954c50c07297ede 100644 (file)
@@ -382,7 +382,9 @@ void Interface_FileReaderTool::LoadModel
     //   Attention : la recuperation peut elle-meme planter ... (cf ierr)
     catch (Standard_Failure const& anException) {
       //      Au passage suivant, on attaquera le record suivant
+// clang-format off
       num0 = thereader->FindNextRecord(num); //:g9 abv 28 May 98: tr8_as2_ug.stp - infinite cycle: (0);
+// clang-format on
 
 #ifdef _WIN32
       if (anException.IsKind(STANDARD_TYPE(OSD_Exception))) ierr = 2;
index bc7a982418ba26309b030eeb453bcdb3f973b96e..ca7dcb333942811ee89db9a813a2e86a29d8a110 100644 (file)
@@ -140,7 +140,9 @@ void Interface_Graph::Evaluate()
   //  Evaluation d un Graphe de dependances : sur chaque Entite, on prend sa
   //  liste "Shared". On en deduit les "Sharing"  directement
   Standard_Integer n = Size();
+// clang-format off
   thesharings = new TColStd_HArray1OfListOfInteger(1,n);//TColStd_HArray1OfTransient(1,n);//Clear();
+// clang-format on
   if(themodel->GTool().IsNull())
     return;
   
index 6c33d80c54d3d1fbba4c366d0cfbf8e05319577f..87c281a01194b10befc402349b596bfb41d3eafd 100644 (file)
@@ -1290,9 +1290,11 @@ void FindInternalIntersections(const TopoDS_Edge& theEdge,
   Standard_Real aTolV[2];
   aTolV[0] =BRep_Tool::Tolerance(theVertices[0]);
   aTolV[1] =BRep_Tool::Tolerance(theVertices[1]);
+// clang-format off
   Standard_Real ext = 16.; // = 4 * 4 - to avoid creating microedges, area around vertices is increased
                            // up to 4 vertex tolerance. Such approach is usual for other topological
                            // algorithms, for example, Boolean Operations.
+// clang-format on
   Standard_Real aTolVExt[2] = { ext * aTolV[0] * aTolV[0], ext * aTolV[1] * aTolV[1] };
 
   BRepAdaptor_Curve2d thePCurve(theEdge, theFace);
index 7efcdabb91423fbc59f8221d64bd9053e018157d..411c0a55fbaf108139074070314a53cb5c0d5845 100644 (file)
@@ -135,6 +135,7 @@ private:
   Media_IFrameQueue*          myFrameQueue;     //!< frame queue
   OSD_Thread                  myThread;         //!< working thread
   Standard_Mutex              myMutex;          //!< mutex for events
+// clang-format off
   Standard_Condition          myWakeEvent;      //!< event to wake up working thread and proceed new playback event
   Standard_Condition          myNextEvent;      //!< event to check if working thread processed next file event (e.g. released file handles of previous input)
   Media_Timer                 myTimer;          //!< playback timer       
@@ -144,6 +145,7 @@ private:
   Handle(Media_Frame)         myFrameTmp;       //!< temporary object holding decoded frame
   Handle(Media_Scaler)        myScaler;         //!< pixel format conversion tool
   bool                        myToForceRgb;     //!< flag indicating if queue requires RGB pixel format or can handle also YUV pixel format
+// clang-format on
 
   volatile bool               myToShutDown;     //!< flag to terminate working thread
   TCollection_AsciiString     myInputPath;      //!< new input to open
index 21dca5ea0bee9e3e2e01b280607e9b55d78bff37..97db6d4aee80d87aea4e47ec8981863c111c30a1 100644 (file)
@@ -91,7 +91,9 @@ private:
   Handle(MeshVS_DataSource)            myDataSource;   //!< mesh data source
   NCollection_Vector<Standard_Integer> myItemIndexes;  //!< indices for BVH tree reordering
   MeshVS_MeshSelectionMethod           mySelMethod;    //!< selection mode
+// clang-format off
   Standard_Integer                     myMaxFaceNodes; //!< maximum nodes within the element in mesh
+// clang-format on
   gp_Pnt                               myCOG;          //!< center of gravity
   Select3D_BndBox3d                    myBndBox;       //!< bounding box
 
index 0f96542c4c6bae9adb997542f72abb3966909208..44d7aaa757f74401fef109fe97e88684d68018e6 100644 (file)
@@ -101,7 +101,9 @@ namespace
       }
     }
 
+// clang-format off
     for (Standard_Integer aNodeIdx = 0; aNodeIdx < aNbPolyNodes - 2; ++aNodeIdx) // triangulate polygon
+// clang-format on
     {
       for (Standard_Integer aSubIdx = 0; aSubIdx < 3; ++aSubIdx) // generate sub-triangle
       {
index 655edb7966372b97332a909ed3e63c0e1d20435a..6b0a8617de3b256c41a63abb40a4f05f3025bf82 100644 (file)
@@ -301,7 +301,9 @@ void MeshVS_NodalColorPrsBuilder::Build ( const Handle(Prs3d_Presentation)& Prs,
 
       if (aType == MeshVS_ET_Face)
       {
+// clang-format off
         for (Standard_Integer aNodeIdx = 0; aNodeIdx < NbNodes - 2; ++aNodeIdx) // triangulate polygon
+// clang-format on
         {
           for (Standard_Integer aSubIdx = 0; aSubIdx < 3; ++aSubIdx) // generate sub-triangle
           {
@@ -527,7 +529,9 @@ void MeshVS_NodalColorPrsBuilder::AddVolumePrs (const Handle(MeshVS_HArray1OfSeq
         }
       }
 
+// clang-format off
       for (Standard_Integer aNodeIdx = 0; aNodeIdx < aFaceNodes.Length() - 2; ++aNodeIdx) // triangulate polygon
+// clang-format on
       {
         for (Standard_Integer aSubIdx = 0; aSubIdx < 3; ++aSubIdx) // generate sub-triangle
         {
index add47b75755825981334d01717452d377ceaab88..e2625a4bd1cbceda584631bc88af90c6409ebd77 100644 (file)
@@ -79,7 +79,9 @@ public:
 
 protected:
 
+// clang-format off
   Handle(Message_CompositeAlerts) myCompositAlerts; //!< class provided hierarchical structure of alerts
+// clang-format on
   Handle(Message_Attribute) myAttribute; //!< container of the alert attributes
 };
 
index 5d73e1b52d854dcc6ba1da063ca8339211328d62..a5c3ed357a4a9d8721b650fa64dd0242820e7aec 100644 (file)
@@ -90,7 +90,9 @@ public:
 private:
 
   typedef std::pair<Standard_Real, Standard_Real> StartToStopValue;
+// clang-format off
   NCollection_IndexedDataMap<Message_MetricType, StartToStopValue> myMetrics; //!< computed metrics
+// clang-format on
 };
 
 #endif // _Message_AttributeMeter_HeaderFile
index 465ad9f395b05747769bb17d55aa6b43405279ad..de517dc7d99aaeadbfd892dce4c2a4ea459658de 100644 (file)
@@ -73,7 +73,9 @@ public:
 protected:
   // store messages in a lists sorted by gravity;
   // here we rely on knowledge that Message_Fail is the last element of the enum
+// clang-format off
   Message_ListOfAlert myAlerts[Message_Fail + 1]; //!< container of child alert for each type of gravity
+// clang-format on
 };
 
 DEFINE_STANDARD_HANDLE(Message_CompositeAlerts, Standard_Transient)
index a6b3298ae9caabb1bf8bb2f3276f2b8bf6a4952d..54143f6dfc9cb68fc19d132acd512b9df29a2781 100644 (file)
@@ -132,7 +132,9 @@ public:
     {}
 
   private:
+// clang-format off
     Message_Messenger* myMessenger; // don't make a Handle since this object should be created on stack
+// clang-format on
     Message_Gravity    myGravity;
     Standard_SStream   myStream;
   };
index 1b1c3920a0b3cfd5e59242f597113e006b8ee81a..c1a482b6e77098a1a8be55a08df8bf839523238d 100644 (file)
@@ -408,7 +408,9 @@ private:
   Standard_CString   myName;        //!< Name of the operation being done in this scope, or null
 
   Standard_Real      myStart;       //!< Start position on the global scale [0, 1]
+// clang-format off
   Standard_Real      myPortion;     //!< The portion of the global scale covered by this scope [0, 1]
+// clang-format on
 
   Standard_Real      myMax;         //!< Maximal value of progress in this scope
   Standard_Real      myValue;       //!< Current position advanced within this scope [0, Max]
index 7cfad03b99982d082664ef87d1313467e8492514..b5aa3b7d15f4abb8e4008c06ef72efac13b09ba6 100644 (file)
@@ -169,7 +169,9 @@ protected:
 
   Handle(Message_CompositeAlerts) myCompositAlerts; //!< container of alerts
 
+// clang-format off
   NCollection_Sequence<Message_Level*> myAlertLevels;   //!< container of active levels, new alerts are added below the latest level
+// clang-format on
   NCollection_IndexedMap<Message_MetricType>  myActiveMetrics; //!< metrics to compute on alerts
 
   Standard_Integer myLimit; //!< Maximum number of collected alerts on the top level
index c4d12ca98f9b7c8e40c6806dd93dfb8576de6fe2..f85d930cfb8b739b0b21ff5af91678c6f837c112 100644 (file)
@@ -23,9 +23,11 @@ IMPLEMENT_STANDARD_RTTIEXT(NCollection_IncAllocator, NCollection_BaseAllocator)
 namespace
 {
   // Bounds for checking block size level
+// clang-format off
   static constexpr unsigned THE_SMALL_BOUND_BLOCK_SIZE = NCollection_IncAllocator::THE_DEFAULT_BLOCK_SIZE * 16;   // 196 KB
   static constexpr unsigned THE_MEDIUM_BOUND_BLOCK_SIZE = NCollection_IncAllocator::THE_DEFAULT_BLOCK_SIZE * 64;  // 786 KB
   static constexpr unsigned THE_LARGE_BOUND_BLOCK_SIZE = NCollection_IncAllocator::THE_DEFAULT_BLOCK_SIZE * 1024; // 12 MB
+// clang-format on
 
   //=======================================================================
   //function : computeLevel
index a3fe1da1a9c6cd71299f2dfa0b820daf105eab62..4ae6906fcd0f00e63085ec3a58537b7072d3b5d1 100755 (executable)
@@ -330,7 +330,9 @@ private: //! @name private fields
 
   Type*            myString; //!< string buffer
   Standard_Integer mySize;   //!< buffer size in bytes, excluding NULL-termination symbol
+// clang-format off
   Standard_Integer myLength; //!< length of the string in Unicode symbols (cached value, excluding NULL-termination symbol)
+// clang-format on
 
 };
 
index d01f824bac1b41e01b98c105a1040fd12244d62f..7e484bce32ab5c1c8306e1e680495b99252a18a7 100644 (file)
@@ -141,7 +141,9 @@ public:
     Numbers*       myArray;             //!< indexed from 0 to myMaxAllocSize-1
     ptrdiff_t      myTotalLeftSize;     //!< currently remained allocated size
     size_t         myTotalPeakSize;     //!< maximum cumulative allocated size
+// clang-format off
     size_t         myBreakSize;         //!< user defined allocation size to debug (see place_for_breakpoint())
+// clang-format on
     size_t         myBreakPeak;         //!< user defined peak size limit to debug
   };
 
index 8a9f10e09d48a7616716970713993f73f50645c8..a2dcec89d0f286ac07d44e8aeddb37cb50d34596 100644 (file)
@@ -229,12 +229,14 @@ void OSD_MemInfo::Update()
     else if (IsActive (MemWorkingSet)
           && strncmp (aBuff, "VmRSS:", strlen ("VmRSS:")) == 0)
     {
+// clang-format off
       myCounters[MemWorkingSet] = atol (aBuff + strlen ("VmRSS:")) * 1024; // RSS - resident set size
     }
     else if (IsActive (MemWorkingSetPeak)
           && strncmp (aBuff, "VmHWM:", strlen ("VmHWM:")) == 0)
     {
       myCounters[MemWorkingSetPeak] = atol (aBuff + strlen ("VmHWM:")) * 1024; // HWM - high water mark
+// clang-format on
     }
     else if (IsActive (MemPrivate)
           && strncmp (aBuff, "VmData:", strlen ("VmData:")) == 0)
index c36753ea9ac7505d88d5a27fb13e84f1dc17749d..6b79fb3b7ac4b952cbb3b8c25332d8c36719c840 100644 (file)
@@ -78,8 +78,10 @@ namespace
 
       const   OSD_Parallel::UniversalIterator&  myBegin; //!< First element of range.
       const   OSD_Parallel::UniversalIterator&  myEnd;   //!< Last element of range.
+// clang-format off
       mutable OSD_Parallel::UniversalIterator   myIt;    //!< First non processed element of range.
       mutable Standard_Mutex                 myMutex; //!< Access controller for the first non processed element.
+// clang-format on
     };
 
     //! Auxiliary wrapper class for thread function.
index b3b0e16e3f474bda8f38843e3110f3406e348f62..b4cb1e839e9d2ff4df795ed587689ffc32586576 100644 (file)
@@ -1679,7 +1679,9 @@ void OSD_Path::FileNameAndExtension (const TCollection_AsciiString& theFilePath,
                                      TCollection_AsciiString&       theName,
                                      TCollection_AsciiString&       theExtension)
 {
+// clang-format off
   const Standard_Integer THE_EXT_MAX_LEN = 20; // this method is supposed to be used with normal extension
+// clang-format on
   const Standard_Integer aLen = theFilePath.Length();
   for (Standard_Integer anExtLen = 1; anExtLen < aLen && anExtLen < THE_EXT_MAX_LEN; ++anExtLen)
   {
index 0cef1510dcf013ec7b9b677f5f318e6d5dff81f3..b5f055aad411e86d0a72ea1b0fffb56e378545dc 100644 (file)
@@ -247,7 +247,9 @@ public:
     Launcher& operator=(const Launcher& theCopy);
 
   private:
+// clang-format off
     NCollection_Array1<EnumeratedThread*> myThreads; //!< array of locked threads (including self-thread)
+// clang-format on
     EnumeratedThread mySelfThread;
     int myNbThreads; //!< amount of locked threads
   };
@@ -325,7 +327,9 @@ private:
 
 private:
 
+// clang-format off
   NCollection_Array1<EnumeratedThread> myThreads; //!< array of defined threads (excluding self-thread)
+// clang-format on
   int  myNbDefThreads; //!< maximum number of threads to be locked by a single Launcher by default
   bool myShutDown;     //!< flag to shut down (destroy) the thread pool
 
index 7da3f19004c1886e44590905327f2c79d5ee2e77..a88ea9dd57b42568da12727193444f0b1ff6137e 100644 (file)
@@ -131,7 +131,9 @@ static LONG CallHandler (DWORD theExceptionCode,
     ExceptionInformation0 = theExcPtr->ExceptionRecord->ExceptionInformation[0];
   }
 
+// clang-format off
   Standard_Mutex::Sentry aSentry (THE_SIGNAL_MUTEX); // lock the mutex to prevent simultaneous handling
+// clang-format on
   static char aBuffer[2048];
 
   bool isFloatErr = false;
@@ -324,7 +326,9 @@ static LONG CallHandler (DWORD theExceptionCode,
 //=======================================================================
 static void SIGWntHandler (int signum, int sub_code)
 {
+// clang-format off
   Standard_Mutex::Sentry aSentry (THE_SIGNAL_MUTEX); // lock the mutex to prevent simultaneous handling
+// clang-format on
   switch( signum ) {
     case SIGFPE :
       if ( signal( signum , (void(*)(int))SIGWntHandler ) == SIG_ERR )
@@ -388,7 +392,9 @@ static void SIGWntHandler (int signum, int sub_code)
 
 static void TranslateSE( unsigned int theCode, EXCEPTION_POINTERS* theExcPtr )
 {
+// clang-format off
   Standard_Mutex::Sentry aSentry (THE_SIGNAL_MUTEX); // lock the mutex to prevent simultaneous handling
+// clang-format on
   CallHandler (theCode, theExcPtr);
 }
 #endif
@@ -456,7 +462,9 @@ void OSD::SetThreadLocalSignal (OSD_SignalMode theSignalMode,
 void OSD::SetSignal (OSD_SignalMode theSignalMode,
                      Standard_Boolean theFloatingSignal)
 {
+// clang-format off
   Standard_Mutex::Sentry aSentry (THE_SIGNAL_MUTEX); // lock the mutex to prevent simultaneous handling
+// clang-format on
   OSD_WasSetSignal = theSignalMode;
 
 #if !defined(OCCT_UWP) || defined(NTDDI_WIN10_TH2)
index fe9309b44fb4ed06540f65ad4f9f3e181585e8d7..9cbed298f68b441d71bf98502de092854f237919 100644 (file)
@@ -207,7 +207,9 @@ void OpenGl_AspectsSprite::build (const Handle(OpenGl_Context)& theCtx,
   Handle(OpenGl_PointSprite)& aSpriteA = mySpriteA;
   if (!aNewKey.IsEmpty())
   {
+// clang-format off
     theCtx->GetResource<Handle(OpenGl_PointSprite)> (aNewKeyA, aSpriteA); // alpha sprite could be shared
+// clang-format on
     theCtx->GetResource<Handle(OpenGl_PointSprite)> (aNewKey,  aSprite);
   }
 
@@ -302,7 +304,9 @@ void OpenGl_AspectsSprite::build (const Handle(OpenGl_Context)& theCtx,
 
       theCtx->core11ffp->glNewList (aBitmapList, GL_COMPILE);
       const Standard_Integer aWidth = (Standard_Integer )anImage->Width(), aHeight = (Standard_Integer )anImage->Height();
+// clang-format off
       theCtx->core11ffp->glBitmap (0, 0, 0, 0, GLfloat(-0.5f * aWidth), GLfloat(-0.5f * aHeight), NULL); // make offsets that will be added to the current raster position
+// clang-format on
       theCtx->core11ffp->glDrawPixels (GLsizei(anImage->Width()), GLsizei(anImage->Height()), aFormat.PixelFormat(), aFormat.DataType(), anImage->Data());
       theCtx->core11ffp->glEndList();
       theCtx->core11fwd->glPixelStorei (GL_UNPACK_ALIGNMENT, 1);
index 1b679af91d89ba7171000398143c54bfeea20803..f4d5d655d9937d182c3c31153a389d04765684ad 100644 (file)
@@ -97,12 +97,14 @@ protected:
 
 protected:
 
+// clang-format off
   Graphic3d_TypeOfBackground        myType;           //!< Type of background: texture or gradient.
   Aspect_FillMethod                 myFillMethod;     //!< Texture parameters
   mutable OpenGl_GradientParameters myGradientParams; //!< Gradient parameters
   mutable Standard_Integer          myViewWidth;      //!< view width  used for array initialization
   mutable Standard_Integer          myViewHeight;     //!< view height used for array initialization
   mutable Standard_Boolean          myToUpdate;       //!< Shows if array parameters were changed and data (myAttribs storage) is to be updated
+// clang-format on
 
 };
 
index 97524582887b4c0f0b425309457160314a46f535..959f112c9f67a84755c84ad986169af766bc2944 100644 (file)
@@ -282,9 +282,11 @@ protected:
 
   Standard_Byte*   myOffset;       //!< offset to data
   unsigned int     myBufferId;     //!< VBO name (index)
+// clang-format off
   unsigned int     myComponentsNb; //!< Number of components per generic vertex attribute, must be 1, 2, 3, or 4
   Standard_Integer myElemsNb;      //!< Number of vertex attributes / number of vertices
   unsigned int     myDataType;     //!< Data type (GL_FLOAT, GL_UNSIGNED_INT, GL_UNSIGNED_BYTE etc.)
+// clang-format on
 
 };
 
index 5281e046dad7cde650702918445b628ff94af58b..5dd7a910ed45bda0efc561092a855933be3e55bf 100755 (executable)
@@ -28,6 +28,7 @@ class OpenGl_Caps : public Standard_Transient
 public: //! @name flags to disable particular functionality, should be used only for testing purposes!
 
   Standard_Boolean sRGBDisable;       //!< Disables sRGB rendering (OFF by default)
+// clang-format off
   Standard_Boolean compressedTexturesDisable; //!< Disables uploading of compressed texture formats native to GPU (OFF by default)
   Standard_Boolean vboDisable;        //!< disallow VBO usage for debugging purposes (OFF by default)
   Standard_Boolean pntSpritesDisable; //!< flag permits Point Sprites usage, will significantly affect performance (OFF by default)
@@ -37,6 +38,7 @@ public: //! @name flags to disable particular functionality, should be used only
   Standard_Boolean useSystemBuffer;   //!< Enables usage of system backbuffer for blitting (OFF by default on desktop OpenGL and ON on OpenGL ES for testing)
   Standard_Integer swapInterval;      //!< controls swap interval - 0 for VSync off and 1 for VSync on, 1 by default
   Standard_Boolean useZeroToOneDepth; //!< use [0, 1] depth range instead of [-1, 1] range, when possible (OFF by default)
+// clang-format on
 
 public: //! @name context creation parameters
 
index c372d606181cb25b03076484649f79cd19f06f91..403d2e1cf637d54bc0a1aba660f9b01ce815bbe8 100755 (executable)
@@ -150,6 +150,7 @@ private:
   Handle(Graphic3d_SequenceOfHClipPlane)   myPlanesLocal;    //!< object clipping planes
   NCollection_Vector<Standard_Boolean>     myDisabledPlanes; //!< ids of disabled planes
 
+// clang-format off
   Handle(Graphic3d_ClipPlane)              myCappedChain;    //!< chain which is either temporary disabled or the only one enabled for Capping algorithm
   Standard_Integer                         myCappedSubPlane; //!< sub-plane index within filtered chain; positive number for DisableAllExcept and negative for EnableAllExcept
 
@@ -157,6 +158,7 @@ private:
   Standard_Integer                         myNbCapping;      //!< number of enabled capping  planes
   Standard_Integer                         myNbChains;       //!< number of enabled chains
   Standard_Integer                         myNbDisabled;     //!< number of defined but disabled planes
+// clang-format on
 
 private:
   //! Copying allowed only within Handles
index 9380b93672f9f2613b185eae15ff2696c773c559..9ffd4b4d83a899b2cded34bf6a2b8ae51c5eda03 100644 (file)
@@ -1653,12 +1653,14 @@ void OpenGl_Context::init (const Standard_Boolean theIsCoreProfile)
     }
   }
 
+// clang-format off
   myDepthPeelingDepthTexUnit      = static_cast<Graphic3d_TextureUnit>(myMaxTexCombined + Graphic3d_TextureUnit_DepthPeelingDepth);      // -6
   myDepthPeelingFrontColorTexUnit = static_cast<Graphic3d_TextureUnit>(myMaxTexCombined + Graphic3d_TextureUnit_DepthPeelingFrontColor); // -5
   myShadowMapTexUnit              = static_cast<Graphic3d_TextureUnit>(myMaxTexCombined + Graphic3d_TextureUnit_ShadowMap);              // -4
   myPBREnvLUTTexUnit              = static_cast<Graphic3d_TextureUnit>(myMaxTexCombined + Graphic3d_TextureUnit_PbrEnvironmentLUT);      // -3
   myPBRDiffIBLMapSHTexUnit        = static_cast<Graphic3d_TextureUnit>(myMaxTexCombined + Graphic3d_TextureUnit_PbrIblDiffuseSH);        // -2
   myPBRSpecIBLMapTexUnit          = static_cast<Graphic3d_TextureUnit>(myMaxTexCombined + Graphic3d_TextureUnit_PbrIblSpecular);         // -1
+// clang-format on
   if (!myHasPBR)
   {
     myDepthPeelingDepthTexUnit      = static_cast<Graphic3d_TextureUnit>(myDepthPeelingDepthTexUnit + 3);
index b11c50e92f8260f3e1ab4410df31f087fd9d8e54..59e54637bf95b7620d386049cb9c1f6cf57a27e0 100644 (file)
@@ -1025,6 +1025,7 @@ public: //! @name core profiles
   OpenGl_GlCore45*     core45;     //!< OpenGL 4.5 core profile
   OpenGl_GlCore46*     core46;     //!< OpenGL 4.6 core profile
 
+// clang-format off
   OpenGl_GlCore15*     core15fwd;  //!< obsolete entry left for code portability; core15 should be used instead
   OpenGl_GlCore20*     core20fwd;  //!< obsolete entry left for code portability; core20 should be used instead
 
@@ -1070,6 +1071,7 @@ public: //! @name extensions
   OpenGl_ExtGS*          extGS;              //!< GL_EXT_geometry_shader4
   Standard_Boolean       extBgra;            //!< GL_EXT_bgra or GL_EXT_texture_format_BGRA8888 on OpenGL ES
   Standard_Boolean       extTexR16;          //!< GL_EXT_texture_norm16 on OpenGL ES; always available on desktop
+// clang-format on
   Standard_Boolean       extAnis;            //!< GL_EXT_texture_filter_anisotropic
   Standard_Boolean       extPDS;             //!< GL_EXT_packed_depth_stencil
   Standard_Boolean       atiMem;             //!< GL_ATI_meminfo
@@ -1087,6 +1089,7 @@ private: // system-dependent fields
 
   Aspect_Drawable         myWindow;   //!< surface           EGLSurface | HWND  | GLXDrawable
   Aspect_Display          myDisplay;  //!< display           EGLDisplay | HDC   | Display*
+// clang-format off
   Aspect_RenderingContext myGContext; //!< rendering context EGLContext | HGLRC | GLXContext | EAGLContext* | NSOpenGLContext*
 
 private: // context info
@@ -1095,6 +1098,7 @@ private: // context info
   typedef NCollection_Shared< NCollection_List<Handle(OpenGl_Resource)> > OpenGl_ResourcesStack;
 
   Handle(OpenGl_ResourcesMap)    mySharedResources; //!< shared resources with unique identification key
+// clang-format on
   Handle(OpenGl_DelayReleaseMap) myDelayed;         //!< shared resources for delayed release
   Handle(OpenGl_ResourcesStack)  myUnusedResources; //!< stack of resources for delayed clean up
 
@@ -1110,7 +1114,9 @@ private: // context info
   Standard_Integer myTexClamp;             //!< either GL_CLAMP_TO_EDGE (1.2+) or GL_CLAMP (1.1)
   Standard_Integer myMaxTexDim;            //!< value for GL_MAX_TEXTURE_SIZE
   Standard_Integer myMaxTexCombined;       //!< value for GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
+// clang-format off
   Standard_Integer myMaxTexUnitsFFP;       //!< value for GL_MAX_TEXTURE_UNITS (fixed-function pipeline only)
+// clang-format on
   Standard_Integer myMaxDumpSizeX;         //!< maximum FBO width  for image dump
   Standard_Integer myMaxDumpSizeY;         //!< maximum FBO height for image dump
   Standard_Integer myMaxClipPlanes;        //!< value for GL_MAX_CLIP_PLANES
@@ -1124,6 +1130,7 @@ private: // context info
   Standard_Boolean myHasMsaaTextures;      //!< context supports MSAA textures
   Standard_Boolean myIsGlNormalizeEnabled; //!< GL_NORMALIZE flag
                                            //!< Used to tell OpenGl that normals should be normalized
+// clang-format off
   Graphic3d_TextureUnit mySpriteTexUnit;   //!< sampler2D occSamplerPointSprite, texture unit for point sprite texture
 
   Standard_Boolean myHasRayTracing;                 //! indicates whether ray tracing mode is supported
@@ -1140,6 +1147,7 @@ private: // context info
 
   Graphic3d_TextureUnit myDepthPeelingDepthTexUnit;      //!< sampler2D occDepthPeelingDepth, texture unit for Depth Peeling lookups
   Graphic3d_TextureUnit myDepthPeelingFrontColorTexUnit; //!< sampler2D occDepthPeelingFrontColor, texture unit for Depth Peeling lookups
+// clang-format on
 
   Handle(OpenGl_ShaderManager) myShaderManager; //! support object for managing shader programs
 
@@ -1152,6 +1160,7 @@ private: //! @name fields tracking current state
                                                    //!< currently active sampler objects
   Standard_Integer              myActiveMockTextures; //!< currently active mock sampler objects
   Handle(OpenGl_FrameBuffer)    myDefaultFbo;      //!< default Frame Buffer Object
+// clang-format off
   Handle(OpenGl_LineAttributes) myHatchStyles;     //!< resource holding predefined hatch styles patterns
   Standard_Integer              myActiveHatchType; //!< currently activated type of polygon hatch
   Standard_Boolean              myHatchIsEnabled;  //!< current enabled state of polygon hatching rasterization
@@ -1186,6 +1195,7 @@ private: //! @name fields tracking current state
   Standard_ShortReal            myRenderScale;     //!< scaling factor for rendering resolution
   Standard_ShortReal            myRenderScaleInv;  //!< scaling factor for rendering resolution (inverted value)
   OpenGl_Material               myMaterial;        //!< current front/back material state (cached to reduce GL context updates)
+// clang-format on
 
 private:
 
index 0fdbe4ce81c1af5a1d78f14e838db616ee342d0d..e6ef6709d2ea0905f9cd24bd6203917739873deb 100644 (file)
@@ -1133,7 +1133,9 @@ Standard_Boolean OpenGl_FrameBuffer::BufferDump (const Handle(OpenGl_Context)& t
   }
 
   // setup alignment
+// clang-format off
   const GLint anAligment = Min (GLint(theImage.MaxRowAligmentBytes()), 8); // limit to 8 bytes for OpenGL
+// clang-format on
   theGlCtx->core11fwd->glPixelStorei (GL_PACK_ALIGNMENT, anAligment);
   bool isBatchCopy = !theImage.IsTopDown();
 
index d3955eca002faf9995fb7f6ca03a64befd6ac619..19feea083abbd32b898807ee638e4e30b24fb06f 100644 (file)
@@ -355,6 +355,7 @@ protected:
 
 protected:
 
+// clang-format off
   Standard_Integer       myInitVPSizeX;         //!< viewport width  specified during initialization (kept even on failure)
   Standard_Integer       myInitVPSizeY;         //!< viewport height specified during initialization (kept even on failure)
   Standard_Integer       myVPSizeX;             //!< viewport width  (should be <= texture width)
@@ -368,6 +369,7 @@ protected:
   bool                   myIsOwnBuffer;         //!< flag indicating that FBO should be deallocated by this class
   bool                   myIsOwnColor;          //!< flag indicating that color textures should be deallocated by this class
   bool                   myIsOwnDepth;          //!< flag indicating that depth texture  should be deallocated by this class
+// clang-format on
   OpenGl_TextureArray    myColorTextures;       //!< color texture objects
   Handle(OpenGl_Texture) myDepthStencilTexture; //!< depth-stencil texture object
 
index 8213867c6631aa79d2b7d2e04b2982682416a4fe..e051559d9c0141c799eb06fdb5c1de9056c3a516 100644 (file)
@@ -164,7 +164,9 @@ void OpenGl_FrameStatsPrs::updateChart (const Handle(OpenGl_Workspace)& theWorks
       aMaxDuration = Max (aMaxDuration, aFrame.TimerValue (Graphic3d_FrameStatsTimer_ElapsedFrame));
     }
     aMaxDuration = Ceiling (aMaxDuration * 1000.0 * 0.1) * 0.001 * 10.0; // round number
+// clang-format off
     aMaxDuration = Max (Min (aMaxDuration, 0.1), 0.005); // limit by 100 ms (10 FPS) and 5 ms (200 FPS)
+// clang-format on
   }
 
   const Standard_Integer aNbTimers = 4;
index 297fd50c05f26052f33f2b8f7d4ad5ee57b8185f..7a70f74f1d1ce1668e3e7a0fe9a0931e0e5e7a20 100644 (file)
@@ -57,10 +57,12 @@ protected:
 protected:
 
   Handle(OpenGl_FrameStats)          myStatsPrev;         //!< currently displayed stats
+// clang-format off
   Handle(Graphic3d_TransformPers)    myCountersTrsfPers;  //!< transformation persistence for counters presentation
   OpenGl_Text                        myCountersText;      //!< counters presentation
   OpenGl_Aspects                     myTextAspect;        //!< text aspect
   Handle(Graphic3d_TransformPers)    myChartTrsfPers;     //!< transformation persistence for chart presentation
+// clang-format on
   Handle(Graphic3d_ArrayOfTriangles) myChartArray;        //!< array of chart triangles
   Handle(OpenGl_VertexBuffer)        myChartVertices;     //!< VBO with chart triangles
   Handle(OpenGl_IndexBuffer)         myChartIndices;      //!< VBO with chart triangle indexes
index d20d5d2c22e102ae00a70c775220e112d99198a9..7d6c74cb36d8200c819d8095f740ff5f27003072 100644 (file)
@@ -1721,12 +1721,14 @@ void OpenGl_GlFunctions::load (OpenGl_Context& theCtx,
                            || checkExtensionShort ("GL_OES_fbo_render_mipmap");
   theCtx.hasSRGBControl = checkExtensionShort ("GL_EXT_sRGB_write_control");
   theCtx.hasPackRowLength   = isGlGreaterEqualShort (3, 0);
+// clang-format off
   theCtx.hasUnpackRowLength = isGlGreaterEqualShort (3, 0); // || checkExtensionShort ("GL_EXT_unpack_subimage");
   // NPOT textures has limited support within OpenGL ES 2.0
   // which are relaxed by OpenGL ES 3.0 or some extensions
   //theCtx.arbNPTW = isGlGreaterEqualShort (3, 0)
   //           || checkExtensionShort ("GL_OES_texture_npot")
   //           || checkExtensionShort ("GL_NV_texture_npot_2D_mipmap");
+// clang-format on
   theCtx.arbNPTW     = true;
   theCtx.arbTexRG    = isGlGreaterEqualShort (3, 0)
                     || checkExtensionShort ("GL_EXT_texture_rg");
@@ -2082,7 +2084,9 @@ void OpenGl_GlFunctions::load (OpenGl_Context& theCtx,
     theCtx.checkWrongVersion (3, 2, aLastFailedProc);
   }
 
+// clang-format off
   theCtx.arbTboRGB32 = isGlGreaterEqualShort (3, 2); // OpenGL ES 3.2 introduces TBO already supporting RGB32 format
+// clang-format on
   theCtx.extDrawBuffers = checkExtensionShort ("GL_EXT_draw_buffers") && theCtx.FindProc ("glDrawBuffersEXT", this->glDrawBuffers);
   theCtx.arbDrawBuffers = checkExtensionShort ("GL_ARB_draw_buffers") && theCtx.FindProc ("glDrawBuffersARB", this->glDrawBuffers);
 
index ca7b4fcfa1522ddb7b48ea08134713da56f059cc..62cf0c9feefdd469ba787d91304684eb5e7cccf8 100644 (file)
@@ -198,7 +198,9 @@ protected:
 
 protected:
 
+// clang-format off
   Standard_Boolean        myIsOwnContext; //!< indicates that shared context has been created within OpenGl_GraphicDriver
+// clang-format on
 
   Aspect_Display          myEglDisplay;   //!< EGL connection to the Display : EGLDisplay
   Aspect_RenderingContext myEglContext;   //!< EGL rendering context         : EGLContext
index 20ac84335f721a09e55815753aeb000284b6c404..14b9b3bf61acc6dd00c0e64ef992cb46722776e7 100644 (file)
@@ -90,7 +90,9 @@ private:
     theIndex = ((theIndex & 0x0f0f0f0f) << 4) | ((theIndex & 0xf0f0f0f0) >> 4);
     theIndex = ((theIndex & 0x33333333) << 2) | ((theIndex & 0xcccccccc) >> 2);
     theIndex = ((theIndex & 0x55555555) << 1) | ((theIndex & 0xaaaaaaaa) >> 1);
+// clang-format off
     union Result { unsigned u; float f; } aResult; // Write reversed bits directly into floating-point mantissa.
+// clang-format on
     aResult.u = 0x3f800000u | (theIndex >> 9);
     return aResult.f - 1.0f;
   }
index 845fdeb9336c6bb67161c356d1285aa4456eb05e..78af8e2d58ef991d3214ad1c1f809477ff436b8d 100644 (file)
@@ -962,7 +962,9 @@ void OpenGl_LayerList::renderTransparent (const Handle(OpenGl_Workspace)&   theW
       theOitAccumFbo->BindBuffer (aCtx);
 
       aCtx->SetDrawBuffers (2, THE_DRAW_BUFFERS01);
+// clang-format off
       aCtx->SetColorMaskRGBA (NCollection_Vec4<bool> (true)); // force writes into all components, including alpha
+// clang-format on
       aCtx->core11fwd->glClearColor (0.0f, 0.0f, 0.0f, 1.0f);
       aCtx->core11fwd->glClear (GL_COLOR_BUFFER_BIT);
       aCtx->core15fwd->glBlendFuncSeparate (GL_ONE, GL_ONE, GL_ZERO, GL_ONE_MINUS_SRC_ALPHA);
@@ -978,7 +980,9 @@ void OpenGl_LayerList::renderTransparent (const Handle(OpenGl_Workspace)&   theW
       // initialize min/max depth buffer
       aGlBlendBackFBO->BindDrawBuffer (aCtx);
       aCtx->SetDrawBuffers (1, THE_DRAW_BUFFERS0);
+// clang-format off
       aCtx->SetColorMaskRGBA (NCollection_Vec4<bool> (true)); // force writes into all components, including alpha
+// clang-format on
       aCtx->core20fwd->glClearColor (0.0f, 0.0f, 0.0f, 0.0f);
       aCtx->core20fwd->glClear (GL_COLOR_BUFFER_BIT);
 
index bc50eda1686ba9daabf0ce761287b26778509640..94792e4a0da28a6a43a27e082b99258864e6f7d6 100644 (file)
@@ -210,7 +210,9 @@ protected:
   Handle(BVH_Builder3d) myBVHBuilder;      //!< BVH tree builder for frustum culling
 
   Standard_Integer        myNbStructures;
+// clang-format off
   Standard_Integer        myImmediateNbStructures; //!< number of structures within immediate layers
+// clang-format on
 
   mutable Standard_Size   myModifStateOfRaytraceable;
 
index e81c77c7bce0f6f7cddc284a8067e5aab55864a1..8b10de4ab0ae015653c0efd8f50fda1a459022f2 100644 (file)
@@ -51,7 +51,9 @@ struct OpenGl_MaterialPBR
 {
 
   OpenGl_Vec4 BaseColor;   //!< base color of PBR material with alpha component
+// clang-format off
   OpenGl_Vec4 EmissionIOR; //!< light intensity which is emitted by PBR material and index of refraction
+// clang-format on
   OpenGl_Vec4 Params;      //!< extra packed parameters
 
   float  Metallic()  const { return Params.b(); }
index ef56e6ceb448cc9445659fb6d751304d35aab055..9a35964ccd6c0ce32f2d624fcd8ac4023a2e2417 100644 (file)
@@ -101,7 +101,9 @@ public:
 
 private:
 
+// clang-format off
   NCollection_Vector<typename OpenGl::MatrixType<T>::Mat4> myStack;     //!< Collection used to maintenance matrix stack
+// clang-format on
   typename OpenGl::MatrixType<T>::Mat4                     myCurrent;   //!< Current matrix
   Standard_Integer                                         myStackHead; //!< Index of stack head
 };
index 56c26753d72cf48f36aa12206ad4f6819bbfd714..43d1059651490184c782b61f2e1db722c2af0c48 100644 (file)
@@ -74,7 +74,9 @@ private:
     myContext->core11fwd->glDepthMask (GL_FALSE);
     myContext->core11fwd->glDisable (GL_BLEND);
     myContext->core11fwd->glDisable (GL_SCISSOR_TEST);
+// clang-format off
     myContext->SetColorMaskRGBA (NCollection_Vec4<bool> (true)); // force writes into all components, including alpha
+// clang-format on
   }
 
   void restore()
index 11607d86bf7f8beaeff285eda4b84012cc907af0..27ad958c4f656b11286c3b7eab82c24e18b3612e 100644 (file)
@@ -202,6 +202,7 @@ private:
 
 private:
 
+// clang-format off
   unsigned int        myPow2Size;            //!< size of IBL maps sides (real size can be calculated as 2^myPow2Size)
   unsigned int        mySpecMapLevelsNumber; //!< number of mipmap levels used in specular IBL map
 
@@ -212,6 +213,7 @@ private:
   Standard_Boolean    myIsComplete;          //!< completeness of PBR environment
   Standard_Boolean    myIsNeededToBeBound;   //!< indicates whether IBL map's textures have to be bound or it is not obligate
   Standard_Boolean    myCanRenderFloat;      //!< indicates whether driver supports rendering into floating point texture or not
+// clang-format on
 
 };
 
index e1f260817925b56244e55d31ad32d30dd99426a0..39b36b81ff7192fb4ddcbf8de328ebe76c4c134b 100755 (executable)
@@ -62,7 +62,9 @@ public:
 
 protected:
 
+// clang-format off
   GLuint myBitmapList; //!< if of display list to draw sprite using glBitmap (for backward compatibility)
+// clang-format on
 
 };
 
index 151d1cc40aa45a202b6386a1a41ac3202e354ca9..1c00b36a3e03dd8c4e828d18a004f4b4d62faa3f 100644 (file)
@@ -915,7 +915,9 @@ void OpenGl_PrimitiveArray::Render (const Handle(OpenGl_Workspace)& theWorkspace
   }
 
   Graphic3d_TypeOfShadingModel aShadingModel = Graphic3d_TypeOfShadingModel_Unlit;
+// clang-format off
   anAspectFace = theWorkspace->ApplyAspects (false); // do not bind textures before binding the program
+// clang-format on
   const Handle(OpenGl_TextureSet)& aTextureSet = theWorkspace->TextureSet();
   const bool toEnableEnvMap = !aTextureSet.IsNull()
                             && aTextureSet == theWorkspace->EnvironmentTexture();
index c8e35951bed057807b9870cf27914a8057c29e40..fd373d4bf9b64514f018d42a97db0d3cf2fca7b1 100644 (file)
@@ -155,9 +155,11 @@ protected:
 protected:
 
   Handle(Graphic3d_TextureParams) myParams;          //!< texture parameters
+// clang-format off
   unsigned int                    mySamplerRevision; //!< modification counter of parameters related to sampler state
   unsigned int                    mySamplerID;       //!< OpenGL sampler object ID
   bool                            myIsImmutable;     //!< immutable flag preventing further modifications of sampler parameters, FALSE by default
+// clang-format on
 
 };
 
index 9586e35e8ad4346294a81490d3b82edd71ec86f5..e5933c766b4cf69c01025a0afe216a025b5714e1 100644 (file)
@@ -395,7 +395,9 @@ Standard_Boolean OpenGl_RaytraceGeometry::AcquireTextures (const Handle(OpenGl_C
      || !aTexture->Sampler()->IsImmutable())
     {
       // need to recreate texture sampler handle
+// clang-format off
       aHandle = GLuint64(-1); // specs do not define value for invalid handle, set -1 to initialize something
+// clang-format on
       if (!aTexture->InitSamplerObject (theContext))
       {
         continue;
@@ -497,7 +499,9 @@ Standard_Boolean OpenGl_RaytraceGeometry::UpdateTextureHandles (const Handle(Ope
   for (NCollection_Vector<Handle(OpenGl_Texture)>::Iterator aTexSrcIter (myTextures); aTexSrcIter.More(); aTexSrcIter.Next(), ++aTexIter)
   {
     GLuint64& aHandle = myTextureHandles[aTexIter];
+// clang-format off
     aHandle = GLuint64(-1); // specs do not define value for invalid handle, set -1 to initialize something
+// clang-format on
 
     const Handle(OpenGl_Texture)& aTexture = aTexSrcIter.Value();
     if (!aTexture->Sampler()->IsValid()
index 35298bf60d9f0489addfd90c0618531f70a39a1e..5640efea05e2bdeac9dc63af217f9c7401f352f9 100644 (file)
@@ -303,10 +303,12 @@ public: //! @name auxiliary methods
 
 protected:
 
+// clang-format off
   NCollection_Vector<Handle(OpenGl_Texture)> myTextures;           //!< Array of texture maps shared between rendered objects
   std::vector<GLuint64>                      myTextureHandles;     //!< Array of unique 64-bit texture handles obtained from OpenGL
   Standard_Integer                           myTopLevelTreeDepth;  //!< Depth of high-level scene BVH from last build
   Standard_Integer                           myBotLevelTreeDepth;  //!< Maximum depth of bottom-level scene BVHs from last build
+// clang-format on
 
   QuadBvhHandle myQuadBVH; //!< QBVH produced from binary BVH tree.
 
index ef1332cec526b52901e791515bcf345ae7b54476..8bb494fe746e1240086a8d6c51ea187288d89bb3 100644 (file)
@@ -69,7 +69,9 @@ public:
   }
 
 protected:
+// clang-format off
   Handle(OpenGl_SetOfPrograms) myPrograms[Graphic3d_TypeOfShadingModel_NB - 1]; //!< programs array, excluding Graphic3d_TypeOfShadingModel_Unlit
+// clang-format on
 };
 
 typedef NCollection_DataMap<TCollection_AsciiString, Handle(OpenGl_SetOfShaderPrograms)> OpenGl_MapOfShaderPrograms;
index bef0d43ffc1e4c10774c0003f3b87d40b817eef8..37ec597b9dcefac0937be490518196106b51d12f 100644 (file)
@@ -760,6 +760,7 @@ protected:
 
   Graphic3d_TypeOfShadingModel       myShadingModel;       //!< lighting shading model
   OpenGl_ShaderProgramList           myProgramList;        //!< The list of shader programs
+// clang-format off
   Handle(OpenGl_SetOfShaderPrograms) myLightPrograms;      //!< pointer to active lighting programs matrix
   Handle(OpenGl_SetOfPrograms)       myUnlitPrograms;      //!< programs matrix without lighting
   Handle(OpenGl_SetOfPrograms)       myOutlinePrograms;    //!< programs matrix without lighting for outline presentation
@@ -797,6 +798,7 @@ protected:
 
   gp_XYZ                             myLocalOrigin;        //!< local camera transformation
   Standard_Boolean                   myHasLocalOrigin;     //!< flag indicating that local camera transformation has been set
+// clang-format on
 
   mutable NCollection_Array1<Standard_Integer>             myLightTypeArray;
   mutable NCollection_Array1<OpenGl_ShaderLightParameters> myLightParamsArray;
index a5504af8aff720b08ad00e5fc84cd0cc5b42036c..51163a7f3ec7bb3b02c58eec38e3d09696e4dee0 100755 (executable)
@@ -475,7 +475,9 @@ Standard_Boolean OpenGl_ShaderProgram::Initialize (const Handle(OpenGl_Context)&
                                           + aHeaderConstants
                                           + Shaders_Declarations_glsl      // common declarations (global constants and Vertex Shader inputs)
                                           + Shaders_DeclarationsImpl_glsl
+// clang-format off
                                           + anIter.Value()->Source();      // the source code itself (defining main() function)
+// clang-format on
     if (!aShader->LoadAndCompile (theCtx, myResourceId, aSource))
     {
       aShader->Release (theCtx.operator->());
index 92d74e54efd80c54a37fe801f0d09da403583bb2..46f4de8b949e1e52c58d7317c40a3fbefc6e47be 100755 (executable)
@@ -645,6 +645,7 @@ protected:
 
   GLuint                          myProgramID;     //!< Handle of OpenGL shader program
   OpenGl_ShaderList               myShaderObjects; //!< List of attached shader objects
+// clang-format off
   Handle(Graphic3d_ShaderProgram) myProxy;         //!< Proxy shader program (from application layer)
   Standard_Integer                myShareCount;    //!< program users count, initialized with 1 (already shared by one user)
   Standard_Integer                myNbLightsMax;   //!< length of array of light sources (THE_MAX_LIGHTS)
@@ -659,6 +660,7 @@ protected:
 protected:
 
   Standard_Size myCurrentState[OpenGl_UniformStateType_NB]; //!< defines last modification for variables of each state type
+// clang-format on
 
   //! Stores locations of OCCT state uniform variables.
   OpenGl_ShaderUniformLocation myStateLocations[OpenGl_OCCT_NUMBER_OF_STATE_VARIABLES];
index ee6aea55f39e2878ed3ed2cd439bd31151393c66..b9816cbd18e407b20789f22ef5d639ca6cb4294c 100755 (executable)
@@ -157,7 +157,9 @@ public:
 private:
 
   Handle(Graphic3d_LightSet) myLightSources;     //!< List of OCCT light sources
+// clang-format off
   Standard_Integer           mySpecIBLMapLevels; //!< Number of mipmap levels used in specular IBL map (0 by default or in case of using non-PBR shading model)
+// clang-format on
   Handle(OpenGl_ShadowMapArray) myShadowMaps;    //!< active shadowmap
   Standard_Boolean           myToCastShadows;    //!< enable/disable shadowmap
 
@@ -218,7 +220,9 @@ public:
 
 private:
 
+// clang-format off
   Graphic3d_RenderTransparentMethod myOitMode;     //!< active OIT method for the main GLSL program
+// clang-format on
   float                             myDepthFactor; //!< factor of depth influence to coverage
 };
 
index 14854d91283a417ad4bfc73a099e38f75e47a194..59c091063e62cfc85ece05272fe60cba2149e45a 100644 (file)
@@ -85,7 +85,9 @@ const Handle(OpenGl_Texture)& OpenGl_ShadowMap::Texture() const
 bool OpenGl_ShadowMap::UpdateCamera (const Graphic3d_CView& theView,
                                      const gp_XYZ* theOrigin)
 {
+// clang-format off
   const Bnd_Box aMinMaxBox  = theOrigin == NULL ? theView.MinMaxValues (false) : Bnd_Box(); // applicative min max boundaries
+// clang-format on
   const Bnd_Box aGraphicBox = aMinMaxBox;
 
   switch (myShadowLight->Type())
@@ -125,7 +127,9 @@ bool OpenGl_ShadowMap::UpdateCamera (const Graphic3d_CView& theView,
       // so that shadow range will be limited to some reasonable distance from current eye.
       if (myShadowCamera->FitMinMax (aMinMaxBox, 10.0 * Precision::Confusion(), false))
       {
+// clang-format off
         myShadowCamera->SetScale (Max (myShadowCamera->ViewDimensions().X() * 1.1, myShadowCamera->ViewDimensions().Y() * 1.1)); // add margin
+// clang-format on
       }
       myShadowCamera->ZFitAll (1.0, aMinMaxBox, aGraphicBox);
       myLightMatrix = myShadowCamera->ProjectionMatrixF() * myShadowCamera->OrientationMatrixF();
index d5c3c5270b2ca11955d8c346a34325eeb7a5b7f8..da91a53cb0c921c3111c2844dc52a10b12b652bf 100644 (file)
@@ -683,7 +683,9 @@ void OpenGl_Structure::applyPersistence (const Handle(OpenGl_Context)& theCtx,
     Graphic3d_Vec4 anAnchorPoint = aModelWorld * Graphic3d_Vec4 ((Standard_ShortReal)aStartPnt.X(),
                                                                  (Standard_ShortReal)aStartPnt.Y(),
                                                                  (Standard_ShortReal)aStartPnt.Z(), 1.0f);
+// clang-format off
     aModelWorld.SetColumn (3, Graphic3d_Vec4 (Graphic3d_Vec3 (0.0), 1.0)); // reset translation part
+// clang-format on
     aStartPnt.SetCoord (anAnchorPoint.x(), anAnchorPoint.y(), anAnchorPoint.z());
 
     theTrsfPers->Apply (theCtx->Camera(),
index b7703237831efe8a7a52aef5cbd76ddbf7deb061..414b925505601ec4d5b3da562b415f31172c8223 100644 (file)
@@ -165,12 +165,14 @@ protected:
 protected:
 
   OpenGl_Structure*          myInstancedStructure;
+// clang-format off
   Graphic3d_Mat4             myRenderTrsf; //!< transformation, actually used for rendering (includes Local Origin shift)
 
   mutable Standard_Boolean   myIsRaytracable;
   mutable Standard_Size      myModificationState;
 
   Standard_Boolean           myIsMirrored; //!< Used to tell OpenGl to interpret polygons in clockwise order.
+// clang-format on
 
 };
 
index 0431d51df9d3b7b8d53bf5bd692425ead263cba6..69ab5a64d4981e0124505c7844426870e45c5cde 100644 (file)
@@ -323,7 +323,9 @@ void OpenGl_Text::StringSize (const Handle(OpenGl_Context)& theCtx,
 // =======================================================================
 void OpenGl_Text::Render (const Handle(OpenGl_Workspace)& theWorkspace) const
 {
+// clang-format off
   const OpenGl_Aspects* aTextAspect = theWorkspace->ApplyAspects (false); // do not bind textures as they will be disabled anyway
+// clang-format on
   const Handle(OpenGl_Context)& aCtx = theWorkspace->GetGlContext();
 
   // Bind custom shader program or generate default version
index 8949a1459c135f9e24cc0c0830f0e95e812104ac..aedcf7537122b2ff9a33c27f8412ff199c16514e 100755 (executable)
@@ -158,8 +158,10 @@ protected:
   mutable Handle(OpenGl_Font)                             myFont;
   mutable NCollection_Vector<GLuint>                      myTextures;   //!< textures' IDs
   mutable NCollection_Vector<Handle(OpenGl_VertexBuffer)> myVertsVbo;   //!< VBOs of vertices
+// clang-format off
   mutable NCollection_Vector<Handle(OpenGl_VertexBuffer)> myTCrdsVbo;   //!< VBOs of texture coordinates
   mutable Handle(OpenGl_VertexBuffer)                     myBndVertsVbo;//!< VBOs of vertices for bounding box
+// clang-format on
   mutable Font_Rect                                       myBndBox;
 
 protected:
index 4d90a8e96bd84b0cf2b702990aa9eced7297f718..f143dbce9033c37a3ba13d5674aaeed920f685b7 100644 (file)
@@ -346,7 +346,9 @@ bool OpenGl_Texture::Init (const Handle(OpenGl_Context)& theCtx,
 
   if (aDataPtr != NULL)
   {
+// clang-format off
     const GLint anAligment = Min ((GLint )theImage->MaxRowAligmentBytes(), 8); // OpenGL supports alignment upto 8 bytes
+// clang-format on
     theCtx->core11fwd->glPixelStorei (GL_UNPACK_ALIGNMENT, anAligment);
     const GLint anExtraBytes = GLint(theImage->RowExtraBytes());
     const GLint aPixelsWidth = GLint(theImage->SizeRowBytes() / theImage->SizePixelBytes());
@@ -1177,7 +1179,9 @@ bool OpenGl_Texture::InitCubeMap (const Handle(OpenGl_Context)&    theCtx,
 
       if (!anImage.IsNull())
       {
+// clang-format off
         const GLint anAligment = Min ((GLint)anImage->MaxRowAligmentBytes(), 8); // OpenGL supports alignment upto 8 bytes
+// clang-format on
         const GLint anExtraBytes = GLint(anImage->RowExtraBytes());
         const GLint aPixelsWidth = GLint(anImage->SizeRowBytes() / anImage->SizePixelBytes());
         const GLint aRowLength = (anExtraBytes >= anAligment) ? aPixelsWidth : 0;
@@ -1197,7 +1201,9 @@ bool OpenGl_Texture::InitCubeMap (const Handle(OpenGl_Context)&    theCtx,
             memcpy (aCopyImage->ChangeRow (y), anImage->ChangeRow (y), aRowBytesPacked);
           }
           anImage = aCopyImage;
+// clang-format off
           const GLint anAligment2 = Min((GLint)anImage->MaxRowAligmentBytes(), 8); // OpenGL supports alignment upto 8 bytes
+// clang-format on
           theCtx->core11fwd->glPixelStorei (GL_UNPACK_ALIGNMENT, anAligment2);
         }
         else
@@ -1377,7 +1383,9 @@ bool OpenGl_Texture::ImageDump (Image_PixMap& theImage,
     return false;
   }
 
+// clang-format off
   const GLint anAligment = Min (GLint(theImage.MaxRowAligmentBytes()), 8); // limit to 8 bytes for OpenGL
+// clang-format on
   theCtx->core11fwd->glPixelStorei (GL_PACK_ALIGNMENT, anAligment);
   if (theCtx->hasPackRowLength)
   {
index 44a09e4a7ff97c10b9dc2907ea811b4d6466d92d..bc8364da7bee9ef9ae2f304f95e6b33cd6fea596 100644 (file)
@@ -329,7 +329,9 @@ protected:
   Standard_Integer myNbSamples;  //!< number of MSAA samples
   Standard_Integer myMaxMipLevel;//!< upper mipmap level index (0 means no mipmaps)
   bool             myIsAlpha;    //!< indicates alpha format
+// clang-format off
   bool             myIsTopDown;  //!< indicates if 2D surface is defined top-down (TRUE) or bottom-up (FALSE)
+// clang-format on
 
 };
 
index 875416a84a273cb8b021157e2ae2e8e9f5f6713f..053a7f4cba64a22e3ec9c7c5d122948b9f12e1d6 100644 (file)
@@ -142,6 +142,7 @@ protected:
 
 protected:
 
+// clang-format off
   Image_PixMapTypedData<unsigned int>    myTiles;         //!< number of samples per tile (initially all 1)
   Image_PixMapTypedData<unsigned int>    myTileSamples;   //!< number of samples for all pixels within the tile (initially equals to Tile area)
   Image_PixMapTypedData<float>           myVarianceMap;   //!< Estimation of visual error per tile
@@ -152,6 +153,7 @@ protected:
   OpenGl_HaltonSampler                   mySampler;       //!< Halton sequence generator
   unsigned int                           myLastSample;    //!< Index of generated sample
   float                                  myScaleFactor;   //!< scale factor for quantization of visual error (float) into signed integer
+// clang-format on
   int                                    myTileSize;      //!< tile size
   Graphic3d_Vec2i                        myViewSize;      //!< ray-tracing viewport
 
index e1010f47df377274ce6b595d27c4535e857ed948..c84d51758cc9ab6cf498521bc00a7df277bcff57 100644 (file)
@@ -610,7 +610,9 @@ Standard_Boolean OpenGl_View::ShadowMapDump (Image_PixMap& theImage, const TColl
           aGlCtx->core11fwd->glReadBuffer (aDrawBufferPrev);
         }
         // Setup alignment.
+// clang-format off
         const GLint anAligment = Min (GLint(theImage.MaxRowAligmentBytes()), 8); // limit to 8 bytes for OpenGL.
+// clang-format on
         aGlCtx->core11fwd->glPixelStorei (GL_PACK_ALIGNMENT, anAligment);
         // Read data.
         aGlCtx->core11fwd->glReadPixels (0, 0, GLsizei(theImage.SizeX()), GLsizei(theImage.SizeY()), GL_DEPTH_COMPONENT, GL_FLOAT, theImage.ChangeData());
@@ -2190,7 +2192,9 @@ void OpenGl_View::redraw (const Graphic3d_Camera::Projection theProjection,
   aCtx->core11fwd->glClearDepth (1.0);
 
   const OpenGl_Vec4 aBgColor = aCtx->Vec4FromQuantityColor (myBgColor);
+// clang-format off
   aCtx->SetColorMaskRGBA (NCollection_Vec4<bool> (true)); // force writes into all components, including alpha
+// clang-format on
   aCtx->core11fwd->glClearColor (aBgColor.r(), aBgColor.g(), aBgColor.b(), aCtx->caps->buffersOpaqueAlpha ? 1.0f : 0.0f);
   aCtx->core11fwd->glClear (toClear);
   aCtx->SetColorMask (true); // restore default alpha component write state
@@ -2315,7 +2319,9 @@ bool OpenGl_View::blitSubviews (const Graphic3d_Camera::Projection ,
       aCtx->SetFrameBufferSRGB (false);
     }
 
+// clang-format off
     Graphic3d_Vec2i aWinSize (aCtx->Viewport()[2], aCtx->Viewport()[3]); //aSubView->GlWindow()->PlatformWindow()->Dimensions();
+// clang-format on
     Graphic3d_Vec2i aSubViewSize = aChildFbo->GetVPSize();
     Graphic3d_Vec2i aSubViewPos  = aSubView->SubviewTopLeft();
     Graphic3d_Vec2i aDestSize    = aSubViewSize;
@@ -2882,7 +2888,9 @@ bool OpenGl_View::blitBuffers (OpenGl_FrameBuffer*    theReadFbo,
   const Standard_Integer aViewport[4] = { 0, 0, aDrawSizeX, aDrawSizeY };
   aCtx->ResizeViewport (aViewport);
 
+// clang-format off
   aCtx->SetColorMaskRGBA (NCollection_Vec4<bool> (true)); // force writes into all components, including alpha
+// clang-format on
   aCtx->core20fwd->glClearDepth (1.0);
   aCtx->core20fwd->glClearColor (0.0f, 0.0f, 0.0f, aCtx->caps->buffersOpaqueAlpha ? 1.0f : 0.0f);
   aCtx->core20fwd->glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
index 04b87d6376fbc9dd007953bb3f2b86d8429da96b..67e18e9203d1c7f0f9814e11c4909776f5af8249 100644 (file)
@@ -453,7 +453,9 @@ protected:
 
   Handle(Graphic3d_LightSet)      myNoShadingLight;
   Handle(Graphic3d_LightSet)      myLights;
+// clang-format off
   OpenGl_LayerList                myZLayers; //!< main list of displayed structure, sorted by layers
+// clang-format on
 
   Graphic3d_WorldViewProjState    myWorldViewProjState; //!< camera modification state
   OpenGl_StateCounter*            myStateCounter;
@@ -482,6 +484,7 @@ protected: //! @name Rendering properties
   //! of the view (without presentation of immediate layers).
   Standard_Integer           mySRgbState;             //!< track sRGB state
   GLint                      myFboColorFormat;        //!< sized format for color attachments
+// clang-format off
   GLint                      myFboDepthFormat;        //!< sized format for depth-stencil attachments
   OpenGl_ColorFormats        myFboOitColorConfig;     //!< selected color format configuration for OIT color attachments
   Handle(OpenGl_FrameBuffer) myMainSceneFbos[2];
@@ -509,6 +512,7 @@ protected: //! @name Background parameters
   OpenGl_Aspects*            myCubeMapParams;                     //!< Stores cubemap and its parameters for cubemap background
   OpenGl_Aspects*            myColoredQuadParams;                 //!< Stores parameters for gradient (corner mode) background
   OpenGl_BackgroundArray*    myBackgrounds[Graphic3d_TypeOfBackground_NB]; //!< Array of primitive arrays of different background types
+// clang-format on
   Handle(OpenGl_TextureSet)  myTextureEnv;
   Handle(OpenGl_Texture)     mySkydomeTexture;
 
index 299b7b014bc8f71323b0ee8518a2968850f77502..b6f4cc501c981d357ea3440d14c7de9b52c4535f 100644 (file)
@@ -2859,7 +2859,9 @@ Standard_Boolean OpenGl_View::runRaytrace (const Standard_Integer        theSize
 
   if (myRenderParams.IsAntialiasingEnabled)
   {
+// clang-format off
     theGlContext->core11fwd->glDisable (GL_DEPTH_TEST); // improve jagged edges without depth buffer
+// clang-format on
 
     // bind ray-tracing output image as input
     myRaytraceFBO1[aFBOIdx]->ColorTexture()->Bind (theGlContext, OpenGl_RT_FsaaInputTexture);
@@ -3018,11 +3020,13 @@ Standard_Boolean OpenGl_View::runPathtrace (const Standard_Integer
   {
     // extend viewport here, so that tiles at boundaries (cut tile size by target rendering viewport)
     // redirected to inner tiles (full tile size) are drawn entirely
+// clang-format off
     const Graphic3d_Vec2i anOffsetViewport = myTileSampler.OffsetTilesViewport (myAccumFrames > 1); // shrunk offsets texture will be uploaded since 3rd frame
     theGlContext->core11fwd->glViewport (0, 0, anOffsetViewport.x(), anOffsetViewport.y());
   }
   const NCollection_Vec4<bool> aColorMask = theGlContext->ColorMaskRGBA();
   theGlContext->SetColorMaskRGBA (NCollection_Vec4<bool> (true)); // force writes into all components, including alpha
+// clang-format on
 
   // Generate for the given RNG seed
   theGlContext->core11fwd->glDisable (GL_DEPTH_TEST);
index daceafb7421006ef83e81b470dc999b5eab62d1b..762153236bf9696329ad0f4afd88593276e83519 100644 (file)
@@ -90,7 +90,9 @@ protected:
 protected:
 
   Handle(OpenGl_Context) myGlContext;
+// clang-format off
   Standard_Boolean       myOwnGContext;    //!< set to TRUE if GL context was not created by this class
+// clang-format on
   Handle(Aspect_Window)  myPlatformWindow; //!< software platform window wrapper
   Handle(Aspect_Window)  mySizeWindow;     //!< window object defining dimensions
 #if defined(__APPLE__)
index 91d1fa604f4e946986e5189a79912004fb5fb58b..98c98808c2eed40aa282abce966f59d9a745658f 100644 (file)
@@ -66,7 +66,9 @@ void OpenGl_Material::init (const OpenGl_Context& theCtx,
   const OpenGl_Vec3& aSrcDif = theMat.DiffuseColor();
   const OpenGl_Vec3& aSrcSpe = theMat.SpecularColor();
   const OpenGl_Vec3& aSrcEms = theMat.EmissiveColor();
+// clang-format off
   aCommon.SpecularShininess.SetValues (aSrcSpe,128.0f * theMat.Shininess()); // interior color is ignored for Specular
+// clang-format on
   switch (theMat.MaterialType())
   {
     case Graphic3d_MATERIAL_ASPECT:
index ee6f2eb2b43c9158a1b2fc6873b4d87b90c7a852..b092a4bc7ac4488ef5a5f4b2bada4e041ca76379 100644 (file)
@@ -210,8 +210,10 @@ protected: //! @name protected fields
 
 protected: //! @name fields related to status
 
+// clang-format off
   Standard_Integer myNbSkippedTranspElems; //!< counter of skipped transparent elements for OpenGl_LayerList two rendering passes method
   Standard_Integer myRenderFilter;         //!< active filter for skipping rendering of elements by some criteria (multiple render passes)
+// clang-format on
 
   OpenGl_Aspects   myDefaultAspects;
   const OpenGl_Aspects*      myAspectsSet;
index f37d535d536805971eb3c4febda7fe5d85c21051..c62606977c5ceaa64c7241a810d7be3ad4f7dd08 100644 (file)
@@ -2322,7 +2322,9 @@ void FindSplitPoint(SplitDS &theSplitDS,
   Extrema_ExtCC anExtCC;
   anExtCC.SetCurve(1, *theSplitDS.myExtCCCurve1);
   anExtCC.SetCurve(2, *theSplitDS.myCurve);
+// clang-format off
   anExtCC.SetSingleSolutionFlag (Standard_True); // Search only one solution since multiple invocations are needed.
+// clang-format on
   anExtCC.SetRange(1, 0, theSplitDS.myExtCCLast2DParam);
   anExtCC.SetRange(2, theMinParam, theMaxParam);
   anExtCC.Perform();
index 38c85647b93807c4247f1b3fa2febb14d8edee02..0ad7aec08ad8a17f62cac425d01d3d61cef3d378 100644 (file)
@@ -1005,7 +1005,9 @@ protected:
   Standard_Boolean              myUnFreeBoundaryDraw;
   Standard_Boolean              myHasOwnUnFreeBoundaryDraw;
   Handle(Prs3d_LineAspect)      myFaceBoundaryAspect;
+// clang-format off
   Standard_Integer              myFaceBoundaryUpperContinuity; //!< the most edge continuity class (GeomAbs_Shape) to be included to face boundaries presentation, or -1 if undefined
+// clang-format on
   Standard_Boolean              myFaceBoundaryDraw;
   Standard_Boolean              myHasOwnFaceBoundaryDraw;
 
index 236dd18f81b1dfa815774fd475f3c2a91d00bcfc..d46509225e21abc6e431759981ba42306ea1ee4a 100644 (file)
@@ -190,7 +190,9 @@ protected:
 
 protected:
 
+// clang-format off
   Standard_Real myMajorRadius; //!< distance from the center of the pipe to the center of the torus
+// clang-format on
   Standard_Real myMinorRadius; //!< radius of the pipe
   Standard_Real myAngle;       //!< angle to create a torus pipe segment
   Standard_Real myVMin;        //!< first angle to create a torus ring segment
index d130405594db42021806736b93ee7a03ce379795..7bd1dc09c4e008a88f44d029108b388f3edfc3b4 100644 (file)
@@ -612,7 +612,9 @@ protected: //! @name Selection geometry
     gp_Dir           TextDir;            //!< Direction of text label.
     Standard_Real    TextWidth;          //!< Width of text label.
     Standard_Real    TextHeight;         //!< Height of text label.
+// clang-format off
     SeqOfCurves      DimensionLine;      //!< Sequence of points for composing the segments of dimension line.
+// clang-format on
     SeqOfArrows      Arrows;             //!< Sequence of arrow geometries.
     Standard_Boolean IsComputed;         //!< Shows if the selection geometry was filled.
 
@@ -663,7 +665,9 @@ protected: //! @name Value properties
   ValueType        myValueType; //! type of value (computed or user-defined)
   Standard_Real    myCustomValue;   //!< Value of the dimension (computed or user-defined).
 
+// clang-format off
   TCollection_ExtendedString myCustomStringValue; //!< Value of the dimension (computed or user-defined).
+// clang-format on
 
 protected: //! @name Fixed text position properties
 
@@ -677,10 +681,12 @@ protected: //! @name Units properties
 
 protected: //! @name Geometrical properties
 
+// clang-format off
   GeometryType myGeometryType;  //!< defines type of shapes on which the dimension is to be built. 
 
   gp_Pln           myPlane;           //!< Plane where dimension will be built (computed or user defined).
   Standard_Boolean myIsPlaneCustom;   //!< Is plane defined by user (otherwise it will be computed automatically).
+// clang-format on
   Standard_Real    myFlyout;          //!< Flyout distance.
   Standard_Boolean myIsGeometryValid; //!< Is dimension geometry properly defined.
 
index d39531dfa01acd52208023e1945ff6522ca53a13..93d98f3463407d3253c4834b87e7c44ae45be946 100644 (file)
@@ -18,7 +18,9 @@
 
 #include <NCollection_List.hxx>
 
+// clang-format off
 class PrsMgr_PresentableObject; // use forward declaration since PrsMgr_PresentableObject.hxx uses PrsMgr_ListOfPresentableObjects
+// clang-format on
 typedef NCollection_List<Handle(PrsMgr_PresentableObject)> PrsMgr_ListOfPresentableObjects;
 typedef NCollection_List<Handle(PrsMgr_PresentableObject)>::Iterator PrsMgr_ListOfPresentableObjectsIter;
 
index 5f560c97312e268277cfd6be54ae3775db32c534..a38d4de8b760eff881538ab770408293b0289500 100644 (file)
@@ -519,6 +519,7 @@ protected:
 
 protected:
 
+// clang-format off
   PrsMgr_PresentableObject*              myParent;                  //!< pointer to the parent object
   PrsMgr_Presentations                   myPresentations;           //!< list of presentations
   Handle(Graphic3d_ViewAffinity)         myViewAffinity;            //!< view affinity mask
@@ -545,6 +546,7 @@ protected:
   Standard_Boolean                       myHasOwnPresentations;     //!< flag indicating if object should have own presentations
 
   Standard_Boolean                       myToPropagateVisualState;  //!< flag indicating if visual state (display/erase/color) should be propagated to all children
+// clang-format on
 };
 
 DEFINE_STANDARD_HANDLE(PrsMgr_PresentableObject, Standard_Transient)
index ea606590fb7c4455799f5bda95e52d9945c07a61..d58983d19ad841b0de42cd4d09aeaf2a2c535974 100644 (file)
@@ -77,7 +77,9 @@ void PrsMgr_Presentation::display (const Standard_Boolean theIsHighlight)
 {
   if (!base_type::IsDisplayed())
   {
+// clang-format off
     base_type::SetIsForHighlight (theIsHighlight); // optimization - disable frustum culling for this presentation
+// clang-format on
     base_type::Display();
   }
   else if (!base_type::IsVisible())
index e90300e9c41887bf352f54962abb416cbfe85e88..531dd73bc9c4782237b7d273f7728fc6af2a740b 100644 (file)
@@ -2255,7 +2255,9 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Underflow (Real) ===============================================
     try{
       OCC_CATCH_SIGNALS
+// clang-format off
       std::cout << "(Real) Underflow" << std::endl; // to have message in log even if process crashed
+// clang-format on
       di << "(Real) Underflow";
       //std::cout.flush();
       di << "\n";
index 38e389a1dbfac6aaa2d051196a0da0eaecd517b4..99ec42c2addb10a70eb98e69017ec8a0232d6664 100644 (file)
@@ -348,7 +348,9 @@ static Standard_Boolean OCC23774Test(const TopoDS_Face& grossPlateFace, const To
   gp_Trsf2d mirror11 = mirror1;
   mirror11.PreMultiply(mirror1);
 
+// clang-format off
   BRepExtrema_DistShapeShape distShapeShape2(grossPlateFace,step2ModifiedShape);//,Extrema_ExtFlag_MIN);
+// clang-format on
   if(!distShapeShape2.IsDone())
     return Standard_False;
 
@@ -2247,8 +2249,10 @@ static Standard_Integer OCC24925 (Draw_Interpretor& theDI,
   Standard_Integer anArgIter = 1;
   TCollection_ExtendedString aFileName = theArgVec[anArgIter++];
   TCollection_AsciiString    aPlugin   = "TKXml";
+// clang-format off
   TCollection_AsciiString    aSaver    = "03a56820-8269-11d5-aab2-0050044b1af1"; // XmlStorageDriver   in XmlDrivers.cxx
   TCollection_AsciiString    aLoader   = "03a56822-8269-11d5-aab2-0050044b1af1"; // XmlRetrievalDriver in XmlDrivers.cxx
+// clang-format on
   if (anArgIter < theArgNb)
   {
     aPlugin = theArgVec[anArgIter++];
index 699e105a3f18a3d79c443fb5a1cd69b12c0cc70b..bb87cc6d281b702f28cb7c9c75fe89ca88198fed 100644 (file)
@@ -367,7 +367,9 @@ public:
 
 protected:
   opencascade::handle<BVH_BoxSet<Standard_Real, 3, TopoDS_Shape>> mySBSet1; //!< First ShapeBoxSet
+// clang-format off
   opencascade::handle<BVH_BoxSet<Standard_Real, 3, TopoDS_Shape>> mySBSet2; //!< Second ShapeBoxSet
+// clang-format on
   NCollection_List <std::pair <TopoDS_Shape, TopoDS_Shape> > myPairs; //!< Selected pairs
 };
 
index ff42ce4f99588bb925b33a782397c914892e7368..ceb02f2f3057fde0ed31d90a31494de2a849887e 100644 (file)
@@ -212,7 +212,9 @@ static Standard_Integer QAHandleOps (Draw_Interpretor& theDI,
   gunc (cLine); // passing const handle as non-const reference to base type
   pLine = cLine.get(); // getting non-const pointer to contained object from const handle 
   Handle(Geom_Line) xLine = cCurve; // copy from handle to base type
+// clang-format off
   Handle(Geom_BSplineCurve) aBSpl (new Geom_Line (gp::Origin(), gp::DX())); // construction from pointer to incompatible type
+// clang-format on
 
   CHECK(theDI, aLine == aSurf,  "equality of handles of incompatible types");
   CHECK(theDI, aSurf == cLine,  "equality of const and non-const handle");
index 83c5ac7be14faf0f3cd559ac958838285de2976a..148d64b0839a56a03b831691d2c25b094504b2ac 100644 (file)
@@ -1032,7 +1032,9 @@ static Standard_Integer QATestAtof (Draw_Interpretor& di, Standard_Integer argc,
     // random values within specified range
 //    std::default_random_engine aRandomEngine;
 //    std::uniform_real_distribution<double> aRandomDistr (aRangeMin, aRangeMax);
+// clang-format off
     const uint64_t aMaxUInt64 = ~(uint64_t)0; // could be (not supported by old GCC): std::numeric_limits<uint64_t>::max()
+// clang-format on
     for (int i = 0; i < aNbToTest; i++)
     {
 //      double aVal = aRandomDistr (aRandomEngine);
@@ -1057,6 +1059,7 @@ static Standard_Integer QATestAtof (Draw_Interpretor& di, Standard_Integer argc,
     strcpy (&aValuesStr(i++,0), "-INF");
 
     strcpy (&aValuesStr(i++,0), "  ."); // standalone period should not be considered as a  number
+// clang-format off
     strcpy (&aValuesStr(i++,0), "nanabcdef_128  xx"); // extra non-parenthised sequence after "nan"
 
     strcpy (&aValuesStr(i++,0), "905791934.11394954"); // value that gets rounded in a wrong way by fast Strtod()
@@ -1069,6 +1072,7 @@ static Standard_Integer QATestAtof (Draw_Interpretor& di, Standard_Integer argc,
     strcpy (&aValuesStr(i++,0), "1000000000000000000000000000012345678901234567890"); // huge mantissa
     strcpy (&aValuesStr(i++,0), "0000000000.00000000000000000012345678901234567890"); // leading zeros
     strcpy (&aValuesStr(i++,0), "1.00000000000000000000000000012345678901234567890"); // long fractional part
+// clang-format on
 
     strcpy (&aValuesStr(i++,0), "0.0000000001e318"); // large exponent but no overflow
     strcpy (&aValuesStr(i++,0), "-1.7976931348623158e+308"); // -DBL_MAX 
index 6db997df3deded3b592fe02f9921394aa031b7cb..fa37fc85845bfe2c85ca957c57e5da7dc09a6d5a 100644 (file)
@@ -56,7 +56,9 @@ public:
     if (!aPolyData.IsNull())
     {
       BRep_Builder aBuilder;
+// clang-format off
       aBuilder.UpdateFace (aFace, aPolyData); // replace all "proxy"-triangulations of face by loaded active one.
+// clang-format on
     }
     if (myThreadPool.HasThreads())
     {
index 905e59958aae7063c81de6176411737e74de9980..7d954465aed86b8619845f146d14c90751116121 100644 (file)
@@ -112,11 +112,13 @@ protected:
 
   Standard_Boolean myToParallel;            //!< flag to use multithreading; FALSE by default
   Standard_Boolean myToSkipEmptyNodes;      //!< ignore nodes without Geometry; TRUE by default
+// clang-format off
   Standard_Boolean myToLoadAllScenes;       //!< flag to load all scenes in the document, FALSE by default
   Standard_Boolean myUseMeshNameAsFallback; //!< flag to use Mesh name in case if Node name is empty, TRUE by default
   Standard_Boolean myIsDoublePrecision;     //!< flag to fill in triangulation using single or double precision
   Standard_Boolean myToSkipLateDataLoading; //!< flag to skip triangulation loading
   Standard_Boolean myToKeepLateData;        //!< flag to keep information about deferred storage to load/unload triangulation later
+// clang-format on
   Standard_Boolean myToPrintDebugMessages;  //!< flag to print additional debug information
 
 };
index e7ef51e9576f0b87600e0b647211060ce8edd0f4..e33eac3fabf721302350cca937b2a72031f8c0c5 100644 (file)
@@ -807,7 +807,9 @@ bool RWGltf_CafWriter::writeBinData (const Handle(TDocStd_Document)& theDocument
           {
             case RWGltf_GltfArrayType_Position:
             {
+// clang-format off
               aGltfFace->NbIndexedNodes = 0; // reset to zero before RWGltf_GltfArrayType_Indices step
+// clang-format on
               saveNodes (*aGltfFace, *aBinFile, aFaceIter, aNbAccessors, aMeshPtr);
               break;
             }
index 4fb160999c29a4e43a83a4be3fb5eeef6c0c28fa..2f3a55d0c5024c3ea49caa0919cfd524c41b955e 100644 (file)
@@ -395,6 +395,7 @@ protected:
 protected:
 
   TCollection_AsciiString                       myFile;              //!< output glTF file
+// clang-format off
   TCollection_AsciiString                       myBinFileNameFull;   //!< output file with binary data (full  path)
   TCollection_AsciiString                       myBinFileNameShort;  //!< output file with binary data (short path)
   RWGltf_WriterTrsfFormat                       myTrsfFormat;        //!< transformation format to write into glTF file
@@ -419,6 +420,7 @@ protected:
 
   std::vector<RWGltf_GltfBufferView>            myBuffViewsDraco;    //!< vector of buffers view with compression data
   Standard_Boolean                              myToParallel;        //!< flag to use multithreading; FALSE by default
+// clang-format on
   RWGltf_DracoParameters                        myDracoParameters;   //!< Draco parameters
 };
 
index df01849bb5e173afdc0de3eda61ea3fc33f4a8af..0faa3c69308c80df90dcb70b227bf8d9da9a7a38 100644 (file)
@@ -84,6 +84,7 @@ public:
   struct RWGltf_InternalSection
   {
     // Common
+// clang-format off
     double FileLengthUnit = 1.; //!< File length units to convert from while reading the file, defined as scale factor for m (meters)
     RWMesh_CoordinateSystem SystemCS = RWMesh_CoordinateSystem_Zup; //!< System origin coordinate system to perform conversion into during read
     RWMesh_CoordinateSystem FileCS = RWMesh_CoordinateSystem_Yup; //!< File origin coordinate system to perform conversion during read
@@ -111,6 +112,7 @@ public:
     bool WriteEmbedTexturesInGlb = true; //!< Flag to write image textures into GLB file
     bool WriteMergeFaces = false; //!< Flag to merge faces within a single part
     bool WriteSplitIndices16 = false; //!< Flag to prefer keeping 16-bit indexes while merging face
+// clang-format on
   } InternalParameters;
 };
 
index 7e3f48349af3ffba85a1f2ac0bb0fe03690aa79d..f029327458aeadd7f5b3cf70a87c4682d5e5d50c 100644 (file)
@@ -28,6 +28,7 @@ struct RWGltf_DracoParameters
     UnifiedQuantization (false)
   {}
 
+// clang-format off
   bool DracoCompression;    //!< flag to use Draco compression (FALSE by default). If it is TRUE, compression is used
   int CompressionLevel;     //!< Draco compression level [0-10] (7 by default)
   int QuantizePositionBits; //!< quantization bits for position attribute (14 by default)
@@ -36,6 +37,7 @@ struct RWGltf_DracoParameters
   int QuantizeColorBits;    //!< quantization bits for color attributes (8 by default)
   int QuantizeGenericBits;  //!< quantization bits for skinning and custom attributes (12 by default)
   bool UnifiedQuantization; //!< quantize positions of all primitives using the same quantization grid (FALSE by default)
+// clang-format on
 };
 
 #endif
index 0c4298c2ff4552325208b4782621a9f277e1010b..6be067215f96e8cebb06f527fc55a252bbc46cac 100644 (file)
@@ -31,7 +31,9 @@ public:
   RWGltf_GltfAccessor Indices;  //!< accessor for indexes
   TopoDS_Shape        Shape;    //!< original Face or face list
   XCAFPrs_Style       Style;    //!< face style
+// clang-format off
   Standard_Integer    NbIndexedNodes; //!< transient variable for merging several faces into one while writing Indices
+// clang-format on
 
   RWGltf_GltfFace() : NbIndexedNodes (0) {}
 };
index c3fc588c5fef94f20595150f262454ae31a1ddb3..f6073feee47b5c7006400de90ac4919741d259e8 100644 (file)
@@ -123,7 +123,9 @@ namespace
     Handle(TDataStd_NamedData)& getResult();
 
   private:
+// clang-format off
     const TCollection_AsciiString& myParentID;    //!< ID of the Json object that contains "extras" value. For printing messages.
+// clang-format on
     const RWGltf_JsonValue&        myExtrasValue; //!< "extras" value to parse.
     Handle(TDataStd_NamedData)     myResult;      //!< Result of parsing.
   };
@@ -1952,7 +1954,9 @@ bool RWGltf_GltfJsonParser::gltfParseAccessor (const Handle(RWGltf_GltfLatePrimi
   const RWGltf_JsonValue* aByteOffset     = theCompBuffView == NULL
                                           ? findObjectMember (theAccessor, "byteOffset")
                                           : 0;
+// clang-format off
   const RWGltf_JsonValue* aByteStride     = findObjectMember (theAccessor, "byteStride"); // byteStride was part of bufferView in glTF 1.0
+// clang-format on
   const RWGltf_JsonValue* aCompType       = findObjectMember (theAccessor, "componentType");
   const RWGltf_JsonValue* aCount          = findObjectMember (theAccessor, "count");
   if (aTypeStr == NULL
@@ -2109,7 +2113,9 @@ bool RWGltf_GltfJsonParser::gltfParseBufferView (const Handle(RWGltf_GltfLatePri
   const RWGltf_JsonValue* aBufferName = findObjectMember (theBufferView, "buffer");
   const RWGltf_JsonValue* aByteLength = findObjectMember (theBufferView, "byteLength");
   const RWGltf_JsonValue* aByteOffset = findObjectMember (theBufferView, "byteOffset");
+// clang-format off
   const RWGltf_JsonValue* aByteStride = findObjectMember (theBufferView, "byteStride"); // byteStride is part of bufferView since glTF 2.0
+// clang-format on
   const RWGltf_JsonValue* aTarget     = findObjectMember (theBufferView, "target");
   if (aBufferName == NULL)
   {
index ccb5757a19e75a04e74457bf79edbf04219ae5c5..ce4bef42bf17c69c74273096dc9c410f5e83948a 100644 (file)
@@ -444,7 +444,9 @@ protected:
   RWMesh_NodeAttributeMap*         myAttribMap;     //!< shape attributes
   NCollection_IndexedMap<TCollection_AsciiString>*
                                    myExternalFiles; //!< list of external file references
+// clang-format off
   RWMesh_CoordinateSystemConverter myCSTrsf;        //!< transformation from glTF to OCCT coordinate system
+// clang-format on
   TColStd_IndexedDataMapOfStringString* myMetadata; //!< file metadata
 
   NCollection_DataMap<TCollection_AsciiString, Handle(RWGltf_MaterialMetallicRoughness)> myMaterialsPbr;
@@ -464,10 +466,12 @@ protected:
   bool                      myIsBinary;       //!< binary document
   bool                      myIsGltf1;        //!< obsolete glTF 1.0 version format
   bool                      myToSkipEmptyNodes; //!< ignore nodes without Geometry
+// clang-format off
   bool                      myToLoadAllScenes;  //!< flag to load all scenes in the document, FALSE by default
   bool                      myUseMeshNameAsFallback; //!< flag to use Mesh name in case if Node name is empty, TRUE by default
   bool                      myToProbeHeader;  //!< flag to probe header without full reading, FALSE by default
   bool                      myToReadAssetExtras; //!< flag to translate asset.extras into metadata, TRUE by default
+// clang-format on
 
 #ifdef HAVE_RAPIDJSON
   GltfElementMap myGltfRoots[RWGltf_GltfRootElement_NB]; //!< glTF format root elements
index e6361982e87765868ef3145ca1a79f12a285fbdd..81685361073c7f3ea6ca8cc740cfc341fdde3f60 100644 (file)
@@ -354,7 +354,9 @@ void RWGltf_GltfMaterialMap::addTexture (RWGltf_GltfOStreamWriter* theWriter,
     return;
   }
 
+// clang-format off
   const Standard_Integer anImgKey = myImageMap.FindIndex (theTexture) - 1; // glTF indexation starts from 0
+// clang-format on
   myTextureMap.Add (theTexture);
 
   if (!theIsStarted)
index a2079417ef75c6691b7b2b42d28aa98367cf7b3d..5a25b398c4a68bc15457692e78e0c4248df191d4 100644 (file)
@@ -29,6 +29,7 @@ class RWGltf_MaterialMetallicRoughness : public Standard_Transient
 public:
 
   Handle(Image_Texture)   BaseColorTexture;         //!< RGB texture for the base color
+// clang-format off
   Handle(Image_Texture)   MetallicRoughnessTexture; //!< RG texture packing the metallic and roughness properties together
   Handle(Image_Texture)   EmissiveTexture;          //!< RGB emissive map controls the color and intensity of the light being emitted by the material
   Handle(Image_Texture)   OcclusionTexture;         //!< R occlusion map indicating areas of indirect lighting
@@ -42,6 +43,7 @@ public:
   Standard_ShortReal      AlphaCutOff;              //!< alpha cutoff value; 0.5 by default
   RWGltf_GltfAlphaMode    AlphaMode;                //!< alpha mode; RWGltf_GltfAlphaMode_Opaque by default
   Standard_Boolean        IsDoubleSided;            //!< specifies whether the material is double sided; FALSE by default
+// clang-format on
 
   RWGltf_MaterialMetallicRoughness()
   : BaseColor (1.0f, 1.0f, 1.0f, 1.0f),
index 6ef51e5df2058054cdd7e124e409ee13ec04a760..eb44b24dadfee5d3939c92725d73056f664201f8 100644 (file)
@@ -21,6 +21,8 @@ enum RWGltf_WriterTrsfFormat
   RWGltf_WriterTrsfFormat_Mat4    = 1, //!< 4x4 transformation Matrix
   RWGltf_WriterTrsfFormat_TRS     = 2, //!< transformation decomposed into Translation vector, Rotation quaternion and Scale factor (T * R * S)
 };
+// clang-format off
 enum { RWGltf_WriterTrsfFormat_LOWER = 0, RWGltf_WriterTrsfFormat_UPPER = RWGltf_WriterTrsfFormat_TRS }; // aliases
+// clang-format on
 
 #endif // _RWGltf_WriterTrsfFormat_HeaderFile
index f1bc35edcbf516dc88d9ce73a003dfc5b7aaf491..2f13bebd8498da2017b2ece62dbcc6ded776721c 100644 (file)
@@ -294,6 +294,7 @@ protected:
   TColStd_IndexedDataMapOfStringString
                             myMetadata;          //!< metadata map
   NCollection_IndexedMap<TCollection_AsciiString>
+// clang-format off
                             myExternalFiles;     //!< the list of complementary files - external references (textures, data, etc.)
   TCollection_AsciiString   myRootPrefix;        //!< root folder for generating root labels names
   TopTools_SequenceOfShape  myRootShapes;        //!< sequence of result root shapes
@@ -303,6 +304,7 @@ protected:
                             myCoordSysConverter; //!< coordinate system converter
   Standard_Boolean          myToFillDoc;         //!< fill document from shape sequence
   Standard_Boolean          myToFillIncomplete;  //!< fill the document with partially retrieved data even if reader has failed with error
+// clang-format on
   Standard_Integer          myMemoryLimitMiB;    //!< memory usage limit
   Standard_Integer          myExtraStatus;       //!< extra status bitmask
 
index 780fdf3526a0dab94beb8b5697a17109096ef6a1..eae760a49fe9445d5dff0e8b817788ec0c08918e 100644 (file)
@@ -177,6 +177,7 @@ private:
 
   gp_Ax3           myInputAx3;         //!< source      coordinate system
   gp_Ax3           myOutputAx3;        //!< destination coordinate system
+// clang-format off
   Standard_Real    myInputLengthUnit;  //!< source      length units, defined as scale factor to m (meters); -1.0 by default which means UNDEFINED
   Standard_Real    myOutputLengthUnit; //!< destination length units, defined as scale factor to m (meters); -1.0 by default which means UNDEFINED
   Standard_Boolean myHasInputAx3;      //!< flag indicating if source coordinate system is defined or not
@@ -187,6 +188,7 @@ private:
   Graphic3d_Mat4   myNormTrsf;         //!< transformation 4x4 matrix from input Ax3 to output Ax3
   Standard_Real    myUnitFactor;       //!< unit scale factor
   Standard_Boolean myHasScale;         //!< flag indicating that length unit transformation should be performed
+// clang-format on
   Standard_Boolean myIsEmpty;          //!< flag indicating that transformation is empty
 
 };
index 6439b4b92683ab9e2a1a3c9f78d2273b7314e326..8705862070c8ed826b00c474f7f658ffc15f6ea5 100644 (file)
@@ -184,6 +184,7 @@ private:
 
   NCollection_DataMap<TopoDS_Shape, XCAFPrs_Style, TopTools_ShapeMapHasher>
                                   myStyles;       //!< Face -> Style map
+// clang-format off
   XCAFPrs_Style                   myDefStyle;     //!< default style for faces without dedicated style
   Standard_Boolean                myToMapColors;  //!< flag to dispatch styles
 
@@ -199,6 +200,7 @@ private:
   XCAFPrs_Style                   myFaceStyle;    //!< current face style
   Quantity_ColorRGBA              myFaceColor;    //!< current face color
   Standard_Boolean                myHasFaceColor; //!< flag indicating that current face has assigned color
+// clang-format on
 
 };
 
index e7cb4e49be4b0d234c4aa70a35c7cdf9b1815902..2b696c6775b3c8e6622b64436335fa3874b138fd 100644 (file)
@@ -91,7 +91,9 @@ protected:
                           myStyles;            //!< map of processed styles
   NCollection_Map<Handle(Image_Texture)>
                           myImageFailMap;      //!< map of images failed to be copied
+// clang-format off
   XCAFPrs_Style           myDefaultStyle;      //!< default material definition to be used for nodes with only color defined
+// clang-format on
   Standard_Integer        myNbMaterials;       //!< number of registered materials
   Standard_Boolean        myIsFailed;          //!< flag indicating failure
   Standard_Boolean        myMatNameAsKey;      //!< flag indicating usage of material name as key
index 7860cf55f016fec3b0a583b8a59e0e08738265f2..c3b3b1def122367b4985c8b2579db061c02d428c 100644 (file)
@@ -272,12 +272,14 @@ protected: //! @name interface for filling triangulation data
 protected:
 
   RWMesh_CoordinateSystemConverter myCoordSysConverter;    //!< coordinate system converter
+// clang-format off
   TCollection_AsciiString          myFileName;             //!< file name to use during message printing
   mutable Standard_Mutex           myMutex;                //!< internal mutex to collect nodes/triangles statistic
   mutable LoadingStatistic*        myLoadingStatistic;     //!< statistic of loaded triangulation
   Standard_Boolean                 myIsDoublePrecision;    //!< flag to fill in triangulation using single or double precision
   Standard_Boolean                 myToSkipDegenerateTris; //!< flag to skip degenerate triangles during loading, FALSE by default
   Standard_Boolean                 myToPrintDebugMessages; //!< flag to print additional debug information
+// clang-format on
 };
 
 #endif // _RWMesh_TriangulationReader_HeaderFile
index 45772d064f5f9adeb0e22207e6d8b1d9decd8e0a..d641944e02acfb6e083fe017fb8ed2a39b304e2a 100644 (file)
@@ -58,7 +58,9 @@ protected:
 protected:
 
   NCollection_DataMap<TCollection_AsciiString, Handle(XCAFDoc_VisMaterial)> myObjMaterialMap;
+// clang-format off
   Standard_Boolean myIsSinglePrecision; //!< flag for reading vertex data with single or double floating point precision
+// clang-format on
 };
 
 #endif // _RWObj_CafReader_HeaderFile
index 5c9b0b38146bec77f22bbb5512f2ead628eb04e6..83a2dc6e6ed7cca1aec2b99f96780f688d7f1b98 100644 (file)
@@ -279,7 +279,9 @@ bool RWObj_CafWriter::writeShape (RWObj_ObjWriterContext&        theWriter,
     ++theWriter.NbFaces;
     {
       const bool hasNormals   = aFaceIter.HasNormals();
+// clang-format off
       const bool hasTexCoords = aFaceIter.HasTexCoords(); //&& !aFaceIter.FaceStyle().Texture().IsEmpty();
+// clang-format on
       if (theWriter.NbFaces != 1)
       {
         toCreateGroup = toCreateGroup
index 9910ec0dfe2c853091d8b3994194dfe2721d1cfe..8e1bf7aa4984cc855c15c8f152666538169d44c8 100644 (file)
@@ -159,8 +159,10 @@ protected:
 protected:
 
   TCollection_AsciiString          myFile;         //!< output OBJ file
+// clang-format off
   RWMesh_CoordinateSystemConverter myCSTrsf;       //!< transformation from OCCT to OBJ coordinate system
   XCAFPrs_Style                    myDefaultStyle; //!< default material definition to be used for nodes with only color defined
+// clang-format on
 
 };
 
index 88e9158ab3cc5a9685545db422efec2bec7d6206..41d76252136127cd41e98b0e819cb9d517f82d1a 100644 (file)
@@ -82,6 +82,7 @@ public:
   struct RWObj_InternalSection
   {
     // Common
+// clang-format off
     double FileLengthUnit = 1.; //!< File length units to convert from while reading the file, defined as scale factor for m (meters)
     RWMesh_CoordinateSystem SystemCS = RWMesh_CoordinateSystem_Zup; //!< System origin coordinate system to perform conversion into during read
     RWMesh_CoordinateSystem FileCS = RWMesh_CoordinateSystem_Yup; //!< File origin coordinate system to perform conversion during read
@@ -91,6 +92,7 @@ public:
     TCollection_AsciiString ReadRootPrefix; //!< Root folder for generating root labels names
     bool ReadFillDoc = true; //!< Flag for fill document from shape sequence
     bool ReadFillIncomplete = true; //!< Flag for fill the document with partially retrieved data even if reader has failed with error
+// clang-format on
     int ReadMemoryLimitMiB = -1; //!< Memory usage limit
     // Writing
     TCollection_AsciiString WriteComment; //!< Export special comment
index 5d680cedd471a9188aa29a7fd8920a528e34bc12..967dc3278e5a4078d3fae489575f5fcdfc7589e0 100644 (file)
 struct RWObj_Material
 {
   TCollection_AsciiString Name;            //!< material name (identifier) as defined in MTL file
+// clang-format off
   TCollection_AsciiString DiffuseTexture;  //!< path to the texture image file defining diffuse color
   TCollection_AsciiString SpecularTexture; //!< path to the texture image file defining specular color
+// clang-format on
   TCollection_AsciiString BumpTexture;     //!< path to the texture image file defining normal map
   Quantity_Color          AmbientColor;
   Quantity_Color          DiffuseColor;
index d652a0ef8ef43a623029caa18e524588da4705e1..4b2df73258f27a59ff41b189201f34ea44cd6ec1 100644 (file)
@@ -361,11 +361,13 @@ protected:
   RWMesh_CoordinateSystemConverter   myCSTrsf;        //!< coordinate system flipper
   Standard_Size                      myMemLimitBytes; //!< memory limit in bytes
   Standard_Size                      myMemEstim;      //!< estimated memory occupation in bytes
+// clang-format off
   Standard_Integer                   myNbLines;       //!< number of parsed lines (e.g. current line)
   Standard_Integer                   myNbProbeNodes;  //!< number of probed nodes
   Standard_Integer                   myNbProbeElems;  //!< number of probed elements
   Standard_Integer                   myNbElemsBig;    //!< number of big elements (polygons with 5+ nodes)
   Standard_Boolean                   myToAbort;       //!< flag indicating abort state (e.g. syntax error)
+// clang-format on
 
   // Each node in the Element specifies independent indices of Vertex position, Texture coordinates and Normal.
   // This scheme does not match natural definition of Primitive Array
index 275995e32515aba3426cbaa76ff71e74445435dc..643dfde453ccdef871756d77b5cda54489840cee 100644 (file)
@@ -115,7 +115,9 @@ protected:
   RWObj_IShapeReceiver*   myShapeReceiver;   //!< optional shape receiver
   TopoDS_Compound         myResultShape;     //!< result shape as Compound of objects
   TopoDS_Compound         myLastObjectShape; //!< Compound containing current object groups
+// clang-format off
   TopoDS_Shape            myLastGroupShape;  //!< current group shape - either a single Face or Compound of Faces
+// clang-format on
   TCollection_AsciiString myLastGroupName;   //!< current group name
   TCollection_AsciiString myLastFaceMaterial;//!< last face material name
   Standard_Boolean        myToCreateShapes;  //!< create a single triangulation
index 6a7d4a489d67d26dd1611ebeef74b846bdd38141..f55dc49259163107d4cdf6081080776507e1e558 100644 (file)
@@ -184,8 +184,10 @@ protected:
 protected:
 
   TCollection_AsciiString          myFile;         //!< output PLY file
+// clang-format off
   RWMesh_CoordinateSystemConverter myCSTrsf;       //!< transformation from OCCT to PLY coordinate system
   XCAFPrs_Style                    myDefaultStyle; //!< default material definition to be used for nodes with only color defined
+// clang-format on
   Standard_Boolean                 myIsDoublePrec;
   Standard_Boolean                 myHasNormals;
   Standard_Boolean                 myHasColors;
index 93ac598d8eb6d44f0f67fdbe2b572a95924e8f5c..b26702680f7a28bbf43429a6db9f77f531605dbf 100644 (file)
@@ -90,6 +90,7 @@ public:
   struct RWPly_InternalSection
   {
     // Common
+// clang-format off
     double FileLengthUnit = 1.; //!< File length units to convert from while reading the file, defined as scale factor for m (meters)
     RWMesh_CoordinateSystem SystemCS = RWMesh_CoordinateSystem_Zup; //!< System origin coordinate system to perform conversion into during read
     RWMesh_CoordinateSystem FileCS = RWMesh_CoordinateSystem_Yup; //!< File origin coordinate system to perform conversion during read
@@ -99,6 +100,7 @@ public:
     bool WriteTexCoords = false; //!< Flag for write UV / texture coordinates
     bool WritePartId = true; //!< Flag for write part Id as element attribute
     bool WriteFaceId = false; //!< Flag for write face Id as element attribute. Cannot be combined with HasPartId
+// clang-format on
     TCollection_AsciiString WriteComment; //!< Export special comment
     TCollection_AsciiString WriteAuthor; //!< Author of exported file name
   } InternalParameters;
index 49807eb7a2f4f3aefc211ef71ef149f7561bccb3..9d6f36922b32c49537270ae108fa38704a386375 100644 (file)
@@ -26,7 +26,9 @@ namespace
 {
 
   static const Standard_Integer THE_STL_SIZEOF_FACET = 50;
+// clang-format off
   static const Standard_Integer IND_THRESHOLD = 1000; // increment the indicator every 1k triangles
+// clang-format on
   static const size_t THE_BUFFER_SIZE = 1024; // The length of buffer to read (in bytes)
 
   //! Writing a Little Endian 32 bits integer
index 15d28b728c9c67392b2014de93bd17d4ff6170a5..7de1ffc6541c3d8d797a0be2b62ea50549833cc8 100644 (file)
@@ -481,7 +481,9 @@ Standard_Integer STEPConstruct_UnitContext::ComputeTolerance
        Standard_Real LengthUncertainty = aUMWU->ValueComponent();
        // Update it according to the Length Unit Factor
        //pdn r_47-sd.stp to choose minimal uncertainty
+// clang-format off
        if(theUncertainty > LengthUncertainty) theUncertainty =  LengthUncertainty; // *lengthFactor; fait par appelant
+// clang-format on
        hasUncertainty = Standard_True;
       }
     }
index 413b6f4f19058899947a9340786c0b9ebe133eb3..67d2140db78bd388ec79efbd3fb168e560db1a88 100644 (file)
@@ -1387,7 +1387,9 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::OldWay
 
   //:j2
   shbinder = new TransferBRep_ShapeBinder;
+// clang-format off
   TP->Bind ( start, shbinder ); //:j3 abv 23 Oct 98: rp1sd.stp: bind something to protect against loops
+// clang-format on
   if (!binder.IsNull()) {
     TopoDS_Shape theResult = TransferBRep::ShapeResult (binder);
     if (!theResult.IsNull()) {
index f3256d0146c103474279987bb2f54efb85cdd550..d0cc61ee3ed982836550e95fb5bbce2f3328becc 100644 (file)
@@ -1529,7 +1529,9 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferCompound
     shapeRep = new StepShape_ShapeRepresentation;
     SDR0->SetUsedRepresentation(shapeRep);  // to be used by MakeItem
   }
+// clang-format off
   binder = TransientResult(SDR0); // set SDR as first item in order to be found first (but not SDR of subshape!)
+// clang-format on
   binder->AddResult ( TransientResult(shapeRep) );
 
   // translate components
index 7a0be491dab4c9644e0a581583b6e01159b791b1..62ba2982fbf28416d9721dfce936077bd9f675d4 100644 (file)
@@ -276,6 +276,7 @@ STEPControl_Controller::STEPControl_Controller ()
     // Note: the numbers should be consistent with Resource_FormatType enumeration
     Interface_Static::Init("step", "read.step.codepage", 'e', "");
     Interface_Static::Init("step", "read.step.codepage", '&', "enum 0");
+// clang-format off
     Interface_Static::Init("step", "read.step.codepage", '&', "eval SJIS");         // Resource_FormatType_SJIS 0
     Interface_Static::Init("step", "read.step.codepage", '&', "eval EUC");          // Resource_FormatType_EUC 1
     Interface_Static::Init("step", "read.step.codepage", '&', "eval NoConversion"); // Resource_FormatType_NoConversion 2
@@ -301,6 +302,7 @@ STEPControl_Controller::STEPControl_Controller ()
     Interface_Static::Init("step", "read.step.codepage", '&', "eval iso8859-8");    // Resource_FormatType_iso8859_8 22
     Interface_Static::Init("step", "read.step.codepage", '&', "eval iso8859-9");    // Resource_FormatType_iso8859_9 23
     Interface_Static::Init("step", "read.step.codepage", '&', "eval CP850");        // Resource_FormatType_CP850 24
+// clang-format on
     Interface_Static::SetCVal("read.step.codepage", "UTF8");
 
     // Tessellated geometry reading: Off by default
@@ -319,7 +321,9 @@ STEPControl_Controller::STEPControl_Controller ()
     Interface_Static::Init("step", "write.step.tessellated", '&', "eval OnNoBRep"); // 2
     Interface_Static::SetCVal("write.step.tessellated", "OnNoBRep");
 
+// clang-format off
     Standard_STATIC_ASSERT((int)Resource_FormatType_CP850 - (int)Resource_FormatType_CP1250 == 18); // "Error: Invalid Codepage Enumeration"
+// clang-format on
 
     init = Standard_True;
   }
index a6c412498f17a092128abec574bac5a971a1bd38..e9c0ce6a66018fd1275b9765923e605c3ea8ef87 100644 (file)
@@ -38,7 +38,9 @@ static Standard_Integer ApplySequence(Draw_Interpretor& di, Standard_Integer arg
   if (Shape.IsNull()) { di<<"Shape unknown : "<<arg2<<"\n"; return 1 /* Error */; }
   
   ShapeProcessAPI_ApplySequence seq (arg3, arg4);
+// clang-format off
   TopoDS_Shape result = seq.PrepareShape(Shape, Standard_True, TopAbs_FACE);//fill history map for faces and above
+// clang-format on
   seq.PrintPreparationResult();
   DBRep::Set (arg1,result);
   return 0;
index a999b5da879e7a36c1cb8eb94cf7a60b43ed179e..e9189a63f156944273d35ab21a8e1c50ade97bef 100644 (file)
@@ -820,7 +820,9 @@ static Standard_Integer DT_SplitSurface (Draw_Interpretor& di,
     return 1;
   }
 
+// clang-format off
   Handle(ShapeUpgrade_SplitSurfaceContinuity) theTool = new ShapeUpgrade_SplitSurfaceContinuity;//S4137
+// clang-format on
   
   Standard_Real      Tol=Draw::Atof(a[3]);
   Standard_Integer Split = Draw::Atoi(a[4]);
index bf63663ac3d73c7e5bc5b71339fe9d3b163db97e..4257abddbcf6b8b64ac442a164565918c342ade6 100644 (file)
@@ -80,7 +80,9 @@ public:
 private:
 
   Select3D_TypeOfSensitivity    mySensType;       //!< Type of sensitivity: interior or boundary
+// clang-format off
   Handle(Select3D_SensitiveSet) myFacePoints;     //!< Wrapper for overlap detection created depending on sensitivity type
+// clang-format on
 };
 
 DEFINE_STANDARD_HANDLE(Select3D_SensitiveFace, Select3D_SensitiveEntity)
index ecd18bcca8bec8cb370c9815430ad982acfa26f3..24b6b0120987647b1735452c488e83b2acb83337 100644 (file)
@@ -164,11 +164,13 @@ protected:
 private:
 
   Select3D_IndexedMapOfEntity          myEntities;           //!< Grouped sensitive entities
+// clang-format off
   Standard_Boolean                     myMustMatchAll;       //!< Determines whether all entities in the group should be overlapped or not
   Standard_Boolean                     myToCheckOverlapAll;  //!< flag to check overlapping with all entities within rectangular/polygonal selection
   gp_Pnt                               myCenter;             //!< Center of geometry of the group
   mutable Select3D_BndBox3d            myBndBox;             //!< Bounding box of the group
   NCollection_Vector<Standard_Integer> myBVHPrimIndexes;     //!< Vector of sub-entities indexes for BVH tree build
+// clang-format on
 };
 
 DEFINE_STANDARD_HANDLE(Select3D_SensitiveGroup, Select3D_SensitiveEntity)
index 77ead4bc7d50942ed96e269768266786bc8b1984..d22d8b102f075454d6944115ecd22ada8d0ec9dc 100644 (file)
@@ -147,8 +147,10 @@ protected:
   mutable gp_Pnt                   myCOG;            //!< Center of the poly
   Handle(TColStd_HArray1OfInteger) mySegmentIndexes; //!< Segment indexes for BVH tree build
   Select3D_BndBox3d                myBndBox;         //!< Bounding box of the poly
+// clang-format off
   Select3D_TypeOfSensitivity       mySensType;       //!< Type of sensitivity: boundary or interior
   mutable Standard_Boolean         myIsComputed;     //!< Is true if all the points and data structures of polygon are initialized
+// clang-format on
 };
 
 DEFINE_STANDARD_HANDLE(Select3D_SensitivePoly, Select3D_SensitiveSet)
index 28002d8ecbc98b4a836b2e61c11f2d54c32250f4..c75dd369c4735adc51e0cf178c18ffe2d84189c8 100644 (file)
@@ -305,6 +305,7 @@ private:
   Handle(Graphic3d_Buffer)            myVerts;              //!< source data - nodes position
   Handle(Graphic3d_IndexBuffer)       myIndices;            //!< source data - primitive indexes
   const Standard_Byte*                myPosData;            //!< position vertex attribute data
+// clang-format off
   Standard_Size                       myPosStride;          //!< position vertex attribute stride in bytes
   Graphic3d_TypeOfPrimitiveArray      myPrimType;           //!< primitives type
   Standard_Integer                    myIndexLower;         //!< index range - first index in myIndices (inclusive)
@@ -329,6 +330,7 @@ private:
   bool                                myToDetectElem;       //!< flag to keep info about last detected element
   bool                                myToDetectNode;       //!< flag to keep info about last detected node
   bool                                myToDetectEdge;       //!< flag to keep info about last detected edge
+// clang-format on
 
 public:
 
index 5c737cc0257989cfb738d7633139343bacfe859b..03effd253db1d83785d31204ef2856a4c74e9231 100644 (file)
@@ -74,7 +74,9 @@ namespace
                  Standard_Boolean theIsFullInside = false) : Id (theId), IsFullInside (theIsFullInside) {}
 
     Standard_Integer Id;           //!< node identifier
+// clang-format off
     Standard_Boolean IsFullInside; //!< if the node is completely inside the current selection volume
+// clang-format on
   };
 }
 
index 456ed2cb40610fd5d12a0d673687bc100cd1f1be..0e3338e0267f4b7db245344c59da4676ad05b590 100644 (file)
@@ -150,10 +150,12 @@ protected:
   TopLoc_Location                  myInitLocation;
   gp_Pnt                           myCDG3D;              //!< Center of the whole triangulation
   Handle(TColStd_HArray1OfInteger) myFreeEdges;
+// clang-format off
   Standard_Boolean                 mySensType;            //!< Type of sensitivity: boundary or interior
   Standard_Integer                 myPrimitivesNb;       //!< Amount of free edges or triangles depending on sensitivity type
   Handle(TColStd_HArray1OfInteger) myBVHPrimIndexes;     //!< Indexes of edges or triangles for BVH build
   mutable Select3D_BndBox3d        myBndBox;             //!< Bounding box of the whole triangulation
+// clang-format on
   gp_GTrsf                         myInvInitLocation;
 };
 
index 5c9a6e8dba44f02a58d9bf8a77d94c9866779f89..465e92ed594fbfdb7e7439d173be950eef91f799 100644 (file)
@@ -91,10 +91,12 @@ protected:
 
 private:
 
+// clang-format off
   NCollection_Vector<Handle(Select3D_SensitiveEntity)> myEntities;          //!< Vector of sub-entities
   NCollection_Vector<Standard_Integer>                 myEntityIndexes;     //!< Indexes of entities for BVH build
   gp_Pnt                                               myCenter;            //!< Center of the whole wire
   mutable Select3D_BndBox3d                            myBndBox;            //!< Bounding box of the whole wire
+// clang-format on
 };
 
 DEFINE_STANDARD_HANDLE(Select3D_SensitiveWire, Select3D_SensitiveEntity)
index 32ab74a59f7e2ee88da8e9cb66b752c80352e678..2ba1ba36720f7433e62a7f4b52a00dfd4a3f0ac3 100644 (file)
@@ -97,7 +97,9 @@ private:
   gp_Pnt                  myObjPickedPnt; //!< User-picked selection point onto object
   NCollection_Vec3<float> myNormal;       //!< surface normal
   Standard_Real           myDepth;        //!< Depth to detected point
+// clang-format off
   Standard_Real           myDistToCenter; //!< Distance from 3d projection user-picked selection point to entity's geometry center
+// clang-format on
 };
 
 #endif // _SelectBasics_PickResult_HeaderFile
index 4f7370411d79aa93b6bdb8e88ae7b058ccdf1327..26573dcc66e7796cc6510d1bad736890b47dbc5a 100644 (file)
@@ -54,7 +54,9 @@ private:
 
   Handle(Graphic3d_NMapOfTransient) myDisabledObjects; //!< disabled objects.
                                                        //!  Selection isn't applied to these objects.
+// clang-format off
   SelectMgr_FilterType myFilterType; //!< selection filter type. SelectMgr_TypeFilter_OR by default.
+// clang-format on
 };
 
 #endif // _SelectMgr_AndOrFilter_HeaderFile
index c96c1f8c60f59bcedc7331813d6b31284b875ecc..bb0b3e484a30f94d085de226b37336a2366008e8 100644 (file)
@@ -161,6 +161,7 @@ public:
 
 protected:
 
+// clang-format off
   NCollection_List<Handle(Select3D_SensitiveEntity)> myBVHToBuildList; //!< list of queued sensitive entities
   NCollection_Array1<BVHThread> myBVHThreads;                          //!< threads to build BVH
   Standard_Boolean myToStopBVHThread;                                  //!< flag to stop BVH threads
@@ -168,6 +169,7 @@ protected:
   Standard_Condition myWakeEvent;                                      //!< raises when any sensitive is added to the BVH list
   Standard_Condition myIdleEvent;                                      //!< raises when BVH list become empty
   Standard_Boolean myIsStarted;                                        //!< indicates that threads are running
+// clang-format on
 };
 
 #endif
index 5e45b26238faa722bc5b97a4308e6603910e1c0d..c99a563a11db6d99d275e267ce800d84cc22eb0e 100644 (file)
@@ -285,7 +285,9 @@ public:
 
 protected:
 
+// clang-format off
   Handle(Graphic3d_Camera) myCamera;        //!< camera definition (if builder isn't NULL it is the same as its camera)
+// clang-format on
   SelectMgr_SelectionType  mySelectionType; //!< type of selection
 };
 
index 968d44c75067affe29dc4d172699208b30ab8f28..57bd3a35ae8dad9e5de425b7b4bd605aace61862 100644 (file)
@@ -210,9 +210,11 @@ public:
 protected:
 
   SelectMgr_SelectableObject* mySelectable;        //!< raw pointer to selectable object
+// clang-format off
   Standard_Integer            mypriority;          //!< selection priority (for result with the same depth)
   Standard_Boolean            myIsSelected;        //!< flag indicating selected state
   Standard_Boolean            myFromDecomposition; //!< flag indicating this owner points to a part of object (TRUE) or to entire object (FALSE)
+// clang-format on
 
 };
 
index 8a77af6b391689efbe198c87a9518a620104a550..aa8002a661855d2ec23e4bd872c424bc713588de 100644 (file)
@@ -152,10 +152,12 @@ protected:
   gp_Vec myPlanes[N + 2];        //!< Plane equations
   gp_Pnt myVertices[N * 2];      //!< Vertices coordinates
 
+// clang-format off
   Standard_Real myMaxVertsProjections[N + 2];      //!< Cached projections of vertices onto frustum plane directions
   Standard_Real myMinVertsProjections[N + 2];      //!< Cached projections of vertices onto frustum plane directions
   Standard_Real myMaxOrthoVertsProjections[3];     //!< Cached projections of vertices onto directions of ortho unit vectors
   Standard_Real myMinOrthoVertsProjections[3];     //!< Cached projections of vertices onto directions of ortho unit vectors
+// clang-format on
 
   gp_Vec myEdgeDirs[6];                    //!< Cached edge directions
 };
index 0ec55d3a169050b0a06fd1b46777861057000bc2..2f19cfe19cf4aa90843ff2e7c529c783df06ccc2 100644 (file)
@@ -40,7 +40,9 @@ void SelectMgr_RectangularFrustum::segmentSegmentDistance (const gp_Pnt& theSegP
                                                            SelectBasics_PickResult& thePickResult) const
 {
   gp_XYZ anU = theSegPnt2.XYZ() - theSegPnt1.XYZ();
+// clang-format off
   gp_XYZ aV = myFarPickedPnt.XYZ() - myNearPickedPnt.XYZ(); // use unnormalized vector instead of myViewRayDir to clip solutions behind Far plane
+// clang-format on
   gp_XYZ aW = theSegPnt1.XYZ() - myNearPickedPnt.XYZ();
 
   Standard_Real anA = anU.Dot (anU);
@@ -110,7 +112,9 @@ bool SelectMgr_RectangularFrustum::segmentPlaneIntersection (const gp_Vec& thePl
                                                              const gp_Pnt& thePntOnPlane,
                                                              SelectBasics_PickResult& thePickResult) const
 {
+// clang-format off
   gp_XYZ anU = myFarPickedPnt.XYZ() - myNearPickedPnt.XYZ(); // use unnormalized vector instead of myViewRayDir to clip solutions behind Far plane by > 1.0 check
+// clang-format on
   gp_XYZ aW = myNearPickedPnt.XYZ() - thePntOnPlane.XYZ();
   Standard_Real aD = thePlane.Dot (anU);
   Standard_Real aN = -thePlane.Dot (aW);
@@ -234,7 +238,9 @@ void SelectMgr_RectangularFrustum::cacheVertexProjections (SelectMgr_Rectangular
     // to simplify calculations.
     Standard_Integer aVertIdxs[6] = { LeftTopNear, LeftBottomNear,       // opposite planes in height direction
                                       LeftBottomNear, RightBottomNear,   // opposite planes in width direction
+// clang-format off
                                       LeftBottomFar, RightBottomNear };  // opposite planes in depth direction
+// clang-format on
     for (Standard_Integer aPlaneIdx = 0; aPlaneIdx < 5; aPlaneIdx += 2)
     {
       Standard_Real aProj1 = theFrustum->myPlanes[aPlaneIdx].XYZ().Dot (theFrustum->myVertices[aVertIdxs[aPlaneIdx]].XYZ());
index de6f003aa40ce1bbbdee730973659293669ec914..098ce96b98ca653752d45fce1d9ef1699defb72a 100644 (file)
@@ -257,11 +257,13 @@ private:
 
 private:
 
+// clang-format off
   SelectionRectangle      mySelRectangle;              //!< parameters for selection by point or box (it is used to build frustum)
   gp_Pnt                  myNearPickedPnt;             //!< 3d projection of user-picked selection point onto near view plane
   gp_Pnt                  myFarPickedPnt;              //!< 3d projection of user-picked selection point onto far view plane
   gp_Dir                  myViewRayDir;                //!< view ray direction
   Standard_Real           myScale;                     //!< Scale factor of applied transformation, if there was any
+// clang-format on
 
 };
 
index 1a1dc37c7d1920eef3e5f32268d1b04aac558d29..f7cf92a4ad5c033d7140101f4ae829e1dd30283d 100644 (file)
@@ -191,8 +191,10 @@ protected:
 protected:
 
   SelectMgr_SequenceOfSelection myselections;    //!< list of selections
+// clang-format off
   Handle(Prs3d_Presentation)    mySelectionPrs;  //!< optional presentation for highlighting selected object
   Handle(Prs3d_Presentation)    myHilightPrs;    //!< optional presentation for highlighting detected object
+// clang-format on
   Standard_Integer              myGlobalSelMode; //!< global selection mode
   Standard_Boolean              myAutoHilight;   //!< auto-highlighting flag defining
 
index 49794719082f6aee9fad6882c4111ab1fce1f0dd..60017e8a4f8b3249fa5e96db3c3d117d0e486f4d 100644 (file)
@@ -414,7 +414,9 @@ void SelectMgr_SelectableObjectSet::UpdateBVH (const Handle(Graphic3d_Camera)& t
        || myLastViewState.IsChanged (aViewState)
        || isWinSizeChanged))
     {
+// clang-format off
       Handle(Graphic3d_Camera) aNewOrthoCam = new Graphic3d_Camera (*theCam); // If OrthoPers, copy camera and set to orthographic projection
+// clang-format on
       aNewOrthoCam->SetProjectionType (Graphic3d_Camera::Projection_Orthographic);
 
       // construct adaptor over private fields to provide direct access for the BVH builder
@@ -434,7 +436,9 @@ void SelectMgr_SelectableObjectSet::UpdateBVH (const Handle(Graphic3d_Camera)& t
        || myLastViewState.IsProjectionChanged (aViewState)
        || isWinSizeChanged))
     {
+// clang-format off
       Handle(Graphic3d_Camera) aNewOrthoCam = new Graphic3d_Camera (*theCam); // If OrthoPers, copy camera and set to orthographic projection
+// clang-format on
       aNewOrthoCam->SetProjectionType (Graphic3d_Camera::Projection_Orthographic);
 
       // construct adaptor over private fields to provide direct access for the BVH builder
index fa1a7367016ced881eee4130d033b648353319d5..979d56e9dfc525beac608b06e1705b17005aa06f 100644 (file)
@@ -240,12 +240,14 @@ private:
 
 private:
 
+// clang-format off
   NCollection_IndexedMap<Handle(SelectMgr_SelectableObject)> myObjects[BVHSubsetNb]; //!< Map of objects for each subset
   opencascade::handle<BVH_Tree<Standard_Real, 3> >           myBVH[BVHSubsetNb];     //!< BVH tree computed for each subset
   Handle(Select3D_BVHBuilder3d)                              myBuilder[BVHSubsetNb]; //!< Builder allocated for each subset
   Standard_Boolean                                           myIsDirty[BVHSubsetNb]; //!< Dirty flag for each subset
   Graphic3d_WorldViewProjState                               myLastViewState;        //!< Last view-projection state used for construction of BVH
   Graphic3d_Vec2i                                            myLastWinSize;          //!< Last viewport's (window's) width used for construction of BVH
+// clang-format on
   friend class Iterator;
 };
 
index 6c5ccba401ebd36b726e68db177fe8208b137831..b54e7235b163938aa23e1572f81b80c18d0ba420 100644 (file)
@@ -288,10 +288,12 @@ public:
 
 private:
   Handle(SelectMgr_BaseIntersector)      myActiveSelectingVolume;
+// clang-format off
   Handle(Graphic3d_SequenceOfHClipPlane) myViewClipPlanes;                  //!< view clipping planes
   Handle(Graphic3d_SequenceOfHClipPlane) myObjectClipPlanes;                //!< object clipping planes
   SelectMgr_ViewClipRange                myViewClipRange;
   Standard_Boolean                       myToAllowOverlap;                  //!< Defines if partially overlapped entities will me detected or not
+// clang-format on
 };
 
 #endif
index 5436525f6e01b23ac12c3c0bcfe92d6bacfcc6d2..f406bb69640c3d701dda06f3f0d3f3c834ef5c47 100644 (file)
@@ -285,7 +285,9 @@ namespace
     : SelectMgr_SelectionImageFiller (thePixMap, theSelector)
     {
       // generate standard modes in proper order, consider custom objects would use similar scheme
+// clang-format off
       myMapSelectionModeColors.Bind (     0, Quantity_NOC_WHITE);          // default (entire object selection)
+// clang-format on
       myMapSelectionModeColors.Bind (     1, Quantity_NOC_YELLOW);         // TopAbs_VERTEX
       myMapSelectionModeColors.Bind (     2, Quantity_NOC_GREEN);          // TopAbs_EDGE
       myMapSelectionModeColors.Bind (     3, Quantity_NOC_RED);            // TopAbs_WIRE
index 01752fd2f3a9793ad7b9c115dfa82479bc488260..7962eae95085623caf0bc2279d9997042ab9a952 100644 (file)
@@ -89,9 +89,11 @@ protected:
 
 private:
 
+// clang-format off
   SelectMgr_IndexedMapOfHSensitive mySensitives;              //!< Map of entities and its corresponding index in BVH
   SelectMgr_MapOfOwners            myOwnersMap;               //!< Map of entity owners and its corresponding number of sensitives
   Standard_Integer                 myNbEntityWithPersistence; //!< number of sensitive entities that have own transform persistence
+// clang-format on
 };
 
 #endif // _SelectMgr_SensitiveEntitySet_HeaderFile
index 689f6a7bf6dc0dda55c43bb518d483637e2450fd..c4c57bdd54d6331482d408b8dfbfdd87671622b0 100644 (file)
@@ -31,12 +31,14 @@ public:
   gp_Pnt             Point;             //!< 3D point
   Graphic3d_Vec3     Normal;            //!< surface normal or 0 vector if undefined
   Standard_Real      Depth;             //!< distance from the view plane to the entity
+// clang-format off
   Standard_Real      MinDist;           //!< distance from the clicked point to the entity on the view plane
   Standard_Real      Tolerance;         //!< tolerance used for selecting candidates
   Standard_Integer   SelectionPriority; //!< selection priority
   Standard_Integer   DisplayPriority;   //!< display priority
   Standard_Integer   ZLayerPosition;    //!< ZLayer rendering order index, stronger than a depth
   Standard_Integer   NbOwnerMatches;    //!< overall number of entities collected for the same owner
+// clang-format on
   Standard_Boolean   IsPreferPriority;  //!< flag to signal comparison to be done over priority
 
 public:
index a2e20665a7f94df01af015bfc62c6712cc777ad3..3ffcbba087590292514530ed21b505dcfe5651e5 100644 (file)
@@ -185,7 +185,9 @@ private:
 
 protected:
 
+// clang-format off
   SelectionTriangle mySelTriangle; //!< parameters of selection triangle (it is used to build triangle frustum)
+// clang-format on
 
 public:
 
index 3447d954242bb3da3ce502b6bc965086fa8cab1e..5b4d153ce05af3d025b28a19f016be7d0cb52046 100644 (file)
@@ -195,6 +195,7 @@ private:
 private:
 
   SelectMgr_TriangFrustums      myFrustums;          //!< set of triangular frustums
+// clang-format off
   SelectionPolyline             mySelPolyline;       //!< parameters of selection polyline (it is used to build triangle frustum set)
   TColgp_Array1OfPnt            myBoundaryPoints;    //!< boundary points
                                                      //!       1_____2
@@ -204,6 +205,7 @@ private:
                                                      //!    | /       \ |
                                                      //!   8|/_________\|7
   Standard_Boolean              myToAllowOverlap;    //!< flag to detect only fully included sensitives or not
+// clang-format on
 };
 
 #endif // _SelectMgr_TriangularFrustumSet_HeaderFile
index 18837ed68128288c89a03ce34085985cc95b587a..c6ed97bc521d7e37ceb193d0f15806dba1e7d568 100644 (file)
@@ -15,7 +15,9 @@ static const char Shaders_DeclarationsImpl_glsl[] =
   "  ivec2  aFragCoord = ivec2 (gl_FragCoord.xy);\n"
   "  vec2   aLastDepth = texelFetch (occDepthPeelingDepth, aFragCoord, 0).rg;\n"
   "  occPeelFrontColor = texelFetch (occDepthPeelingFrontColor, aFragCoord, 0);\n"
+// clang-format off
   "  occPeelDepth.rg   = vec2 (THE_DEPTH_CLEAR_VALUE); // depth value always increases, so that MAX blend equation can be used\n"
+// clang-format on
   "  occPeelBackColor  = vec4 (0.0); // back color is blend after each peeling pass\n"
   "\n"
   "  float aNearDepth = -aLastDepth.x;\n"
@@ -68,8 +70,10 @@ static const char Shaders_DeclarationsImpl_glsl[] =
   "\n"
   "#if defined(THE_MAX_LIGHTS) && (THE_MAX_LIGHTS > 0)\n"
   "// arrays of light sources\n"
+// clang-format off
   "uniform               vec4 occLightSources[THE_MAX_LIGHTS * 4]; //!< packed light sources parameters\n"
   "uniform THE_PREC_ENUM int occLightSourcesTypes[THE_MAX_LIGHTS]; //!< packed light sources types\n"
+// clang-format on
   "#endif\n"
   "\n"
   "#if defined(THE_IS_PBR)\n"
index 0485a491c67c7e65317e355e9245f3e6792d00fb..3c8501ff9e32915346622d49a730face1a2ed86e 100644 (file)
@@ -129,6 +129,7 @@ static const char Shaders_Declarations_glsl[] =
   "uniform mat4 occProjectionMatrixTranspose; //!< Transpose of the projection  matrix\n"
   "uniform mat4 occModelWorldMatrixTranspose; //!< Transpose of the model-world matrix\n"
   "\n"
+// clang-format off
   "uniform mat4 occWorldViewMatrixInverseTranspose;  //!< Transpose of the inverse of the world-view  matrix\n"
   "uniform mat4 occProjectionMatrixInverseTranspose; //!< Transpose of the inverse of the projection  matrix\n"
   "uniform mat4 occModelWorldMatrixInverseTranspose; //!< Transpose of the inverse of the model-world matrix\n"
@@ -140,6 +141,7 @@ static const char Shaders_Declarations_glsl[] =
   "uniform int         occNbSpecIBLLevels;    //!< Number of mipmap levels used in occSpecIBLMap to store different roughness values maps\n"
   "\n"
   "vec3 occDiffIBLMap (in vec3 theNormal); //!< Unpacks spherical harmonics coefficients to diffuse IBL map's values\n"
+// clang-format on
   "#endif\n"
   "\n"
   "// light type enumeration (same as Graphic3d_TypeOfLightSource)\n"
@@ -203,7 +205,9 @@ static const char Shaders_Declarations_glsl[] =
   "// Front/back material properties accessors\n"
   "vec4  occPBRMaterial_Color(in bool theIsFront);    //!< Base color of PBR material\n"
   "float occPBRMaterial_Metallic(in bool theIsFront); //!< Metallic coefficient\n"
+// clang-format off
   "float occPBRMaterial_NormalizedRoughness(in bool theIsFront); //!< Normalized roughness coefficient\n"
+// clang-format on
   "vec3  occPBRMaterial_Emission(in bool theIsFront); //!< Light intensity emitted by material\n"
   "float occPBRMaterial_IOR(in bool theIsFront);      //!< Index of refraction\n"
   "#define occMaterial_Emission occPBRMaterial_Emission\n"
@@ -244,7 +248,9 @@ static const char Shaders_Declarations_glsl[] =
   "#endif\n"
   "\n"
   "#if defined(THE_HAS_TEXTURE_NORMAL) && defined(FRAGMENT_SHADER)\n"
+// clang-format off
   "uniform sampler2D occSamplerNormal;      //!< XYZ normal texture sampler with W==0 indicating no texture\n"
+// clang-format on
   "#define occTextureNormal(theTexCoord) occTexture2D(occSamplerNormal, theTexCoord)\n"
   "#else\n"
   "#define occTextureNormal(theTexCoord) vec4(0.0) // no normal map\n"
@@ -259,6 +265,7 @@ static const char Shaders_Declarations_glsl[] =
   "#define occMaterialMetallic(theIsFront,  theTexCoord) occPBRMaterial_Metallic(theIsFront)\n"
   "#endif\n"
   "\n"
+// clang-format off
   "uniform               vec4      occColor;              //!< color value (in case of disabled lighting)\n"
   "uniform THE_PREC_ENUM int       occDistinguishingMode; //!< Are front and back faces distinguished?\n"
   "uniform THE_PREC_ENUM int       occTextureEnable;      //!< Is texture enabled?\n"
@@ -274,6 +281,7 @@ static const char Shaders_Declarations_glsl[] =
   "#if defined(THE_MAX_CLIP_PLANES) && (THE_MAX_CLIP_PLANES > 0)\n"
   "uniform               vec4 occClipPlaneEquations[THE_MAX_CLIP_PLANES];\n"
   "uniform THE_PREC_ENUM int  occClipPlaneChains[THE_MAX_CLIP_PLANES]; //! Indicating the number of planes in the Chain\n"
+// clang-format on
   "uniform THE_PREC_ENUM int  occClipPlaneCount;   //!< Total number of clip planes\n"
   "#endif\n"
   "//! @endfile Declarations.glsl\n";
index 183773b27834ec478e0a7f2bf550255ce5fce714..ca65994855236bd9e93d73fe2e1ff5d2c39ce1c7 100644 (file)
@@ -16,8 +16,10 @@ static const char Shaders_PBREnvBaking_fs[] =
   "#endif\n"
   "\n"
   "#ifdef THE_TO_BAKE_SPECULAR\n"
+// clang-format off
   "uniform int   uCurrentLevel;        //!< current level of specular IBL map (ignored in case of diffuse map's processing)\n"
   "uniform float uEnvSolidAngleSource; //!< source solid angle sample computed from one edge's size of source environment map's zero mipmap level\n"
+// clang-format on
   "#endif\n"
   "\n"
   "//! Returns coordinates of point theNumber from Hammersley point set having size theSize.\n"
index 008d1885b03a761ceb0bc76076494b37e16ed23e..07f18973837bcd524534776ff01466a8f11850e7 100644 (file)
@@ -10,6 +10,7 @@ static const char Shaders_SkydomBackground_fs[] =
   "const float THE_G2           = THE_G * THE_G;\n"
   "const float THE_HR           = 8000.0;  // Thickness of the atmosphere\n"
   "const float THE_HM           = 1000.0;  // Same as above but for Mie\n"
+// clang-format off
   "const vec3  THE_BETA_R       = vec3 (5.8e-6, 13.5e-6, 33.1e-6); // Reyleigh scattering normal earth\n"
   "const vec3  THE_BETA_M       = vec3 (21e-6); // Normal Mie scattering\n"
   "\n"
@@ -19,6 +20,7 @@ static const char Shaders_SkydomBackground_fs[] =
   "const float THE_HorizonWidth   = 0.002;\n"
   "const int   THE_NbSamples      = 8;\n"
   "const int   THE_NbSamplesLight = 8;     // integral sampling rate (might highly hit performance)\n"
+// clang-format on
   "const float THE_SunPower       = 5.0;\n"
   "const float THE_StarTreshold   = 0.98;\n"
   "\n"
index 26ae1e828662d6198e36c71af995864d47488736..20c609f2a6e8270d4ee29a224f48c63c0ae8adb7 100644 (file)
@@ -125,7 +125,9 @@ Standard_Real ShapeAnalysis_Curve::Project(const Handle(Geom_Curve)& C3D,
   
   GeomAdaptor_Curve GAC(C3D, uMin, uMax);
   if (C3D->IsKind(STANDARD_TYPE(Geom_BoundedCurve))) {
+// clang-format off
     Standard_Real prec = ( AdjustToEnds ? preci : Precision::Confusion() ); //:j8 abv 10 Dec 98: tr10_r0501_db.stp #9423: protection against densing of points near one end
+// clang-format on
     gp_Pnt LowBound = GAC.Value(uMin);
     gp_Pnt HigBound = GAC.Value(uMax);
     distmin = LowBound.Distance(P3D);
@@ -181,7 +183,9 @@ Standard_Real ShapeAnalysis_Curve::Project(const Adaptor3d_Curve& C3D,
     return ProjectAct(C3D, P3D, preci, proj, param);
 
   Standard_Real distmin_L = Precision::Infinite(), distmin_H = Precision::Infinite();
+// clang-format off
   Standard_Real prec = ( AdjustToEnds ? preci : Precision::Confusion() ); //:j8 abv 10 Dec 98: tr10_r0501_db.stp #9423: protection against densing of points near one end
+// clang-format on
   gp_Pnt LowBound = C3D.Value(uMin);
   gp_Pnt HigBound = C3D.Value(uMax);
   distmin_L = LowBound.Distance(P3D);
@@ -420,7 +424,9 @@ Standard_Real ShapeAnalysis_Curve::NextProject(const Standard_Real paramPrev,
   Standard_Real distmin = Precision::Infinite();
   GeomAdaptor_Curve GAC(C3D, uMin, uMax);
   if (C3D->IsKind(STANDARD_TYPE(Geom_BoundedCurve))) {
+// clang-format off
     Standard_Real prec = ( AdjustToEnds ? preci : Precision::Confusion() ); //:j8 abv 10 Dec 98: tr10_r0501_db.stp #9423: protection against densing of points near one end
+// clang-format on
     gp_Pnt LowBound = GAC.Value(uMin);
     gp_Pnt HigBound = GAC.Value(uMax);
     distmin = LowBound.Distance(P3D);
@@ -523,7 +529,9 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
 
   // 15.11.2002 PTV OCC966
   if (ShapeAnalysis_Curve::IsPeriodic(theCurve)) {
+// clang-format off
     ElCLib::AdjustPeriodic(cf,cl,Precision::PConfusion(),First,Last); //:a7 abv 11 Feb 98: preci -> PConfusion()
+// clang-format on
   }
   else if (First < Last) {
     // nothing to fix
index 81bbc08340b7d889444eb52457b796849b63e3e4..05c6d4387771808e10e65f0681e9541be8b5dbc0 100644 (file)
@@ -533,7 +533,9 @@ Standard_Boolean ShapeAnalysis_Edge::CheckVerticesWithPCurve (const TopoDS_Edge&
 {
   TopLoc_Location L;
   const Handle(Geom_Surface)& S = BRep_Tool::Surface(face, L);
+// clang-format off
   return CheckVerticesWithPCurve (edge, S, L, preci, vtx); //szv#4:S4163:12Mar99 `vtx,preci` wrong parameters order
+// clang-format on
 }
 
 
index 633917eb4bf513307590719f2275b51879f0ef12..719b4b035620c8c8165770b642cefd2f9662c56f 100644 (file)
@@ -629,11 +629,13 @@ Standard_Boolean ShapeAnalysis_Wire::CheckOrder(ShapeAnalysis_WireOrder &sawo,
   {
   case   0: myStatus = ShapeExtend::EncodeStatus (ShapeExtend_OK);    break;
   case   1: myStatus = ShapeExtend::EncodeStatus (ShapeExtend_DONE1); break;
+// clang-format off
   case   2: myStatus = ShapeExtend::EncodeStatus (ShapeExtend_DONE2); break; // this value is not returned
   case  -1: myStatus = ShapeExtend::EncodeStatus (ShapeExtend_DONE3); break;
   case  -2: myStatus = ShapeExtend::EncodeStatus (ShapeExtend_DONE4); break; // this value is not returned
   case   3: myStatus = ShapeExtend::EncodeStatus (ShapeExtend_DONE5); break; // only shifted
   case -10: myStatus = ShapeExtend::EncodeStatus (ShapeExtend_FAIL1); break; // this value is not returned
+// clang-format on
   }
   return LastCheckStatus (ShapeExtend_DONE);
 }
@@ -1248,7 +1250,9 @@ Standard_Boolean ShapeAnalysis_Wire::CheckIntersectingEdges (const Standard_Inte
     return Standard_False;
   }
   if ( Abs ( a1 - b1 ) <= ::Precision::PConfusion() ||
+// clang-format off
        Abs ( a2 - b2 ) <= ::Precision::PConfusion() ) return Standard_False; //:f7 abv 6 May 98: BUC50070 on #42276
+// clang-format on
 
   Standard_Boolean isForward1 = ( edge1.Orientation() == TopAbs_FORWARD );
   Standard_Boolean isForward2 = ( edge2.Orientation() == TopAbs_FORWARD );
@@ -1323,8 +1327,10 @@ Standard_Boolean ShapeAnalysis_Wire::CheckIntersectingEdges (const Standard_Inte
         param2-b2 > ::Precision::PConfusion() ) continue;
 
     //:82 abv 21 Jan 98: point of intersection on Crv1 and Crv2 is different
+// clang-format off
     gp_Pnt pi1 = GetPointOnEdge ( edge1, mySurf, C1, param1 ); //:h0: thesurf.Value ( Crv1->Value ( param1 ) );
     gp_Pnt pi2 = GetPointOnEdge ( edge2, mySurf, C2, param2 ); //:h0: thesurf.Value ( Crv2->Value ( param2 ) );
+// clang-format on
     gp_Pnt pint = 0.5 * ( pi1.XYZ() + pi2.XYZ() );
     Standard_Real di1 = pi1.SquareDistance ( pnt );
     Standard_Real di2 = pi2.SquareDistance ( pnt );
@@ -1454,7 +1460,9 @@ Standard_Boolean ShapeAnalysis_Wire::CheckIntersectingEdges(const Standard_Integ
         Tr2.PositionOnCurve() != IntRes2d_Middle ) continue;
     Standard_Real param1 = IP.ParamOnFirst(); 
     Standard_Real param2 = IP.ParamOnSecond();
+// clang-format off
     gp_Pnt pi1 = GetPointOnEdge ( edge1, mySurf, C1, param1 ); //:h0: thesurf.Value ( Crv1->Value ( param1 ) );
+// clang-format on
     gp_Pnt pi2 = GetPointOnEdge ( edge2, mySurf, C2, param2 );
     Standard_Boolean OK1 = Standard_False;
     Standard_Boolean OK2 = Standard_False;
index b731950da0d8ccb1d10c121d07d0337495f98276..638fe5167ab648e14511bb1218ab59f513b8fc19 100644 (file)
@@ -115,7 +115,9 @@ TopoDS_Edge ShapeBuild_Edge::CopyReplaceVertices (const TopoDS_Edge& edge,
   if ( GC->IsCurve3D() ) 
   B.Range ( E, first, last );
   else if ( GC->IsCurveOnSurface() )
+// clang-format off
   B.Range (E, GC->Surface(), edge.Location().Multiplied (GC->Location()), first, last);//BUC50003 entity 132 edge 1
+// clang-format on
   }
   */
   return E;
@@ -199,7 +201,9 @@ void ShapeBuild_Edge::CopyRanges (const TopoDS_Edge& toedge,
       else {
         if(fromGC->PCurve().IsNull()) continue; }
 
+// clang-format off
       if ( ! isC3d && ! fromGC->IsCurveOnSurface()) continue; // only 3d curves and pcurves are treated
+// clang-format on
 
       Handle(Geom_Surface) surface;
       TopLoc_Location L;
@@ -545,7 +549,9 @@ Handle(Geom2d_Curve) ShapeBuild_Edge::TransformPCurve(const Handle(Geom2d_Curve)
     if(result->IsKind(STANDARD_TYPE(Geom2d_Conic))) {
       //gp_Pln pln(gp_Pnt(0,0,0),gp_Dir(0,0,1));
       //Handle(Geom_Curve) curve = GeomAPI::To3d(result,pln);
+// clang-format off
       Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(result,aFirst,aLast); //protection against parabols ets
+// clang-format on
       Geom2dConvert_ApproxCurve approx (tcurve, Precision::Approximation(), 
         GeomAbs_C1, 100, 6 );
       if ( approx.HasResult() )
index d2a9ae3a346e935f2a014f6115047900384699e4..d5a4b1ad68581538ee28449f73208c0c1135039a 100644 (file)
@@ -76,7 +76,9 @@ Handle(Geom_BSplineCurve) ShapeConstruct::ConvertCurveToBSpline(const Handle(Geo
     if(C3D->IsKind(STANDARD_TYPE(Geom_Conic))) 
       MaxDeg = Min(MaxDeg,6);
  
+// clang-format off
     Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(C3D,First,Last); //protection against parabols ets
+// clang-format on
     try {
       OCC_CATCH_SIGNALS
       GeomConvert_ApproxCurve approx (tcurve, Tol3d, Continuity, MaxSegments, MaxDeg);
@@ -112,7 +114,9 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct::ConvertCurveToBSpline(const Handle(G
 {
   Handle(Geom2d_BSplineCurve) aBSpline2d;
   if(C2D->IsKind(STANDARD_TYPE(Geom2d_Conic))) {
+// clang-format off
     Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(C2D,First,Last); //protection against parabols ets
+// clang-format on
     Geom2dConvert_ApproxCurve approx (tcurve, Tol2d, Continuity, MaxSegments, MaxDegree);
     if ( approx.HasResult() )
       aBSpline2d = approx.Curve();
index 79e1b1a7502bba5bfa6c6f46a7165727486a6b5d..b8b2c2a1c0e820ff4b55dd08ef72e9765c2a04b2 100644 (file)
@@ -1869,7 +1869,9 @@ InsertAdditionalPointOrAdjust(Standard_Boolean& ToAdjust,
     }
   }
   if (DistMin2 < RealLast())
+// clang-format off
     preci = 0.9 * Sqrt (DistMin2); // preci est la distance min entre les points on la reduit un peu
+// clang-format on
   if (nbPntDropped == 0)
     return;
 
@@ -2142,7 +2144,9 @@ InsertAdditionalPointOrAdjust(Standard_Boolean& ToAdjust,
     if (mp[0] > 0 && 
        ( ! p1OnIso || currd2[0] < mind2[0] ) ) {
       p1OnIso = Standard_True;
+// clang-format off
       mind2[0] = currd2[0]; // LP2.stp #105899: FLT_INVALID_OPERATION on Windows 7 VC 9 Release mode on the whole file 
+// clang-format on
       if (isoU) valueP1.SetCoord(isoVal, tp[0]);
       else      valueP1.SetCoord(tp[0], isoVal);
     }
@@ -2209,7 +2213,9 @@ InsertAdditionalPointOrAdjust(Standard_Boolean& ToAdjust,
       for (Standard_Integer i=2; i < nbrPnt && isoByDistance; i++) {
        Standard_Real dist = sac.NextProject (prevParam,cIso,points(i),
                                              prec,pt,t,Cf,Cl,
+// clang-format off
                                              Standard_False); //:j8 abv 10.12.98: TR10 r0501_db.stp #9423: avoid adjusting to ends
+// clang-format on
        prevParam = t;
        pout(i)=t;
        if( (dist > prec) || (t < Cf) || (t > Cl) ) 
index ebab162cbe8abb8d22cf0804447e475bbd2cfc80..3ea8a72657f34f9c9b83e750e3ccfeabd138d3ca 100644 (file)
@@ -883,7 +883,9 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve(const Handle(Geom_
 
   if (aCurve->IsKind(STANDARD_TYPE(Geom_Conic)) && myParameters->ConvertCurve3d()) {
     Handle(Geom_BSplineCurve) aBSpline;
+// clang-format off
     Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(aCurve,First,Last); //protection against parabols ets
+// clang-format on
     GeomConvert_ApproxCurve approx (tcurve, myTol3d/*Precision::Approximation()*/, myContinuity2d, myNbMaxSeg, 6 );
     if ( approx.HasResult() )
       aBSpline = approx.Curve();
@@ -1191,7 +1193,9 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve2d(const Handle(Geo
 
   if (aCurve->IsKind(STANDARD_TYPE(Geom2d_Conic)) && myParameters->ConvertCurve2d()) {
     Handle(Geom2d_BSplineCurve) aBSpline2d;
+// clang-format off
     Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(aCurve,First,Last); //protection against parabols ets
+// clang-format on
     Geom2dConvert_ApproxCurve approx (tcurve, myTol2d,myContinuity2d,myNbMaxSeg , 6 );
     if ( approx.HasResult() )
       aBSpline2d = approx.Curve();
index b4994f3c0cc91ecf18409ce9e3935fd4d0242aeb..2e1dd535f7174e60da55f9c96952095de2166c51 100644 (file)
@@ -322,7 +322,9 @@ Standard_Real ShapeExtend_CompositeSurface::ULocalToGlobal (const Standard_Integ
   Standard_Real u1, u2, v1, v2;
   myPatches->Value(i,j)->Bounds ( u1, u2, v1, v2 );
   Standard_Real scale = ( myUJointValues->Value(i+1) - myUJointValues->Value(i) ) / ( u2 - u1 );
+// clang-format off
   return u * scale + ( myUJointValues->Value(i) - u1 * scale ); // ! this formula is stable if u1 is infinite
+// clang-format on
 }
 
 //=======================================================================
@@ -337,7 +339,9 @@ Standard_Real ShapeExtend_CompositeSurface::VLocalToGlobal (const Standard_Integ
   Standard_Real u1, u2, v1, v2;
   myPatches->Value(i,j)->Bounds ( u1, u2, v1, v2 );
   Standard_Real scale = ( myVJointValues->Value(j+1) - myVJointValues->Value(j) ) / ( v2 - v1 );
+// clang-format off
   return v * scale + ( myVJointValues->Value(j) - v1 * scale ); // ! this formula is stable if v1 is infinite
+// clang-format on
 }
 
 //=======================================================================
@@ -369,7 +373,9 @@ Standard_Real ShapeExtend_CompositeSurface::UGlobalToLocal (const Standard_Integ
   Standard_Real u1, u2, v1, v2;
   myPatches->Value(i,j)->Bounds ( u1, u2, v1, v2 );
   Standard_Real scale = ( u2 - u1 ) / ( myUJointValues->Value(i+1) - myUJointValues->Value(i) );
+// clang-format off
   return U * scale + ( u1 - myUJointValues->Value(i) * scale ); // ! this formula is stable if u1 is infinite
+// clang-format on
 }
 
 //=======================================================================
@@ -384,7 +390,9 @@ Standard_Real ShapeExtend_CompositeSurface::VGlobalToLocal (const Standard_Integ
   Standard_Real u1, u2, v1, v2;
   myPatches->Value(i,j)->Bounds ( u1, u2, v1, v2 );
   Standard_Real scale = ( v2 - v1 ) / ( myVJointValues->Value(j+1) - myVJointValues->Value(j) );
+// clang-format off
   return V * scale + ( v1 - myVJointValues->Value(j) * scale ); // ! this formula is stable if v1 is infinite
+// clang-format on
 }
 
 //=======================================================================
index 426de169a84bfdf22df6125d45df924e46c6470d..1374cafeb46a63291fe21bffadf5a0ff8c1be51b 100644 (file)
@@ -530,7 +530,9 @@ void ShapeFix_ComposeShell::LoadWires (ShapeFix_SequenceOfWireSegment &seqw) con
       
       if(nbNMEdges)
       {
+// clang-format off
         ShapeFix_WireSegment seg ( sbwdNM, TopAbs_INTERNAL); //(( isOuter ? TopAbs_REVERSED : TopAbs_FORWARD ) );
+// clang-format on
         seqw.Append ( seg );
       }
       
@@ -581,7 +583,9 @@ void ShapeFix_ComposeShell::LoadWires (ShapeFix_SequenceOfWireSegment &seqw) con
             sbwdM->Reverse(face);
         }
       
+// clang-format off
         ShapeFix_WireSegment seg ( sbwdM, TopAbs_REVERSED ); //(( isOuter ? TopAbs_REVERSED : TopAbs_FORWARD ) );
+// clang-format on
         seqw.Append ( seg );
       }
     }
@@ -1318,7 +1322,9 @@ Standard_Boolean ShapeFix_ComposeShell::SplitByLine (ShapeFix_WireSegment &wire,
     if ( iedge ==1 ) { firstCode = code; firstPos = pos; firstDev = dev; }
     else if ( code == IOR_UNDEF || code != prevCode ) { 
       if ( ! closedDir || Abs ( dev - prevDev ) < halfPeriod ) {
+// clang-format off
         IntLinePar.Append ( ParamPointsOnLine ( pos, prevPos, line ) ); // !! - maybe compute exactly ?
+// clang-format on
         IntEdgePar.Append ( isreversed ? l : f );
         IntEdgeInd.Append ( iedge );
       }
@@ -1798,7 +1804,9 @@ void ShapeFix_ComposeShell::SplitByGrid (ShapeFix_SequenceOfWireSegment &seqw)
   // split by u lines
 
   for ( i = ( myUClosed ? 1 : 2 ); i <= myGrid->NbUPatches(); i++ ) {
+// clang-format off
     gp_Pnt2d pos ( myGrid->UJointValue(i), 0. ); // 0. - for infinite ranges: myGrid->VJointValue(1) ;
+// clang-format on
     gp_Lin2d line ( pos, gp_Dir2d ( 0., 1. ) );
     if ( ! myClosedMode && myUClosed ) {
       Standard_Real period = Umax - Umin;
@@ -2289,7 +2297,9 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
       // Handle(ShapeExtend_WireData)
       sbwd = wires(j).WireData();
       for ( Standard_Integer k=1; k <= sbwd->NbEdges(); k++ ) {
+// clang-format off
         if ( !V.IsSame ( sae.FirstVertex ( sbwd->Edge(k) ) ) ) continue; //pdn I suppose that short segment should be inserted into the SAME vertex.
+// clang-format on
 
         Standard_Boolean sp = IsSamePatch ( wires(j), myGrid->NbUPatches(), myGrid->NbVPatches(),
                                             iumin, iumax, ivmin, ivmax );
index e2ff4a7033e06d061f3a4946dbb71bd64c26640d..921f00cbc644489a7991f44a5850ad12d60445ab 100644 (file)
@@ -275,8 +275,10 @@ void ShapeFix_EdgeConnect::Build ()
        theBuilder.Add( theEdge, theNewVertex );
        if (use_start && use_end) {
          // process special case for closed edge
+// clang-format off
          theBuilder.Remove( theEdge, theOldVertex.Oriented(TopAbs_REVERSED) ); // remove reversed from closed edge
          theBuilder.Add( theEdge, theNewVertex.Oriented(TopAbs_REVERSED) ); // add reversed to closed edge
+// clang-format on
        }
        theEdge.Free(freeflag);
       }
index 24ccb07998371b9ef0cd3e4bb1b5cd4d4f4e9740..0cb963952486ed417736cbfe3e06cb55f9c916c5 100644 (file)
@@ -566,7 +566,9 @@ Standard_Boolean ShapeFix_Face::Perform()
         TopTools_SequenceOfShape aLoopWires;
         if(NeedFix ( myFixLoopWiresMode) && FixLoopWire(aLoopWires)) {
           if (aLoopWires.Length() > 1)
+// clang-format off
             SendWarning ( wire, Message_Msg ( "FixAdvFace.FixLoopWire.MSG0" ) );// Wire was split on several wires
+// clang-format on
           myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE7 );
           fixed = Standard_True;
           Standard_Integer k=1;
@@ -833,7 +835,9 @@ Standard_Boolean ShapeFix_Face::FixAddNaturalBound()
     }
 
 //    B.UpdateFace (myFace,myPrecision);
+// clang-format off
     SendWarning ( myFace, Message_Msg ( "FixAdvFace.FixOrientation.MSG0" ) );// Face created with natural bounds
+// clang-format on
     BRepTools::Update(myFace);
     myResult = myFace;
     return Standard_True;
@@ -986,7 +990,9 @@ Standard_Boolean ShapeFix_Face::FixAddNaturalBound()
 #ifdef OCCT_DEBUG
   std::cout<<"Natural bound on sphere or torus with holes added"<<std::endl; // mise au point !
 #endif
+// clang-format off
   SendWarning ( myFace, Message_Msg ( "FixAdvFace.FixOrientation.MSG0" ) );// Face created with natural bounds
+// clang-format on
   return Standard_True;
 }
 
@@ -1134,7 +1140,9 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
         new ShapeExtend_WireData(TopoDS::Wire(ws.Value(1)));
       sbdw->Reverse(myFace);
       ws.SetValue(1, sbdw->Wire());
+// clang-format off
       SendWarning(sbdw->Wire(), Message_Msg("FixAdvFace.FixOrientation.MSG5"));// Wire on face was reversed
+// clang-format on
       done = Standard_True;
     }
   }
@@ -1339,7 +1347,9 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
       }
 
       if (sta == TopAbs_UNKNOWN) {    // ERREUR
+// clang-format off
         SendWarning ( aw, Message_Msg ( "FixAdvFace.FixOrientation.MSG11" ) );// Cannot orient wire
+// clang-format on
       } 
       else {
         MW.Bind(aw,IntWires);
@@ -1349,7 +1359,9 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
             ShapeExtend_WireData sewd (aw);
             sewd.Reverse(myFace);
             ws.SetValue (i,sewd.Wire());
+// clang-format off
             SendWarning ( sewd.Wire(), Message_Msg ( "FixAdvFace.FixOrientation.MSG5" ) );// Wire on face was reversed
+// clang-format on
             aSeqReversed.Append(i);
             done = Standard_True;
             SI.Bind(ws.Value(i),1);
@@ -1379,7 +1391,9 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
             ShapeExtend_WireData sewd (aw);
             sewd.Reverse(myFace);
             ws.SetValue (i,sewd.Wire());
+// clang-format off
             SendWarning ( sewd.Wire(), Message_Msg ( "FixAdvFace.FixOrientation.MSG5" ) );// Wire on face was reversed
+// clang-format on
             aSeqReversed.Append(i);
             done = Standard_True;
             MapWires.Bind(ws.Value(i),IW);
@@ -1392,7 +1406,9 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
             ShapeExtend_WireData sewd (aw);
             sewd.Reverse(myFace);
             ws.SetValue (i,sewd.Wire());
+// clang-format off
             SendWarning ( sewd.Wire(), Message_Msg ( "FixAdvFace.FixOrientation.MSG5" ) );// Wire on face was reversed
+// clang-format on
             aSeqReversed.Append(i);
             done = Standard_True;
           }
@@ -1430,7 +1446,9 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
     for( ; k <= aSeqReversed.Length(); k++ )
     {
 #ifdef OCCT_DEBUG
+// clang-format off
       std::cout<<"Wire no "<<aSeqReversed.Value(k)<<" of "<<nb<<" reversed"<<std::endl; // mise au point !
+// clang-format on
 #endif
     }
       
index f2dfc1f2ac9273982fb4bf3b33296dff5a72b4ae..8829cc0b15d2003e364cf21d088ecf2916f27e3d 100644 (file)
@@ -146,7 +146,9 @@ Standard_Boolean ShapeFix_Shell::Perform(const Message_ProgressRange& theProgres
       if (aSas.HasFreeEdges())
       {
         aCurShell.Closed (Standard_False);
+// clang-format off
         SendWarning (Message_Msg ("FixAdvShell.FixClosedFlag.MSG0"));//Shell has incorrect flag isClosed
+// clang-format on
       }
       aSas.Clear();
        }
@@ -883,7 +885,9 @@ Standard_Boolean ShapeFix_Shell::FixFaceOrientation(
   if (BRep_Tool::IsClosed(myShell)? isFreeBoundaries : !isFreeBoundaries)
   {
     myShell.Closed (!isFreeBoundaries);
+// clang-format off
     SendWarning (Message_Msg ("FixAdvShell.FixClosedFlag.MSG0"));//Shell has incorrect flag isClosed
+// clang-format on
   }
   Standard_Boolean isGetShells = Standard_True;
   //Gets possible shells with taking in account of multiconnexity.
@@ -946,7 +950,9 @@ Standard_Boolean ShapeFix_Shell::FixFaceOrientation(
     
     done = Standard_True;
     myStatus = ShapeExtend::EncodeStatus (ShapeExtend_FAIL);
+// clang-format off
     SendWarning ( Message_Msg ( "FixAdvShell.FixOrientation.MSG20" ) );// Impossible to orient faces in shell, several shells created
+// clang-format on
     return Standard_True;
   }
   if(aNumMultShell >1) {
@@ -1002,9 +1008,11 @@ Standard_Boolean ShapeFix_Shell::FixFaceOrientation(
     if(!Context().IsNull())
       Context()->Replace(shell, myShape);
     if ( myNbShells == 1 )
+// clang-format off
       SendWarning ( Message_Msg ( "FixAdvShell.FixOrientation.MSG0" ) );// Faces were incorrectly oriented in the shell, corrected
     else
       SendWarning ( Message_Msg ( "FixAdvShell.FixOrientation.MSG30" ) );// Improperly connected shell split into parts
+// clang-format on
     return Standard_True;
   }
   else return Standard_False;
index 3bef390593a1c64f0346f81b02f944157e97b00b..5b7174fc7118dca95e9695640ecfe6e894d98cf8 100644 (file)
@@ -452,7 +452,9 @@ Standard_Boolean ShapeFix_Solid::Perform(const Message_ProgressRange& theProgres
       if(!aShell.IsNull()) {
         TopoDS_Solid aSol = SolidFromShell(aShell);
         if(ShapeExtend::DecodeStatus(myStatus,ShapeExtend_DONE2)) {
+// clang-format off
           SendWarning (Message_Msg ("FixAdvSolid.FixOrientation.MSG20"));// Orientation of shell was corrected.
+// clang-format on
           Context()->Replace(tmpShape,aSol);
           tmpShape = aSol;
         }
@@ -464,6 +466,7 @@ Standard_Boolean ShapeFix_Solid::Perform(const Message_ProgressRange& theProgres
       myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
       TopoDS_Iterator aIt(tmpShape,Standard_False);
       Context()->Replace(tmpShape,aIt.Value());
+// clang-format off
       SendFail (Message_Msg ("FixAdvSolid.FixShell.MSG10")); // Solid can not be created from open shell. 
     }
   }
@@ -473,6 +476,7 @@ Standard_Boolean ShapeFix_Solid::Perform(const Message_ProgressRange& theProgres
     TopTools_IndexedMapOfShape aMapSolids;
     if(CreateSolids(aResShape,aMapSolids)) {
       SendWarning (Message_Msg ("FixAdvSolid.FixOrientation.MSG20"));// Orientation of shell was corrected.. 
+// clang-format on
       if(aMapSolids.Extent() ==1) {
         const TopoDS_Shape& aResSol = aMapSolids.FindKey(1);
         if(aResShape.ShapeType() == TopAbs_SHELL && myCreateOpenSolidMode) {
@@ -485,12 +489,14 @@ Standard_Boolean ShapeFix_Solid::Perform(const Message_ProgressRange& theProgres
         else {
           mySolid =aResSol;
           if(aResSol.ShapeType() == TopAbs_SHELL)
+// clang-format off
             SendFail (Message_Msg ("FixAdvSolid.FixShell.MSG10")); // Solid can not be created from open shell. 
         }
         Context()->Replace(aResShape,mySolid);
       }
       else if(aMapSolids.Extent() >1) {
         SendWarning (Message_Msg ("FixAdvSolid.FixOrientation.MSG30"));// Bad connected solid a few solids were created.
+// clang-format on
         BRep_Builder aB;
         TopoDS_Compound aComp;
         aB.MakeCompound(aComp);
@@ -508,7 +514,9 @@ Standard_Boolean ShapeFix_Solid::Perform(const Message_ProgressRange& theProgres
             aResSh = solid;
           }
           else if (aResShape.ShapeType() == TopAbs_SHELL)
+// clang-format off
             SendFail(Message_Msg ("FixAdvSolid.FixShell.MSG10")); // Solid can not be created from open shell. 
+// clang-format on
           aB.Add(aComp,aResSh);
           
         }
index fbbfcdc90588b7a85dfd097a2561210572520603..3998c0c63e6ce317f0ee7c87b2826f3d8d26bea5 100644 (file)
@@ -744,7 +744,9 @@ Standard_Boolean ShapeFix_Wire::FixEdgeCurves()
         BRep_Tool::CurveOnSurface ( sbwd->Edge(i), C, S, L, first, last );
         if ( C.IsNull() || Abs (last - first) < Precision::PConfusion())
         {
+// clang-format off
           SendWarning ( sbwd->Edge ( i ), Message_Msg ( "FixWire.FixCurve3d.Removed" ) );// Incomplete edge (with no pcurves or 3d curve) removed
+// clang-format on
           sbwd->Remove ( i-- );
           nb--;
           myStatusEdgeCurves |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE5 );
@@ -1180,7 +1182,9 @@ Standard_Boolean ShapeFix_Wire::FixSmall (const Standard_Integer num,
   // action: remove edge
   if ( ! Context().IsNull() ) 
     Context()->Remove(WireData()->Edge(n));
+// clang-format off
   SendWarning ( WireData()->Edge ( n ), Message_Msg ( "FixAdvWire.FixSmall.MSG0" ) ); //Small edge(s) removed
+// clang-format on
   WireData()->Remove ( n );
   
   // call FixConnected in the case if vertices of the small edge were not the same
@@ -1973,7 +1977,9 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
   Seq2d->Append((t1+t2)/2);
   Handle(TColStd_HSequenceOfReal) Seq3d = SFTP.Perform(Seq2d,Standard_False);
   
+// clang-format off
   Standard_Real dist1 = pcurPnt.Distance(crv->Value(Seq3d->Value(1)));// correcting Seq3d already project 
+// clang-format on
   Standard_Real dist2 = pcurPnt.Distance(crv->Value(Seq3d->Value(2)));
   Standard_Real dist3 = pcurPnt.Distance(crv->Value(Seq3d->Value(3)));
   Standard_Real ftrim,ltrim;
@@ -2105,7 +2111,9 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
   Seq2d->Append((t1+t2)/2);
   Handle (TColStd_HSequenceOfReal) Seq3d = SFTP.Perform(Seq2d,Standard_False);
   
+// clang-format off
   Standard_Real dist1 = pcurPnt.Distance(crv->Value(Seq3d->Value(1)));// correcting Seq3d already project 
+// clang-format on
   Standard_Real dist2 = pcurPnt.Distance(crv->Value(Seq3d->Value(2)));
   Standard_Real dist3 = pcurPnt.Distance(crv->Value(Seq3d->Value(3)));
   Standard_Real ftrim,ltrim;
@@ -2337,7 +2345,9 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersectingEdge (const Standard_Integer
   }
 
   if ( LastFixStatus ( ShapeExtend_DONE ) && ! myShape.IsNull() ) {
+// clang-format off
     SendWarning ( E, Message_Msg ( "FixAdvWire.FixIntersection.MSG5" ) );// Edge was self-intersecting, corrected
+// clang-format on
   }
 
   return LastFixStatus ( ShapeExtend_DONE );
@@ -2640,7 +2650,9 @@ Standard_Boolean ShapeFix_Wire::FixIntersectingEdges (const Standard_Integer num
     myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE7 );
   }
   if ( ! myShape.IsNull() ) {
+// clang-format off
     SendWarning ( Message_Msg ( "FixAdvWire.FixIntersection.MSG10" ) );// Edges were intersecting, corrected
+// clang-format on
   }
   return Standard_True;
 }
@@ -2819,7 +2831,9 @@ Standard_Boolean ShapeFix_Wire::FixIntersectingEdges (const Standard_Integer num
     if(newTolers(i)>0) B.UpdateVertex(TopoDS::Vertex(vertices(i)),newTolers(i));
   
   if ( ! myShape.IsNull() ) {
+// clang-format off
     SendWarning ( Message_Msg ( "FixAdvWire.FixIntersection.MSG10" ) );// Edges were intersecting, corrected
+// clang-format on
   }
   return Standard_True;
 }
index b6c8a218f3d45c8c50eaf9d9719be214eee76805..b76e7529af38990b7cee7c2628a91a7585338100 100644 (file)
@@ -732,7 +732,9 @@ Standard_Boolean ShapeFix_Wireframe::MergeSmallEdges(TopTools_MapOfShape& theSma
                 
                 //gka protection against joining seem edges with other edges
                Standard_Boolean same_set1 = (theList1.Extent()==theList2.Extent() && 
+// clang-format off
                                               ((!isSeam && !isSeam1)|| (isSeam && isSeam1))); //gka
+// clang-format on
                Standard_Boolean same_set2 = (theList3.Extent()==theList2.Extent() && 
                                               ((!isSeam && !isSeam2)|| (isSeam && isSeam2)));
                TopTools_MapOfShape theSetOfFaces;
@@ -1181,7 +1183,9 @@ Standard_Boolean ShapeFix_Wireframe::MergeSmallEdges(TopTools_MapOfShape& theSma
                 
                 //gka protection against joining seem edges with other edges
                Standard_Boolean same_set1 = (theList1.Extent()==theList2.Extent() && 
+// clang-format off
                                               ((!isSeam && !isSeam1)|| (isSeam && isSeam1))); //gka
+// clang-format on
                Standard_Boolean same_set2 = (theList3.Extent()==theList2.Extent() && 
                                               ((!isSeam && !isSeam2)|| (isSeam && isSeam2)));
                TopTools_MapOfShape theSetOfFaces;
index 2c3d838d8f7c4bdc8cc982bde8d2191ed29f23ab..b4fe2980587cd63dcbe4a26d9afe847f86faed96 100644 (file)
@@ -105,7 +105,9 @@ Standard_Boolean ShapeUpgrade::Debug()
     Standard_Integer NewNbPoles = BSplCLib::NbPoles(deg, Standard_False, newMults);
     TColgp_Array1OfPnt   newPoles (1, NewNbPoles);
     TColStd_Array1OfReal newWeights (1, NewNbPoles);
+// clang-format off
     Standard_Integer PoleIndex = StartFlatIndex - deg;//Index of starting pole when splitting B-Spline is an index of starting knot
+// clang-format on
     for (j = 1; j <= NewNbPoles; j++) {
       newWeights (j) = Weights (j + PoleIndex - 1);
       newPoles   (j) = Poles   (j + PoleIndex - 1);
index c28e4d79651c205f0226340230ab9c89c7d26c9d..8c1d64d71150e15b6c78185b0756ed8e22a3c9ad 100644 (file)
@@ -132,7 +132,9 @@ void ShapeUpgrade_ConvertCurve2dToBezier::Compute()
     Handle(Geom2d_BSplineCurve) aBSpline2d;
     Standard_Real Shift = 0.;
     if(myCurve->IsKind(STANDARD_TYPE(Geom2d_Conic))) {
+// clang-format off
       Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(myCurve,First,Last); //protection against parabols ets
+// clang-format on
       Geom2dConvert_ApproxCurve approx (tcurve, Precision::Approximation(), 
                                        GeomAbs_C1, 100, 6 );
       if ( approx.HasResult() )
index eecadf6bab1af621d4f04d477e436e64079b3cdf..38031c164207aa0d116f92fdaed1ee8040a3cb5f 100644 (file)
@@ -116,7 +116,9 @@ void ShapeUpgrade_ConvertCurve3dToBezier::Compute()
     Handle(Geom_BSplineCurve) aBSpline;
     Standard_Real Shift = 0.;
     if(myCurve->IsKind(STANDARD_TYPE(Geom_Conic))) {
+// clang-format off
       Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(myCurve,First,Last); //protection against parabols ets
+// clang-format on
       GeomConvert_ApproxCurve approx (tcurve, Precision::Approximation(), 
                                      GeomAbs_C1, 100, 6 );
       if ( approx.HasResult() )
index 079d73b248b4ae5f033a256a76d94a10e25d1326..ee97b151fa78a6645b4d7655e1e6b83027530ac5 100644 (file)
@@ -150,7 +150,9 @@ void ShapeUpgrade_ConvertSurfaceToBezierBasis::Compute(const Standard_Boolean Se
     //pdn
     Standard_Real u1,u2,v1,v2;
     bspline->Bounds(u1,u2,v1,v2);
+// clang-format off
     GeomConvert_BSplineSurfaceToBezierSurface converter(bspline);//,UFirst,ULast,VFirst,VLast,precision;
+// clang-format on
     Standard_Integer nbUPatches = converter.NbUPatches();
     Standard_Integer nbVPatches = converter.NbVPatches();
     TColStd_Array1OfReal UJoints(1, nbUPatches+1);
index 2f4eac3cc1193b05e0c307ffc3b16a9ce204525a..66949ee980a55c6ac878f7e659d09af2182f6ebd 100644 (file)
@@ -254,7 +254,9 @@ Standard_Boolean ShapeUpgrade_ShapeConvertToBezier::Perform (const Standard_Bool
            B.Range(edgenext,face,0,1);
          }
           
+// clang-format off
          if(bezier.IsNull()  || beziernext.IsNull() ) continue; //gka fix against small edges ; merging ends of pcurves 
+// clang-format on
          Standard_Real f1,l1,f2,l2;
          f1 = bezier->FirstParameter();
          l1 = bezier->LastParameter();
index a271dbdd7c0ce10b0032dd4f06e4e7007e70288e..42c7ae4f8ff1dd5f69ae93ab21f7861942bf55bd 100644 (file)
@@ -283,7 +283,9 @@ Standard_Boolean ShapeUpgrade_ShapeDivide::Perform(const Standard_Boolean newCon
     for (exp.Init (myShape, TopAbs_EDGE, TopAbs_WIRE); exp.More(); exp.Next()) {
 //smh#8
       TopoDS_Shape tmpE = exp.Current().Oriented ( TopAbs_FORWARD );
+// clang-format off
       TopoDS_Edge E = TopoDS::Edge (tmpE );                                       // protection against INTERNAL shapes
+// clang-format on
       TopoDS_Vertex V1,V2;
       TopExp::Vertices(E,V2,V1);
       if( V1.IsNull() && V2.IsNull() ) continue; // skl 27.10.2004 for OCC5624
index 79636cfc70a8c13eadd1f2a03f5244192e4a0505..992e94c0eb967aefb67f985d20d85f6124cc921a 100644 (file)
@@ -4054,7 +4054,9 @@ void SplitWire (const TopoDS_Wire&                theWire,
       {
         aBB.Add (aNewWire, CurEdge);
         
+// clang-format off
         const TopoDS_Vertex& aVertex = TopExp::LastVertex (CurEdge, Standard_True); //with orientation
+// clang-format on
         if (aVertex.IsSame(anOrigin))
           break;
 
index 91415b7bba30b5791cffb886d760040328e6ae3b..9cb386b93e10645b99c16b3e9639fe25e4854210 100644 (file)
@@ -483,7 +483,9 @@ void ShapeUpgrade_WireDivide::Perform ()
       //gp_Pnt pntV2 = BRep_Tool::Pnt(V2); // pntV2 not used - see below (skl)
       //Standard_Real V2Tol = LimitTolerance( BRep_Tool::Tolerance(V2) ); // V2Tol not used - see below (skl)
       
+// clang-format off
       Handle(ShapeUpgrade_FixSmallCurves) FixSmallCurveTool = GetFixSmallCurveTool(); //gka Precision
+// clang-format on
       FixSmallCurveTool->SetMinTolerance(MinTolerance());
       FixSmallCurveTool->Init(E, myFace);
       FixSmallCurveTool->SetSplitCurve3dTool(theSplit3dTool);
index b2764d4f577e188acd8ed6e6ed0f404aeb161205..9476be0d881504b43ead377c6532bfa02b2410f6 100644 (file)
@@ -263,7 +263,9 @@ void Standard_MMgrOpt::Initialize()
   }
   
   // initialize free lists
+// clang-format off
   myFreeListMax = INDEX_CELL(ROUNDUP_CELL(myThreshold-BLOCK_SHIFT)); // all blocks less than myThreshold are to be recycled
+// clang-format on
   myFreeList = (Standard_Size **) calloc (myFreeListMax+1, sizeof(Standard_Size *));
   myCellSize = ROUNDUP16(myCellSize);
 }
index c44688c86871bbd7309675917b3564198eaaa1d5..536a446a48493c0d28e4f28a128cd81cd336d541 100644 (file)
@@ -137,7 +137,9 @@ protected:
   Standard_Size *  myNextAddr;      //!< next free address in the active memory pool
   Standard_Size *  myEndBlock;      //!< end of the active memory pool
   
+// clang-format off
   Standard_Integer myMMap;          //!< non-null if using memory mapped files for allocation of large blocks
+// clang-format on
   Standard_Size    myThreshold;     //!< large block size  
   
   Standard_Mutex   myMutex;         //!< Mutex to protect free lists data
index bc00e4b0667a39b8752c942133bbb3b3404ab0d0..6865fb364536585a9359f12c805964b01c73ce4d 100644 (file)
@@ -153,9 +153,11 @@ private:
   const char* myBufferEnd;    //!< end of the buffer
   int64_t     myDataLen;      //!< length of entire data to read
   int64_t     myDataRead;     //!< amount of data already processed
+// clang-format off
   size_t      myChunkLen;     //!< length of single chunk that caller would like to read (e.g. iterator increment)
   size_t      myNbChunks;     //!< number of cached chunks
   size_t      myBufferLen;    //!< effective length of the buffer to be read at once (multiple of chunk length)
+// clang-format on
 
 };
 
index 3e55eb8549eacb1e1096746918e82d01bce3d771..3a89713d938c9399a58f27e96b74e3b3c8ccd5e2 100644 (file)
@@ -296,11 +296,13 @@ protected:
 
   std::vector<char> myReadBuffer;           //!< Temp read buffer
   std::vector<char> myReadBufferLastStr;    //!< Part of last string of myReadBuffer
+// clang-format off
   bool              myUseReadBufferLastStr; //!< Flag to use myReadBufferLastStr during next line reading
   bool              myIsMultilineMode;      //!< Flag to process of the special multi-line case at the end of the line
   bool              myToPutGapInMultiline;  //!< Flag to put gap space while joining lines in multi-line syntax
   size_t            myBufferPos;            //!< Current position in myReadBuffer
   size_t            myBytesLastRead;        //!< The number of characters that were read last time from myReadBuffer.
+// clang-format on
 };
 
 #endif // _Standard_ReadLineBuffer_HeaderFile
index 4b23181ed46362cbfcb976879f797eac18e8d032..faf73fe8efd97f3e2dd451f8d9c60e408e5a3d7f 100755 (executable)
@@ -82,7 +82,9 @@ typedef char16_t      Standard_ExtCharacter;
 typedef char16_t      Standard_Utf16Char;    //!< UTF-16 char (always unsigned)
 typedef char32_t      Standard_Utf32Char;    //!< UTF-32 char (always unsigned)
 #endif
+// clang-format off
 typedef wchar_t       Standard_WideChar;     //!< wide char (unsigned UTF-16 on Windows platform and signed UTF-32 on Linux)
+// clang-format on
 
 //
 typedef const Standard_Character*    Standard_CString;
index 8f1f6abac383fb7c07d3dea52c540934c97dddff..1b2c6a3e1847384f66edf0d16d1c67b16ea9decc 100644 (file)
@@ -236,7 +236,9 @@ protected: //! @name Protected fields
   Handle(Geom_Surface) mySurface;          //!< surface to place glyphs on to
   Standard_Real        myPrecision;        //!< algorithm precision
   Standard_Real        myScaleUnits;       //!< scale font rendering units into model units
+// clang-format off
   Standard_Boolean     myIsCompositeCurve; //!< flag to merge C1 curves of each contour into single C0 curve, OFF by default
+// clang-format on
 
 protected: //! @name Shared temporary variables for glyph construction
 
index a63ebf0295e259b5aa853c9826c694c6c19a64cb..8a4f8be1b90b0422fd6a7e838ca3e5c42e9bd719 100644 (file)
@@ -135,6 +135,7 @@ public:
 
 public:
   // Common
+// clang-format off
   ReadMode_BSplineContinuity ReadBSplineContinuity = ReadMode_BSplineContinuity_C1; //<! Manages the continuity of BSpline curves
   ReadMode_Precision ReadPrecisionMode = ReadMode_Precision_File; //<! Reads the precision mode value
   double ReadPrecisionVal = 0.0001; //<! ReadMode_Precision for shape construction (if enabled user mode)
@@ -187,6 +188,7 @@ public:
   bool WriteLayer = true; //<! LayerMode is used to indicate write Layers or not
   bool WriteProps = true; //<! PropsMode is used to indicate write Validation properties or not
   STEPControl_StepModelType WriteModelType = STEPControl_AsIs; //<! Gives you the choice of translation mode for an Open CASCADE shape that is being translated to STEP
+// clang-format on
 };
 
 #endif // _StepData_ConfParameters_HeaderFile
index 49145ed10f26be0a80657a2ef56e32c0664a1c53..ac5dc827fd3c4413b6692b38fc486cdd00bcd44f 100644 (file)
@@ -111,7 +111,9 @@ void StepData_StepReaderData::cleanText(const Handle(TCollection_HAsciiString)&
   Standard_Integer aResStringSize = aResString.Length() - 1; // skip the last apostrophe
   TCollection_ExtendedString aTempExtString; // string for characters within control directives
   Standard_Integer aSetCharInd = 1; // index to set value to result string
+// clang-format off
   Resource_FormatType aLocalFormatType = Resource_FormatType_iso8859_1; // a code page for a "\S\" control directive
+// clang-format on
   for (Standard_Integer aStringInd = 1; aStringInd <= aResStringSize; ++aStringInd)
   {
     const Standard_ExtCharacter aChar = aResString.Value(aStringInd);
@@ -161,7 +163,9 @@ void StepData_StepReaderData::cleanText(const Handle(TCollection_HAsciiString)&
         Standard_Character aResChar = (char)convertCharacterTo16bit(aResString.Value(aStringInd + 3));
         aResChar = (aResChar << 4) | (char)convertCharacterTo16bit(aResString.Value(aStringInd + 4));
         const char aStrForConvert[2] = { aResChar, '\0' };
+// clang-format off
         aTempExtString = TCollection_ExtendedString(aStrForConvert, Standard_False); // pass through without conversion
+// clang-format on
         isConverted = Standard_True;
         aStringInd += 4;
       }
@@ -254,7 +258,9 @@ void StepData_StepReaderData::cleanText(const Handle(TCollection_HAsciiString)&
       {
         if (toConversion) // else skip moving
         {
+// clang-format off
           aResStringSize -= aStringInd - aSetCharInd - aTempExtString.Length() + 1; // change the string size to remove unused symbols
+// clang-format on
           aResString.SetValue(aSetCharInd, aTempExtString);
           aSetCharInd += aTempExtString.Length(); // move to the new position
           aResString.SetValue(aSetCharInd, aResString.ToExtString() + aStringInd);
@@ -270,7 +276,9 @@ void StepData_StepReaderData::cleanText(const Handle(TCollection_HAsciiString)&
       const Standard_ExtCharacter aCharNext = aResString.Value(aStringInd + 1);
       if (aCharNext == aChar && (aChar == '\'' || aChar == '\\'))
       {
+// clang-format off
         aResString.SetValue(aSetCharInd, aResString.ToExtString() + aStringInd); // move the string,removing one symbol
+// clang-format on
         aResStringSize--; // change the string size to remove unused symbol
         aResString.Trunc(aResStringSize);
       }
@@ -283,6 +291,7 @@ void StepData_StepReaderData::cleanText(const Handle(TCollection_HAsciiString)&
           if (aCharNext == 'N')
           {
             aResString.SetValue(aSetCharInd++, '\n');
+// clang-format off
             aResString.SetValue(aSetCharInd, aResString.ToExtString() + aStringInd + 2); // move the string,removing two symbols
             aResStringSize-=2; // change the string size to remove unused symbols
             aResString.Trunc(aResStringSize);
@@ -292,6 +301,7 @@ void StepData_StepReaderData::cleanText(const Handle(TCollection_HAsciiString)&
           {
             aResString.SetValue(aSetCharInd++, '\t');
             aResString.SetValue(aSetCharInd, aResString.ToExtString() + aStringInd + 2); // move the string,removing two symbols
+// clang-format on
             aResStringSize-=2; // change the string size to remove unused symbols
             aResString.Trunc(aResStringSize);
             continue;
index b276ebf44daae5799dda78ea3f8743c62c714c9e..2502a79eb74541a59af15b1a1749f17eadc06253 100644 (file)
@@ -511,7 +511,9 @@ void StepData_StepWriter::StartEntity(const TCollection_AsciiString& atype)
 {
   if (atype.Length() == 0) return;
   if (themult) {
+// clang-format off
     if (thelevel != 1) throw Interface_InterfaceMismatch("StepWriter : StartEntity");   // decompte de parentheses mauvais ...
+// clang-format on
     AddString(textendlist);
     AddString(" ",1); //skl 29.01.2003
   }
@@ -1057,7 +1059,9 @@ void StepData_StepWriter::SendDerived ()
 
 void StepData_StepWriter::EndEntity ()
 {
+// clang-format off
   if (thelevel != 1) throw Interface_InterfaceMismatch("StepWriter : EndEntity");   // decompte de parentheses mauvais ...
+// clang-format on
   AddString(textendent);
   thelevel  = 0;        // on garde theindval : sera traite au prochain NewLine
   Standard_Boolean indent = theindent; theindent = Standard_False;
index 26319a7c43e364d9ee7f302cb7dd17121aec78af..7cc56f08a5b12da172238ceaccecd340f7b3a57f 100644 (file)
@@ -113,7 +113,9 @@ static Standard_Integer StepFile_Read (const char* theName,
   Standard_Integer nbhead, nbrec, nbpar;
   aFileDataModel.GetFileNbR (&nbhead,&nbrec,&nbpar);  // renvoi par lex/yacc
   Handle(StepData_StepReaderData) undirec =
+// clang-format off
     new StepData_StepReaderData(nbhead,nbrec,nbpar, theStepModel->SourceCodePage());  // creation tableau de records
+// clang-format on
   for ( Standard_Integer nr = 1; nr <= nbrec; nr ++) {
     int nbarg; char* ident; char* typrec = 0;
     aFileDataModel.GetRecordDescription(&ident, &typrec, &nbarg);
index 3d90203ec3634ffddc4ecda08176a94549fa9f5a..fff5fccb8e9e1173fd8bb07831d77f29197b368d 100644 (file)
@@ -243,8 +243,10 @@ private:
   Standard_Integer myNbPar;      //!< Total number of parameters read
   Standard_Integer myYaRec;      //!< Presence record already created (after 1 Ident)
   Standard_Integer myNumSub;     //!< Number of current sublist
+// clang-format off
   Standard_Boolean myErrorArg;   //!< Control of error argument (true - error argument was created)
   char* myResText;               //!< Text value written by Flex and passed to Bison to create record
+// clang-format on
   char* myCurrType;              //!< Type of last record read
   char* mySubArg;                //!< Ident last record (possible sub-list)
   Interface_ParamType myTypeArg; //!< Type of last argument read
index b1d9369fe2594e1e6195cd211ddc7a83d7274e48..b7b32a7fd8db92ef21d3c52d17ee14b15b9ca1f0 100644 (file)
@@ -92,8 +92,10 @@ private:
   Standard_Real myUpperLimitActualTranslation; //!< optional
   Standard_Real myLowerLimitActualRotation; //!< optional
   Standard_Real myUpperLimitActualRotation; //!< optional
+// clang-format off
   Standard_Boolean defLowerLimitActualTranslation; //!< flag "is LowerLimitActualTranslation defined"
   Standard_Boolean defUpperLimitActualTranslation; //!< flag "is UpperLimitActualTranslation defined"
+// clang-format on
   Standard_Boolean defLowerLimitActualRotation; //!< flag "is LowerLimitActualRotation defined"
   Standard_Boolean defUpperLimitActualRotation; //!< flag "is UpperLimitActualRotation defined"
 
index ca4bc55da65282d3993f312ba04c21127f4f4a3a..b91c7570ef49b186aa3e23345f278dc40d6f474c 100644 (file)
@@ -178,12 +178,14 @@ private:
   Standard_Boolean defUpperLimitActualRotationY; //!< flag "is UpperLimitActualRotationY defined"
   Standard_Boolean defLowerLimitActualRotationZ; //!< flag "is LowerLimitActualRotationZ defined"
   Standard_Boolean defUpperLimitActualRotationZ; //!< flag "is UpperLimitActualRotationZ defined"
+// clang-format off
   Standard_Boolean defLowerLimitActualTranslationX; //!< flag "is LowerLimitActualTranslationX defined"
   Standard_Boolean defUpperLimitActualTranslationX; //!< flag "is UpperLimitActualTranslationX defined"
   Standard_Boolean defLowerLimitActualTranslationY; //!< flag "is LowerLimitActualTranslationY defined"
   Standard_Boolean defUpperLimitActualTranslationY; //!< flag "is UpperLimitActualTranslationY defined"
   Standard_Boolean defLowerLimitActualTranslationZ; //!< flag "is LowerLimitActualTranslationZ defined"
   Standard_Boolean defUpperLimitActualTranslationZ; //!< flag "is UpperLimitActualTranslationZ defined"
+// clang-format on
 
 };
 #endif // _StepKinematics_LowOrderKinematicPairWithRange_HeaderFile_
index b8b9b587e06a2ff5bb157ba88917b254878b15f3..616d989901d4e33e86e118f97c0d10f61ed0b406 100644 (file)
@@ -51,7 +51,9 @@ public :
 DEFINE_STANDARD_RTTIEXT(StepKinematics_PairRepresentationRelationship, StepGeom_GeometricRepresentationItem)
 
 private:
+// clang-format off
   Handle(StepRepr_RepresentationRelationshipWithTransformation) myRepresentationRelationshipWithTransformation; //!< supertype
+// clang-format on
 
 };
 #endif // _StepKinematics_PairRepresentationRelationship_HeaderFile_
index 3ccff45350c5f2ed5dce24146ae10f06058b9503..3d4473d315ba4ead5610c7c5242fd2394947eacf 100644 (file)
@@ -114,10 +114,12 @@ private:
   Standard_Real myUpperLimitActualTranslationY; //!< optional
   Standard_Boolean defLowerLimitActualRotation; //!< flag "is LowerLimitActualRotation defined"
   Standard_Boolean defUpperLimitActualRotation; //!< flag "is UpperLimitActualRotation defined"
+// clang-format off
   Standard_Boolean defLowerLimitActualTranslationX; //!< flag "is LowerLimitActualTranslationX defined"
   Standard_Boolean defUpperLimitActualTranslationX; //!< flag "is UpperLimitActualTranslationX defined"
   Standard_Boolean defLowerLimitActualTranslationY; //!< flag "is LowerLimitActualTranslationY defined"
   Standard_Boolean defUpperLimitActualTranslationY; //!< flag "is UpperLimitActualTranslationY defined"
+// clang-format on
 
 };
 #endif // _StepKinematics_PlanarPairWithRange_HeaderFile_
index 009df4743eb3f108dad58b023b743277f54492d9..e531320a45f0be5812fc423aa38d1edf19a982f0 100644 (file)
@@ -72,8 +72,10 @@ DEFINE_STANDARD_RTTIEXT(StepKinematics_PrismaticPairWithRange, StepKinematics_Pr
 private:
   Standard_Real myLowerLimitActualTranslation; //!< optional
   Standard_Real myUpperLimitActualTranslation; //!< optional
+// clang-format off
   Standard_Boolean defLowerLimitActualTranslation; //!< flag "is LowerLimitActualTranslation defined"
   Standard_Boolean defUpperLimitActualTranslation; //!< flag "is UpperLimitActualTranslation defined"
+// clang-format on
 
 };
 #endif // _StepKinematics_PrismaticPairWithRange_HeaderFile_
index 1ce7e12392714e61a72ae1a6a95b9fd7cfef67ea..21ce55f035e9d92f5033dac3d388e78bafca258e 100644 (file)
@@ -67,8 +67,10 @@ DEFINE_STANDARD_RTTIEXT(StepKinematics_RackAndPinionPairWithRange, StepKinematic
 private:
   Standard_Real myLowerLimitRackDisplacement; //!< optional
   Standard_Real myUpperLimitRackDisplacement; //!< optional
+// clang-format off
   Standard_Boolean defLowerLimitRackDisplacement; //!< flag "is LowerLimitRackDisplacement defined"
   Standard_Boolean defUpperLimitRackDisplacement; //!< flag "is UpperLimitRackDisplacement defined"
+// clang-format on
 
 };
 #endif // _StepKinematics_RackAndPinionPairWithRange_HeaderFile_
index e15afe880debe0da8b24e302d9a887ccf09012ec..471c7c7cb0eb36110dc8db7433e85bc6d2c7e781 100644 (file)
@@ -1616,7 +1616,9 @@ Handle(Geom_RectangularTrimmedSurface)
     Standard_Real uFact = 1.;
     Standard_Real vFact = 1.;
     const Standard_Real LengthFact = theLocalFactors.LengthFactor();
+// clang-format off
     const Standard_Real AngleFact = theLocalFactors.PlaneAngleFactor(); // abv 30.06.00 trj4_k1_geo-tc-214.stp #1477: PI/180.;
+// clang-format on
 
     if (theBasis->IsKind(STANDARD_TYPE(Geom_SphericalSurface)) ||
         theBasis->IsKind(STANDARD_TYPE(Geom_ToroidalSurface))) {
index e2e6d9d2157c12e6d07410ef71d6afe801a7ec6f..1cc339e06c00ee21b8c726e40afd62bed2a2e484 100644 (file)
@@ -164,7 +164,9 @@ Standard_Boolean  StepToTopoDS_GeometricTool::IsLikeSeam
           Abs(line1->Dir()->Orientation()->DirectionRatiosValue(2) -
           line2->Dir()->Orientation()->DirectionRatiosValue(2));
 
+// clang-format off
         Standard_Real preci2d = Precision::PConfusion(); //:S4136: Parametric(BRepAPI::Precision(),10);
+// clang-format on
 
         if ((DeltaX < preci2d) || (DeltaY < preci2d))
           return ((DeltaDirX < preci2d) && (DeltaDirY < preci2d));
@@ -242,7 +244,9 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d(
 
   if (theCurve->IsPeriodic())
   {
+// clang-format off
     ElCLib::AdjustPeriodic(cf, cl, Precision::PConfusion(), w1, w2); //:a7 abv 11 Feb 98: preci -> PConfusion()
+// clang-format on
   }
   else if (theCurve->IsClosed())
   {
index e9d5c4784393d13ffcf7db56ff51059d71b2405a..dedf484c543c19c16b644976a9fffd5de3df9a10 100644 (file)
@@ -523,7 +523,9 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
           // isLikeSeam = Two faces on the same Surface
           StepPCurve1 = SurfCurve->AssociatedGeometryValue(1).Pcurve();
           StepPCurve2 = SurfCurve->AssociatedGeometryValue(2).Pcurve();
+// clang-format off
           if (StepPCurve1.IsNull() || StepPCurve2.IsNull()) hasPcurve = Standard_False; //smh : BUC60810
+// clang-format on
           else {
             C2d1 = myTranEdge.MakePCurve(StepPCurve1, ConvSurf, theLocalFactors);
             C2d2 = myTranEdge.MakePCurve(StepPCurve2, ConvSurf, theLocalFactors);
index 190a54baea002efb0c382bd44390a047950ac40e..3ea94416e874168f87a118c3439da386ac0d3d92 100644 (file)
@@ -473,7 +473,9 @@ private:
   TColStd_intMapNode** myData1;            //!< data array
   Standard_Integer     myNbBuckets;        //!< number of buckets (size of data array)
   Standard_Integer     myNbPackedMapNodes; //!< amount of packed map nodes
+// clang-format off
   Standard_Size        myExtent;           //!< extent of this map (number of unpacked integer keys)
+// clang-format on
 };
 
 #endif
index d23d2983ac9b1c811f6c75794a934ac56d2d5825..56ebd04e974e96ebb0eda0ce0fd56cef8b2bf3ea 100644 (file)
@@ -384,7 +384,9 @@ private:
 private:
 
   Standard_PExtCharacter mystring{}; //!< NULL-terminated string
+// clang-format off
   Standard_Integer       mylength{}; //!< length in 16-bit code units (excluding terminating NULL symbol)
+// clang-format on
 };
 
 namespace std
index e4d07e86e80512b061998b00a82f37b514626cec..994cb3a65070b0556883953de47fd6b3164f625b 100644 (file)
@@ -156,7 +156,9 @@ void TDF_CopyLabel::Perform()
 {
   myIsDone = Standard_False;
   if(mySL.Data()->Root().IsDifferent(myTL.Data()->Root()) && //TDF_Data is not the same
+// clang-format off
      !TDF_Tool::IsSelfContained(mySL, myFilter)) return;               //source label isn't self-contained
+// clang-format on
 
   Standard_Boolean extReferers =
     ExternalReferences(mySL, myMapOfExt, myFilter);
index 554627d816a0d3ff6824a3c13f910823e4db3d3f..7810b1d1a375eef440e614b529d7b07d8252d026 100644 (file)
@@ -135,7 +135,9 @@ void TDF_Reference::Paste (const Handle(TDF_Attribute)& Into,
 
 void TDF_Reference::References(const Handle(TDF_DataSet)& aDataSet) const
 {
+// clang-format off
   if (!Label().IsImported()) aDataSet->AddLabel( myOrigin); //pour real et entier mais surtout pas les parts ...
+// clang-format on
 }
 
 //=======================================================================
index c4c266e1df8b609118759cdc23279e850e876973..76bdab64aa8b598ac689982fcd8de10a6d13c1bb 100644 (file)
@@ -74,8 +74,10 @@ Quantity_NameOfColor TDataXtd_Presentation::getColorNameFromOldEnum (Standard_In
 Standard_Integer TDataXtd_Presentation::getOldColorNameFromNewEnum (Quantity_NameOfColor theNew)
 {
   Standard_Integer anOld = theNew;
+// clang-format off
   if (theNew >= Quantity_NOC_CHARTREUSE2)  { ++anOld; }  // Quantity_NOC_CHARTREUSE1 merged to Quantity_NOC_CHARTREUSE1
   if (theNew >= Quantity_NOC_GOLD2)        { ++anOld; }  // Quantity_NOC_GOLD1 merged to Quantity_NOC_GOLD
+// clang-format on
   if (theNew >= Quantity_NOC_GRAY2 && theNew <= Quantity_NOC_GRAY89)
   {
     if (theNew == Quantity_NOC_GRAY2) { return 146; }
@@ -101,6 +103,7 @@ Standard_Integer TDataXtd_Presentation::getOldColorNameFromNewEnum (Quantity_Nam
   if (theNew == Quantity_NOC_GRAY99) { return 237; }
 
   if (theNew >= Quantity_NOC_GREEN)      { anOld -= 3; } // moved Quantity_NOC_GRAY96, 97, 98
+// clang-format off
   if (theNew >= Quantity_NOC_GREEN2)     { ++anOld; }    // Quantity_NOC_GREEN1 merged to Quantity_NOC_GREEN
   if (theNew >= Quantity_NOC_HONEYDEW)   { anOld += 3; } // moved Quantity_NOC_GRAY96, 97, 98
   if (theNew >= Quantity_NOC_ORANGE2)    { ++anOld; }    // Quantity_NOC_ORANGE1 merged to Quantity_NOC_ORANGE
@@ -108,6 +111,7 @@ Standard_Integer TDataXtd_Presentation::getOldColorNameFromNewEnum (Quantity_Nam
   if (theNew >= Quantity_NOC_RED2)       { ++anOld; }    // Quantity_NOC_RED1 merged to Quantity_NOC_RED
   if (theNew >= Quantity_NOC_TOMATO2)    { ++anOld; }    // Quantity_NOC_TOMATO1 merged to Quantity_NOC_TOMATO
   if (theNew >= Quantity_NOC_YELLOW2)    { ++anOld; }    // Quantity_NOC_YELLOW1 merged to Quantity_NOC_YELLOW
+// clang-format on
   return anOld;
 }
 
index 94c732866c0467d716a1d153aef9b79e0da9d50a..e14c9b5cc41d7d86ae64578e0ee1cce98aabaa42 100644 (file)
@@ -765,7 +765,9 @@ Standard_Boolean TDocStd_Document::PerformDeltaCompaction()
        delete pIDMap;
        }
       if(aMap(aDeltasIterator.Value()->Label()).Add(aDeltasIterator.Value()->ID())) //The attribute is not 
+// clang-format off
        aCompoundDelta->AddAttributeDelta(aDeltasIterator.Value());                 //already in the delta
+// clang-format on
     }
   } 
 
index d969d0ce3bd6de18ea3e47d8e0f4203063f90543..a598b016021d5ba843417f6c9e029dddad8edf2a 100644 (file)
@@ -137,7 +137,9 @@ void TNaming_Localizer::FindFeaturesInAncestors
   }
   else {
 #ifdef OCCT_DEBUG
+// clang-format off
     std::cout <<" TNaming_Localization : S n est pas dans le solide"<<std::endl;//S is not in the solid
+// clang-format on
 #endif
   }
 }
index 1f30b327f344eb8b4e86e9427ee30f801ef33287..fc6d30499d8998dcb5f03418019f419d28671f6f 100644 (file)
@@ -914,6 +914,7 @@ static Standard_Boolean Union (const TDF_Label&                  L,
   TDF_LabelMap        Forbiden;
   
   TNaming_NamingTool::BuildDescendants (Stop, Forbiden);//fill Forbidden
+// clang-format off
   TNaming_NamingTool::CurrentShape  (Valid, Forbiden,it.Value(),MS); // fill MS with last modifications of the first argument
   TopoDS_Shape  CS = MakeShape(MS);
 
@@ -921,6 +922,7 @@ static Standard_Boolean Union (const TDF_Label&                  L,
   if(isOr)
     KeepInList(CS,ShapeType,aListS);
   TNaming_ShapesSet S(CS,ShapeType);//fill internal map of shapeset by shapes of the specified type
+// clang-format on
 #ifdef OCCT_DEBUG_UNN
   TCollection_AsciiString entry; 
   TDF_Tool::Entry(it.Value()->Label(), entry);
@@ -935,7 +937,9 @@ static Standard_Boolean Union (const TDF_Label&                  L,
     TDF_Tool::Entry(it.Value()->Label(), entry);
 #endif
       MS.Clear();
+// clang-format off
       TNaming_NamingTool::CurrentShape (Valid, Forbiden,it.Value(),MS);// fill MS with last modifications of the it.Value()
+// clang-format on
       CS = MakeShape(MS);
       if(isOr)
        KeepInList(CS,ShapeType,aListS); 
@@ -1346,7 +1350,9 @@ static Standard_Boolean  FilterByNeighbourgs (const TDF_Label&                L,
 
   TDF_LabelMap        Forbiden;
   if(!ValidArgs(Args)) return Standard_False;
+// clang-format off
   TNaming_NamingTool::BuildDescendants (Stop, Forbiden); //all descendants of Stop (New shapes) are forbidden
+// clang-format on
   if (!Stop.IsNull())    Forbiden.Remove(Stop->Label());
   //----------------------------------------
   // First argument: collection has to be filtered.
@@ -1365,7 +1371,9 @@ static Standard_Boolean  FilterByNeighbourgs (const TDF_Label&                L,
 #endif
 
   TopTools_IndexedMapOfShape SCand;
+// clang-format off
   TNaming_NamingTool::CurrentShape  (Valid, Forbiden,Cand,SCand);//fills SCand with last modifications of Cand. CandNS should be at the same level (before) as NS of FilterByNBS
+// clang-format on
 
 #ifdef OCCT_DEBUG_FNB
   TCollection_AsciiString aNam2("SCand");
@@ -1379,7 +1387,9 @@ static Standard_Boolean  FilterByNeighbourgs (const TDF_Label&                L,
   //------------------------------------------------------------
   TopAbs_ShapeEnum              TC = TopAbs_EDGE;
   if (ShapeType == TopAbs_EDGE) TC = TopAbs_VERTEX;
+// clang-format off
   if (ShapeType == TopAbs_VERTEX) TC = TopAbs_VERTEX; // szy 31.03.10 - to process case when Candidate is of type Vertex
+// clang-format on
  
 #ifdef OCCT_DEBUG_FNB
   i=1;
@@ -1402,7 +1412,9 @@ static Standard_Boolean  FilterByNeighbourgs (const TDF_Label&                L,
     if(S.ShapeType() == TopAbs_VERTEX) //# szy 31.03.10
       Boundaries.Add (S); //#
     else  //#
+// clang-format off
       for (TopExp_Explorer exp(S,TC); exp.More(); exp.Next()) { //put boundaries of each candidate (from SCand) to the Boundaries map
+// clang-format on
        Boundaries.Add (exp.Current());
 #ifdef OCCT_DEBUG_FNB
        TCollection_AsciiString aName = aNam + i++ + ext;      
@@ -1431,7 +1443,9 @@ static Standard_Boolean  FilterByNeighbourgs (const TDF_Label&                L,
 #endif
       
       TopTools_IndexedMapOfShape SVois;
+// clang-format off
       TNaming_NamingTool::CurrentShape  (Valid, Forbiden,NSVois,SVois); // fills SVois with last modifications of NSVois
+// clang-format on
 
 #ifdef OCCT_DEBUG_FNB
       TCollection_AsciiString aNam2("SVois");
@@ -1752,10 +1766,12 @@ static Standard_Boolean WireIN(const TDF_Label&                L,
     TDF_LabelMap        Forbiden;
   
     TNaming_NamingTool::BuildDescendants (Stop, Forbiden);//fill Forbidden
+// clang-format off
     TNaming_NamingTool::CurrentShape  (Valid, Forbiden, anIter.Value(),MS); // fill MS with last modifications of the first additional argument
     TopoDS_Shape  CS = MakeShape(MS);
 
     TNaming_ShapesSet aSet(CS,TopAbs_EDGE);//fill internal map of shapeset by shapes of the specified type
+// clang-format on
 #ifdef OCCT_DEBUG_WIN
     TCollection_AsciiString entry; 
     TDF_Tool::Entry(it.Value()->Label(), entry);
@@ -1770,7 +1786,9 @@ static Standard_Boolean WireIN(const TDF_Label&                L,
       TDF_Tool::Entry(it.Value()->Label(), entry);
 #endif
       MS.Clear();
+// clang-format off
       TNaming_NamingTool::CurrentShape (Valid, Forbiden,anIter.Value(),MS);// fill MS with last modifications of the it.Value()
+// clang-format on
       CS = MakeShape(MS); 
       TNaming_ShapesSet OS(CS,TopAbs_EDGE);
       aSet.Add(OS); //concatenate both shapesets
@@ -1897,10 +1915,12 @@ static Standard_Boolean ShellIN(const TDF_Label&                L,
     TDF_LabelMap        Forbiden;
   
     TNaming_NamingTool::BuildDescendants (Stop, Forbiden);//fill Forbidden
+// clang-format off
     TNaming_NamingTool::CurrentShape  (Valid, Forbiden, anIter.Value(),MS); // fill MS with last modifications of the first additional argument
     TopoDS_Shape  CS = MakeShape(MS);
 
     TNaming_ShapesSet aSet(CS,TopAbs_FACE);//fill internal map of shapeset by shapes of the specified type
+// clang-format on
 #ifdef OCCT_DEBUG_SHELL
     TCollection_AsciiString entry; 
     TDF_Tool::Entry(anIter.Value()->Label(), entry);
@@ -1915,7 +1935,9 @@ static Standard_Boolean ShellIN(const TDF_Label&                L,
       TDF_Tool::Entry(anIter.Value()->Label(), entry);
 #endif
       MS.Clear();
+// clang-format off
       TNaming_NamingTool::CurrentShape (Valid, Forbiden,anIter.Value(),MS);// fill MS with last modifications of the it.Value()
+// clang-format on
       CS = MakeShape(MS); 
       TNaming_ShapesSet OS(CS,TopAbs_FACE);
       aSet.Add(OS); //concatenate both shapesets
index 439203507172085b3b3c16f05df2159c021b0150..b87adbe791ba50340af5b1d4208badbc33d844d9 100644 (file)
@@ -276,7 +276,9 @@ static Standard_Boolean GetShapeEvolutions(const TopoDS_Shape&               the
     TCollection_AsciiString aNam("GetShapeEvolutions");
     WriteNSOnLabel(aTarget,aNam);
 #endif
+// clang-format off
     if (aTarget->Label() == theSource->Label()) return Standard_True; // check if target is in the source
+// clang-format on
   } else return Standard_False;
 
   TNaming_Iterator anIter(aTarget);
@@ -294,7 +296,9 @@ static Standard_Boolean GetShapeEvolutions(const TopoDS_Shape&               the
     if (anIter.OldShape().IsNull() || anIter.NewShape().IsNull()) continue;
     if (!anIter.NewShape().IsSame(theTarget)) continue;
     if (GetShapeEvolutions(anIter.OldShape(),theSource,aList)) { // recursion: now target is old shape
+// clang-format off
       aList.Append(theTarget); // if oldshape has the source as parent (or belongs to it) , fill the list
+// clang-format on
       return Standard_True;
     }
   }
@@ -347,7 +351,9 @@ static Handle(TNaming_NamedShape) CompareInModification (const Handle(TNaming_Na
          aMap.Add(aNIter1.OldShape());
        }
       }
+// clang-format off
       TNaming_Iterator aNIter2(aResult); // if some another shapes has oldshape from map, return namedshape with this oldshape
+// clang-format on
 
       for(;aNIter2.More();aNIter2.Next()) {
        if (aNIter2.NewShape().IsSame(anIter.Value())) continue;
@@ -452,7 +458,9 @@ static Standard_Boolean TestSolution(const TNaming_Scope&      MDF,
     for (exp.Init(S,TopAbs_FACE) ; exp.More(); exp.Next()) {
       aMS.Add(exp.Current());
     }
+// clang-format off
     for (exp.Init(Res,TopAbs_FACE) ; exp.More(); exp.Next()) { //content of MS and Res should be the same 
+// clang-format on
       if (aMS.Contains(exp.Current())) {
        aMS.Remove(exp.Current());
       }
@@ -1171,7 +1179,9 @@ static void BuildScope (TNaming_Scope&    MDF,
   // Is context the current state
   //----------------------------------------------------
   Handle(TNaming_NamedShape) NS   = TNaming_Tool::NamedShape(Context,Acces);
+// clang-format off
   Handle(TNaming_NamedShape) Next = NextModif(NS); // if NS has subsequent evolution = MODIFY, return it
+// clang-format on
   if (Next.IsNull()) {  
     MDF.WithValid(Standard_False);
     return;
@@ -1708,7 +1718,9 @@ Handle(TNaming_NamedShape) TNaming_Naming::Name (const TDF_Label&       F,
              TopoDS_Iterator it(itw.Value());
              for(int i=1;it.More();it.Next(),i++) {
                if(it.Value().IsEqual(S)) {
+// clang-format off
                  theName.Index(i);//We use this field to save a Seam Shape Index; Before this field was used for GENERATED only
+// clang-format on
                  found = Standard_True;
 #ifdef MDTV_OR
                  std::cout << "ORDER = " << i <<std::endl;
index 5477dac21937cde2829812658f4b8673947efbfc..a7f4d2605d019f08b80708a0e7a35557f215eb00 100644 (file)
@@ -196,7 +196,9 @@ void TNaming_NamingTool::CurrentShape(const TDF_LabelMap&               Valid,
 //     LastModif(it, S, MS, Valid, Forbiden);
       TopTools_IndexedMapOfShape MS2; 
       LastModif(it, S, MS2, Valid, Forbiden);
+// clang-format off
       if (YaOrientationToApply) ApplyOrientation (MS2, OrientationToApply);//the solution to be refined
+// clang-format on
       for (Standard_Integer anItMS2 = 1; anItMS2 <= MS2.Extent(); ++anItMS2)
         MS.Add (MS2 (anItMS2));
     }
index bba7a914da4f5743c0f2c59050fa62dee2a33530..f9c1a71d72f289fbe24f71604c2364302a4aef5d 100644 (file)
@@ -142,7 +142,9 @@ static Standard_Boolean IsSpecificCase(const  TDF_Label& F, const TopoDS_Shape&
     TDF_ChildIDIterator cit(CNS->Label(), TNaming_NamedShape::GetID(), Standard_False);
     if(!cit.More()) {
       // Naming data structure is empty - no sub-shapes under resulting shape
+// clang-format off
       const Handle(TNaming_NamedShape) aNS = FindPrevNDS(CNS); //look to old shape data structure if exist
+// clang-format on
       if(!aNS.IsNull()) {
 #ifdef OCCT_DEBUG_BNP
        PrintEntry (aNS->Label(),0);
index d754de96201c90c2823a61125f60c78eeef58c7a..4b9243391ea32f2ca02e671fe40019eab4cfb876 100644 (file)
@@ -1246,7 +1246,9 @@ void TObj_Object::CopyChildren
 {
   TDF_Label aSourceChildLabel = GetChildLabel();
   Handle(TObj_ObjectIterator) aChildren = // GetChildren();
+// clang-format off
     new TObj_OcafObjectIterator (aSourceChildLabel, NULL, Standard_True); // to support children on sublabels of child label
+// clang-format on
   for(;aChildren->More(); aChildren->Next())
   {
     Handle(TObj_Object) aChild = aChildren->Value();
index ce0320ae0331fbcb3b8c8a1ad712652b877d5939..165d14e6348a921dddc22f2ccfc3837b3d06ab34 100644 (file)
@@ -45,7 +45,9 @@ protected:
 
 protected:
   Handle(Standard_Type) myType; //!< type of objects to iterate on
+// clang-format off
   Standard_Boolean myAllSubChildren; //!< to iterate all sub-children, do not stop on the first level
+// clang-format on
   
 public:
   //! CASCADE RTTI
index 99d042bf5fe97c838e183ad352ffbe4da7b9ef88..b1968b8a9fb15cc431175947d634d91f41c4fb7f 100644 (file)
@@ -640,6 +640,7 @@ Standard_Boolean TopOpeBRep_EdgesIntersector::ComputeSameDomain()
   Standard_Real r1 = c1.Radius();
   Standard_Real r2 = c2.Radius();
 //  Standard_Boolean rr = (r1 == r2);
+// clang-format off
   Standard_Boolean rr = (Abs(r1-r2) < Precision::Confusion()); //xpu281098 (cto019D2) tolerance a revoir
   if (!rr) return SetSameDomain(Standard_False);
 
@@ -649,6 +650,7 @@ Standard_Boolean TopOpeBRep_EdgesIntersector::ComputeSameDomain()
   const BRepAdaptor_Surface& BAS1 = Surface(1);
   Standard_Real u1,v1; p1.Coord(u1,v1); gp_Pnt P1 = BAS1.Value(u1,v1);
   Standard_Real u2,v2; p2.Coord(u2,v2); gp_Pnt P2 = BAS1.Value(u2,v2);// recall myCurve2=C2d(myEdge2,myFace1);
+// clang-format on
   Standard_Real dpp = P1.Distance(P2);
   Standard_Real tol1 = BRep_Tool::Tolerance(TopoDS::Edge(Edge(1)));
   Standard_Real tol2 = BRep_Tool::Tolerance(TopoDS::Edge(Edge(2)));
index 5d82c1632b5d572ea20c693c209ea779bd47f2f4..02c67524fbd08ae75235e4bdc8356327084be40b 100644 (file)
@@ -661,8 +661,10 @@ void TopOpeBRep_FacesFiller::ProcessRLine()
     Standard_Boolean sdmeds = FUN_ds_sdm((*myDS),Erest,OOE);
     if (sdmeds) continue;
     
+// clang-format off
     Standard_Integer obRest = TopOpeBRepTool_TOOL::OnBoundary(parRest,Erest); //vertex can be missed
     Standard_Integer obOO   = TopOpeBRepTool_TOOL::OnBoundary(OOpar,OOE);     //vertex can be missed
+// clang-format on
 
     if ((obRest == EXTERNAL)||(obOO == EXTERNAL)){
 #ifdef OCCT_DEBUG
@@ -673,7 +675,9 @@ void TopOpeBRep_FacesFiller::ProcessRLine()
 
     Standard_Boolean tgeds = FUN_tool_EtgOOE(parRest,Erest, OOpar,OOE, tola);
 
+// clang-format off
     TopOpeBRepDS_Kind PVKind = TopOpeBRepDS_POINT; Standard_Integer PVIndex = 0;  // POINT or VERTEX index
+// clang-format on
 
     for (Standard_Integer ShapeIndex = 1; ShapeIndex<=2; ShapeIndex++) {    
       Standard_Integer OOShapeIndex = (ShapeIndex == 1) ? 2 : 1;
index f5f27eb87c5303f0358aa404fd6b17fd42177990..b7575bed3a96a6f7cddc2d900f2cb6f76ce63bc1 100644 (file)
@@ -654,7 +654,9 @@ Standard_EXPORT Standard_Boolean FUNBREP_topokpart
 
   Standard_Boolean CPIfound = !Ifound.IsNull();
   Standard_Boolean couture = TopOpeBRepTool_ShapeTool::Closed(TopoDS::Edge(E),TopoDS::Face(F));
+// clang-format off
   Standard_Boolean samepar = Standard_False; // = True if current VPoint falls on an existing geometry with an equal parameter.
+// clang-format on
   if (!CPIfound) samepar = Standard_False;
   else           samepar = CPIfound ? TopoParameter(L,Ifound,parline,couture) : Standard_False;
 
index 1ac5ca1c1a78548a5474a327e95d8c303fb33514..32277b9e580af7d25c3e0956a2b1d4395364d950 100644 (file)
@@ -145,7 +145,9 @@ Standard_EXPORT void FUN_GetdgData(TopOpeBRepDS_PDataStructure& pDS,const TopOpe
   //           with shapes with same rank
 
   TopTools_DataMapOfShapeInteger shaperk;          // rkshape = {shape,rank=1,2}
+// clang-format off
   TopTools_DataMapOfShapeListOfShape mapvec, mapved; // mapvec = {(v,lec),(ec,lv)}, mapved = {(v,led),(ed,lv)}
+// clang-format on
   TopTools_DataMapOfShapeShape mapvvsd;          // mapvvsd = {(v,v)}
 
   TopOpeBRep_VPointInterIterator itvp(L);
@@ -344,7 +346,9 @@ static Standard_Integer FUN_putInterfonDegenEd
       if (!found) return NOI;
       // modified by NIZHNY-MKK  Tue Nov 21 17:45:50 2000.END
     }
+// clang-format off
     if (rkv != rkdg) {TopoDS_Vertex tmp = v; v = ov; ov = tmp; rkv = rkdg;} // ensure v is vertex of dge
+// clang-format on
   }
 
   Standard_Integer mkt = 0; Standard_Real par1 = 0.,par2 = 0.;
index 3b16f0bb0979428566e1c96d8633ddafb5ec94e8..5a17dfab5878b8fc0cf2618c645bb3aca542492f 100644 (file)
@@ -418,7 +418,9 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   TopAbs_Orientation oFOR = BDS.Shape(iFOR).Orientation();
   TopAbs_Orientation oFS  = BDS.Shape(iFS).Orientation();
 
+// clang-format off
   Standard_Boolean isclosedFF=FUN_tool_IsClosingE(EG,FOR,FOR); //xpu240898 : cto900J5 faulty yapc2(FOR17,FS18,EG15)
+// clang-format on
   Standard_Boolean isclosedFS=FUN_tool_IsClosingE(EG,FS,FS); //xpu240898
   Standard_Boolean isclosed=(isclosedFF || isclosedFS);
   Standard_Boolean isrest=BDS.IsSectionEdge(EG);
@@ -461,7 +463,9 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
 #endif
   Standard_Boolean opeCut = myPB->Opec12() || myPB->Opec21();
   Standard_Boolean opeCom = myPB->Opecom();
+// clang-format off
   Standard_Boolean ComOfCut = opeCut && (TB1 == TB2) && (TB1 == TopAbs_IN); //xpu200598 only if FFSDSO
+// clang-format on
 
   TopAbs_State TBFOR = FUN_build_TB(myPB,rankFOR);  
 
index e86e90576335a9ea8eedf51bbef0ff4a81ebb76c..f4fcb8482ab350c075ff30a2323990eca9c2d3d7 100644 (file)
@@ -42,7 +42,9 @@ Standard_EXPORT void debON2d(const Standard_Integer iF)
 {std::cout<<"++ debON2d "<<iF<<" "<<std::endl;}
 #endif
 
+// clang-format off
 Standard_EXPORT TopAbs_State FUN_build_TB(const TopOpeBRepBuild_PBuilder& PB,const Standard_Integer rank); // xpu290698
+// clang-format on
 Standard_EXPORT Standard_Boolean FUN_keepEON(const TopOpeBRepBuild_Builder& B,
                                const TopoDS_Shape& sEG,const TopoDS_Shape& sFOR,const TopoDS_Shape& sFS,
                                const Standard_Boolean EGBoundFOR,
@@ -232,7 +234,9 @@ void TopOpeBRepBuild_BuilderON::GFillONParts2dWES2(const Handle(TopOpeBRepDS_Int
     }
 
 //    Standard_Real f,l; FUN_tool_bounds(EG,f,l); Standard_Real parON = (f+l)*.4352;
+// clang-format off
     Standard_Real f,l; FUN_tool_bounds(TopoDS::Edge(EspON),f,l); Standard_Real parON = (f+l)*.4352; // xpu120698
+// clang-format on
     Standard_Boolean ESO; ok = FUN_tool_curvesSO(TopoDS::Edge(EspON),parON,EG,ESO);
     if (!ok) return; // xpu120698
     if (!ESO) neworiE = TopAbs::Complement(neworiE);
index 8042556fc472dc1b86c0b8c8125492bf42572655..8a4a93067bce7376fa2264a252b4f139a0d1d765 100644 (file)
@@ -333,7 +333,9 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
   // 0.
   //---
   const TopOpeBRepDS_ListOfInterference& lIE = BDS.ShapeInterferences(E);
+// clang-format off
   Standard_Boolean scanall = (isspin || isspou || isspon); // xpu161198: BUC60382 //xpu011098: CTS21180(e8on); cto900I7(e12on)
+// clang-format on
 
   // loiSHAINT = interferences avec les 2 proprietes 
   // - fournies par un PointIterator
index 9143ba071255c11abc05fd915fbd7fd49715d832..a288fa0c6e7322e2099c76530612a0061df2600c 100644 (file)
@@ -867,8 +867,10 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
       TopoDS_Shape newE = EOR;
        
       if      (newO)                 newE.Orientation(oEinF);// xpu060598  
+// clang-format off
       else if (Oinref == FORREVOPPO) newE.Orientation(TopAbs_INTERNAL);// xpu120898 (PRO14785 : e36 shared by f34 & f39,
                                                                        // faces sdm with f16)
+// clang-format on
       else                           newE.Orientation(neworiE); 
 #ifdef OCCT_DEBUG
       if(tSPS){
index b2fd99afca0c71c84cd8e685794079373604c930..5cb32b3e4ce8383dd502296c2f74d5698a626c83 100644 (file)
@@ -575,8 +575,10 @@ void TopOpeBRepBuild_Builder::MergeKPartiskoletge()
 //    if (!ok) {FUN_Raise(); return;}
     
     // new topologies :
+// clang-format off
     TopTools_IndexedDataMapOfShapeListOfShape fcnewfcSMA;// faces connexed to fSMA built up with the split of outerwSMA
     TopTools_IndexedDataMapOfShapeListOfShape fcnewfcGRE;// faces connexed to fGRE built up with the split of outerwGRE    
+// clang-format on
     Standard_Boolean ok = ::FUN_rebuildfc((*this),myDataStructure,staSMA,*pfSMA,EnewE,fcnewfcSMA);
     if (!ok) {FUN_Raise(); return;}
     Standard_Integer nfcSMA = fcnewfcSMA.Extent();
index 383f3bbcfe7e818ebcfb9a8ceeab476b10ac4823..d3e2308094ba0c5c11d6637583058bf3b21c2aec 100644 (file)
@@ -346,7 +346,9 @@ void TopOpeBRepBuild_Builder::MakeSolids(TopOpeBRepBuild_SolidBuilder& SOBU,TopT
          myBuildTool.AddShellFace(newShell,F);
        }
       }
+// clang-format off
       myBuildTool.Closed(newShell,Standard_True); // NYI : check exact du caractere closed du shell
+// clang-format on
       myBuildTool.AddSolidShell(newSolid,newShell);
     }
     L.Append(newSolid);
index f37edb72b264ab8bd096db91027039956a3039a8..5def1ff194ef39145160a8062a06365f7f03f322 100644 (file)
@@ -516,7 +516,9 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
        }
 #endif
 //     Standard_Real tolpc; MGhc2 PC = FC2D_CurveOnSurface(eon,F,esdF,f,l,tolpc);
+// clang-format off
        Standard_Real tolpc; MGhc2 PC = FC2D_CurveOnSurface(eon,F,esdF,f,l,tolpc,Standard_True);//xpu051198 :PRO15049
+// clang-format on
        hasPC = (!PC.IsNull());
        if (!hasPC) throw Standard_ProgramError("TopOpeBRepBuild_Builder::SSE null PC on F");
        Standard_Real tol = Max(tolE,tolpc);
@@ -663,7 +665,9 @@ void TopOpeBRepBuild_Builder::SplitSectionEdge(const TopoDS_Shape& EA)
   TopOpeBRepDS_DataStructure& BDS = myDataStructure->ChangeDS();
   const TopoDS_Edge& EOR = TopoDS::Edge(EA);
   TopoDS_Edge EF = EOR; EF.Orientation(TopAbs_FORWARD);
+// clang-format off
   Standard_Integer rankEF = myDataStructure->DS().AncestorRank(EF); // GShapeRank <- GMapShapes, appele par Merge
+// clang-format on
   
 //  FUN_removeonGB(myDataStructure,EOR); //xpu041198
 
index 04622c1065277b3007d144d39c097ca3368a667b..31fb1b75da8aea2ada1d4e9f19361bdbf851d542 100644 (file)
@@ -367,7 +367,9 @@ void  TopOpeBRepBuild_WireEdgeClassifier::ResetElement(const TopoDS_Shape& EE)
   Standard_Real f2,l2,tolpc;Handle(Geom2d_Curve) C2D; //jyl980406+
   Standard_Boolean haspc = FC2D_HasCurveOnSurface(E,F); //jyl980406+
   if (!haspc) { //jyl980406+
+// clang-format off
     Standard_Boolean trim3d = Standard_True; C2D = FC2D_CurveOnSurface(E,F,f2,l2,tolpc,trim3d); //jyl980406+
+// clang-format on
     Standard_Real tolE = BRep_Tool::Tolerance(E); //jyl980406+  
     Standard_Real tol = Max(tolE,tolpc); //jyl980406+
     BRep_Builder BB; BB.UpdateEdge(E,C2D,F,tol); //jyl980406+
@@ -402,8 +404,10 @@ Standard_Boolean TopOpeBRepBuild_WireEdgeClassifier::CompareElement(const TopoDS
   Standard_Real f2,l2,tolpc;Handle(Geom2d_Curve) C2D; //jyl980402+
   Standard_Boolean haspc = FC2D_HasCurveOnSurface(E,F); //jyl980402+
   if (!haspc) { //jyl980402+
+// clang-format off
     Standard_Boolean trim3d = Standard_True; C2D = FC2D_CurveOnSurface(E,F,f2,l2,tolpc,trim3d); //jyl980406+
     // C2D = FC2D_CurveOnSurface(E,F,f2,l2,tolpc,trim3d); //jyl980406-
+// clang-format on
     Standard_Real tolE = BRep_Tool::Tolerance(E); //jyl980402+  
     Standard_Real tol = Max(tolE,tolpc); //jyl980402+
     BRep_Builder BB; BB.UpdateEdge(E,C2D,F,tol); //jyl980402+
index 928e9616e4240e7bba57b31ec19dc3cf146ed6be..3cdbcc93305d2d5d32d25d0138c4f06857b1fe45 100644 (file)
@@ -286,7 +286,9 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
        // NYI : + argument a la methode GSplitFaceSFS ?? a voir
 
        // ici : GLOBAL_lfrtoprocess = t
+// clang-format off
        if (GLOBAL_lfr1==NULL) GLOBAL_lfr1=(TopTools_ListOfShape*)new TopTools_ListOfShape(); //flo150998
+// clang-format on
        GLOBAL_lfr1->Clear();
        GSplitFaceSFS(FOR,LSO2,GM,SFS);
        GLOBAL_lfrtoprocess = Standard_False;
@@ -419,7 +421,9 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
 #endif
 
        // NYI : Builder += methode pour le process fufa
+// clang-format off
        TopOpeBRepBuild_FuseFace fufa; TopTools_ListOfShape ldum; Standard_Integer addinternal = 1; // disparition
+// clang-format on
        fufa.Init(ldum,*GLOBAL_lfr1,addinternal);
        fufa.PerformFace();
        Standard_Boolean isdone = fufa.IsDone();
index ae4a27775f0762d0c15d786e9f645fae7931165d..d1f6f96f323865c14bd9c9b247776146daabb19f 100644 (file)
@@ -386,6 +386,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
                  if      (oE == TopAbs_INTERNAL) neINTERNAL++;
                  else if (oE == TopAbs_EXTERNAL) neEXTERNAL++;
          
+// clang-format off
                  Standard_Boolean hasPC = FC2D_HasCurveOnSurface(newEdge,newFace);                                     // jyl980402+
                  if (!hasPC)                                                                                           // jyl980402+
                    {                                                                                                   // jyl980402+
@@ -398,6 +399,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
                      BRep_Builder BB_PC; BB_PC.UpdateEdge(newEdge,C2D,newFace,tol);                                    // jyl980402+
                    }                                                                                                   // jyl980402+
                } // FABU.MoreEdge()
+// clang-format on
 
              //--ofv:
              if((neINTERNAL == 0 && neEXTERNAL == 0) || (ne == neINTERNAL || ne == neEXTERNAL))
index 4e66fa56a8a40346428b94705158dfa1969b9c34..639c23c0bbef2eb69afb7f5e3c285e6b2e5b0fe8 100644 (file)
@@ -51,7 +51,9 @@ static void FDS_reduceONFACEinterferences(TopOpeBRepDS_ListOfInterference& LI,
 //------------------------------------------------------
 {
 
+// clang-format off
   TopOpeBRepDS_ListIteratorOfListOfInterference it1;  // set hasONFACE = True if LI contains interfs with (ON,FACE) transition(s).
+// clang-format on
   Standard_Boolean hasONFACE = Standard_False;
   for (it1.Initialize(LI); it1.More(); it1.Next() ) {
     Handle(TopOpeBRepDS_Interference)& I1 = it1.ChangeValue();
index c36ce2dc2cbd780be6a19e5ceea93470e40508d8..4e6a6c77ef33f13d476301d60fd4170778f2f768 100644 (file)
@@ -554,7 +554,9 @@ Standard_EXPORT void FUN_ds_PURGEforE9(const Handle(TopOpeBRepDS_HDataStructure)
       TopAbs_ShapeEnum SB = TopAbs_SHAPE, SA = TopAbs_SHAPE;Standard_Integer IB = 0, IA = 0;TopOpeBRepDS_Kind GT = TopOpeBRepDS_UNKNOWN, ST = TopOpeBRepDS_UNKNOWN; Standard_Integer G = 0, S = 0;
       FDS_Idata(I,SB,IB,SA,IA,GT,G,ST,S);      
       Standard_Boolean FhasGE = FDS_SIisGIofIofSBAofTofI(BDS,IE,I);
+// clang-format off
       if (FhasGE) {removed = Standard_True; l3dF.Remove(it); continue;} // E has split ON F (cto904A3;e19,f14)
+// clang-format on
       const TopoDS_Shape& F = BDS.Shape(S);
       Standard_Boolean hsdm = HDS->HasSameDomain(F);
       if (!hsdm) {it.Next(); continue;}
@@ -1103,8 +1105,10 @@ Standard_EXPORT Standard_Integer FUN_ds_oriEinF(const TopOpeBRepDS_DataStructure
     Standard_Boolean hsdm = (sdmFs.Extent() > 0);
 
     if (hsdm) {
+// clang-format off
       Standard_Boolean hasFOR=Standard_False, hasREV=Standard_False; // xpu120898 (PRO14785 : e36 shared by f34 & f39,
                                   // faces sdm with f16)
+// clang-format on
       TopOpeBRepDS_Config C = BDS.SameDomainOri(FF);
 
       for (TopTools_ListIteratorOfListOfShape it(sdmFs); it.More(); it.Next()){
@@ -1709,10 +1713,12 @@ Standard_EXPORT void FUN_ds_completeforSE8(const Handle(TopOpeBRepDS_HDataStruct
       }
       // li -> l1dE + l2dFE + lFE(<=>l3dFE) + li(<=>lFF)
       TopOpeBRepDS_ListOfInterference li; FDS_assign(loi,li);
+// clang-format off
       TopOpeBRepDS_ListOfInterference l1dE;  Standard_Integer n1d = FUN_selectTRASHAinterference(li,TopAbs_EDGE,l1dE);  // li->l1dE+li(<=>lF?)
       TopOpeBRepDS_ListOfInterference lFE;
       FUN_selectSKinterference(li,TopOpeBRepDS_EDGE,lFE); // li(<=>lF?)->lFE+li(<=>lFF)
       TopOpeBRepDS_ListOfInterference l2dFE; Standard_Integer n2d = FUN_selectpure2dI(li,lFE,l2dFE);                    // lFE->l2dFE+lFE(<=>l3dFE)
+// clang-format on
       Standard_Boolean redu2d = (n1d > 0)&&(n2d > 0);
       // -------------------------------
       if (redu2d) { // {I1d=(Tr(Esd),vG,Esd), I2d=(Tr(F),vG,E)}        
index 56f787431728fd8453db64d312969b519fc6e76f..4483aa05f7753b36f59cbf37cfbb046f1744a937 100644 (file)
@@ -48,7 +48,9 @@ Standard_EXPORT Standard_Boolean FUN_ds_sdm(const TopOpeBRepDS_DataStructure& BD
 
 Standard_EXPORT Standard_Boolean FDS_aresamdom(const TopOpeBRepDS_DataStructure& BDS,const TopoDS_Shape& ES,const TopoDS_Shape& F1,const TopoDS_Shape& F2);
 Standard_EXPORT Standard_Boolean FDS_aresamdom(const TopOpeBRepDS_DataStructure& BDS,const Standard_Integer SI,const Standard_Integer isb1,const Standard_Integer isb2);
+// clang-format off
 Standard_EXPORT Standard_Boolean FDS_EdgeIsConnexToSameDomainFaces(const TopoDS_Shape& E,const Handle(TopOpeBRepDS_HDataStructure)& HDS);  // not used
+// clang-format on
 Standard_EXPORT Standard_Boolean FDS_SIisGIofIofSBAofTofI(const TopOpeBRepDS_DataStructure& BDS,const Standard_Integer SI,const Handle(TopOpeBRepDS_Interference)& I);
 Standard_EXPORT Standard_Real FDS_Parameter(const Handle(TopOpeBRepDS_Interference)& I);
 Standard_EXPORT Standard_Boolean FDS_Parameter(const Handle(TopOpeBRepDS_Interference)& I, Standard_Real& par);
index 4243889767def2ff70c76e22eb75e2317b6f4f23..ff14249b847419ab2ebabc3356037c5630f8e189 100644 (file)
@@ -57,8 +57,10 @@ Standard_EXPORT Standard_Boolean FUN_ds_redu2d1d(const TopOpeBRepDS_DataStructur
   if (!ok2) return Standard_False;
 
   const TopoDS_Edge& SE = TopoDS::Edge(BDS.Shape(ISE));
+// clang-format off
   const TopoDS_Face& F  = TopoDS::Face(BDS.Shape(IB2)); Standard_Real tolF = BRep_Tool::Tolerance(F)*1.e2;//nyitol
   const TopoDS_Edge& E  = TopoDS::Edge(BDS.Shape(S2)); Standard_Real tolE = BRep_Tool::Tolerance(E)*1.e2;//nyitol
+// clang-format on
   Standard_Boolean EclosingF = FUN_tool_IsClosingE(E,F,F);
   if (EclosingF) { 
     TopAbs_State stb = T2d.Before(), sta = T2d.After();
index 691e3c157bdd32fd26e10bb2469f7d11a2c89da8..a9cf090f8abb49431d807a8c40253c9bbfc785eb 100644 (file)
@@ -617,7 +617,9 @@ Standard_Integer TopOpeBRepTool_CORRISO::EdgeOUTofBoundsUV(const TopoDS_Edge& E,
   Standard_Real f,l,tol; const Handle(Geom2d_Curve)& PC = C2DF.PC(f,l,tol);
  
   Standard_Real xfirst  = onU ? myGAS.FirstUParameter() : myGAS.FirstVParameter();
+// clang-format off
   Standard_Real xlast   = onU ? myGAS.LastUParameter() : myGAS.LastVParameter(); // xlast=xfirst+xperiod
+// clang-format on
   Standard_Real xperiod = onU ? myUper : myVper;
 
   Standard_Boolean isou,isov; gp_Pnt2d o2d; gp_Dir2d d2d; 
index 818cdc3a4aa639ec4855f631587f27f21a4a5e09..9229b3e515a9d430a09cc88a3a3b9c4c3158290f 100644 (file)
@@ -706,7 +706,9 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
   Standard_Real f,l; FUN_tool_bounds(e,f,l); Standard_Real eps = 0.45678; Standard_Real pare = (1-eps)*f+eps*l;
 
   // RONd (x,y,z) = (xxref,ntref,x^y)
+// clang-format off
   Standard_Real tola = Precision::Angular()*1.e3; //gp_Dir xapp,yapp; Standard_Boolean refapp = Standard_False;
+// clang-format on
   gp_Dir x,y; Standard_Boolean ok = ::FUN_vectors(fref,e,pare,y,x,tola,Standard_False);
   if (!ok) {FUN_Raise(); return Standard_False;}
   
index 722c94e5c516e83a1bdede76a6549911b6df6d50..7a14dfa54ec858e8ebeaac7684d927461a2e6f11 100644 (file)
@@ -753,7 +753,9 @@ static Standard_Boolean FindAPointInTheFace
       
       T.Normalize();
       P.SetCoord(P.X()+TolInit*T.X(),P.Y()+TolInit*T.Y());
+// clang-format off
       FClassifier.Reset(gp_Lin2d(P,T),ParamInit,RealEpsilon());   //-- Longueur et Tolerance #######
+// clang-format on
       
       TopExp_Explorer otherfaceexplorer;
       for (otherfaceexplorer.Init(face,TopAbs_EDGE); 
index 8848a2648db9684194fe556aee5082e52eed4d59..d855d088884a551302f00b481265b245c3f01c72 100644 (file)
@@ -324,7 +324,9 @@ Standard_Boolean TopOpeBRepTool_mkTondgE::MkTonE(const TopoDS_Edge& ei, Standard
     ok = FUN_MkTonE(faxis,dirINcle,xxi,myngf, par1,par2, outin);
     if (!ok) return Standard_False;
     
+// clang-format off
     if (!onfi && !onli) {mkT = MKI12; return Standard_True;}// => the same for all edges of lei @190499
+// clang-format on
     if (closedi)        {mkT = MKI12; return Standard_True;}// onfi || onli @190499
     
     // xxri : 
@@ -363,7 +365,9 @@ Standard_Boolean TopOpeBRepTool_mkTondgE::MkTonE(const TopoDS_Edge& ei, Standard
 /*
     // xxri : 
     Standard_Real ddot = tgin1di.Dot(faxis);
+// clang-format off
     Standard_Boolean tgaxis = Abs(1-(Abs(ddot))) < FUN_tola(); //=true : edge is tangent to sphere's axis
+// clang-format on
     if (tgaxis) {
       ok = TopOpeBRepTool_TOOL::XX(myuvi,myFi, pari,ei, xxri);
       if (!ok) return Standard_False;
index 6cf9a3637dd685b262bc917b6518c6458740f770..073620565d5899edec4acd171a0fa5c001cdc7c0 100644 (file)
@@ -78,7 +78,9 @@ public:
     setFlag (TopoDS_TShape_Flags_Modified, theIsModified);
     if (theIsModified)
     {
+// clang-format off
       setFlag (TopoDS_TShape_Flags_Checked, false); // when a TShape is modified it is also unchecked
+// clang-format on
     }
   }
 
index 18741dcc9fb99a0f589eacd43e19495ad98d0270..609521fbf4fd5d5199ef1e8e706039c2cf3fdb18 100644 (file)
@@ -335,7 +335,9 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
   TopoDS_Shape curShape;
   TopoDS_Edge  curEdge;
   TopExp_Explorer  exp;
+// clang-format off
   Standard_Boolean result = Standard_False; //szv#4:S4163:12Mar99 `done` hid one from this, initialisation needed
+// clang-format on
 
   for (exp.Init(aFace,TopAbs_EDGE); exp.More(); exp.Next()){
     curShape = exp.Current();
@@ -352,7 +354,9 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
                            const StepData_Factors& theLocalFactors) const
 {
   TopoDS_Iterator  It;
+// clang-format off
   Standard_Boolean result = Standard_False; //szv#4:S4163:12Mar99 `done` hid one from this, initialisation needed
+// clang-format on
 
   //szv#4:S4163:12Mar99 optimized
   switch (aShape.ShapeType()) {
index afd1f5b68bf9b0c457b7fb9008eef0c1ba5b1e66..be073eadbff7cc39bc7d8ab5b1379af6fb92fd3e 100644 (file)
@@ -29,10 +29,12 @@ TransferBRep_BinderOfShape::TransferBRep_BinderOfShape (const TopoDS_Shape& res)
 
 
 Handle(Standard_Type)  TransferBRep_BinderOfShape::ResultType () const
+// clang-format off
 {  return  TransferBRep_ShapeInfo::Type (theres);  }  // correspond a "STANDARD_TYPE(TopoDS_Shape)"
 
 Standard_CString  TransferBRep_BinderOfShape::ResultTypeName () const
 {  return  TransferBRep_ShapeInfo::TypeName (theres);  }  // correspond a "STANDARD_TYPE(TopoDS_Shape)"
+// clang-format on
 
 
 void  TransferBRep_BinderOfShape::SetResult (const TopoDS_Shape& res)
index a15f57b83acbc1e5fd4e81cfaf7d62de241677be..178e1af9cf67a4f0b8c3c04adbc48e4cf2d78470 100644 (file)
@@ -22,6 +22,7 @@
 struct V3d_ImageDumpOptions
 {
 
+// clang-format off
   Standard_Integer      Width;          //!< Width  of image dump to allocate an image, 0 by default (meaning that image should be already allocated).
   Standard_Integer      Height;         //!< Height of image dump to allocate an image, 0 by default (meaning that image should be already allocated).
   Graphic3d_BufferType  BufferType;     //!< Which buffer to dump (color / depth), Graphic3d_BT_RGB by default.
@@ -31,6 +32,7 @@ struct V3d_ImageDumpOptions
   Graphic3d_ZLayerId    TargetZLayerId; //!< Target z layer id which defines the last layer to be drawn before image dump.
   Standard_Boolean      IsSingleLayer;  //<! Flags if dumping is to be done to a single or to multiple layers.
   Standard_CString      LightName;      //<! Name of the target light whose shadowmap is to be dumped.
+// clang-format on
 
 public:
 
index adafb827f41562a500d8e41392faae615a0fdb0e..60b2ea18cdfb0d99462c874814228d1ecf2f11bd 100644 (file)
@@ -481,7 +481,9 @@ void V3d_View::AutoZFit() const
 void V3d_View::ZFitAll (const Standard_Real theScaleFactor) const
 {
   Bnd_Box aMinMaxBox   = myView->MinMaxValues (Standard_False); // applicative min max boundaries
+// clang-format off
   Bnd_Box aGraphicBox  = myView->MinMaxValues (Standard_True);  // real graphical boundaries (not accounting infinite flag).
+// clang-format on
 
   myView->Camera()->ZFitAll (theScaleFactor, aMinMaxBox, aGraphicBox);
 }
index 380f5ac67bd58ab005a0c64beb7e2a2170d5b8dc..bfb6de0130343de66d47e088b2f94bdc6b883c1d 100644 (file)
@@ -1660,8 +1660,10 @@ private:
 
 private:
 
+// clang-format off
   Handle(AIS_InteractiveContext) mySelIter;    //!< iterator for current (selected) objects (IterSource_Selected)
   ViewerTest_DoubleMapIteratorOfDoubleMapOfInteractiveAndName myMapIter; //!< iterator for map of all objects (IterSource_All)
+// clang-format on
   NCollection_Sequence<TCollection_AsciiString>           mySeq;
   NCollection_Sequence<TCollection_AsciiString>::Iterator mySeqIter;
 
@@ -4775,7 +4777,9 @@ Standard_Integer VTexture (Draw_Interpretor& theDi, Standard_Integer theArgsNb,
     }
     if (toSetTrsfAngle)
     {
+// clang-format off
       aTexturedIO->Attributes()->ShadingAspect()->Aspect()->TextureMap()->GetParams()->SetRotation (aTrsfRotAngle); // takes degrees
+// clang-format on
     }
     if (toSetTrsfTrans)
     {
index e725e32079d19649201ac72215e8ce36c332657a..3330ec69c34c63f3b9c8eb09355be750c45ac169 100644 (file)
@@ -157,7 +157,9 @@ private:
 
   Handle(AIS_InteractiveContext) myCtx;
   Handle(V3d_View) myView;
+// clang-format off
   NCollection_DataMap<unsigned int, Aspect_VKey> myNavKeyMap; //!< map of Hot-Key (key+modifiers) to Action
+// clang-format on
 
   TCollection_AsciiString myPickPntArgVec[3];
   Standard_Boolean myToPickPnt;
index 300e5bad2079410b7f061f458a2272ee3998eaab..d1a4eaa91bad960f7a96f7b4471a9aef3b6cc538 100644 (file)
@@ -3015,7 +3015,9 @@ static int VDrawSphere (Draw_Interpretor& /*di*/, Standard_Integer argc, const c
   // show statistics
   Standard_Integer aPointsSize      = aNumberPoints * 3 * sizeof(float);  // 3x GLfloat
   Standard_Integer aNormalsSize     = aNumberPoints * 3 * sizeof(float);  // 3x GLfloat
+// clang-format off
   Standard_Integer aColorsSize      = aNumberPoints * 3 * sizeof(float);  // 3x GLfloat without alpha
+// clang-format on
   Standard_Integer aTrianglesSize   = aNumberTriangles * 3 * sizeof(int); // 3x GLint
   Standard_Integer aPolyConnectSize = aNumberPoints * 4 + aNumberTriangles * 6 * 4;
   Standard_Integer aTotalSize       = aPointsSize + aNormalsSize + aColorsSize + aTrianglesSize;
index df8b28403a2e268b6ff1db717b628fc76804907f..27458028122acc87fd9dfc8a8e036b2a2540c635 100644 (file)
@@ -95,6 +95,7 @@ public:
   struct Vrml_InternalSection
   {
     // Read
+// clang-format off
     double ReadFileUnit = 1.; //<! file length units to convert from while reading the file, defined as scale factor for meters
     RWMesh_CoordinateSystem ReadFileCoordinateSys = RWMesh_CoordinateSystem_Yup; //<! coordinate system defined by Vrml file
     RWMesh_CoordinateSystem ReadSystemCoordinateSys = RWMesh_CoordinateSystem_Zup; //<! result coordinate system 
@@ -103,6 +104,7 @@ public:
     // Write
     WriteMode_WriterVersion WriterVersion = WriteMode_WriterVersion_2; //!< Setting up writer version (1/2)
     WriteMode_RepresentationType WriteRepresentationType = WriteMode_RepresentationType_Wireframe; //!< Setting up representation (shaded/wireframe/both) 
+// clang-format on
 
   } InternalParameters;
 };
index 1ce52e1f09b02eaade58f5c743d1b27bb61db8d0..99b8cfafbffd8d45166ba1ac05c3f8295d9d2dcd 100644 (file)
@@ -209,7 +209,9 @@ private:
 
   Handle(XCAFDoc_ShapeTool)                       myShapeTool;    //!< Document shape tool.
   TColStd_PackedMapOfInteger                      myRoots;        //!< IDs of the root nodes.
+// clang-format off
   TDF_LabelIndexedMap                             myNodes;        //!< Maps assembly/part entries to graph node IDs.
+// clang-format on
   AdjacencyMap                                    myAdjacencyMap; //!< "Part-of" relations.
   NCollection_DataMap<Standard_Integer, NodeType> myNodeTypes;    //!< Node types.
   NCollection_DataMap<Standard_Integer, 
index 404934c0e53e504900219514134c366c805a7d8e..ec757c7bd70afdea0c3ccf13b51e9f253146c25d 100644 (file)
@@ -187,9 +187,11 @@ private:
   Handle(TCollection_HAsciiString) myRawName;       //!< material name / tag (transient data)
   XCAFDoc_VisMaterialPBR           myPbrMat;        //!< metal-roughness material definition
   XCAFDoc_VisMaterialCommon        myCommonMat;     //!< common material definition
+// clang-format off
   Graphic3d_AlphaMode              myAlphaMode;     //!< alpha mode; Graphic3d_AlphaMode_BlendAuto by default
   Standard_ShortReal               myAlphaCutOff;   //!< alpha cutoff value; 0.5 by default
   Graphic3d_TypeOfBackfacingModel  myFaceCulling;   //!< specifies whether the material is double/single sided
+// clang-format on
 
 };
 
index 9a914eb6036608066ad300e32df1111019022e39..6d09139b6fa1faa4da49e240634fd09330fbc510 100644 (file)
@@ -31,7 +31,9 @@ struct XCAFDoc_VisMaterialCommon
   Quantity_Color          SpecularColor;   //!< specular color
   Quantity_Color          EmissiveColor;   //!< emission color
   Standard_ShortReal      Shininess;       //!< shininess value
+// clang-format off
   Standard_ShortReal      Transparency;    //!< transparency value within [0, 1] range with 0 meaning opaque
+// clang-format on
   Standard_Boolean        IsDefined;       //!< defined flag; TRUE by default
 
   //! Empty constructor.
index 7fb2843534b439052458d33e6c3c7f3e9b36f697..9c436b71f25e6ecf8666983df3bf5e5d1ae8ca2a 100644 (file)
@@ -23,6 +23,7 @@
 struct XCAFDoc_VisMaterialPBR
 {
   Handle(Image_Texture)   BaseColorTexture;         //!< RGB texture for the base color
+// clang-format off
   Handle(Image_Texture)   MetallicRoughnessTexture; //!< RG texture packing the metallic and roughness properties together
   Handle(Image_Texture)   EmissiveTexture;          //!< RGB emissive map controls the color and intensity of the light being emitted by the material
   Handle(Image_Texture)   OcclusionTexture;         //!< R occlusion map indicating areas of indirect lighting
@@ -32,6 +33,7 @@ struct XCAFDoc_VisMaterialPBR
   Standard_ShortReal      Metallic;                 //!< metalness  (or scale factor to the texture) within range [0.0, 1.0]; 1.0 by default
   Standard_ShortReal      Roughness;                //!< roughness  (or scale factor to the texture) within range [0.0, 1.0]; 1.0 by default
   Standard_ShortReal      RefractionIndex;          //!< IOR (index of refraction) within range [1.0, 3.0]; 1.5 by default
+// clang-format on
   Standard_Boolean        IsDefined;                //!< defined flag; TRUE by default
 
   //! Empty constructor.
index 1e05ac79f4637e244baf283b8dcb45c33e8d69ea..5fd865a78067e268c6b76c8811f3a908b274a401 100644 (file)
@@ -87,7 +87,9 @@ static void DisplayText (const TDF_Label& aLabel,
     Standard_Integer i = 1;
     for (i = 1; i <= seq.Length(); i++) {
       TDF_Label aL = seq.Value (i);
+// clang-format off
       DisplayText (aL, aPrs, anAspect, aLocation); //suppose that subshapes do not contain locations
+// clang-format on
     }
   }
   
@@ -236,7 +238,9 @@ void XCAFPrs_AISObject::Compute (const Handle(PrsMgr_PresentationManager)& thePr
   {
     // Displaying Name attributes
     thePrs->SetDisplayPriority (Graphic3d_DisplayPriority_Topmost);
+// clang-format off
     DisplayText (myLabel, thePrs, Attributes()->DimensionAspect()->TextAspect(), TopLoc_Location());//no location
+// clang-format on
   }
 }
 
index c8494c39c50e240b2922b4041aab2d0446344f22..b3aab13067cca9a1426ac19d3b528387af57aae4 100644 (file)
@@ -73,7 +73,9 @@ protected:
 protected:
 
   TDF_Label        myLabel;        //!< label pointing onto the shape
+// clang-format off
   Standard_Boolean myToSyncStyles; //!< flag indicating that shape and sub-shapes should be updates within Compute()
+// clang-format on
 
 public:
 
index 98fbb01fb38cb2175a107ed8d7f82dde51ed0832..1d1c7488d33eb461ba6b4f35e22bad13e19ecdb4 100644 (file)
@@ -170,7 +170,9 @@ protected:
   NCollection_Vector<XCAFPrs_DocumentNode>
                                   myNodeStack;  //!< node stack
   Standard_Integer                myTop;        //!< top position in the node stack
+// clang-format off
   Standard_Boolean                myHasMore;    //!< global flag indicating that iterator points to the label
+// clang-format on
   XCAFPrs_Style                   myDefStyle;   //!< default style
   XCAFPrs_DocumentNode            myCurrent;    //!< current label info
   XCAFPrs_DocumentExplorerFlags   myFlags;      //!< iteration flags
index b80b032acfc0501f1a8d8667a7d436e90e3e632b..ce30455b5e099efe3e4a0a4d71968ab64d69287e 100644 (file)
@@ -235,7 +235,9 @@ private:
   Standard_Boolean myBackPlaneClipping;
   Standard_Real myBackPlaneDistance;
   Standard_Boolean myViewVolumeSidesClipping;
+// clang-format off
   Handle(TColgp_HArray1OfPnt) myGDTPoints; // Point for each GDT to describe position of GDT frame in View.
+// clang-format on
 };
 
 #endif // _XCAFView_Object_HeaderFile
index c1cfcba78d2f58b9dcf569bd181d8f680b7d694d..e5e985f843541a702c11931cefdbf2e446f9746a 100644 (file)
@@ -49,7 +49,9 @@ XSControl_SelectForTransfer::XSControl_SelectForTransfer ()    {  }
 {
   Handle(Transfer_ActorOfTransientProcess) act = theAC;
   if (act.IsNull() && !theTR.IsNull()) act = theTR->Actor();
+// clang-format off
   if (!act.IsNull()) return act->Recognize(ent);//,theTR->TransientProcess());//act->Recognize(ent);
+// clang-format on
   return Standard_False;
 }
 
index a66c24191bac454565752f1b9a1749cd1d4599da..e6fcbc36496176a38a178768fee0ff2a371265ac 100644 (file)
@@ -264,7 +264,9 @@ Standard_Boolean XmlLDrivers_DocumentStorageDriver::WriteToDomDocument
 
   // Document version
   Handle(TDocStd_Document) aDoc = Handle(TDocStd_Document)::DownCast (theDocument);
+// clang-format off
   TDocStd_FormatVersion aFormatVersion = TDocStd_Document::CurrentStorageFormatVersion(); // the last version of the format
+// clang-format on
   if (TDocStd_Document::CurrentStorageFormatVersion() < aDoc->StorageFormatVersion())
   {
     TCollection_ExtendedString anErrorString("Unacceptable storage format version, the last version is used");
index c10955f39a8b2a7e57e4ce10bd0fdf6d3c66063b..5a77387af7f65e2adce107b684d398e603e701d3 100644 (file)
@@ -52,7 +52,9 @@ public:
                                   XmlObjMgt_RRelocationTable&  theRelocTable) const Standard_OVERRIDE
   {
     Standard_Boolean aResult = myBaseDirver->Paste (theSource, theTarget, theRelocTable);
+// clang-format off
     theTarget->AfterRetrieval(); // to allow synchronization of the derived attribute with the base content
+// clang-format on
     return aResult;
   }
 
index e6133b862727d4ecfd00447c4693ca16787a68fd..967ba90b943165cae50b81ad44db4de91c21645e 100644 (file)
@@ -139,9 +139,11 @@ void XmlMDataXtd_TriangulationDriver::Paste(const Handle(TDF_Attribute)& theSour
     Standard_Integer nbNodes = PT->NbNodes();
     Standard_Integer nbTriangles = PT->NbTriangles();
     Standard_Integer size = PT->NbNodes();
+// clang-format off
     size *= 3 * 25; // 3 coordinates for a node * 25 characters are used to represent a coordinate (double) in XML
     if (PT->HasUVNodes()) 
       size += 2 * 25 * nbNodes; // 2 coordinates for a 2D node * 25 characters are used to represent a coordinate (double) in XML
+// clang-format on
     size += 3 * 10 * nbTriangles; // space for triangles
     size *= 2; // just in case :-)
     if (!size)
@@ -180,7 +182,9 @@ void XmlMDataXtd_TriangulationDriver::Paste(const Handle(TDF_Attribute)& theSour
 
     stream << std::ends;
 
+// clang-format off
     Standard_Character* dump = (Standard_Character*)stream.str(); // copying! Don't forget to delete it.
+// clang-format on
     XmlObjMgt::SetStringValue(theTarget, dump, Standard_True);
     delete[] dump;
   }
index 9d86e10c7074f0e06e23962d894be566d64f9da0..fa2ed749e6b69da75c8bc6adb4df719b07a40c92 100644 (file)
@@ -62,7 +62,9 @@ Standard_Boolean XmlMFunction_GraphNodeDriver::Paste(const XmlObjMgt_Persistent&
   // ========
 
   // Read the FirstIndex; if the attribute is absent initialize to 1
+// clang-format off
   aFirstIndPrev = 1; // It is absent :-) because I didn't wrote it on the stage of writing the file.
+// clang-format on
 
   // Read the LastIndex; the attribute should present
   if (!anElement.getAttribute(::LastPreviousIndex()).GetInteger(aLastIndPrev)) 
@@ -112,7 +114,9 @@ Standard_Boolean XmlMFunction_GraphNodeDriver::Paste(const XmlObjMgt_Persistent&
   // ====
 
   // Read the FirstIndex; if the attribute is absent initialize to 1
+// clang-format off
   aFirstIndNext = aLastIndPrev + 1; // It is absent :-) because I didn't wrote it on the stage of writing the file.
+// clang-format on
 
   // Read the LastIndex; the attribute should present
   if (!anElement.getAttribute(::LastNextIndex()).GetInteger(aLastIndNext))
index 0b11d517b1cb5abf2e1cf36cec0f5b9f9a7264ab..1e8b3b8ef4143a81e91938a16e1207516951a4a2 100644 (file)
@@ -249,7 +249,9 @@ static const XmlObjMgt_DOMString& EvolutionString(const TNaming_Evolution i)
     case TNaming_MODIFY       : return ::EvolModifyString();
     case TNaming_DELETE       : return ::EvolDeleteString();
     case TNaming_SELECTED     : return ::EvolSelectedString();
+// clang-format off
     case TNaming_REPLACE      : return ::EvolModifyString();  //    case TNaming_REPLACE      : return ::EvolReplaceString(); for compatibility
+// clang-format on
   default:
     throw Standard_DomainError("TNaming_Evolution; enum term unknown");
   }
index 98be51f53d3a42c9acae8ac9d966085e378477c4..7e0efecb091e7256e397e36febddaeb8f77e0c5b 100644 (file)
@@ -113,7 +113,9 @@ void XmlMXCAFDoc_NoteBinDataDriver::Paste(const Handle(TDF_Attribute)& theSource
     {
       anOSS << std::hex << aData->Value(i);
     }
+// clang-format off
     Standard_Character* dump = (Standard_Character*)anOSS.str(); // copying! Don't forget to delete it.
+// clang-format on
     XmlObjMgt::SetStringValue(theTarget, dump, Standard_True);
     delete[] dump;
   }
index 0fc56e0b9b2dc222ae451804a8faf386e8cd1a8d..353a51c6be17a25804cc8a813bc891af49a6f786 100644 (file)
@@ -130,7 +130,9 @@ protected:
   Standard_Integer myYTop;     //!< top    position in pixels
   Standard_Integer myXRight;   //!< right  position in pixels
   Standard_Integer myYBottom;  //!< bottom position in pixels
+// clang-format off
   Standard_Boolean myIsOwnWin; //!< flag to indicate own window handle (to be deallocated on destruction)
+// clang-format on
 
 };
 
index 3b53940ac33c43f9c96ac1a5518177349d5c793e..8ef57e306d3a38b0cc4f54c8f23bedae4164f0fc 100644 (file)
@@ -208,7 +208,9 @@ struct gp_EulerSequence_Parameters
   Standard_Integer i;           // first rotation axis
   Standard_Integer j;           // next axis of rotation
   Standard_Integer k;           // third axis
+// clang-format off
   Standard_Boolean isOdd;       // true if order of two first rotation axes is odd permutation, e.g. XZ
+// clang-format on
   Standard_Boolean isTwoAxes;   // true if third rotation is about the same axis as first 
   Standard_Boolean isExtrinsic; // true if rotations are made around fixed axes
 
index 83642409184d696b654e4f5ea53a7fb6411234ac..7d7e9ca6a50f056ea6015861fdad48614fedeb27 100644 (file)
@@ -416,7 +416,9 @@ void math_GlobOptMin::computeGlobalExtremum(Standard_Integer j)
       aPrevVal = d;
       myFunc->Value(myX, d);
       r1 = (d + myZ * myC * myLastStep - myF) * myZ; // Evtushenko estimation.
+// clang-format off
       r2 = ((d + aPrevVal - myC * myLastStep) * 0.5 - myF) * myZ; // Shubert / Piyavsky estimation.
+// clang-format on
       r = Min(r1, r2);
       if(r > myE3)
       {