support VTK 6.0.0: cmakelist.txt might need to be refactored

This commit is contained in:
Ozan Tonkal
2013-09-08 18:55:41 +02:00
parent 26005a19bd
commit 56f9168ac1
8 changed files with 168 additions and 29 deletions

View File

@@ -74,7 +74,11 @@ TriangleWidget::TriangleWidget(const Point3f &pt1, const Point3f &pt2, const Poi
// Create mapper and actor
vtkSmartPointer<vtkPolyDataMapper> mapper = vtkSmartPointer<vtkPolyDataMapper>::New();
#if VTK_MAJOR_VERSION <= 5
mapper->SetInput(polyData);
#else
mapper->SetInputData(polyData);
#endif
vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New();
actor->SetMapper(mapper);