From 327b85d0c45e1ae904f1f1eb77cd65dacd5955f0 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 30 Oct 2025 11:20:03 +0000 Subject: [PATCH] [bos #36133] wrong canonical detection. Do not ignore user-defined tolerance. --- src/GeomConvert/GeomConvert_SurfToAnaSurf.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; -- 2.39.5