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

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

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

revision 1206 by jongui, Fri Jun 29 06:09:19 2007 UTC revision 1210 by jongui, Tue Jul 3 05:47:34 2007 UTC
# Line 17  FILE_3D = "interior_3D.xml" Line 17  FILE_3D = "interior_3D.xml"
17  IMAGE_NAME = "rectangle.jpg"  IMAGE_NAME = "rectangle.jpg"
18  JPG_RENDERER = Renderer.ONLINE_JPG  JPG_RENDERER = Renderer.ONLINE_JPG
19    
20  # Create a Scene with four viewports.  # Create a Scene.
21  s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,  s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,
22          y_size = Y_SIZE)          y_size = Y_SIZE)
23    
# Line 38  rect1.setYLength(1) Line 38  rect1.setYLength(1)
38  rect1.setZLength(0.3)  rect1.setZLength(0.3)
39  rect1.setColor(Color.GREY)  rect1.setColor(Color.GREY)
40    
41  # Create a Camera for the first viewport  # Create a Camera.
42  c1 = Camera(scene = s, viewport = Viewport.SOUTH_WEST)  c1 = Camera(scene = s, viewport = Viewport.SOUTH_WEST)
43  c1.isometricView()  c1.isometricView()
44    

Legend:
Removed from v.1206  
changed lines
  Added in v.1210

  ViewVC Help
Powered by ViewVC 1.1.26