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 7c51d69..d9627cd 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;