23
5. USING CAD MODELS WITH SIMULINK 3D ANIMATION
When working with models of dynamic systems, it is an often requirement to
visualize them in an advanced three-dimensional, preferably virtual reality
environment. As most of the 3D designs in companies are created using some
CAD tools, users need to convert these designs into a form that can be used in
connection with Simulink® or SimMechanics® models and MATLAB®-based
applications.
This section describes how to adapt existing CAD designs for visualization in the
virtual reality environment using Simulink 3D Animation™. The process usually
consists of three steps:
- Exporting VRML models from CAD tools
o Converting part or assembly model into the VRML format used by
the Simulink 3D Animation
- Virtual scene modeling
o Composing the converted model into a virtual scene like urban or
manufacturing environment, adding other objects important for
interaction with the scene – viewpoints, background, lights, etc.
- Linking the virtual scene to a Simulink / SimMechanics / MATLAB
model
o Converting dynamic model quantities represented by Simulink
signals, SimMechanics quantities or MATLAB data objects into
form corresponding to VRML object properties (positions,
rotations, etc.) and establishing a live data connection between
the model and the virtual scene.
5.1. Exporting VRML models from CAD tools
The first part of the conversion process is exporting the CAD model of a part or
whole product assembly from the CAD tool into the VRML format used by the
Simulink 3D Animation. Most CAD tools have VRML export filters available. In
addition, there are conversion utilities available from 3
rd
parties that can
perform this task when the export filter isn’t available in the CAD tool directly.
Comentários a estes Manuais