<commit_before>#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkConeSource.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"

#include "SaveImage.h"

void main( int argc, char *argv[] )
{
  int i;

  // create a rendering window and both renderers
  vtkRenderer *ren1 = vtkRenderer::New();
  vtkRenderWindow *renWindow = vtkRenderWindow::New();
    renWindow->AddRenderer(ren1);
  vtkRenderer *ren2 = vtkRenderer::New();
    renWindow->AddRenderer(ren2);

  // create an actor and give it cone geometry
  vtkConeSource *cone = vtkConeSource::New();
     cone->SetResolution(8);
  vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();
    coneMapper->SetInput(cone->GetOutput());
  vtkActor *coneActor = vtkActor::New();
    coneActor->SetMapper(coneMapper);

  // assign our actor to both renderers
  ren1->AddActor(coneActor);
  ren2->AddActor(coneActor);

  // set the size of our window
  renWindow->SetSize(300,150);

  // set the viewports and background of the renderers
  ren1->SetViewport(0,0,0.5,1);
  ren1->SetBackground(0.2,0.3,0.5);
  ren2->SetViewport(0.5,0,1,1);
  ren2->SetBackground(0.2,0.5,0.3);

  // draw the resulting scene
  renWindow->Render();

  // make one view 90 degrees fromother
  ren1->GetActiveCamera()->Azimuth(90);

  // do a azimuth of the cameras 9 degrees per iteration
  for (i = 0; i < 360; i += 9) 
    {
    ren1->GetActiveCamera()->Azimuth(9);
    ren2->GetActiveCamera()->Azimuth(9);
    renWindow->Render();
    }

  SAVEIMAGE( renWindow );

  // Clean up
  ren1->Delete();
  renWindow->Delete();
  cone->Delete();
  coneMapper->Delete();
  coneActor->Delete();

}<commit_msg>ENH: new light/camera interaction.<commit_after>#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkConeSource.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"

#include "SaveImage.h"

void main( int argc, char *argv[] )
{
  int i;

  // create a rendering window and both renderers
  vtkRenderer *ren1 = vtkRenderer::New();
  vtkRenderWindow *renWindow = vtkRenderWindow::New();
    renWindow->AddRenderer(ren1);
  vtkRenderer *ren2 = vtkRenderer::New();
    renWindow->AddRenderer(ren2);

  // create an actor and give it cone geometry
  vtkConeSource *cone = vtkConeSource::New();
     cone->SetResolution(8);
  vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();
    coneMapper->SetInput(cone->GetOutput());
  vtkActor *coneActor = vtkActor::New();
    coneActor->SetMapper(coneMapper);

  // assign our actor to both renderers
  ren1->AddActor(coneActor);
  ren2->AddActor(coneActor);

  // set the size of our window
  renWindow->SetSize(300,150);

  // set the viewports and background of the renderers
  ren1->SetViewport(0,0,0.5,1);
  ren1->SetBackground(0.2,0.3,0.5);
  ren2->SetViewport(0.5,0,1,1);
  ren2->SetBackground(0.2,0.5,0.3);

  // draw the resulting scene
  renWindow->Render();
  ren1->LightFollowCameraOff();
  
  // make one view 90 degrees fromother
  ren1->GetActiveCamera()->Azimuth(90);

  // do a azimuth of the cameras 9 degrees per iteration
  for (i = 0; i < 360; i += 9) 
    {
    ren1->GetActiveCamera()->Azimuth(9);
    ren2->GetActiveCamera()->Azimuth(9);
    renWindow->Render();
    }

  SAVEIMAGE( renWindow );

  // Clean up
  ren1->Delete();
  renWindow->Delete();
  cone->Delete();
  coneMapper->Delete();
  coneActor->Delete();

}
{'fraction_non_alphanumeric': 0.1540758435353837, 'fraction_numerical': 0.033144222155867424, 'mean_word_length': 4.045180722891566, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 56, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4487483', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1168, 'n_words': 256}