animatego

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 5.2, Creation date: 2022-05-04, Last change: 2025-09-15

rotates one or several objects in a loop

Description

unfortuntately there is a need to redraw the parts, since SGTplotalpha returns also handles to Frames.
This function is used within Videoquickanimatego
From SGLib 5.5 on, axis4animation has been integrated, and can be used to avoid automatic axis adaption

See Also: Videoquickanimatego , viewsmooth , Videoquickrotate3D , figurerotate , drawnowvid , axis4animation

Example Illustration

 missing image of animatego(h,T,w,style)

Syntax

h=animatego(h,T,w,[style])

Input Parameter

h: handle
T: Frame 4x4
w: angle difference in ez
style: 'rotz' or 'linz'; default is 'rotz'

Output Parameter

h: handle to new graphics object

Examples


close all; SGfigure(-30,30); A=SGbox; A=SGTretain(A,'F'); T=TofPez([30 0 50],[-1 -1 1]),
SGplotalpha(A,'g'); h=SGTplotalpha(SGtransT(A,T));
for i=1:50; w=2*pi/50; h=animatego(h,T,w); drawnow; shg; end;

[~,a,b]=SGgearpair; SGfigure(-30,30); ha=SGplotalpha(a); hb=SGplotalpha(b);
load ADAM_Amono.mat; b=SGconcat(b,SGmagnifyVL(ADAM_Amono,0.1),'center','ontop','alignfront',-3);
ha=SGplotalpha(a); hb=SGplotalpha(b);
while true; ha=animatego(ha,SGTget(a,'B'),0.1); hb=animatego(hb,SGTget(b,'F'),+0.1/2.5);
ch=get(gcf,'CurrentCharacter'); if uint8(ch)==27; break; end; drawnow; shg; end;




Copyright 2022-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21