Display Arrangement

This module can be used to display an arrangement on a new window

class discopygal.geometry_utils.display_arrangement.GUIArrangement
setupUi()

Setup the UI layout of the application. Should be overridded by any GUI application and define a custom layout.

discopygal.geometry_utils.display_arrangement.display_arrangement(arr, display_name='Display Arrangement', show_grid=False, zoom=50, grid_resolution=1.0)

Get an arrangement and open a window that displays it. Useful for debugging.

For faces with data that is an int:

Faces with data >= 0 are colored green (free/valid). Faces with data < 0 are colored red (occupied/invalid).

For faces with data that is a bool:

Faces with data True are colored green (free/valid). Faces with data False are colored red (occupied/invalid).

Unbounded faces are left white.

Parameters:
  • arr (Arrangement_2) – Arrangement to display

  • display_name (str) – Name of display window

  • show_grid (bool) – Should show grid

  • zoom (int) – Amount of initial zoom

  • grid_resolution – What is the resolution of the grid lines (spacing between the lines).

  • grid_resolutionfloat