OOF2: The Manual

Name

Cross Section (MeshCrossSectionDisplay) — Determine which cross sections are displayed, and how.

Synopsis

MeshCrossSectionDisplay(cross_sections, color, linewidth)

Details

  • Base class: DisplayMethod
  • Parameters:

    cross_sections
    Which cross-section to display? Type: The name of a Mesh cross section.
    color
    In which color? Type: An object of the TranslucentColor class.
    linewidth
    Thickness of the line. Type: An integer in the range [0, 10].

Description

MeshCrossSectionDisplay shows the lines in the Mesh along which cross-section data may be computed. These lines are created by the Mesh Cross Section toolbox and the Analysis task page.

A single MeshCrossSectionDisplay is created automatically in each Graphics Window and is not normally visible in the window's layer list. To edit its properties, first select List All Layers in the graphics window's Settings menu.

The predefined MeshCrossSectionDisplay displays the cross section that is selected in the Mesh Cross Section toolbox. In order to display additional cross sections, add a new MeshCrossSectionDisplay with OOF.Graphics_n.Layer.New.

The cross_sections parameter determines which cross sections are displayed. As shown in Figure 6.90, the widget for setting cross_sections contains a check button and a list. If the check button is not checked, one or more cross sections can be chosen from the list. If the button is checked, the list is ignored and the cross section that is currently selected in the Mesh Cross Section toolbox will be displayed.

In text mode, cross_sections can be set either to selection or to a list of cross section names, e.g, ['cs', 'cs2'].

The linewidth parameter is the width of the displayed cross section. It is an integer in units of the screen pixel size.

Figure 6.90. Selecting Cross Sections to Display

Selecting Cross Sections to Display

When creating a new graphics Layer for displaying cross sections, the cross_sections parameter can be set to (a) a subset of the defined cross sections, or (b) the currently selected cross section.


[Tip] Tip

It is a good idea always to have one MeshCrossSectionDisplay set to display the selected cross section. Without it, nothing will be drawn when you create a new cross section in the toolbox. So don't delete the predefined layer or change its cross_sections parameter.