From 59a2fb107cb140116e74d8f75cfe51ab0525110e Mon Sep 17 00:00:00 2001 From: mnt Date: Thu, 12 Nov 2015 10:49:25 +0300 Subject: [PATCH] Eliminate compiler errors --- src/Extrema/Extrema_GenExtCC.gxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/Extrema/Extrema_GenExtCC.gxx diff --git a/src/Extrema/Extrema_GenExtCC.gxx b/src/Extrema/Extrema_GenExtCC.gxx old mode 100644 new mode 100755 index 6acba89bd9..ff27ea1fd5 --- a/src/Extrema/Extrema_GenExtCC.gxx +++ b/src/Extrema/Extrema_GenExtCC.gxx @@ -284,7 +284,17 @@ void Extrema_GenExtCC::Perform() // Sort points lexicographically and check midpoint between each two neighboring points. // If all midpoints functional value is acceptable // then set myParallel flag to true and return one soulution. - std::sort(aPnts.begin(), aPnts.end(), comp); + + //std::sort(aPnts.begin(), aPnts.end(), comp); + for (Standard_Integer i = aPnts.Lower(); i < aPnts.Upper(); i++) + for (Standard_Integer j = i+1; j <= aPnts.Upper(); j++) + if (comp(aPnts(i),aPnts(j)) == Standard_False) + { + gp_XY aPoint = aPnts(i); + aPnts(i) = aPnts(j); + aPnts(j) = aPoint; + } + ///////////////////////////////////////////// Standard_Boolean isParallel = Standard_False; Standard_Real aVal = 0.0; math_Vector aVec(1,2, 0.0); -- 2.39.5