/[escript]/trunk/doc/examples/pyvisi/image.py
ViewVC logotype

Diff of /trunk/doc/examples/pyvisi/image.py

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

revision 1083 by jongui, Wed Apr 11 06:13:46 2007 UTC revision 1084 by jongui, Thu Apr 12 05:19:22 2007 UTC
# Line 1  Line 1 
1  # Import the necessary modules.  # Import the necessary modules.
2  from esys.pyvisi import Scene, DataCollector, Map, ImageReader, Image  from esys.pyvisi import Scene, DataCollector, Map, ImageReader, Image, Camera
3  from esys.pyvisi import GlobalPosition  from esys.pyvisi import GlobalPosition
4  from esys.pyvisi.constant import *  from esys.pyvisi.constant import *
5    
# Line 37  i.translate(0,0,-1) Line 37  i.translate(0,0,-1)
37  i.setPoint1(GlobalPosition(2,0,0))  i.setPoint1(GlobalPosition(2,0,0))
38  i.setPoint2(GlobalPosition(0,2,0))  i.setPoint2(GlobalPosition(0,2,0))
39    
40    # Create a Camera.
41    c1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)
42    
43  # Render the object.  # Render the object.
44  s.render(PYVISI_EXAMPLE_IMAGES_PATH + SAVE_IMAGE_NAME)  s.render(PYVISI_EXAMPLE_IMAGES_PATH + SAVE_IMAGE_NAME)
45    

Legend:
Removed from v.1083  
changed lines
  Added in v.1084

  ViewVC Help
Powered by ViewVC 1.1.26