I am trying to intersect a polydata ( tri mesh) with a line, I am using vtkStaticCellLocator filter as follows
vtkSmartPointer< vtkStaticCellLocator> pCellLocator = vtkSmartPointer<vtkStaticCellLocator>::New();
pCellLocator->SetDataSet( polyData );
pCellLocator->BuildLocator();
vtkSmartPointer<vtkPoints> pPoints = vtkSmartPointer<vtkPoints>::New();
vtkSmartPointer<vtkIdList> idlist = vtkSmartPointer<vtkIdList>::New();
pCellLocator->IntersectWithLine( fStartPoint, fEndPoint, pPoints, idlist );
Results the following error
ERROR: In C:\VTK-9.0.1\Common\DataModel\vtkAbstractCellLocator.cxx, line 96
vtkStaticCellLocator (000001E8223F8BB0): The locator class - vtkStaticCellLocator does not yet support this IntersectWithLine interface
Thanks!