Fri, 09/04/2020 - 17:16
Forums:
Hi everyone, I don’t know if you have any experience in creating animations using AIS_Animation.
When I used AIS_Animation to create a rotation animation, I specified a starting rotation angle of 0 degrees and a stop rotation angle of 360 degrees to AIS_Shape. The animation time set was 10s. As a result, the AIS_Shape did not rotate in 10s; if I set the starting rotation angle If it is greater than 180 degrees, AIS_Shape can rotate according to the expected rotation process.
I wonder if you can find a solution in occt?
Thank you all.
Wed, 09/30/2020 - 10:01
Hi w d,
try to replace your animation by four animations each rotating your model 90° in 2,5 sec and define the starting-time for each by using SetStartPts of AIS_AnimationObject.
For the four rotations I use the following quaternion definitions:
Fri, 06/07/2024 - 18:41
hI,I want to achieve a animation of circle movement or arc movement,could you give me a C++ sample code?
Thanks
Jason
Tue, 06/11/2024 - 04:46
The first thing to do is to clarify the implementation logic of AIS's animation function.
The principle of rotating around a certain center point is to move and rotate at the same time.
Therefore, it is necessary to calculate the translation transformation and the rotation transformation.
AIS_AnimationObject_CAD is a subclass of AIS_AnimationObject_CAD.
myTranslatePath is a move path.
ANIMATION_ROTATE_TYPE_Direction: the object rotate around a axis
ANIMATION_ROTATE_TYPE_Target: the object rotate torward a target