[vtkusers] Large Actor Rendering

Brian Szender szen16 at hotmail.com
Wed Jun 12 17:29:43 EDT 2002


I have 33 large actors that I am trying to add to a rendering window.  I am 
wondering if there is someway to streamline the process beyond this:

vtkPolyDataMapper *airwayTreeMapper8 = vtkPolyDataMapper::New();
  airwayTreeMapper8->SetInput( appendAirwayTree8->GetOutput() );
  appendAirwayTree8->Delete();

...

vtkActor *airwayTreeActor8 = vtkActor::New();
  airwayTreeActor8->SetMapper( airwayTreeMapper8 );
  airwayTreeActor8->GetProperty()->SetColor( 1, 1, 0 );
  airwayTreeMapper8->Delete();

...

actors.push_back( airwayTreeActor8 );

...

renderer->AddActor( airwayTreeActor8 );
  airwayTreeActor8->Delete();

...

vtkwindow->getRenderWindow()->Render();

Thanks,

Brian


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




More information about the vtkusers mailing list