From: abv Date: Mon, 10 Dec 2012 20:32:11 +0000 (+0400) Subject: 0023627: Standard_OutOfRange in TopOpeBRep_FacesIntersector X-Git-Tag: V6_6_0_beta~147 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=53e7fedeb227e7a6d4613f719105d222720fbfc5;p=occt-copy.git 0023627: Standard_OutOfRange in TopOpeBRep_FacesIntersector Number of iterations corrected in static function GetArc() --- diff --git a/src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx b/src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx index c4cc742d77..02e735e0a7 100755 --- a/src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx +++ b/src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx @@ -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))