From: jfa Date: Thu, 30 Oct 2025 11:20:03 +0000 (+0000) Subject: [bos #36133] wrong canonical detection. Do not ignore user-defined tolerance. X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR790-SALOME-bos36133;p=occt.git [bos #36133] wrong canonical detection. Do not ignore user-defined tolerance. --- diff --git a/src/GeomConvert/GeomConvert_SurfToAnaSurf.cxx b/src/GeomConvert/GeomConvert_SurfToAnaSurf.cxx index 98fa2f9171..ea593a1fc0 100644 --- a/src/GeomConvert/GeomConvert_SurfToAnaSurf.cxx +++ b/src/GeomConvert/GeomConvert_SurfToAnaSurf.cxx @@ -897,10 +897,12 @@ Handle(Geom_Surface) GeomConvert_SurfToAnaSurf::ConvertToAnalytical( } } - Standard_Real diagonal = mySurf->Value(U1, V1).Distance(mySurf->Value((U1 + U2), (V1 + V2) / 2)); - Standard_Real twist = 1000; - if (toler > diagonal / twist) - toler = diagonal / twist; + // jfa 30.10.2025 for bos #36133 + // Do not limit tolerance value, consider InitialToler, given as argument + //Standard_Real diagonal = mySurf->Value(U1, V1).Distance(mySurf->Value((U1 + U2), (V1 + V2) / 2)); + //Standard_Real twist = 1000; + //if (toler > diagonal / twist) + // toler = diagonal / twist; isurf = 1; // set cylinder Standard_Boolean aCylinderConus = Standard_False;