| 59 | //------------------------------------------------------------------------------ |
| 60 | |
| 61 | void vtkIterativeClosestPointTransform::SetSource(vtkDataSet* source) |
| 62 | { |
| 63 | if (this->Source == source) |
| 64 | { |
| 65 | return; |
| 66 | } |
| 67 | |
| 68 | if (this->Source) |
| 69 | { |
| 70 | this->ReleaseSource(); |
| 71 | } |
| 72 | |
| 73 | if (source) |
| 74 | { |
| 75 | source->Register(this); |
| 76 | } |
| 77 | |
| 78 | this->Source = source; |
| 79 | this->Modified(); |
| 80 | } |
| 81 | |
| 82 | //------------------------------------------------------------------------------ |
| 83 |