SimMechanics    

Viewing Machines with Handle Graphics

The Handle Graphics feature for viewing your machine is built into SimMechanics. It uses a special set of symbols to draw bodies and Body coordinate systems (CSs). Use of the Handle Graphics tool is explained in the following sections, Interpreting Special Handle Graphics Symbols and Manipulating the Handle Graphics Window.

Choosing the Handle Graphics Visualization Tool

You choose this visualization tool in the Visualization pane of the Mechanical Environment Settings dialog:

  1. In the Draw machine using menu, choose MATLAB Graphics.
  2. Click Apply or OK. A Handle Graphics window opens.

Interpreting Special Handle Graphics Symbols

When SimMechanics calls the internal Handle Graphics window, it uses special conventions to render the bodies of your machine. You can control some of these conventions through the special SimMechanics options menu.

The default major features of the Handle Graphics window are

Handle Graphics Window with Body and Body Block Highlighting

Legend of Handle Graphics Symbols

The machine is rendered with two special symbols:

Controlling the Visualization.   You can control special SimMechanics features of this Handle Graphics window by using the SimMechanics menu in the middle of the menu bar.

SimMechanics Options Menu for Handle Graphics Visualization

SimMechanics Menu for the Handle Graphics Visualization Window 
Menu Item
Function
Default
Display
Bodies, triads, patches
Selected (all)
Orientation
X-Y, Y-Z, X-Z, 3D views
X-Y
Enable Model Highlighting
Body highlighting
Selected
Enable Automatic Axis Resize
Automatically resize axes and window to fit body motion
Selected
Show Legend
Open Help browser to symbol legend

You can turn each of the features on or off by selecting the item in the menu. An active item shows a check mark.

The 3D view is trimetric, from viewpoint (1,-1,1). Enable Automatic Axis Resize automatically resizes the axes and window to fit the machine motion during the animation.

The Show Legend option opens the online Help browser to this page.

Manipulating the Handle Graphics Window

The other controls on the Handle Graphics visualization tool are standard on all MATLAB Handle Graphics windows. Refer to the MATLAB Graphics documentation for a complete presentation of how to configure Handle Graphics windows and objects.

For SimMechanics model visualizations, the Zoom in, Zoom out, and Rotate 3D functions are especially useful. Select the icon and click in the figure area to activate the function. Click, hold, and roll the figure to rotate the machine in three dimensions.

Handle Graphics Window Viewing Controls

The View menu contains the useful Camera Toolbar, also discussed in the MATLAB Graphics documentation.


  Rendering Body Shapes in SimMechanics Viewing Machines in Virtual Reality