]> OCCT Git - occt-copy.git/commitdiff
0031123: Operation "fixshape" sets tolerance of face too big for face based on the... CR31123
authorgka <gka@opencascade.com>
Fri, 1 Nov 2019 14:50:49 +0000 (17:50 +0300)
committergka <gka@opencascade.com>
Fri, 1 Nov 2019 14:53:21 +0000 (17:53 +0300)
In the method ShapeFix_Wire::FixShifted() check on closure of surface is replaced on the check of the periodicity of surface

src/ShapeFix/ShapeFix_Wire.cxx

index b1d8eb45cbd9fa247f553610ad7c6e724b32782a..3a2a32360dc39dba794b0f079947650418be4fbb 100644 (file)
@@ -1365,8 +1365,8 @@ Standard_Boolean ShapeFix_Wire::FixShifted()
 
   Handle(ShapeAnalysis_Surface) surf = myAnalyzer->Surface();
   //#78 rln 12.03.99 S4135: checking spatial closure with Precision
-  Standard_Boolean uclosed = surf->IsUClosed(Precision());
-  Standard_Boolean vclosed = surf->IsVClosed(Precision()) || surf->Surface()->IsKind (STANDARD_TYPE(Geom_SphericalSurface));
+  Standard_Boolean uclosed = surf->Surface()->IsUPeriodic();//Precision());
+  Standard_Boolean vclosed = surf->Surface()->IsVPeriodic();//Precision()) || surf->Surface()->IsKind (STANDARD_TYPE(Geom_SphericalSurface));
   //#67 rln 01.03.99 S4135: ims010.igs entity D11900 (2D contour is 2*PI higher than V range [-pi/2,p/2])
   
   // PTV 26.06.2002 begin