From 53e7fedeb227e7a6d4613f719105d222720fbfc5 Mon Sep 17 00:00:00 2001 From: abv Date: Tue, 11 Dec 2012 00:32:11 +0400 Subject: [PATCH] 0023627: Standard_OutOfRange in TopOpeBRep_FacesIntersector Number of iterations corrected in static function GetArc() --- src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))