OOF2: The Manual

Name

OOF.Graphics_n.Settings.Hide_Empty_Mesh_Elements — Toggle the display of elements with no Material.

Synopsis

OOF.Graphics_n.Settings.Hide_Empty_Mesh_Elements(boolean)

Details

  • Parent Menu: OOF.Graphics_n.Settings
  • Callback: function toggleEmptyDrawing in module ooflib.engine.IO.displaymethods
  • Parameters:

    boolean
    A boolean value, 0 (false) or 1 (true). This is not a keyword parameter. In scripts, just enter '0' or '1', not 'boolean=1'.

Description

When Hide_Empty_Mesh_Elements is on, Elements of a Mesh which have no assigned Material are not drawn by any DisplayMethod. Some display methods, such as FilledContourDisplay, never draw these elements in any case, even if Hide_Empty_Mesh_Elements is off.

[Note] Note

The default value of Hide_Empty_Mesh_Elements is True. If a Mesh doesn't appear in the graphics window, ensure that the elements aren't empty, or that empty elements are being shown.

Figure 6.12. Hiding Empty Mesh Elements

Hiding Empty Mesh Elements

(a) A Microstructure with a Material assigned only to the blue pixels, and a Skeleton created from it.

(b) A Mesh created from the Skeleton in (a), with a contour plot displayed on it. Hide_Empty_Mesh_Elements is False.

(c) The same Mesh and contour plot as in (b), but Hide_Empty_Mesh_Elements is True.


See Also