]> OCCT Git - occt.git/commitdiff
[bos #36133] wrong canonical detection. Do not ignore user-defined tolerance. CR790-SALOME-bos36133
authorjfa <jfa@opencascade.com>
Thu, 30 Oct 2025 11:20:03 +0000 (11:20 +0000)
committerjfa <jfa@opencascade.com>
Thu, 30 Oct 2025 11:20:03 +0000 (11:20 +0000)
src/GeomConvert/GeomConvert_SurfToAnaSurf.cxx

index 98fa2f91716c3bdf58a1b37bfd3ac11bfeeaea3f..ea593a1fc0687bf807d38ac1144f75dc9145084d 100644 (file)
@@ -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;