------------------------------------------------------------------------------ This FindCell() method is based on using a locator (either point or cell). In this application, point locators are typically faster to build and operate on than cell locator, yet do not always produce the correct result. The basic idea is that we find one or more close points to the query point, and we assume that one o
| 214 | // cell locator strategy should be used. Use subclasses of |
| 215 | // vtkFindCellStrategy to control the strategies. |
| 216 | vtkIdType vtkPointSet::FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell, |
| 217 | vtkIdType cellId, double tol2, int& subId, double pcoords[3], double* weights) |
| 218 | { |
| 219 | vtkNew<vtkClosestPointStrategy> strategy; |
| 220 | strategy->Initialize(this); |
| 221 | return strategy->FindCell(x, cell, gencell, cellId, tol2, subId, pcoords, weights); |
| 222 | } |
| 223 | |
| 224 | //------------------------------------------------------------------------------ |
| 225 | vtkIdType vtkPointSet::FindCell(double x[3], vtkCell* cell, vtkIdType cellId, double tol2, |