]> OCCT Git - occt-copy.git/commitdiff
Fix for issue #28168 CR00_671_FixG
authornbv <nbv@opencascade.com>
Thu, 19 Jan 2017 14:35:14 +0000 (17:35 +0300)
committernbv <nbv@opencascade.com>
Thu, 19 Jan 2017 14:37:09 +0000 (17:37 +0300)
Set-62

src/IntPolyh/IntPolyh_MaillageAffinage.cxx

index ac6828146347fbbc402e21b86219c5102ccf8154..11b0c5c8bff70d87126ba33e8b15ff135b07b83b 100644 (file)
@@ -2197,7 +2197,7 @@ void CalculPtsInterTriEdgeCoplanaires2(const Standard_Integer TriSurfID,
     Standard_Real p0p = Per.Dot(PT1);
     ///The edge are PT1 are projected on the perpendicular of the side in the plane of the triangle
     if ( ( (p1p>=p0p)&&(p0p>=p2p) )||( (p1p<=p0p)&&(p0p<=p2p) ) ) {
-      Standard_Real lambda=(p1p-p0p)/(p1p-p2p);
+      const Standard_Real lambda= Abs(p1p-p2p) < RealSmall() ? 0.0 : (p1p-p0p)/(p1p-p2p);
       if (lambda<-MyConfusionPrecision) {
 
       }