]> OCCT Git - occt.git/commitdiff
0022694: Wrong result obtained after GeomLib::ExtendSurfByLength
authorAGV <>
Fri, 17 Feb 2012 12:24:55 +0000 (12:24 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:32:53 +0000 (19:32 +0400)
src/GeomLib/GeomLib.cxx

index 7c51d697ab7dd834d7d5d5028ac8e0517c874782..d9627cd1f0c01870a5644507b2b8e1ec7dfa4a5d 100755 (executable)
@@ -1455,8 +1455,10 @@ void GeomLib::ExtendSurfByLength(Handle(Geom_BoundedSurface)& Surface,
   }     
 
 
-  Standard_Boolean rational = ( InU && BS->IsURational() ) 
-                                  || ( !InU && BS->IsVRational() ) ;
+// IFV Fix OCC bug 0022694 - wrong result extrapolating rational surfaces
+//   Standard_Boolean rational = ( InU && BS->IsURational() ) 
+//                                   || ( !InU && BS->IsVRational() ) ;
+  Standard_Boolean rational = (BS->IsURational() ||  BS->IsVRational());
   Standard_Boolean NullWeight;
    Standard_Real EpsW = 10*Precision::PConfusion();
   Standard_Integer gap = 3;