Skip to content
Snippets Groups Projects
Commit f85e74f8 authored by Chris Harris's avatar Chris Harris Committed by Code Review
Browse files

Merge topic 'fix_cocoa_example' into master

1c7c553f COMP: Cocoa example is using SetInput(...)
parents f1a33663 1c7c553f
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
cone->SetRadius(1.0);
cone->SetResolution(100);
vtkSmartPointer<vtkPolyDataMapper> coneMapper = vtkSmartPointer<vtkPolyDataMapper>::New();
coneMapper->SetInput(cone->GetOutput());
coneMapper->SetInputConnection(cone->GetOutputPort());
vtkSmartPointer<vtkActor> coneActor = vtkSmartPointer<vtkActor>::New();
coneActor->SetMapper(coneMapper);
[leftVTKView getRenderer]->AddActor(coneActor);
......@@ -53,7 +53,7 @@
vtkSmartPointer<vtkCylinderSource> cylinder = vtkSmartPointer<vtkCylinderSource>::New();
cylinder->SetResolution(100);
vtkSmartPointer<vtkPolyDataMapper> cylinderMapper = vtkSmartPointer<vtkPolyDataMapper>::New();
cylinderMapper->SetInput(cylinder->GetOutput());
cylinderMapper->SetInputConnection(cylinder->GetOutputPort());
vtkSmartPointer<vtkActor> cylinderActor = vtkSmartPointer<vtkActor>::New();
cylinderActor->SetMapper(cylinderMapper);
[rightVTKView getRenderer]->AddActor(cylinderActor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment