Version: 6.5.0
OCC 3D Viewer

Operations

The functionalities of OCC viewer are available via its Viewer Toolbar. Buttons marked with small downward triangles have extended functionality which can be accessed by locking on them with left mouse button.

occviewer_toolbar.png

occ_view_camera_dump.png

Dump View - exports an object from the viewer in bmp, png or jpeg image format.


occ_view_style_switch.png

Interaction style switch - allows to switch between standard and "keyboard free" interaction styles. "Keyboard free" style allows to process all view transformations without using keyboard (only by mouse) and perform selection in view by pressing "S" key. By default, rotation in this mode is performed by left mouse button, panning - by middle mouse button, zooming - by left and middle mouse buttons pressed simultaneously.


occ_view_zooming_style_switch.png

Zooming style switch - allows to switch between standard (zooming at the center of the view) and advanced (zooming at the current cursor position) zooming styles.


occ_view_triedre.png

Show/Hide Trihedron - shows or hides coordinate axes.


occ_view_fitall.png

Fit all - allows to select a point to be the center of a scene representing all displayed objects in the visible area.


occ_view_fitarea.png

Fit area - resizes the view to place in the visible area only the contents of a frame drawn with pressed left mouse button.


occ_view_zoom.png

Zoom - allows to zoom in and out.


occ_view_pan.png

Panning - if the represented objects are greater that the visible area and you don't wish to use Fit all functionality, click on this button and you'll be able to drag the scene to see its remote parts.


occ_view_glpan.png

Global panning - represents all displayed objects in the visible area.


occ_view_rotation_point.png

Change rotation point - allows to to choose the point around which the rotation is performed.

set_rotation_point_dialog1.png

By default the rotation point is located in the Center of the bounding box of an object.

set_rotation_point_dialog2.png

Unchecking Use Bounding Box Center checkbox allows you to define the coordinates of the rotation point manually.

  • Set to Origin button restores the default rotation point coordinates.
  • Select Point from View button allows to select the rotation point in the 3D Viewer.

occ_view_rotate.png

Rotation - allows to rotate the selected object using the mouse.


occ_view_front.png
occ_view_back.png
occ_view_top.png
occ_view_bottom.png
occ_view_left.png
occ_view_right.png

These buttons orientate the scene strictly about coordinate axes: Front, Back, Top, Bottom, Left or Right side.


occ_view_anticlockwise.png

Rotate counterclockwise - rotates view 90° counterclockwise.


occ_view_clockwise.png

Rotate clockwise - rotates view 90° clockwise.


occ_view_reset.png

Reset - restores the default position (isometric) of objects in the scene.


occ_view_shoot.png

Memorise view - saves the current position of objects in the scene.


occ_view_presets.png

Restore view - restores the saved position of objects in the scene.


occ_view_clone.png

Clone view - opens a new duplicate scene.


occ_view_clipping.png

Clipping - allows to create cross-section views (clipping planes) of geometrical objects.

clipping.png
  • Base point - allows to define the coordinates of the base point for the clipping plane.

    • Reset - returns the base point to coordinate origin.
  • Direction - allows to define the orientation of the clipping plane.

    • Invert - allows to select which part of the object will be removed and which will remain after clipping.
  • Preview - allows to see the results of clipping in the viewer.

occ_view_scaling.png

Scaling - represents objects deformed (stretched or stuffed) along the axes of coordinates.


occ_view_graduated_axes.png

Graduated axes - allows to define axes parameters and graduate them.

graduatedaxes2.png
  • Axis name - if checked the axis name is displayed in the viewer.

    • Name - allows to redefine the axis name.
    • Font - allows to define the font color of the axis name.
  • Labels - if checked the labels are displayed in the viewer.

    • Number - allows to define the number of labels.
    • Offset - allows to define the distance between labels.
    • Font - allows to define the font color of labels names.
  • Tick marks - if checked the tick marks are displayed in the viewer.

    • Length - allows to define the length of tick marks.
  • Is visible - if checked the axis is displayed in the viewer.

occ_view_ambient.png

Toggle ambient light - toggle "keep only ambient light" flag on/off.


occ_view_minimized.png
occ_view_maximized.png

Minimize/Maximize - these buttons allow switching the current view area to the minimized / maximized state.


occ_view_sync.png

Synchronize view - allows to synchronize 3d view parameters. This button has two states - checked and unchecked. Clicking on this button opens a drop-down menu listing the compatible 3d views. As soon as the user selects any view from the list, the parameters (view point, position, zoom coefficient, etc.) of the current view are synchronized with the selected view (static synchronization).

In addition, when this button is in the "checked" state, the dynamic synchronization of the views is performed, i.e. any zoom, pan, rotate or other view operation done in one view is automatically applied to the other view.


Background

OCC Viewer background can be customized using the "Change background" popup menu command that opens the following dialog box:

change_background_dlg.png

The following types of the background are supported:

  • Single color: the background is colored with the solid color specified by the user in the dialog box.
  • Gradient background: the background is gradiently colored according to two colors and the gradient type specified in the dialog box. The following types of background are supported:

    • Horizontal
    • Vertical
    • First diagonal
    • Second diagonal
    • First corner
    • Second corner
    • Third corner
    • Fourth corner
  • Image: allows to set image as viewer background and define filling type:

    • Center: the image is located at the center of the viewer backgound
    • Tile: the image fills the entire viewer backgound one by one
    • Stretch: the image is stretched to the entire viewer backgound.

Default background for the viewer is specified via the application preferences.

Polyline selection

OCC Viewer features a special Polyline Selection mechanism, which allows selecting an arbitraty part of the graphic area using a polygon frame (rubber band), instead of the usual selection with a rectangular frame.

To produce a Polyline Selection, lock the right mouse button and draw the first side of the polygon, then change the direction by clicking the left mouse button add draw another side, etc. The whole selection frame is drawn with the locked right mouse button.

polyselection1.png

As a result, only the nodes within the frame are selected.

polyselection2.png
Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS