MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0032570Community[OCCT] OCCT:Visualizationpublic2021-09-15 10:212021-09-15 10:33
Reporterkgv 
Assigned Tokgv 
PrioritynormalSeverityfeature 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.1.0 
Target Version[OCCT] 7.7.0Fixed in Version 
Summary0032570: Visualization, AIS_AnimationObject - define rotation around axis
DescriptionCurrently AIS_AnimationObject is defined as linear interpolation of gp_Trsf decomposition (scale, translation, rotation).

Due to generalized gp_Trsf definition as 3x3 matrix and translation vector, transformation defined by axis and rotation angle ends up as additional translation and rotation around object center.
In this case, original intention (rotating around specific axis) is lost, although final transformation is the same, which doesn't make any problem when gp_Trsf is used as designed.
However, when using rotation transformation for defining animation via AIS_AnimationObject, such disparity leads to unexpected transition.

Therefore, it is proposed extended AIS_AnimationObject with a syntax defining rotation around specific point explicitly (and maybe some other specific transitions) which would internally implement expected interpolation.

The interpolation itself might be defined to handle specifically rotation or other scenarios, or it might be possible defining an anchor point / local coordinate system of the object to apply general gp_Trsf transformation.

https://dev.opencascade.org/content/aisanimation-how-rotation-arround-axis-parallel-y-axis [^]
Steps To Reproduce
pload MODELING VISUALIZATION
box b1 2 100 100 -preview
box b2 2 100 100 -preview

vinit View1
vpoint p0 2 100 0
vpoint p1 2 100 100
vsegment s p0 p1
vdisplay b1 -dispMode 0

vdisplay b2 -dispMode 1
vlocation b2

vlocation b2 -reset -rotate 2 100 0 0 0 1 90
vlocation b2
vfit

vlocation b2 -reset
#vanim a -object b2 -loc1 0 0 0 -loc2 102 98 0
vanim a -object b2 -loc1 0 0 0 -rot1 0 0 0 1 -loc2 102 98 0 -rot2 0 0 0.707107 0.707107
vanim a -play 0 10
TagsNo tags attached.
Test case number
Attached Files

- Relationships
child of 0027764closedapn Open CASCADE Visualization - add functionality for animation of 3D camera and interactive objects 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-09-15 10:21 kgv New Issue
2021-09-15 10:21 kgv Assigned To => kgv
2021-09-15 10:30 kgv Description Updated View Revisions
2021-09-15 10:30 kgv Steps to Reproduce Updated View Revisions
2021-09-15 10:33 kgv Relationship added child of 0027764
2021-09-15 10:33 kgv Product Version 7.5.0 => 7.1.0


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker