From: aml Date: Thu, 22 Sep 2016 05:12:16 +0000 (+0300) Subject: 0027696: Return max distance in xdistcs Draw command X-Git-Tag: V7_1_0_beta~121 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=27ba9c6006a9fcdd4186643b619d0b03ce1dc660;p=occt.git 0027696: Return max distance in xdistcs Draw command Message about maximal distance is added for xdistcs command. --- diff --git a/src/GeometryTest/GeometryTest_TestProjCommands.cxx b/src/GeometryTest/GeometryTest_TestProjCommands.cxx index 2fbd7713d4..f9b7d4eb29 100644 --- a/src/GeometryTest/GeometryTest_TestProjCommands.cxx +++ b/src/GeometryTest/GeometryTest_TestProjCommands.cxx @@ -344,6 +344,9 @@ static Standard_Integer xdistcs(Draw_Interpretor& di, Standard_Integer n, const iSize=3; // dT=(aT2-aT1)/(aNbP-1); + + Standard_Real aMaxParam = 0.0; + Standard_Real aMaxDist = 0.0; for (i=0; i aMaxDist) + { + aMaxParam = aT; + aMaxDist = aD; + } } + + di << "Max distance = " << aMaxDist << "\n" ; + di << "Param = " << aMaxParam << "\n" ; // return 0; }