<s> import vtk <EOL> points = vtk . vtkPoints ( ) <EOL> points . InsertPoint ( <NUM_LIT:0> , <NUM_LIT:0.0> , <NUM_LIT:0.0> , <NUM_LIT:0.0> ) <EOL> points . InsertPoint ( <NUM_LIT:1> , <NUM_LIT:0.0> , <NUM_LIT:1.0> , <NUM_LIT:0.0> ) <EOL> points . InsertPoint ( <NUM_LIT:2> , <NUM_LIT:1.0> , <NUM_LIT:0.0> , <NUM_LIT:0.0> ) <EOL> points . InsertPoint ( <NUM_LIT:3> , <NUM_LIT:1.0> , <NUM_LIT:1.0> , <NUM_LIT:0.0> ) <EOL> points . InsertPoint ( <NUM_LIT:4> , <NUM_LIT> , <NUM_LIT:0.0> , <NUM_LIT:0.0> ) <EOL> points . InsertPoint ( <NUM_LIT:5> , <NUM_LIT> , <NUM_LIT:1.0> , <NUM_LIT:0.0> ) <EOL> points . InsertPoint ( <NUM_LIT:6> , <NUM_LIT> , <NUM_LIT:0.0> , <NUM_LIT:0.0> ) <EOL> points . InsertPoint ( <NUM_LIT:7> , <NUM_LIT> , <NUM_LIT:1.0> , <NUM_LIT:0.0> ) <EOL> strips = vtk . vtkCellArray ( ) <EOL> strips . InsertNextCell ( <NUM_LIT:8> ) <EOL> strips . InsertCellPoint ( <NUM_LIT:0> ) <EOL> strips . InsertCellPoint ( <NUM_LIT:1> ) <EOL> strips . InsertCellPoint ( <NUM_LIT:2> ) <EOL> strips . InsertCellPoint ( <NUM_LIT:3> ) <EOL> strips . InsertCellPoint ( <NUM_LIT:4> ) <EOL> strips . InsertCellPoint ( <NUM_LIT:5> ) <EOL> strips . InsertCellPoint ( <NUM_LIT:6> ) <EOL> strips . InsertCellPoint ( <NUM_LIT:7> ) <EOL> profile = vtk . vtkPolyData ( ) <EOL> profile . SetPoints ( points ) <EOL> profile . SetStrips ( strips ) <EOL> map = vtk . vtkPolyDataMapper ( ) <EOL> map . SetInput ( profile ) <EOL> strip = vtk . vtkActor ( ) <EOL> strip . SetMapper ( map ) <EOL> strip . GetProperty ( ) . SetColor ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) <EOL> ren = vtk . vtkRenderer ( ) <EOL> renWin = vtk . vtkRenderWindow ( ) <EOL> renWin . AddRenderer ( ren ) <EOL> iren = vtk . vtkRenderWindowInteractor ( ) <EOL> iren . SetRenderWindow ( renWin ) <EOL> ren . AddActor ( strip ) <EOL> ren . SetBackground ( <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> renWin . SetSize ( <NUM_LIT> , <NUM_LIT> ) <EOL> iren . Initialize ( ) <EOL> renWin . Render ( ) <EOL> iren . Start ( ) </s>
