#if VTK_MAJOR_VERSION <= 5
clipper->SetInput(mLinesPolyData);
#else
- clipper->SetInputData(mLinesPolyData);
+ mLineTransform = vtkSmartPointer<vtkTransformPolyDataFilter>::New();
+ mLineTransform->SetInputData(mLinesPolyData);
+ mLineTransform->SetTransform(mCurrentSlicerManager->GetSlicer(slicer)->GetConcatenatedTransform()->GetInverse());
+ clipper->SetInputConnection(mLineTransform->GetOutputPort());
#endif
clipper->InsideOutOff();
clipper->Update();