Ignore:
Timestamp:
Oct 26, 2006, 1:06:25 PM (17 years ago)
Author:
jack
Message:

Made the overlayed yellow polygon visible in the realtime example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/examples/visualise_rectangle.py

    r3873 r3874  
    3737
    3838yieldstep = 0.002
    39 finaltime = 1.0
     39finaltime = 0.8
    4040rect = [0.0, 0.0, 1.0, 1.0]
    4141
     
    6868v.alter_axes(vtkCubeAxesActor2D.SetNumberOfLabels, (5,))
    6969
    70 # Draw a yellow polygon at height 10
    71 v.overlay_polygon([(20, 50), (40, 40), (50, 10), (30, 20), (10, 30)], 10, colour=(1.0, 1.0, 0.0))
     70# Draw a yellow polygon at height 2
     71v.overlay_polygon([(0, 0), (0, 0.1), (0.1, 0)], 2, colour=(1.0, 1.0, 0.0))
    7272
    7373# Start the visualiser (in its own thread).
Note: See TracChangeset for help on using the changeset viewer.