0023627: Standard_OutOfRange in TopOpeBRep_FacesIntersector
authorabv <abv@opencascade.com>
Mon, 10 Dec 2012 20:32:11 +0000 (00:32 +0400)
committerabv <abv@opencascade.com>
Fri, 28 Dec 2012 14:15:03 +0000 (18:15 +0400)
Number of iterations corrected in static function GetArc()

src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx

index c4cc742..02e735e 100755 (executable)
@@ -1366,7 +1366,7 @@ static Standard_Integer GetArc(IntPatch_SequenceOfLine&           theSlin,
            }
        }
       //  c. all middle gaps
-      Standard_Integer NbChkPnts = theSlin.Length() - 1;
+      Standard_Integer NbChkPnts = WLVertexParameters.Length() / 2 - 1;
       for(i = 1; i <= NbChkPnts; i++)
        {
          if( Abs(WLVertexParameters.Value(i*2+1) - WLVertexParameters.Value(i*2)) > arc->Resolution(MaxVertexTol))