MATLAB SIMULINK 3D ANIMATION - S Guide de l'utilisateur Page 343

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 490
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 342
stl2vrml
10-3
destination
(Optional) Folder in which to create converted files. If the destination folder does not
exist, stl2vrml attempts to create the destination folder.
Default: ''
Examples
These examples use STL files that SimMechanics product includes. If you do not have the
SimMechanics product installed, then substitute another STL file .
Convert the STL file fourbar-Bar1-1.STL (which is in matlab/toolbox/physmod/
mech/mechdemos) to a VRML file and place the resulting file in the current folder. The
resulting VRML file (fourbar-Bar1-1.wrl) has the same name as the source file,
except that it has a wrl extension instead of an stl extension.
stl2vrml('fourbar-Bar1-1.STL')
ls
. .. fourbar-Bar1-1.wrl
% Other files and folders in the current folder appear, as well
Convert the STL file fourbar-Bar2-1.STL to a VRML file and place the resulting file
in a folder called virtualworlds. The resulting VRML file is in the destination folder
that you specify.
mkdir('virtualworlds')
stl2vrml('fourbar-Bar2-1.STL','virtualworlds')
cd virtualworlds
ls
. .. fourbar-Bar2-1.wrl
More About
Tips
You can use the created assembly VRML files as templates for creating virtual scenes
in which you can work with objects of the converted assemblies. To work with the
scene effectively, edit the scene as necessary. For example, consider whether you
Vue de la page 342
1 2 ... 338 339 340 341 342 343 344 345 346 347 348 ... 489 490

Commentaires sur ces manuels

Pas de commentaire