From: epa Date: Fri, 27 Oct 2006 13:27:16 +0000 (+0000) Subject: Periodical mode of sweeping f = sin(t) replaced with cosinusoidal f=(1-cos(t))/2 X-Git-Tag: V3_2_3pre1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f6cb479257a0c6035a47d893bd8ca0cf88e05a18;p=modules%2Fvisu.git Periodical mode of sweeping f = sin(t) replaced with cosinusoidal f=(1-cos(t))/2 --- diff --git a/src/VISUGUI/VISU_msg_en.po b/src/VISUGUI/VISU_msg_en.po index 13fc8200..44bd3c3e 100644 --- a/src/VISUGUI/VISU_msg_en.po +++ b/src/VISUGUI/VISU_msg_en.po @@ -154,7 +154,7 @@ msgid "VISU_LINEAR_SWEEP" msgstr "Linear" msgid "VISU_U_SWEEP" -msgstr "Periodic" +msgstr "Cosinusoidal" msgid "VISU_SWEEPING_MODES" msgstr "Mode of the sweeping " diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 9b13dce3..082543c7 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -1622,7 +1622,7 @@ OnSweep() if( aMode == 1 ){ //if selected Periodic mode of sweeping float aT = ( is2Pi == 1 ? -PI + 2. * PI * float(i)/aSteps : PI * float(i)/aSteps ); //This is necessary in order for animation to retrun to the initial picture - aPercents = (1.+sin( aT - PI/2. ))/2.; + aPercents = (1.-cos( aT ))/2.; } else //if selected Linear mode of sweeping aPercents = float(i)/aSteps;