From 163af51e38691b3b492c9f9024ba301fa6fb4db8 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 31 Oct 2008 12:13:27 +0000 Subject: [PATCH] Bug 0020014: EDF 833 GEOM : Regression from 3.2.9 with GetInPlace. --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 7435b71f0..3555de11c 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -2890,6 +2890,10 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::GetInPlace (Handle(GEOM_Object) Tol_2D = dl_l * ( min_l * min_l) * ( 2. + dl_l); Tol_3D = dl_l * ( min_l * min_l * min_l ) * ( 3. + (3 * dl_l) + (dl_l * dl_l) ); + if (Tol_1D < Precision::Confusion()) Tol_1D = Precision::Confusion(); + if (Tol_2D < Precision::Confusion()) Tol_2D = Precision::Confusion(); + if (Tol_3D < Precision::Confusion()) Tol_3D = Precision::Confusion(); + Tol_Mass = Tol_3D; if ( iType == TopAbs_EDGE ) Tol_Mass = Tol_1D; else if ( iType == TopAbs_FACE ) Tol_Mass = Tol_2D; -- 2.39.2