]> 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)
committerVadim Glukhikh <vadim.glukhikh@opencascade.com>
Wed, 1 Feb 2023 23:26:46 +0000 (23:26 +0000)
commit53eae1a9356ff1451d259b6305c200291d18a395
treefca683cd32e5b9c1a3f3ef82d05d3c7397a75e68
parentd22b135217f55bec86f9c21fc4bcf519cdcc9256
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]