| 127 | //------------------------------------------------------------------------------ |
| 128 | |
| 129 | void vtkIterativeClosestPointTransform::SetLocator(vtkCellLocator* locator) |
| 130 | { |
| 131 | if (this->Locator == locator) |
| 132 | { |
| 133 | return; |
| 134 | } |
| 135 | |
| 136 | if (this->Locator) |
| 137 | { |
| 138 | this->ReleaseLocator(); |
| 139 | } |
| 140 | |
| 141 | if (locator) |
| 142 | { |
| 143 | locator->Register(this); |
| 144 | } |
| 145 | |
| 146 | this->Locator = locator; |
| 147 | this->Modified(); |
| 148 | } |
| 149 | |
| 150 | //------------------------------------------------------------------------------ |
| 151 |
no test coverage detected