]> OCCT Git - occt.git/commit
0032570: Visualization, AIS_AnimationObject - define rotation around axis
authormzernova <mzernova@opencascade.com>
Mon, 27 Dec 2021 23:57:13 +0000 (23:57 +0000)
committervglukhik <vglukhik@opencascade.com>
Fri, 17 Mar 2023 23:04:13 +0000 (23:04 +0000)
commit054e18966b92c5a319e801f502ca5a20105ec149
tree0aa8ffe3de53fdce0922cdedb2479aee8b49a5bd
parent4f833b7d138b8dbf2bb373b5d1c619f49ce8b085
0032570: Visualization, AIS_AnimationObject - define rotation around axis

When using AIS_AnimationObject, linear interpolation is performed from one gp_Trsf transformation to another.
But when an object rotates around a specific axis, the object moves not along a linear trajectory,
but along a circle. Therefore, a separate class AIS_AnimationAxisRotation was created that
allows to animate rotation around a specific axis.

Test case tests/v3d/bugs/bug32570 was added.
src/AIS/AIS_AnimationAxisRotation.cxx [new file with mode: 0644]
src/AIS/AIS_AnimationAxisRotation.hxx [new file with mode: 0644]
src/AIS/AIS_AnimationObject.cxx
src/AIS/AIS_AnimationObject.hxx
src/AIS/AIS_BaseAnimationObject.cxx [new file with mode: 0644]
src/AIS/AIS_BaseAnimationObject.hxx [new file with mode: 0644]
src/AIS/FILES
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/v3d/bugs/bug32570 [new file with mode: 0644]