------------------------------------------------------------------------------
| 30 | |
| 31 | //------------------------------------------------------------------------------ |
| 32 | void vtkCellLocatorStrategy::SetCellLocator(vtkAbstractCellLocator* cL) |
| 33 | { |
| 34 | if (cL != this->CellLocator) |
| 35 | { |
| 36 | if (this->CellLocator != nullptr && this->OwnsLocator) |
| 37 | { |
| 38 | this->CellLocator->Delete(); |
| 39 | } |
| 40 | |
| 41 | this->CellLocator = cL; |
| 42 | |
| 43 | if (cL != nullptr) |
| 44 | { |
| 45 | cL->Register(this); |
| 46 | } |
| 47 | |
| 48 | this->OwnsLocator = true; |
| 49 | this->Modified(); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | //------------------------------------------------------------------------------ |
| 54 | int vtkCellLocatorStrategy::Initialize(vtkPointSet* ps) |