]> OCCT Git - occt-copy.git/commitdiff
0030062: Modeling Algorithms - The shape healing is instable in test "parasolid/doc_3/E3" CR30062_2
authorabk <abk@opencascade.com>
Tue, 14 Aug 2018 16:42:31 +0000 (19:42 +0300)
committerabk <abk@opencascade.com>
Tue, 14 Aug 2018 16:42:31 +0000 (19:42 +0300)
A solution to fix the instability was created base on remark 30062#c78604 from 2018-08-14 16:10.

src/ShapeAnalysis/ShapeAnalysis_Wire.cxx

index 140f94483e2c282562ff2c94ec71fb4f6c049020..a273e570c0d263d0f6577cedbe18657a850228a9 100644 (file)
@@ -941,8 +941,8 @@ Standard_Boolean ShapeAnalysis_Wire::CheckDegenerated (const Standard_Integer nu
   //the situation when degenerated edge already exists but flag is not set
   //(i.e. the parametric space is closed)
   GeomAdaptor_Surface& Ads = mySurf->Adaptor3d()->ChangeSurface();
-  Standard_Real max = Max ( Ads.UResolution(myPrecision), 
-                           Ads.VResolution(myPrecision) );
+  Standard_Real max = Max ( Ads.UResolution(precVtx), 
+                           Ads.VResolution(precVtx) );
   if ( p2d1.Distance (p2d2) /*Abs (par1 - par2)*/ <= max + gp::Resolution() ) return Standard_False;
 
   //#84 rln p2d1 = aP2d.XY() + par1 * theDir2d.XY();