occt: master f4dee9bb
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
kgv | master | 2016-08-09 17:12:59 | master 73594f72 | |
Affected Issues | 0026329: Restore floating point signals handling in DRAW | |||
Changeset | 0026329: Restore floating point signals handling in DRAW Added DRAW command dsetsignal, resetting OSD signal handler with either armed or disabled FPE handler, according to an option. If called without arguments, it sets FPE handler only if environment variable OSD_FPE is defined (with value different from 0). On start, DRAW calls dsetsignal to set FPE signal if CSF_FPE is defined. Test bugs fclasses bug6143 uses dsetsignal to set FPE handler unconditionally before the test command, and resets it to default at the end. A number of changes in the code have been done in order to fix floating point exceptions that became generated after enabling signals: - Global functions Sinh() and Cosh() defined in Standard_Real.hxx are improved to raise Standard_NumericError exception if argument is too big (greater than 710.47586), instead of relying on system treatment of floating point overflow. These functions are used instead of sinh and cosh in ElCLib.cxx. - Maximal value of parameter on hyperbola is restricted by 23 (corresponding to ~1e10 in 3d) in order to avoid FP overflow in Extrema_GenExtCS.cxx, ShapeFix_EdgeProjAux.cxx. - Interface of the root curve adaptor class Adaptor3d_Curve has been updated to add new virtual methods BasisCurve and OffsetValue. They complement the adaptor for the case of offset curves. These methods are used in Extrema_GenExtCS.cxx to restrict domain search in the case of offset of hyperbola, in order to get rid of floating point overflow. All classes inheriting Adaptor3d_Curve have been changed to implement the new virtual methods. - Protection against division by zero has been implemented in ApproxInt_KnotTools.cxx, BRepClass3d_SClassifier.cxx, BRepGProp_Face.cxx, BRepMesh_FastDiscretFace.cxx, Geom2dGcc_Circ2d2TanOnIter.cxx, Geom2dInt_Geom2dCurveTool.cxx, IntPolyh_MaillageAffinage.cxx. - Protection against calling of math functions of infinite arguments has been added in BRepCheck_Edge.cxx, BRepLib.cxx, CSLib_NormalPolyDef.cxx, Extrema_FuncExtPC.gxx, Extrema_GExtPC.gxx, Extrema_GLocateExtPC.gxx, Intf_InterferencePolygonPolyhedron.gxx, ShapeAnalysis_Surface.cxx, ShapeAnalysis_TransferParametersProj.cxx, ShapeAnalysis_Wire.cxx, math_FunctionSetRoot.cxx. - Proper initialization of local variables is done in BOPAlgo_PaveFiller_6.cxx, XSDRAWSTLVRML.cxx. - Inconsistent usage of Standard_Boolean* to access integer data in HLR (caused by 0027772) is corrected Some test cases have been updated to actual state. |
|||
mod - src/Adaptor3d/Adaptor3d_Curve.cxx | Diff File | |||
mod - src/Adaptor3d/Adaptor3d_Curve.hxx | Diff File | |||
mod - src/Adaptor3d/Adaptor3d_HCurve.hxx | Diff File | |||
mod - src/Adaptor3d/Adaptor3d_HCurve.lxx | Diff File | |||
mod - src/ApproxInt/ApproxInt_KnotTools.cxx | Diff File | |||
mod - src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx | Diff File | |||
mod - src/BRepAdaptor/BRepAdaptor_Curve.cxx | Diff File | |||
mod - src/BRepAdaptor/BRepAdaptor_Curve.hxx | Diff File | |||
mod - src/BRepCheck/BRepCheck_Edge.cxx | Diff File | |||
mod - src/BRepClass3d/BRepClass3d_SClassifier.cxx | Diff File | |||
mod - src/BRepGProp/BRepGProp_Face.cxx | Diff File | |||
mod - src/BRepLib/BRepLib.cxx | Diff File | |||
mod - src/BRepMesh/BRepMesh_FastDiscretFace.cxx | Diff File | |||
mod - src/BRepOffset/BRepOffset_Tool.cxx | Diff File | |||
mod - src/BRepTest/BRepTest_FeatureCommands.cxx | Diff File | |||
mod - src/CSLib/CSLib_NormalPolyDef.cxx | Diff File | |||
mod - src/Draw/Draw_BasicCommands.cxx | Diff File | |||
mod - src/DrawResources/DrawDefault | Diff File | |||
mod - src/ElCLib/ElCLib.cxx | Diff File | |||
mod - src/Extrema/Extrema_FuncExtPC.gxx | Diff File | |||
mod - src/Extrema/Extrema_GenExtCS.cxx | Diff File | |||
mod - src/Extrema/Extrema_GExtPC.gxx | Diff File | |||
mod - src/Extrema/Extrema_GLocateExtPC.gxx | Diff File | |||
mod - src/Geom2dGcc/Geom2dGcc_Circ2d2TanOnIter.cxx | Diff File | |||
mod - src/Geom2dInt/Geom2dInt_Geom2dCurveTool.cxx | Diff File | |||
mod - src/GeomAdaptor/GeomAdaptor_Curve.cxx | Diff File | |||
mod - src/GeomAdaptor/GeomAdaptor_Curve.hxx | Diff File | |||
mod - src/HLRAlgo/HLRAlgo_PolyData.cxx | Diff File | |||
mod - src/HLRAlgo/HLRAlgo_PolyInternalData.cxx | Diff File | |||
mod - src/HLRBRep/HLRBRep_BiPnt2D.hxx | Diff File | |||
mod - src/IntPolyh/IntPolyh_MaillageAffinage.cxx | Diff File | |||
mod - src/math/math_FunctionRoots.cxx | Diff File | |||
mod - src/math/math_FunctionSetRoot.cxx | Diff File | |||
mod - src/QABugs/QABugs_11.cxx | Diff File | |||
mod - src/ShapeAnalysis/ShapeAnalysis_Surface.cxx | Diff File | |||
mod - src/ShapeAnalysis/ShapeAnalysis_TransferParametersProj.cxx | Diff File | |||
mod - src/ShapeAnalysis/ShapeAnalysis_Wire.cxx | Diff File | |||
mod - src/ShapeFix/ShapeFix_EdgeProjAux.cxx | Diff File | |||
mod - src/Standard/Standard_Real.cxx | Diff File | |||
mod - src/Standard/Standard_Real.hxx | Diff File | |||
mod - src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx | Diff File | |||
mod - tests/bugs/fclasses/bug6143 | Diff File | |||
mod - tests/bugs/moddata_1/bug22759 | Diff File | |||
mod - tests/bugs/vis/bug23226 | Diff File | |||
mod - tests/offset/with_intersect_20/J9 | Diff File | |||
mod - tests/offset/with_intersect_80/J9 | Diff File | |||
mod - tests/offset/with_intersect_80/K8 | Diff File | |||
mod - tests/v3d/mesh/B7 | Diff File |