MATLAB SIMULINK 3D ANIMATION - S Podręcznik Użytkownika Strona 267

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 490
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 266
Play Animations with Simulink 3D Animation Viewer
7-47
Play Animations with Simulink 3D Animation Viewer
You can use the Simulink 3D Animation You can also use the Simulink 3D Animation
Viewer to play animation files, using one of these approaches:
At the MATLAB command line, use vrview. For example, enter:
w=vrview('vrplanets_anim_1.wrl');
set(w,'TimeSource','freerun');
The vrview command displays the default Simulink 3D Animation Viewer for the
animation file. Setting the TimeSource property of the set method to 'freerun'
directs the viewer to advance its time independent of the MATLAB software.
To stop the animation, type:
set(w,'TimeSource','external');
To close the viewer and delete the world, get the handle of the vrfigure object and close
it, as follows:
f=get(w,'Figures')
close(f);
delete(w);
Or, to close all vrfigure objects and delete the world, type
vrclose
delete(w);
Przeglądanie stron 266
1 2 ... 262 263 264 265 266 267 268 269 270 271 272 ... 489 490

Komentarze do niniejszej Instrukcji

Brak uwag