/[escript]/temp_trunk_copy/doc/examples/pyvisi/map.py
ViewVC logotype

Diff of /temp_trunk_copy/doc/examples/pyvisi/map.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1153 by jongui, Thu May 17 06:33:54 2007 UTC revision 1203 by jongui, Thu Jun 21 23:17:16 2007 UTC
# Line 1  Line 1 
1    """
2    Author: John Ngui, john.ngui@uq.edu.au
3    """
4    
5  # Import the necessary modules.  # Import the necessary modules.
6  from esys.pyvisi import Scene, DataCollector, Map, Camera  from esys.pyvisi import Scene, DataCollector, Map, Camera
7  from esys.pyvisi.constant import *  from esys.pyvisi.constant import *
# Line 43  m2 = Map(scene = s, data_collector = dc2 Line 47  m2 = Map(scene = s, data_collector = dc2
47          lut = Lut.COLOR, cell_to_point = True, outline = True)          lut = Lut.COLOR, cell_to_point = True, outline = True)
48    
49  # Create a Camera for the third viewport  # Create a Camera for the third viewport
50  c1 = Camera(scene = s, viewport = Viewport.NORTH_EAST)  c2 = Camera(scene = s, viewport = Viewport.NORTH_EAST)
51    
52  # Render the object.  # Render the object.
53  s.render(image_name = os.path.join(PYVISI_EXAMPLE_IMAGES_PATH, IMAGE_NAME))  s.render(image_name = os.path.join(PYVISI_EXAMPLE_IMAGES_PATH, IMAGE_NAME))

Legend:
Removed from v.1153  
changed lines
  Added in v.1203

  ViewVC Help
Powered by ViewVC 1.1.26