vtkPointLocator::BuildLocator() crashes
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When I call vtkPointLocator::BuildLocator(), after applying the vtkPolyDataConnectivityFilter it crashes. The input is a vtkPolyData with some points that are not attached to a cell.
The function vtkPolyData::ComputeBounds() uses the points attached to cells to compute the bounds (cella[t]->InitTraversal()). The function vtkPointLocator::BuildLocator() uses the computed Bounds and iterates over all the points to build the buckets (this->DataSet->GetPoint(i);) When the point is not used by a cell, it is outside the Bounds and the index ijk is negative