User`s guide
5 Build Virtual Reality Worlds
5-52
Do not adjust parts in the scene that you do not want to control from the MATLAB
environment.
• Scaling of VRML Objects
To convert CATProduct size from millimeters to meters (VRML default units), the
CATIA software wraps the transform corresponding to the CATProduct with an
additional transform. In this transform, the scale field is defined. The preceding
example illustrates this.
If you have a small object, or an object that you must place into an overall virtual
world, adjust this scale.
If you leave the VRML object scale in the default state, the local part coordinates
are still in millimeters. Remember this fact when controlling these parts from the
MATLAB or Simulink environment. If your MATLAB or Simulink model units are
meters, scale each part individually to achieve correct results. You can do this by
deleting the scale field from the top level transform, and adding it to each individual
part transform. For example,
Transform {
children [
DEF CylinderAssembly1 Transform {
children [
DEF CrankAssembly1 Transform {
scale 0.001 0.001 0.001
..
}