------------------------------------------------------------------------------
| 36 | |
| 37 | //------------------------------------------------------------------------------ |
| 38 | void vtkClosestPointStrategy::SetPointLocator(vtkAbstractPointLocator* pL) |
| 39 | { |
| 40 | if (pL != this->PointLocator) |
| 41 | { |
| 42 | if (this->PointLocator != nullptr && this->OwnsLocator) |
| 43 | { |
| 44 | this->PointLocator->Delete(); |
| 45 | } |
| 46 | |
| 47 | this->PointLocator = pL; |
| 48 | |
| 49 | if (pL != nullptr) |
| 50 | { |
| 51 | pL->Register(this); |
| 52 | } |
| 53 | |
| 54 | this->OwnsLocator = true; |
| 55 | this->Modified(); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | //------------------------------------------------------------------------------ |
| 60 | int vtkClosestPointStrategy::Initialize(vtkPointSet* ps) |
no test coverage detected