Method: GtkVTKRenderWindow#Surface

Defined in:
lib/VTK/gtk/GtkVTKRenderWindow.rb

#SurfaceObject



521
522
523
524
525
526
527
528
529
530
531
# File 'lib/VTK/gtk/GtkVTKRenderWindow.rb', line 521

def Surface
  actors = @CurrentRenderer.GetActors
  numActors = actors.GetNumberOfItems
  actors.InitTraversal
  for i in 0...numActors
    actor = actors.GetNextItem
    actor.GetProperty.SetRepresentationToSurface
  end

  self.Render
end